Skip to contentSkip to conversation

configs/imxrt1050-evk: Switch to use extlinux.conf

PATCH Applied Jesse Taube 3 participants 3 messages Jul 8, 2025 – Jul 12, 2025 Arm i.MX and Layerscape

lore
Share & tools
lore
#0 lore raw

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
index 64fc8452f8..3a4c4fb792 100644
@@ -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
new file mode 100644
index 0000000000..1818d2702d
@@ -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
deleted file mode 100644
index dd45ca4c29..0000000000
@@ -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
index 8a515a9260..8bff623602 100644
@@ -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
Reviewed-by on v1 1/1
#1 lore raw

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.

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.conf delete mode 100644 board/freescale/imxrt1050evk/uboot.fragment

board/freescale/imxrt1050evk/genimage.cfg +0 -17
index 64fc8452f8..3a4c4fb792 100644
@@ -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
new file mode 100644
index 0000000000..1818d2702d
@@ -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
deleted file mode 100644
index dd45ca4c29..0000000000
@@ -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
index 8a515a9260..8bff623602 100644
@@ -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 -2
  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

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#2 lore raw
In reply to Jesse Taube

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.

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