configs/imxrt1050-evk: Switch to use extlinux.conf
PATCH 1/1 configs/imxrt1050-evk: Switch to use extlinux.conf
Switch to extlinux instead of built in U-Boot script. Drop custom U-Boot fragment and genimage config.
--- board/freescale/imxrt1050evk/genimage.cfg | 17 ----------------- .../rootfs_overlay/boot/extlinux/extlinux.conf | 4 ++++ board/freescale/imxrt1050evk/uboot.fragment | 2 -- configs/imxrt1050-evk_defconfig | 5 +++-- 4 files changed, 7 insertions(+), 21 deletions(-) create mode 100644 board/freescale/imxrt1050evk/rootfs_overlay/boot/extlinux/extlinux.conf delete mode 100644 board/freescale/imxrt1050evk/uboot.fragment
board/freescale/imxrt1050evk/genimage.cfg +0 -17
@@ -1,14 +1,3 @@ -image boot.vfat { - vfat { - files = { - "zImage", - "imxrt1050-evk.dtb", - } - } - - size = 8M -} - image sdcard.img { hdimage { }
@@ -27,12 +16,6 @@ image sdcard.img { size = 512K } - partition boot { - partition-type = 0xc - bootable = "true" - image = "boot.vfat" - } - partition rootfs { partition-type = 0x83 image = "rootfs.ext4"
board/freescale/imxrt1050evk/rootfs_overlay/boot/extlinux/extlinux.conf new file +4 -0
@@ -0,0 +1,4 @@ +label buildroot + kernel /boot/zImage + devicetree /boot/imxrt1050-evk.dtb + append console=ttyLP0 root=/dev/mmcblk0p1 rootwait rw
board/freescale/imxrt1050evk/uboot.fragment deleted +0 -2
@@ -1,2 +0,0 @@ -CONFIG_USE_BOOTCOMMAND=y -CONFIG_BOOTCOMMAND="setenv bootargs console=ttyLP0 root=/dev/mmcblk0p2 rw earlycon rootwait;load mmc 0:1 0x80800000 imxrt1050-evk.dtb;load mmc 0:1 0x80000000 zImage;bootz 0x80000000 - 0x80800000"
configs/imxrt1050-evk_defconfig +3 -2
@@ -1,6 +1,7 @@ BR2_arm=y BR2_cortex_m7=y BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_6_7=y +BR2_ROOTFS_OVERLAY="board/freescale/imxrt1050evk/rootfs_overlay" BR2_ROOTFS_POST_IMAGE_SCRIPT="support/scripts/genimage.sh" BR2_ROOTFS_POST_SCRIPT_ARGS="-c board/freescale/imxrt1050evk/genimage.cfg" BR2_LINUX_KERNEL=y
@@ -9,15 +10,15 @@ BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="6.7" BR2_LINUX_KERNEL_DEFCONFIG="imxrt" BR2_LINUX_KERNEL_DTS_SUPPORT=y BR2_LINUX_KERNEL_INTREE_DTS_NAME="nxp/imx/imxrt1050-evk" +BR2_LINUX_KERNEL_INSTALL_TARGET=y BR2_TARGET_ROOTFS_EXT2=y BR2_TARGET_ROOTFS_EXT2_4=y BR2_TARGET_ROOTFS_EXT2_SIZE="16M" BR2_TARGET_UBOOT=y BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y BR2_TARGET_UBOOT_CUSTOM_VERSION=y -BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2024.01" +BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2025.07" BR2_TARGET_UBOOT_BOARD_DEFCONFIG="imxrt1050-evk" -BR2_TARGET_UBOOT_CONFIG_FRAGMENT_FILES="board/freescale/imxrt1050evk/uboot.fragment" BR2_TARGET_UBOOT_NEEDS_OPENSSL=y BR2_TARGET_UBOOT_FORMAT_IMG=y BR2_TARGET_UBOOT_SPL=y
Signature · 6 lines
2.49.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Hi Jesse,
Quoted 4 lines · Jesse Taube
Switch to extlinux instead of built in U-Boot script. Drop custom U-Boot fragment and genimage config.
Signed-off-by Jesse Taube <[email protected]>
Kind regards
Signature · 4 lines
Giulio Benetti CEO&CTO@Benetti Engineering sas https://www.linkedin.com/company/benetti-engineering-sas/ https://www.linkedin.com/in/giulio-benetti-79975951/
Quoted 79 lines
--- board/freescale/imxrt1050evk/genimage.cfg | 17 ----------------- .../rootfs_overlay/boot/extlinux/extlinux.conf | 4 ++++ board/freescale/imxrt1050evk/uboot.fragment | 2 -- configs/imxrt1050-evk_defconfig | 5 +++-- 4 files changed, 7 insertions(+), 21 deletions(-)create mode 100644
board/freescale/imxrt1050evk/rootfs_overlay/boot/extlinux/extlinux.confdelete mode 100644 board/freescale/imxrt1050evk/uboot.fragmentboard/freescale/imxrt1050evk/genimage.cfg +0
-17@@ -1,14 +1,3 @@ -image boot.vfat { - vfat { - files = { - "zImage", - "imxrt1050-evk.dtb", - } - } - - size = 8M -} - image sdcard.img { hdimage { }@@ -27,12 +16,6 @@ image sdcard.img { size = 512K } - partition boot { - partition-type = 0xc - bootable = "true" - image = "boot.vfat" - } - partition rootfs { partition-type = 0x83 image = "rootfs.ext4"board/freescale/imxrt1050evk/rootfs_overlay/boot/extlinux/extlinux.conf new file +4
-0@@ -0,0 +1,4 @@ +label buildroot + kernel /boot/zImage + devicetree /boot/imxrt1050-evk.dtb + append console=ttyLP0 root=/dev/mmcblk0p1 rootwait rwboard/freescale/imxrt1050evk/uboot.fragment deleted +0
-2@@ -1,2 +0,0 @@ -CONFIG_USE_BOOTCOMMAND=y -CONFIG_BOOTCOMMAND="setenv bootargs console=ttyLP0 root=/dev/mmcblk0p2 rw earlycon rootwait;load mmc 0:1 0x80800000 imxrt1050-evk.dtb;load mmc 0:1 0x80000000 zImage;bootz 0x80000000 - 0x80800000"configs/imxrt1050-evk_defconfig +2
-0@@ -1,6 +1,7 @@ BR2_arm=y BR2_cortex_m7=y BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_6_7=y +BR2_ROOTFS_OVERLAY="board/freescale/imxrt1050evk/rootfs_overlay" BR2_ROOTFS_POST_IMAGE_SCRIPT="support/scripts/genimage.sh" BR2_ROOTFS_POST_SCRIPT_ARGS="-c board/freescale/imxrt1050evk/genimage.cfg" BR2_LINUX_KERNEL=y@@ -9,15 +10,15 @@ BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="6.7" BR2_LINUX_KERNEL_DEFCONFIG="imxrt" BR2_LINUX_KERNEL_DTS_SUPPORT=y BR2_LINUX_KERNEL_INTREE_DTS_NAME="nxp/imx/imxrt1050-evk" +BR2_LINUX_KERNEL_INSTALL_TARGET=y BR2_TARGET_ROOTFS_EXT2=y BR2_TARGET_ROOTFS_EXT2_4=y BR2_TARGET_ROOTFS_EXT2_SIZE="16M"
configs/imxrt1050-evk_defconfig BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="6.7" · line 24
Quoted 10 lines
configs/imxrt1050-evk_defconfig +1
-2BR2_TARGET_UBOOT=y BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y BR2_TARGET_UBOOT_CUSTOM_VERSION=y -BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2024.01" +BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2025.07" BR2_TARGET_UBOOT_BOARD_DEFCONFIG="imxrt1050-evk" -BR2_TARGET_UBOOT_CONFIG_FRAGMENT_FILES="board/freescale/imxrt1050evk/uboot.fragment" BR2_TARGET_UBOOT_NEEDS_OPENSSL=y BR2_TARGET_UBOOT_FORMAT_IMG=y BR2_TARGET_UBOOT_SPL=y
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Julien Olivain via buildroot
AppliedHi Jesse,
Quoted 4 lines · Jesse Taube
Switch to extlinux instead of built in U-Boot script. Drop custom U-Boot fragment and genimage config.
Signed-off-by Jesse Taube <[email protected]>
Applied to master, thanks.
I mentioned the uboot bump in the commit title.
I also needed to add:
BR2_TARGET_UBOOT_NEEDS_PYLIBFDT=y
without it, building the defconfig in the docker reference image was failing with error:
error: command 'swig' failed: No such file or directory
See:
https://gitlab.com/buildroot.org/buildroot/-/commit/051d145137ae86f040742478ece1529c65123a1f
As a suggestion of followup updates for this defconfig, could you consider:
- enabling BR2_DOWNLOAD_FORCE_CHECK_HASHES=y
See for example commit:
https://gitlab.com/buildroot.org/buildroot/-/commit/683681261b19a0ea541e55ae7d5497ccf05e40a9
- enabling bootlin external stable toolchain
See for example commit:
https://gitlab.com/buildroot.org/buildroot/-/commit/dd3ef914867dca5e429bb25ee14445fb0c87baa5
- updating to a newer kernel LTS version, e.g 6.12.y series,
Best regards,
Julien.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot