Enhance ST common folder and add new defconfig
cover Enhance ST common folder and add new defconfig
This commit series is a first attempt to improve the organization and functionality of the STM32 platform in Buildroot. It comes with two patches:
1. Reorder common ST folder:
- Rename the common ST folder from stm32mp157 to stm32mp1xx.
- Update references and paths in related configuration files.
- Prepare to receive new stm32mp13 board.
2. Add new defconfig for STM32MP13:
- Introduce a new defconfig file (stm32mp13_dk).
- Boot following the TF-A/OP-TEE/U-Boot/Linux chain.
- Include generic "multi_v7" defconfig for Linux configuration.
Since this is a RFC, please feel free to discuss how those changes can be improved.
---
Raphael Gallais-Pou (2):
board/stmicroelectronics/common/stm32mp157: rename folder configs/stm32mp135f-dk: new defconfig
.checkpackageignore | 2 +-
DEVELOPERS | 2 +-
.../genimage.cfg.template | 0
.../arm-trusted-firmware/arm-trusted-firmware.hash | 0
.../patches/linux-headers/linux-headers.hash | 0
.../patches/linux/linux.hash | 0
.../patches/uboot/uboot.hash | 0
.../{stm32mp157 => stm32mp1xx}/post-image.sh | 2 +-
.../overlay/boot/extlinux/extlinux.conf | 4 ++
board/stmicroelectronics/stm32mp135f-dk/readme.txt | 38 ++++++++++++++
configs/avenger96_defconfig | 2 +-
configs/stm32mp135f_dk_defconfig | 59 ++++++++++++++++++++++
configs/stm32mp157a_dk1_defconfig | 4 +-
configs/stm32mp157c_dk2_defconfig | 4 +-
14 files changed, 109 insertions(+), 8 deletions(-)---
base-commit: 520ca083dfec4ad5ce7977bed478e2285ce93b07
change-id: 20240729-master-3a7c9cb9c96b
Best regards,
Signature · 6 lines
Raphael Gallais-Pou <[email protected]> _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
RFC PATCH 1/2 board/stmicroelectronics/common/stm32mp157: rename folder
STM32MP15x and STM32MP13 can use almost of the same configuration regarding bootloaders and the Linux kernel. To make profit of the commont folder, rename it to 'stm32mp1xx' and change dependencies accordingly.
---
.checkpackageignore | 2 +-
DEVELOPERS | 2 +-
.../common/{stm32mp157 => stm32mp1xx}/genimage.cfg.template | 0
.../patches/arm-trusted-firmware/arm-trusted-firmware.hash | 0
.../patches/linux-headers/linux-headers.hash | 0
.../common/{stm32mp157 => stm32mp1xx}/patches/linux/linux.hash | 0
.../common/{stm32mp157 => stm32mp1xx}/patches/uboot/uboot.hash | 0
.../common/{stm32mp157 => stm32mp1xx}/post-image.sh | 2 +-
configs/avenger96_defconfig | 2 +-
configs/stm32mp157a_dk1_defconfig | 4 ++--
configs/stm32mp157c_dk2_defconfig | 4 ++--
11 files changed, 8 insertions(+), 8 deletions(-).checkpackageignore +1 -1
@@ -83,7 +83,7 @@ board/solidrun/clearfog/post-build.sh Shellcheck board/solidrun/macchiatobin/post-build-mainline.sh Shellcheck board/solidrun/macchiatobin/post-build.sh Shellcheck board/stmicroelectronics/common/stm32f4xx/stm32-post-build.sh Shellcheck -board/stmicroelectronics/common/stm32mp157/post-image.sh Shellcheck +board/stmicroelectronics/common/stm32mp1xx/post-image.sh Shellcheck board/stmicroelectronics/stm32f429-disco/flash.sh Shellcheck board/stmicroelectronics/stm32f469-disco/flash_sd.sh Shellcheck board/stmicroelectronics/stm32f469-disco/flash_xip.sh Shellcheck
DEVELOPERS +1 -1
@@ -2234,7 +2234,7 @@ F: configs/qemu_riscv32_virt_defconfig F: configs/qemu_riscv64_virt_defconfig N: Marleen Vos <[email protected]> -F: board/stmicroelectronics/common/stm32mp157/ +F: board/stmicroelectronics/common/stm32mp1xx/ F: configs/avenger96_defconfig F: configs/stm32mp157a_dk1_defconfig F: configs/stm32mp157c_dk2_defconfig
board/stmicroelectronics/common/stm32mp1xx/genimage.cfg.template renamed from board/stmicroelectronics/common/stm32mp157/genimage.cfg.template +0 -0
board/stmicroelectronics/common/stm32mp1xx/patches/arm-trusted-firmware/arm-trusted-firmware.hash renamed from board/stmicroelectronics/common/stm32mp157/patches/arm-trusted-firmware/arm-trusted-firmware.hash +0 -0
board/stmicroelectronics/common/stm32mp1xx/patches/linux-headers/linux-headers.hash renamed from board/stmicroelectronics/common/stm32mp157/patches/linux-headers/linux-headers.hash +0 -0
board/stmicroelectronics/common/stm32mp1xx/patches/linux/linux.hash renamed from board/stmicroelectronics/common/stm32mp157/patches/linux/linux.hash +0 -0
board/stmicroelectronics/common/stm32mp1xx/patches/uboot/uboot.hash renamed from board/stmicroelectronics/common/stm32mp157/patches/uboot/uboot.hash +0 -0
board/stmicroelectronics/common/stm32mp1xx/post-image.sh renamed from board/stmicroelectronics/common/stm32mp157/post-image.sh +1 -1
@@ -22,7 +22,7 @@ main() GENIMAGE_CFG="$(mktemp --suffix genimage.cfg)" sed -e "s/%ATFBIN%/${ATFBIN}/" \ - board/stmicroelectronics/common/stm32mp157/genimage.cfg.template > ${GENIMAGE_CFG} + board/stmicroelectronics/common/stm32mp1xx/genimage.cfg.template > ${GENIMAGE_CFG} support/scripts/genimage.sh -c ${GENIMAGE_CFG}
configs/avenger96_defconfig +1 -1
@@ -7,7 +7,7 @@ BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_6_6=y # System configuration BR2_ROOTFS_OVERLAY="board/arrow/avenger96/overlay/" -BR2_ROOTFS_POST_IMAGE_SCRIPT="board/stmicroelectronics/common/stm32mp157/post-image.sh" +BR2_ROOTFS_POST_IMAGE_SCRIPT="board/stmicroelectronics/common/stm32mp1xx/post-image.sh" # Kernel BR2_LINUX_KERNEL=y
configs/stm32mp157a_dk1_defconfig +2 -2
@@ -6,10 +6,10 @@ BR2_cortex_a7=y BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_6_9=y # System configuration -BR2_GLOBAL_PATCH_DIR="board/stmicroelectronics/common/stm32mp157/patches" +BR2_GLOBAL_PATCH_DIR="board/stmicroelectronics/common/stm32mp1xx/patches" BR2_DOWNLOAD_FORCE_CHECK_HASHES=y BR2_ROOTFS_OVERLAY="board/stmicroelectronics/stm32mp157a-dk1/overlay/" -BR2_ROOTFS_POST_IMAGE_SCRIPT="board/stmicroelectronics/common/stm32mp157/post-image.sh" +BR2_ROOTFS_POST_IMAGE_SCRIPT="board/stmicroelectronics/common/stm32mp1xx/post-image.sh" # Kernel BR2_LINUX_KERNEL=y
configs/stm32mp157c_dk2_defconfig +2 -2
@@ -6,10 +6,10 @@ BR2_cortex_a7=y BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_6_9=y # System configuration -BR2_GLOBAL_PATCH_DIR="board/stmicroelectronics/common/stm32mp157/patches" +BR2_GLOBAL_PATCH_DIR="board/stmicroelectronics/common/stm32mp1xx/patches" BR2_DOWNLOAD_FORCE_CHECK_HASHES=y BR2_ROOTFS_OVERLAY="board/stmicroelectronics/stm32mp157c-dk2/overlay/" -BR2_ROOTFS_POST_IMAGE_SCRIPT="board/stmicroelectronics/common/stm32mp157/post-image.sh" +BR2_ROOTFS_POST_IMAGE_SCRIPT="board/stmicroelectronics/common/stm32mp1xx/post-image.sh" # Kernel BR2_LINUX_KERNEL=y
Signature · 6 lines
2.45.2 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
RFC PATCH 2/2 configs/stm32mp135f-dk: new defconfig
In reply to Raphael Gallais-PouAdd new defconfig for STMicroelectronics board STM32MP135F-DK.
STM32MP135F-DK features can be found here:
https://www.st.com/en/evaluation-tools/stm32mp135f-dk.html
--- .../overlay/boot/extlinux/extlinux.conf | 4 ++ board/stmicroelectronics/stm32mp135f-dk/readme.txt | 38 ++++++++++++++ configs/stm32mp135f_dk_defconfig | 59 ++++++++++++++++++++++ 3 files changed, 101 insertions(+)
board/stmicroelectronics/stm32mp135f-dk/overlay/boot/extlinux/extlinux.conf new file +4 -0
@@ -0,0 +1,4 @@ +label stm32mp135f-dk-buildroot + kernel /boot/zImage + devicetree /boot/stm32mp135f-dk.dtb + append root=/dev/mmcblk0p4 rootwait
board/stmicroelectronics/stm32mp135f-dk/readme.txt new file +38 -0
@@ -0,0 +1,38 @@ +STM32MP135F Discovery Kit + +Intro +===== + +This configuration supports the STM32MP135F Discovery Kit (DK) +platform: + + https://www.st.com/en/evaluation-tools/stm32mp135f-dk.html + +How to build +============ + + $ make stm32mp135f_dk_defconfig + $ make + +How to write the microSD card +============================= + +Once the build process is finished you will have an image called +"sdcard.img" in the output/images/ directory. + +Copy the bootable "sdcard.img" onto an microSD card with "dd": + + $ sudo dd if=output/images/sdcard.img of=/dev/sdX + +Boot the board +============== + + (1) Insert the microSD card in connector CN15 + + (2) Plug a micro-USB cable in connector CN11 and run your serial + communication program on /dev/ttyACM0. + + (3) Plug a USB-C cable in CN6 to power-up the board. + + (4) The system will start, with the console on UART, but also visible + on the screen.
configs/stm32mp135f_dk_defconfig new file +59 -0
59 lines not on this page · raw message
Signature · 6 lines
2.45.2 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot