OpenSTLinux SDK tools
##############################
CONTENTS:
- folder FLASH_LAYOUT: flashlayout examples for writing tfa and FIP partitions;
- folder KERNEL: an example of minimal Linux KERNEL configuration for STM32MP2;
- folder YOCTO: a simple example of meta-layer that defines mymachine, myboard and external custom dts files;
- unpack.sh, make_mp25x_FIP.sh, make_mp25x_KERNEL.sh: set of scripts to simplify the usage of STM32MP2Dev OpenSTLinux Developer Package.
HOW TO USE the BUILD scripts::
Prerequisite:
- Download and extract STM32MP2Dev OpenSTLinux Developer Package
[Rif. https://www.st.com/en/embedded-software/stm32mp2dev.html]
[Rif. https://wiki.st.com/stm32mpu/wiki/STM32MPU_Developer_Package]
Inside the folder where MP2-DEV-SRC package has been extracted
- Edit make_mp25x_FIP.sh and run ./make_mp25x_FIP.sh
- Edit make_mp25x_KERNEL.sh and run ./make_mp25x_KERNEL.sh
Update uSDCard from Linux HOST PC::
- u-boot (FIP):
dd if=FIP_artifacts/fip-stm32mp257f-ev1-optee.bin of=/dev/ conv=sync
dd if=FIP_artifacts/fip-stm32mp257f-ev1-optee.bin of=/dev/ conv=sync
- Arm-Trusted-Firmware (TF-A):
dd if=FIP_artifacts/fip-stm32mp257f-ev1-optee.bin of=/dev/<PARTITION_1_OF_SDCARD_DEVICE> conv=sync
dd if=FIP_artifacts/fip-stm32mp257f-ev1-optee.bin of=/dev/<PARTITION_2_OF_SDCARD_DEVICE> conv=sync
Update eMMC from target board using the serial console command line:
-
u-boot (FIP):
dd if=FIP_artifacts/fip-stm32mp257f-ev1-optee.bin of=/dev/mmcblk0p3 conv=sync
dd if=FIP_artifacts/fip-stm32mp257f-ev1-optee.bin of=/dev/mmcblk0p4 conv=sync -
Arm-Trusted-Firmware (TF-A):
echo 0 > /sys/block/mmcblk0boot0/force_ro
dd if=FIP_artifacts/fip-stm32mp257f-ev1-optee.bin of=/dev/mmcblk0boot0 conv=sync
echo 1 > /sys/block/mmcblk0boot0/force_roecho 0 > /sys/block/mmcblk0boot1/force_ro
dd if=FIP_artifacts/fip-stm32mp257f-ev1-optee.bin of=/dev/mmcblk0boot1 conv=sync
echo 1 > /sys/block/mmcblk0boot1/force_ro
Update Linux kernel and devicetree DTS file from target board using the serial console command line:
- Overwrite files in the /boot/ and /lib/modules/ folders on the target board.