STM32MP1 getting started: create machine
Brief notes about how to create a customized machine based on STM32MP1.
Device tree
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
Machine layer
A custom layer can be created outside of meta-st:
1 | . |
Here I use patchs and bbappend to add dts files.
Machine conf
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.
U-Boot extlinux
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.