board: Add support for Seeed STM32MP157C-Odyssey
PATCH v2 1/1 board: Add support for Seeed STM32MP157C-Odyssey
STM32MP157C-Odyssey reference:
https://wiki.seeedstudio.com/ODYSSEY-STM32MP157C/
--- board/seeed/stm32mp157c-odyssey/genimage.cfg | 22 +++ board/seeed/stm32mp157c-odyssey/linux.config | 182 ++++++++++++++++++ .../overlay/boot/extlinux/extlinux.conf | 4 + .../linux/5.10.1/0001-sdmmc1-broken-cd.patch | 13 ++ board/seeed/stm32mp157c-odyssey/post-image.sh | 12 ++ .../stm32mp157c-odyssey/uboot-fragment.config | 1 + configs/stm32mp157c_odyssey_defconfig | 31 +++ 7 files changed, 265 insertions(+) create mode 100644 board/seeed/stm32mp157c-odyssey/genimage.cfg create mode 100644 board/seeed/stm32mp157c-odyssey/linux.config create mode 100644 board/seeed/stm32mp157c-odyssey/overlay/boot/extlinux/extlinux.conf create mode 100644 board/seeed/stm32mp157c-odyssey/patches/linux/5.10.1/0001-sdmmc1-broken-cd.patch create mode 100755 board/seeed/stm32mp157c-odyssey/post-image.sh create mode 100644 board/seeed/stm32mp157c-odyssey/uboot-fragment.config create mode 100644 configs/stm32mp157c_odyssey_defconfig
board/seeed/stm32mp157c-odyssey/genimage.cfg new file +22 -0
@@ -0,0 +1,22 @@ +image sdcard.img { + hdimage { + gpt = "true" + } + + partition fsbl1 { + image = "u-boot-spl.stm32" + } + + partition fsbl2 { + image = "u-boot-spl.stm32" + } + + partition ssbl { + image = "u-boot.img" + } + + partition rootfs { + image = "rootfs.ext4" + bootable = "yes" + } +}
board/seeed/stm32mp157c-odyssey/linux.config new file +182 -0
182 lines not on this page · raw message
board/seeed/stm32mp157c-odyssey/overlay/boot/extlinux/extlinux.conf new file +4 -0
@@ -0,0 +1,4 @@ +label stm32mp157c-odyssey-buildroot + kernel /boot/zImage + devicetree /boot/stm32mp157c-odyssey.dtb + append root=/dev/mmcblk0p4 rootwait
board/seeed/stm32mp157c-odyssey/patches/linux/5.10.1/0001-sdmmc1-broken-cd.patch new file +13 -0
@@ -0,0 +1,13 @@ +Index: linux-5.10.1/arch/arm/boot/dts/stm32mp157c-odyssey.dts +=================================================================== +--- linux-5.10.1.orig/arch/arm/boot/dts/stm32mp157c-odyssey.dts ++++ linux-5.10.1/arch/arm/boot/dts/stm32mp157c-odyssey.dts +@@ -64,7 +64,7 @@ + pinctrl-0 = <&sdmmc1_b4_pins_a>; + pinctrl-1 = <&sdmmc1_b4_od_pins_a>; + pinctrl-2 = <&sdmmc1_b4_sleep_pins_a>; +- cd-gpios = <&gpiob 7 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; ++ broken-cd; + disable-wp; + st,neg-edge; + bus-width = <4>;
board/seeed/stm32mp157c-odyssey/post-image.sh new file +12 -0
@@ -0,0 +1,12 @@ +#!/usr/bin/env bash + +main() +{ + local GENIMAGE_CFG="board/seeed/stm32mp157-odyssey/genimage.cfg" + + support/scripts/genimage.sh -c ${GENIMAGE_CFG} + + exit $? +} + +main $@
board/seeed/stm32mp157c-odyssey/uboot-fragment.config new file +1 -0
@@ -0,0 +1 @@ +# CONFIG_STM32MP_WATCHDOG is not set
configs/stm32mp157c_odyssey_defconfig new file +31 -0
@@ -0,0 +1,31 @@ +BR2_arm=y +BR2_cortex_a7=y +BR2_CCACHE=y +BR2_GLOBAL_PATCH_DIR="$(TOPDIR)/board/seeed/stm32mp157c-odyssey/patches" +BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_10=y +BR2_ROOTFS_OVERLAY="board/seeed/stm32mp157c-odyssey/overlay/" +BR2_ROOTFS_POST_IMAGE_SCRIPT="board/seeed/stm32mp157c-odyssey/post-image.sh" +BR2_LINUX_KERNEL=y +BR2_LINUX_KERNEL_CUSTOM_VERSION=y +BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="5.10.1" +BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y +BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="board/seeed/stm32mp157c-odyssey/linux.config" +BR2_LINUX_KERNEL_DTS_SUPPORT=y +BR2_LINUX_KERNEL_INTREE_DTS_NAME="stm32mp157c-odyssey" +BR2_LINUX_KERNEL_INSTALL_TARGET=y +BR2_TARGET_ROOTFS_EXT2=y +BR2_TARGET_ROOTFS_EXT2_4=y +BR2_TARGET_ROOTFS_EXT2_SIZE="120M" +# BR2_TARGET_ROOTFS_TAR is not set +BR2_TARGET_UBOOT=y +BR2_TARGET_UBOOT_BOARD_DEFCONFIG="stm32mp15_basic" +BR2_TARGET_UBOOT_CONFIG_FRAGMENT_FILES="board/seeed/stm32mp157c-odyssey/uboot-fragment.config" +BR2_TARGET_UBOOT_NEEDS_DTC=y +# BR2_TARGET_UBOOT_FORMAT_BIN is not set +BR2_TARGET_UBOOT_FORMAT_IMG=y +BR2_TARGET_UBOOT_FORMAT_STM32=y +BR2_TARGET_UBOOT_SPL=y +BR2_TARGET_UBOOT_SPL_NAME="spl/u-boot-spl.stm32" +BR2_TARGET_UBOOT_CUSTOM_MAKEOPTS="DEVICE_TREE=stm32mp157c-odyssey" +BR2_PACKAGE_HOST_GENEXT2FS=y +BR2_PACKAGE_HOST_GENIMAGE=y
--
2.25.1
Hello Simon,
Thanks a lot for your contribution, and sorry for the huge delay in getting back to you. Your patch is really mostly good, there are only a few comments/questions, see below.
Quoted 4 lines · On Fri, 30 Apr 2021 10:56:53 +0000 Simon Doppler <[email protected]> wrote:
STM32MP157C-Odyssey reference:
https://wiki.seeedstudio.com/ODYSSEY-STM32MP157C/Signed-off-by Simon Doppler <[email protected]>
Quoted 16 lines
--- board/seeed/stm32mp157c-odyssey/genimage.cfg | 22 +++ board/seeed/stm32mp157c-odyssey/linux.config | 182 ++++++++++++++++++ .../overlay/boot/extlinux/extlinux.conf | 4 + .../linux/5.10.1/0001-sdmmc1-broken-cd.patch | 13 ++ board/seeed/stm32mp157c-odyssey/post-image.sh | 12 ++ .../stm32mp157c-odyssey/uboot-fragment.config | 1 + configs/stm32mp157c_odyssey_defconfig | 31 +++ 7 files changed, 265 insertions(+) create mode 100644 board/seeed/stm32mp157c-odyssey/genimage.cfg create mode 100644 board/seeed/stm32mp157c-odyssey/linux.config create mode 100644 board/seeed/stm32mp157c-odyssey/overlay/boot/extlinux/extlinux.conf create mode 100644 board/seeed/stm32mp157c-odyssey/patches/linux/5.10.1/0001-sdmmc1-broken-cd.patch create mode 100755 board/seeed/stm32mp157c-odyssey/post-image.sh create mode 100644 board/seeed/stm32mp157c-odyssey/uboot-fragment.config create mode 100644 configs/stm32mp157c_odyssey_defconfig
Could you change the commit title to:
configs/stm32mp157c_odyssey: new defconfig
and add an entry in the DEVELOPERS file with your name/email associated to the new defconfig and new folder in board/seeed/ ?
Quoted 8 lines
board/seeed/stm32mp157c-odyssey/genimage.cfg new file +2
-0@@ -0,0 +1,22 @@ +image sdcard.img { + hdimage {
board/seeed/stm32mp157c-odyssey/genimage.cfg line 12
Quoted 10 lines
board/seeed/stm32mp157c-odyssey/genimage.cfg new file +10
-0+ gpt = "true" + } + + partition fsbl1 { + image = "u-boot-spl.stm32" + } + + partition fsbl2 { + image = "u-boot-spl.stm32" + }
Are you sure you want to stick to the U-Boot SPL booting process, as opposed to the TF-A based booting process? ST now recommends using the TF-A booting process.
board/seeed/stm32mp157c-odyssey/patches/linux/5.10.1/0001-sdmmc1-broken-cd.patch
Quoted 6 lines
board/seeed/stm32mp157c-odyssey/patches/linux/5.10.1/0001-sdmmc1-broken-cd.patch new file +0
-0@@ -0,0 +1,13 @@
We need patches to have a proper commit log and Signed-off-by line.
board/seeed/stm32mp157c-odyssey/patches/linux/5.10.1/0001-sdmmc1-broken-cd.patch line 7
Quoted 9 lines
board/seeed/stm32mp157c-odyssey/patches/linux/5.10.1/0001-sdmmc1-broken-cd.patch new file +8
-0+++ b/board/seeed/stm32mp157c-odyssey/post-image.sh@@ -0,0 +1,12 @@ +#!/usr/bin/env bash + +main() +{ + local GENIMAGE_CFG="board/seeed/stm32mp157-odyssey/genimage.cfg" + + support/scripts/genimage.sh -c ${GENIMAGE_CFG}
This should not be needed, you can do it directly in the defconfig:
BR2_ROOTFS_POST_IMAGE_SCRIPT="support/scripts/genimage.sh" BR2_ROOTFS_POST_SCRIPT_ARGS="-c board/terasic/de10nano_cyclone5/genimage.cfg"
board/seeed/stm32mp157c-odyssey/uboot-fragment.config line 1
Quoted 7 lines
board/seeed/stm32mp157c-odyssey/uboot-fragment.config new file +1
-0@@ -0,0 +1 @@ +# CONFIG_STM32MP_WATCHDOG is not set
This issue has apparently been fixed since Linux 5.6, see commit fe2e655666f3b3bc5ebc38036585fe9e0bbb7e30 in Buildroot (applicable to the STM32MP1 DK2 board).
configs/stm32mp157c_odyssey_defconfig line 3
Quoted 9 lines
configs/stm32mp157c_odyssey_defconfig new file +3
-0@@ -0,0 +1,31 @@ +BR2_arm=y +BR2_cortex_a7=y +BR2_CCACHE=y
ccache shouldn't be enabled in a defconfig.
configs/stm32mp157c_odyssey_defconfig line 4
Quoted 1 line
configs/stm32mp157c_odyssey_defconfig new file +1
-0+BR2_GLOBAL_PATCH_DIR="$(TOPDIR)/board/seeed/stm32mp157c-odyssey/patches"
$(TOPDIR)/ not needed.
Quoted 16 lines
configs/stm32mp157c_odyssey_defconfig new file +16
-0+BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_10=y +BR2_ROOTFS_OVERLAY="board/seeed/stm32mp157c-odyssey/overlay/" +BR2_ROOTFS_POST_IMAGE_SCRIPT="board/seeed/stm32mp157c-odyssey/post-image.sh" +BR2_LINUX_KERNEL=y +BR2_LINUX_KERNEL_CUSTOM_VERSION=y +BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="5.10.1" +BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y +BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="board/seeed/stm32mp157c-odyssey/linux.config" +BR2_LINUX_KERNEL_DTS_SUPPORT=y +BR2_LINUX_KERNEL_INTREE_DTS_NAME="stm32mp157c-odyssey" +BR2_LINUX_KERNEL_INSTALL_TARGET=y +BR2_TARGET_ROOTFS_EXT2=y +BR2_TARGET_ROOTFS_EXT2_4=y +BR2_TARGET_ROOTFS_EXT2_SIZE="120M" +# BR2_TARGET_ROOTFS_TAR is not set +BR2_TARGET_UBOOT=y
configs/stm32mp157c_odyssey_defconfig line 30
Quoted 10 lines
configs/stm32mp157c_odyssey_defconfig new file +10
-0+BR2_TARGET_UBOOT_BOARD_DEFCONFIG="stm32mp15_basic" +BR2_TARGET_UBOOT_CONFIG_FRAGMENT_FILES="board/seeed/stm32mp157c-odyssey/uboot-fragment.config" +BR2_TARGET_UBOOT_NEEDS_DTC=y +# BR2_TARGET_UBOOT_FORMAT_BIN is not set +BR2_TARGET_UBOOT_FORMAT_IMG=y +BR2_TARGET_UBOOT_FORMAT_STM32=y +BR2_TARGET_UBOOT_SPL=y +BR2_TARGET_UBOOT_SPL_NAME="spl/u-boot-spl.stm32" +BR2_TARGET_UBOOT_CUSTOM_MAKEOPTS="DEVICE_TREE=stm32mp157c-odyssey" +BR2_PACKAGE_HOST_GENEXT2FS=y
This should not be needed. We don't use genext2fs anymore in fact to generate ext2/3/4 images.
Could you take into account the few comments above, and send an updated version?
Thanks a lot!
Thomas
Signature · 7 lines
Thomas Petazzoni, co-owner and CEO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com _______________________________________________ buildroot mailing list [email protected] http://lists.busybox.net/mailman/listinfo/buildroot
v2 cover configs/stm32mp157c_odyssey: new defconfig
Hi all,
This is version 2 of the patch to add support for the Seeed STM32MP157C Odyssey board.
It includes a minimal system booting from SDMMC1.
v2 takes into account all the suggestions and requested changes by Thomas Petazzoni:
* adding myself to the DEVELOPERS file
* switching to the TF-A SPL boot
* fix patch formatting
* use the provided genimage script
* remove the uboot fragment, the configuration issue was fixed
* remove what should not be enabled in the config
Regards
Simon Doppler
_______________________________________________
buildroot mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/buildroot
PATCH v2 1/1 configs/stm32mp157c_odyssey: new defconfig
From: Simon Doppler <[email protected]>
STM32MP157C-Odyssey reference:
https://wiki.seeedstudio.com/ODYSSEY-STM32MP157C/
--- DEVELOPERS | 4 + board/seeed/stm32mp157c-odyssey/genimage.cfg | 22 +++ board/seeed/stm32mp157c-odyssey/linux.config | 182 ++++++++++++++++++ .../overlay/boot/extlinux/extlinux.conf | 4 + .../linux/5.10.1/0001-sdmmc1-broken-cd.patch | 15 ++ configs/stm32mp157c_odyssey_defconfig | 31 +++ 6 files changed, 258 insertions(+) create mode 100644 board/seeed/stm32mp157c-odyssey/genimage.cfg create mode 100644 board/seeed/stm32mp157c-odyssey/linux.config create mode 100644 board/seeed/stm32mp157c-odyssey/overlay/boot/extlinux/extlinux.conf create mode 100644 board/seeed/stm32mp157c-odyssey/patches/linux/5.10.1/0001-sdmmc1-broken-cd.patch create mode 100644 configs/stm32mp157c_odyssey_defconfig
DEVELOPERS +4 -0
@@ -2498,6 +2498,10 @@ F: package/xscreensaver/ F: package/zmqpp/ F: package/zyre/ +N: Simon Doppler <[email protected]> +F: board/seeed/ +F: configs/stm32mp157c_odyssey_defconfig + N: Spenser Gilliland <[email protected]> F: arch/Config.in.microblaze F: package/a10disp/
board/seeed/stm32mp157c-odyssey/genimage.cfg new file +22 -0
@@ -0,0 +1,22 @@ +image sdcard.img { + hdimage { + gpt = "true" + } + + partition fsbl1 { + image = "tf-a-stm32mp157c-odyssey.stm32" + } + + partition fsbl2 { + image = "tf-a-stm32mp157c-odyssey.stm32" + } + + partition ssbl { + image = "u-boot.stm32" + } + + partition rootfs { + image = "rootfs.ext4" + bootable = "yes" + } +}
board/seeed/stm32mp157c-odyssey/linux.config new file +182 -0
182 lines not on this page · raw message
board/seeed/stm32mp157c-odyssey/overlay/boot/extlinux/extlinux.conf new file +4 -0
@@ -0,0 +1,4 @@ +label stm32mp157c-odyssey-buildroot + kernel /boot/zImage + devicetree /boot/stm32mp157c-odyssey.dtb + append root=/dev/mmcblk0p4 rootwait
board/seeed/stm32mp157c-odyssey/patches/linux/5.10.1/0001-sdmmc1-broken-cd.patch new file +15 -0
@@ -0,0 +1,15 @@ +linux: stm32mp157c-odyssey.dts: remove the SDMMC1 CD as per schematic + +Signed-off-by: Simon Doppler <[email protected]> + +--- linux-5.10.1.orig/arch/arm/boot/dts/stm32mp157c-odyssey.dts ++++ linux-5.10.1/arch/arm/boot/dts/stm32mp157c-odyssey.dts +@@ -64,7 +64,7 @@ + pinctrl-0 = <&sdmmc1_b4_pins_a>; + pinctrl-1 = <&sdmmc1_b4_od_pins_a>; + pinctrl-2 = <&sdmmc1_b4_sleep_pins_a>; +- cd-gpios = <&gpiob 7 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; ++ broken-cd; + disable-wp; + st,neg-edge; + bus-width = <4>;
configs/stm32mp157c_odyssey_defconfig new file +31 -0
@@ -0,0 +1,31 @@ +BR2_arm=y +BR2_cortex_a7=y +BR2_GLOBAL_PATCH_DIR="board/seeed/stm32mp157c-odyssey/patches" +BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_10=y +BR2_ROOTFS_OVERLAY="board/seeed/stm32mp157c-odyssey/overlay/" +BR2_ROOTFS_POST_IMAGE_SCRIPT="support/scripts/genimage.sh" +BR2_ROOTFS_POST_SCRIPT_ARGS="-c board/seeed/stm32mp157c-odyssey/genimage.cfg" +BR2_LINUX_KERNEL=y +BR2_LINUX_KERNEL_CUSTOM_VERSION=y +BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="5.10.1" +BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y +BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="board/seeed/stm32mp157c-odyssey/linux.config" +BR2_LINUX_KERNEL_DTS_SUPPORT=y +BR2_LINUX_KERNEL_INTREE_DTS_NAME="stm32mp157c-odyssey" +BR2_LINUX_KERNEL_INSTALL_TARGET=y +BR2_TARGET_ROOTFS_EXT2=y +BR2_TARGET_ROOTFS_EXT2_4=y +BR2_TARGET_ROOTFS_EXT2_SIZE="120M" +# BR2_TARGET_ROOTFS_TAR is not set +BR2_TARGET_ARM_TRUSTED_FIRMWARE=y +BR2_TARGET_ARM_TRUSTED_FIRMWARE_PLATFORM="stm32mp1" +BR2_TARGET_ARM_TRUSTED_FIRMWARE_ADDITIONAL_VARIABLES="STM32MP_SDMMC=1 AARCH32_SP=sp_min DTB_FILE_NAME=stm32mp157c-odyssey.dtb" +BR2_TARGET_ARM_TRUSTED_FIRMWARE_IMAGES="*.stm32" +BR2_TARGET_ARM_TRUSTED_FIRMWARE_NEEDS_DTC=y +BR2_TARGET_UBOOT=y +BR2_TARGET_UBOOT_BOARD_DEFCONFIG="stm32mp15_trusted" +BR2_TARGET_UBOOT_NEEDS_DTC=y +# BR2_TARGET_UBOOT_FORMAT_BIN is not set +BR2_TARGET_UBOOT_FORMAT_STM32=y +BR2_TARGET_UBOOT_CUSTOM_MAKEOPTS="DEVICE_TREE=stm32mp157c-odyssey" +BR2_PACKAGE_HOST_GENIMAGE=y
--
2.30.2
_______________________________________________
buildroot mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH v2 1/1] configs/stm32mp157c_odyssey: new defconfig
Simon, All,
On 2021-07-30 07:56 +0000, [email protected] spake thusly:
Quoted 7 lines
From: Simon Doppler <[email protected]>
STM32MP157C-Odyssey reference:
https://wiki.seeedstudio.com/ODYSSEY-STM32MP157C/Signed-off-by Simon Doppler <[email protected]>---
[--SNIP--]
board/seeed/stm32mp157c-odyssey/overlay/boot/extlinux/extlinux.conf line 4
Quoted 10 lines
board/seeed/stm32mp157c-odyssey/overlay/boot/extlinux/extlinux.conf new file +4
-0@@ -0,0 +1,4 @@ +label stm32mp157c-odyssey-buildroot + kernel /boot/zImage + devicetree /boot/stm32mp157c-odyssey.dtb + append root=/dev/mmcblk0p4 rootwait
What is this extlinux.conf file for? As far as I can see, this defconfig does not use syslinux, which is anyway only available on x86 and x86_64.
Quoted 8 lines
board/seeed/stm32mp157c-odyssey/patches/linux/5.10.1/0001-sdmmc1-broken-cd.patch new file +2
-0@@ -0,0 +1,15 @@ +linux: stm32mp157c-odyssey.dts: remove the SDMMC1 CD as per schematic +
board/seeed/stm32mp157c-odyssey/patches/linux/5.10.1/0001-sdmmc1-broken-cd.patch line 12
Quoted 10 lines
board/seeed/stm32mp157c-odyssey/patches/linux/5.10.1/0001-sdmmc1-broken-cd.patch new file +10
-0+Signed-off-by: Simon Doppler <[email protected]> + +--- linux-5.10.1.orig/arch/arm/boot/dts/stm32mp157c-odyssey.dts ++++ linux-5.10.1/arch/arm/boot/dts/stm32mp157c-odyssey.dts +@@ -64,7 +64,7 @@ + pinctrl-0 = <&sdmmc1_b4_pins_a>; + pinctrl-1 = <&sdmmc1_b4_od_pins_a>; + pinctrl-2 = <&sdmmc1_b4_sleep_pins_a>; +- cd-gpios = <&gpiob 7 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; ++ broken-cd;
Would it not be better to backport upstream commit 0171b07373cc (ARM:
dts: stm32: fix stm32mp157c-odyssey card detect pin):
- cd-gpios = <&gpiob 7 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
+ cd-gpios = <&gpioi 3 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;Except for those two minor nits, this v2 looks OK.
Regards,
Yann E. MORIN.
Quoted 48 lines
board/seeed/stm32mp157c-odyssey/patches/linux/5.10.1/0001-sdmmc1-broken-cd.patch new file +3
-0+ disable-wp; + st,neg-edge; + bus-width = <4>;configs/stm32mp157c_odyssey_defconfig new file +31
-1@@ -0,0 +1,31 @@ +BR2_arm=y +BR2_cortex_a7=y +BR2_GLOBAL_PATCH_DIR="board/seeed/stm32mp157c-odyssey/patches" +BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_10=y +BR2_ROOTFS_OVERLAY="board/seeed/stm32mp157c-odyssey/overlay/" +BR2_ROOTFS_POST_IMAGE_SCRIPT="support/scripts/genimage.sh" +BR2_ROOTFS_POST_SCRIPT_ARGS="-c board/seeed/stm32mp157c-odyssey/genimage.cfg" +BR2_LINUX_KERNEL=y +BR2_LINUX_KERNEL_CUSTOM_VERSION=y +BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="5.10.1" +BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y +BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="board/seeed/stm32mp157c-odyssey/linux.config" +BR2_LINUX_KERNEL_DTS_SUPPORT=y +BR2_LINUX_KERNEL_INTREE_DTS_NAME="stm32mp157c-odyssey" +BR2_LINUX_KERNEL_INSTALL_TARGET=y +BR2_TARGET_ROOTFS_EXT2=y +BR2_TARGET_ROOTFS_EXT2_4=y +BR2_TARGET_ROOTFS_EXT2_SIZE="120M" +# BR2_TARGET_ROOTFS_TAR is not set +BR2_TARGET_ARM_TRUSTED_FIRMWARE=y +BR2_TARGET_ARM_TRUSTED_FIRMWARE_PLATFORM="stm32mp1" +BR2_TARGET_ARM_TRUSTED_FIRMWARE_ADDITIONAL_VARIABLES="STM32MP_SDMMC=1 AARCH32_SP=sp_min DTB_FILE_NAME=stm32mp157c-odyssey.dtb" +BR2_TARGET_ARM_TRUSTED_FIRMWARE_IMAGES="*.stm32" +BR2_TARGET_ARM_TRUSTED_FIRMWARE_NEEDS_DTC=y +BR2_TARGET_UBOOT=y +BR2_TARGET_UBOOT_BOARD_DEFCONFIG="stm32mp15_trusted" +BR2_TARGET_UBOOT_NEEDS_DTC=y +# BR2_TARGET_UBOOT_FORMAT_BIN is not set +BR2_TARGET_UBOOT_FORMAT_STM32=y +BR2_TARGET_UBOOT_CUSTOM_MAKEOPTS="DEVICE_TREE=stm32mp157c-odyssey" +BR2_PACKAGE_HOST_GENIMAGE=y --2.30.2
_______________________________________________
buildroot mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/buildroot
Signature · 10 lines
.-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------' _______________________________________________ buildroot mailing list [email protected] http://lists.busybox.net/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH v2 1/1] configs/stm32mp157c_odyssey: new defconfig
Simon, All,
On 2021-08-01 22:02 +0200, Yann E. MORIN spake thusly:
Quoted 4 lines
On 2021-07-30 07:56 +0000, [email protected] spake thusly:
Quoted 3 lines
From: Simon Doppler <[email protected]>
STM32MP157C-Odyssey reference:
https://wiki.seeedstudio.com/ODYSSEY-STM32MP157C/
[--SNIP--]
Quoted 8 lines
board/seeed/stm32mp157c-odyssey/overlay/boot/extlinux/extlinux.conf line 4
Quoted 6 lines
+++
b/board/seeed/stm32mp157c-odyssey/overlay/boot/extlinux/extlinux.confboard/seeed/stm32mp157c-odyssey/overlay/boot/extlinux/extlinux.conf new file +4
-0@@ -0,0 +1,4 @@ +label stm32mp157c-odyssey-buildroot + kernel /boot/zImage + devicetree /boot/stm32mp157c-odyssey.dtb + append root=/dev/mmcblk0p4 rootwaitWhat is this extlinux.conf file for? As far as I can see, this defconfig does not use syslinux, which is anyway only available on x86 and
x86_64.
Breaking News! U-Boot can read the extlinux.conf format! More at 10!
I was not aware of that, so disregard this comment of mione, sorry.
Regards,
Yann E. MORIN.
Quoted 90 lines
Quoted 8 lines
board/seeed/stm32mp157c-odyssey/patches/linux/5.10.1/0001-sdmmc1-broken-cd.patch new file +2
-0@@ -0,0 +1,15 @@ +linux: stm32mp157c-odyssey.dts: remove the SDMMC1 CD as per schematic +board/seeed/stm32mp157c-odyssey/patches/linux/5.10.1/0001-sdmmc1-broken-cd.patch line 12
Quoted 10 lines
board/seeed/stm32mp157c-odyssey/patches/linux/5.10.1/0001-sdmmc1-broken-cd.patch new file +10
-0+Signed-off-by: Simon Doppler <[email protected]> + +--- linux-5.10.1.orig/arch/arm/boot/dts/stm32mp157c-odyssey.dts ++++ linux-5.10.1/arch/arm/boot/dts/stm32mp157c-odyssey.dts +@@ -64,7 +64,7 @@ + pinctrl-0 = <&sdmmc1_b4_pins_a>; + pinctrl-1 = <&sdmmc1_b4_od_pins_a>; + pinctrl-2 = <&sdmmc1_b4_sleep_pins_a>; +- cd-gpios = <&gpiob 7 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; ++ broken-cd;Would it not be better to backport upstream commit
0171b07373cc(ARM:
dts: stm32: fix stm32mp157c-odyssey card detect pin):- cd-gpios = <&gpiob 7 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; + cd-gpios = <&gpioi 3 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;Except for those two minor nits, this v2 looks OK.
Regards,
Yann E. MORIN.Quoted 48 lines
board/seeed/stm32mp157c-odyssey/patches/linux/5.10.1/0001-sdmmc1-broken-cd.patch new file +3
-0+ disable-wp; + st,neg-edge; + bus-width = <4>;configs/stm32mp157c_odyssey_defconfig new file +31
-1@@ -0,0 +1,31 @@ +BR2_arm=y +BR2_cortex_a7=y +BR2_GLOBAL_PATCH_DIR="board/seeed/stm32mp157c-odyssey/patches" +BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_10=y +BR2_ROOTFS_OVERLAY="board/seeed/stm32mp157c-odyssey/overlay/" +BR2_ROOTFS_POST_IMAGE_SCRIPT="support/scripts/genimage.sh" +BR2_ROOTFS_POST_SCRIPT_ARGS="-c board/seeed/stm32mp157c-odyssey/genimage.cfg" +BR2_LINUX_KERNEL=y +BR2_LINUX_KERNEL_CUSTOM_VERSION=y +BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="5.10.1" +BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y +BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="board/seeed/stm32mp157c-odyssey/linux.config" +BR2_LINUX_KERNEL_DTS_SUPPORT=y +BR2_LINUX_KERNEL_INTREE_DTS_NAME="stm32mp157c-odyssey" +BR2_LINUX_KERNEL_INSTALL_TARGET=y +BR2_TARGET_ROOTFS_EXT2=y +BR2_TARGET_ROOTFS_EXT2_4=y +BR2_TARGET_ROOTFS_EXT2_SIZE="120M" +# BR2_TARGET_ROOTFS_TAR is not set +BR2_TARGET_ARM_TRUSTED_FIRMWARE=y +BR2_TARGET_ARM_TRUSTED_FIRMWARE_PLATFORM="stm32mp1" +BR2_TARGET_ARM_TRUSTED_FIRMWARE_ADDITIONAL_VARIABLES="STM32MP_SDMMC=1 AARCH32_SP=sp_min DTB_FILE_NAME=stm32mp157c-odyssey.dtb" +BR2_TARGET_ARM_TRUSTED_FIRMWARE_IMAGES="*.stm32" +BR2_TARGET_ARM_TRUSTED_FIRMWARE_NEEDS_DTC=y +BR2_TARGET_UBOOT=y +BR2_TARGET_UBOOT_BOARD_DEFCONFIG="stm32mp15_trusted" +BR2_TARGET_UBOOT_NEEDS_DTC=y +# BR2_TARGET_UBOOT_FORMAT_BIN is not set +BR2_TARGET_UBOOT_FORMAT_STM32=y +BR2_TARGET_UBOOT_CUSTOM_MAKEOPTS="DEVICE_TREE=stm32mp157c-odyssey" +BR2_PACKAGE_HOST_GENIMAGE=y --2.30.2
_______________________________________________
buildroot mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/buildrootSignature · 10 lines
.-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------' _______________________________________________ buildroot mailing list [email protected] http://lists.busybox.net/mailman/listinfo/buildroot
Signature · 10 lines
.-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------' _______________________________________________ buildroot mailing list [email protected] http://lists.busybox.net/mailman/listinfo/buildroot