Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

meta-rauc-st-stm32mp: add layer for STM32MP embedded Linux devices like STM32MP157F-DK2 #146

Merged
merged 7 commits into from
Feb 28, 2025

Conversation

leon-anavi
Copy link
Collaborator

Add a RAUC demo layer for integration of STM32MP157F-DK2 and other STM32MP embedded Linux devices

Add a RAUC demo integration layer for stm32mp15-disco and other
STM32MP embedded Linux devices.

Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
Add a tsv with two identical partitions rootfs_A and rootfs_B.

Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
Apply Linux kernel configurations required by RAUC through
rauc.config and linux-stm32mp_%.bbappend

Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
@jluebbe
Copy link
Member

jluebbe commented Feb 24, 2025

You could avoid the duplicate keys by using the shared ones introduced by #139.

@leon-anavi
Copy link
Collaborator Author

You could avoid the duplicate keys by using the shared ones introduced by #139.

No, not right now because we haven't cherry-picked these commits from #139 from branch master to branch scarthgap.

The latest supported Yocto release by the BSP provided by STMicroelectronics is Scarthgap so I opened this GitHub pull request only for branch scarthgap of meta-rauc-community.

@leon-anavi
Copy link
Collaborator Author

leon-anavi commented Feb 24, 2025

Btw @jluebbe, @ejoerns, to fix a file name mismatch due to the naming scheme of the BSP provided by STMicroelectronics, I added IMAGE_MACHINE_SUFFIX="-${DISTRO}-stm32mp15-disco" to the bundle. It works but I find it a bit ugly. In bundle.bbclass, I noticed RAUC_SLOT_rootfs[rename] but seems for a slightly different use case. Can you please give me a hint if there a better way to implement this bundle for Scarthgap?

U-Boot integration for STM32MP1 through various bbappend files:

- Add boot.scr.cmd script for adjusting RAUC variables
- stm32mp-extlinux.bbappend: always create boot.scr.uimg
- u-boot-fw-config-stm32mp_%.bbappend: deploy fw_env.config

Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
Add RAUC keys and configurations for STM32MP:
- update-bundle.bb: Update bundle adapted to STM32MP BSP
- rauc-conf.bbappend: system.conf with topology-based symlinks

Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
Add a link to the RAUC demo layer for STM32MP157F-DK2 and other
STM32MP embedded Linux devices.

Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
Adjust U-Boot's CONFIG_BOOTCOMMAND for the RAUC integration.

Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
@leon-anavi leon-anavi merged commit 5f90ada into rauc:scarthgap Feb 28, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants