Brief notes about how to create a customized machine based on STM32MP1.
dts files should be created at the very beginning. There are 3 dts files need to implement:
- TF-A device tree
- U-BOOT device tree
- Kernel device tree
A custom layer can be created outside of meta-st:
Here I use patchs and bbappend to add dts files.
Machine conf can be created based on stm32mp1-disco.conf. There are some variables are pre-defined in st-machine-common-stm32mp.inc which need to be override in your machine conf.
There are some u-boot related env variables are set by UBOOT_EXTLINUX_ started configs in machine conf. In ST U-Boot, there path of extlinux.conf are related to UBOOT_EXTLINUX_BOOTPREFIXES.