configs/polyhex_debix_model_a_defconfig: new defconfig
PATCH v2 1/1 configs/polyhex_debix_model_a_defconfig: new defconfig
This configuration builds an image for the Polyhex Debix Model A SBC
DEBIX Model A is an industrial grade single board computer powered by NXP i.MX 8M Plus applications processor
https://www.debix.io/hardware/model-a.html
- Linux Kernel: Upstream version 6.12.13
- U-boot: Upstream version 2024.10
- ATF: Upstream version 2.12
---
Changes v1 --> v2:
- Fixed post-build.sh script warnings
- Enabled BR2_DOWNLOAD_FORCE_CHECK_HASHES
- Added Linux and U-Boot hashes
- Renamed post-build.sh processed files as *.in
--- board/polyhex/debix-model-a/extlinux.conf.in | 4 + board/polyhex/debix-model-a/genimage.cfg.in | 17 +++ .../debix-model-a/patches/linux/linux.hash | 2 + .../debix-model-a/patches/uboot/uboot.hash | 2 + board/polyhex/debix-model-a/post-build.sh | 7 ++ board/polyhex/debix-model-a/readme.txt | 112 ++++++++++++++++++ configs/polyhex_debix_model_a_defconfig | 46 +++++++ 7 files changed, 190 insertions(+) create mode 100644 board/polyhex/debix-model-a/extlinux.conf.in create mode 100644 board/polyhex/debix-model-a/genimage.cfg.in create mode 100644 board/polyhex/debix-model-a/patches/linux/linux.hash create mode 100644 board/polyhex/debix-model-a/patches/uboot/uboot.hash create mode 100755 board/polyhex/debix-model-a/post-build.sh create mode 100644 board/polyhex/debix-model-a/readme.txt create mode 100644 configs/polyhex_debix_model_a_defconfig
board/polyhex/debix-model-a/extlinux.conf.in new file +4 -0
@@ -0,0 +1,4 @@ +label buildroot + kernel /boot/Image + devicetree /boot/freescale/imx8mp-debix-model-a.dtb + append root=PARTUUID=%PARTUUID% rootwait rw
board/polyhex/debix-model-a/genimage.cfg.in new file +17 -0
@@ -0,0 +1,17 @@ +image sdcard.img { + hdimage { + partition-table-type = "gpt" + } + + partition imx-boot { + in-partition-table = "no" + image = "flash.bin" + offset = 32K + } + + partition rootfs { + offset = 8M + image = "rootfs.ext4" + partition-uuid = %PARTUUID% + } +}
board/polyhex/debix-model-a/patches/linux/linux.hash new file +2 -0
@@ -0,0 +1,2 @@ +# Locally calculated +sha256 f3ebdeea9e555b4cface44e29670056f4024541e6bd222fbcf776c818974fbba linux-6.12.13.tar.xz
board/polyhex/debix-model-a/patches/uboot/uboot.hash new file +2 -0
@@ -0,0 +1,2 @@ +# Locally calculated +sha256 b28daf4ac17e43156363078bf510297584137f6df50fced9b12df34f61a92fb0 u-boot-2024.10.tar.bz2
board/polyhex/debix-model-a/post-build.sh new file +7 -0
@@ -0,0 +1,7 @@ +#!/bin/sh +BOARD_DIR="$(dirname "$0")" +PARTUUID="$("$HOST_DIR"/bin/uuidgen)" + +install -d "$TARGET_DIR/boot/extlinux/" +sed "s/%PARTUUID%/$PARTUUID/g" "$BOARD_DIR/extlinux.conf.in" > "$TARGET_DIR/boot/extlinux/extlinux.conf" +sed "s/%PARTUUID%/$PARTUUID/g" "$BOARD_DIR/genimage.cfg.in" > "$BINARIES_DIR/genimage.cfg"
board/polyhex/debix-model-a/readme.txt new file +112 -0
112 lines not on this page · raw message
configs/polyhex_debix_model_a_defconfig new file +46 -0
46 lines not on this page · raw message
Signature · 6 lines
2.43.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Hi Gilles,
Thanks for the updates!
There is a regression compared to v1.
When compiling with this patch with commands:
make polyhex_debix_model_a_defconfig
make
compilation is failing with output:
Incorrect selection of kernel headers: expected 2.6.x, got 6.12.x
The BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_6_12=y is no longer set in the defconfig.
I also have few other comments, see below.
Quoted 19 lines · Gilles Talis
This configuration builds an image for the Polyhex Debix Model A SBC
DEBIX Model A is an industrial grade single board computer powered by NXP i.MX 8M Plus applications processor
https://www.debix.io/hardware/model-a.html
- Linux Kernel: Upstream version 6.12.13
- U-boot: Upstream version 2024.10
- ATF: Upstream version 2.12Signed-off-by Gilles Talis <[email protected]>---
Changes v1 --> v2:
- Fixedpost-build.shscript warnings
- EnabledBR2_DOWNLOAD_FORCE_CHECK_HASHES
- Added Linux and U-Boot hashes
- Renamedpost-build.shprocessed files as *.in
---
[...]
board/polyhex/debix-model-a/patches/linux/linux.hash line 1
Quoted 7 lines
board/polyhex/debix-model-a/patches/linux/linux.hash new file +1
-0@@ -0,0 +1,2 @@ +# Locally calculated
Since this defconfig is using an upstream kernel archive, the "# Locally calculated" comment can be replaced by:
# From https://www.kernel.org/pub/linux/kernel/v6.x/sha256sums.asc
This allow the reuse the hash value from upstream, and the signature can also be verified.
Quoted 11 lines
board/polyhex/debix-model-a/patches/linux/linux.hash new file +1
-0+sha256
f3ebdeea9e555b4cface44e29670056f4024541e6bd222fbcf776c818974fbbalinux-6.12.13.tar.xzboard/polyhex/debix-model-a/patches/uboot/uboot.hash new file +2
-0@@ -0,0 +1,2 @@ +# Locally calculated +sha256
b28daf4ac17e43156363078bf510297584137f6df50fced9b12df34f61a92fb0u-boot-2024.10.tar.bz2
The hash symlink for linux-headers is missing. This is probably due to the missing BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_6_12=y. Could you add it please?
See how it is done in another board, for example:
https://gitlab.com/buildroot.org/buildroot/-/tree/master/board/freescale/imx8mpevk/patches/
You are also missing the hash file for arm-trusted-firmware (because the defconfig sets a CUSTOM_VERSION). It is currently working because this version happen to be the default TF-A version and a valid hash is
in: boot/arm-trusted-firmware/*/arm-trusted-firmware.hash
To make sure this defconfig can be updated independently of boot/arm-trusted-firmware/ default version, you should have your own arm-trusted-firmware.hash too.
Could you add the arm-trusted-firmware.hash please?
[...]
configs/polyhex_debix_model_a_defconfig line 2
Quoted 8 lines
configs/polyhex_debix_model_a_defconfig new file +2
-0@@ -0,0 +1,46 @@ +BR2_aarch64=y +BR2_ARM_FPU_VFPV3=y
Could you add back BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_6_12=y here please?
configs/polyhex_debix_model_a_defconfig line 11
Quoted 9 lines
configs/polyhex_debix_model_a_defconfig new file +9
-0+BR2_GLOBAL_PATCH_DIR="board/polyhex/debix-model-a/patches" +BR2_DOWNLOAD_FORCE_CHECK_HASHES=y +BR2_TARGET_GENERIC_GETTY_PORT="ttymxc1" +BR2_ROOTFS_POST_BUILD_SCRIPT="board/polyhex/debix-model-a/post-build.sh" +BR2_ROOTFS_POST_IMAGE_SCRIPT="support/scripts/genimage.sh" +BR2_ROOTFS_POST_SCRIPT_ARGS="-c $(BINARIES_DIR)/genimage.cfg" +BR2_LINUX_KERNEL=y +BR2_LINUX_KERNEL_CUSTOM_VERSION=y +BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="6.12.13"
For info, 6.12.14 was tagged today, in case you want to update it, while you are doing other changes.
Quoted 10 lines
configs/polyhex_debix_model_a_defconfig new file +10
-0+BR2_LINUX_KERNEL_USE_ARCH_DEFAULT_CONFIG=y +BR2_LINUX_KERNEL_DTS_SUPPORT=y +BR2_LINUX_KERNEL_INTREE_DTS_NAME="freescale/imx8mp-debix-model-a" +BR2_LINUX_KERNEL_DTB_KEEP_DIRNAME=y +BR2_LINUX_KERNEL_INSTALL_TARGET=y +BR2_LINUX_KERNEL_NEEDS_HOST_OPENSSL=y +BR2_PACKAGE_FREESCALE_IMX=y +BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8MP=y +BR2_PACKAGE_FIRMWARE_IMX=y +BR2_TARGET_ROOTFS_EXT2=y
configs/polyhex_debix_model_a_defconfig line 31
Quoted 10 lines
configs/polyhex_debix_model_a_defconfig new file +10
-0+BR2_TARGET_ROOTFS_EXT2_4=y +BR2_TARGET_ROOTFS_EXT2_SIZE="128M" +BR2_TARGET_ARM_TRUSTED_FIRMWARE=y +BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_VERSION=y +BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_VERSION_VALUE="v2.12" +BR2_TARGET_ARM_TRUSTED_FIRMWARE_PLATFORM="imx8mp" +BR2_TARGET_UBOOT=y +BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y +BR2_TARGET_UBOOT_CUSTOM_VERSION=y +BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2024.10"
There is already a u-boot version v2025.01 available. Could you consider switching to it?
Quoted 16 lines
configs/polyhex_debix_model_a_defconfig new file +15
-1+BR2_TARGET_UBOOT_BOARD_DEFCONFIG="imx8mp_debix_model_a" +BR2_TARGET_UBOOT_NEEDS_DTC=y +BR2_TARGET_UBOOT_NEEDS_PYLIBFDT=y +BR2_TARGET_UBOOT_NEEDS_OPENSSL=y +BR2_TARGET_UBOOT_NEEDS_GNUTLS=y +BR2_TARGET_UBOOT_NEEDS_UTIL_LINUX=y +BR2_TARGET_UBOOT_NEEDS_ATF_BL31=y +BR2_TARGET_UBOOT_NEEDS_IMX_FIRMWARE=y +BR2_TARGET_UBOOT_FORMAT_CUSTOM=y +BR2_TARGET_UBOOT_FORMAT_CUSTOM_NAME="flash.bin" +BR2_TARGET_UBOOT_SPL=y +BR2_PACKAGE_HOST_GENIMAGE=y +BR2_PACKAGE_HOST_IMX_MKIMAGE=y +BR2_PACKAGE_HOST_UBOOT_TOOLS=y +BR2_PACKAGE_HOST_UBOOT_TOOLS_FIT_SUPPORT=y --
Quoted 1 line
2.43.0
Best regards,
Julien.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Hello Julien,
Quoted 166 lines · Julien Olivain
Hi Gilles,
Thanks for the updates!
There is a regression compared to v1.
When compiling with this patch with commands:make
polyhex_debix_model_a_defconfig
makecompilation is failing with output:
Incorrect selection of kernel headers: expected 2.6.x, got 6.12.x
The BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_6_12=y is no longer set in the defconfig.
I also have few other comments, see below.
Quoted 19 lines · Gilles Talis
This configuration builds an image for the Polyhex Debix Model A SBC
DEBIX Model A is an industrial grade single board computer powered by NXP i.MX 8M Plus applications processor
https://www.debix.io/hardware/model-a.html
- Linux Kernel: Upstream version 6.12.13
- U-boot: Upstream version 2024.10
- ATF: Upstream version 2.12Signed-off-by Gilles Talis <[email protected]>---
Changes v1 --> v2:
- Fixedpost-build.shscript warnings
- EnabledBR2_DOWNLOAD_FORCE_CHECK_HASHES
- Added Linux and U-Boot hashes
- Renamedpost-build.shprocessed files as *.in
---[...]
board/polyhex/debix-model-a/patches/linux/linux.hash line 1
Quoted 8 lines
board/polyhex/debix-model-a/patches/linux/linux.hash new file +1
-0@@ -0,0 +1,2 @@ +# Locally calculatedSince this defconfig is using an upstream kernel archive, the "# Locally calculated" comment can be replaced by:
# From https://www.kernel.org/pub/linux/kernel/v6.x/sha256sums.asc
This allow the reuse the hash value from upstream, and the signature can also be verified.
Quoted 12 lines
board/polyhex/debix-model-a/patches/linux/linux.hash new file +1
-0+sha256
f3ebdeea9e555b4cface44e29670056f4024541e6bd222fbcf776c818974fbbalinux-6.12.13.tar.xzboard/polyhex/debix-model-a/patches/uboot/uboot.hash new file +2
-0@@ -0,0 +1,2 @@ +# Locally calculated +sha256Quoted 2 lines
b28daf4ac17e43156363078bf510297584137f6df50fced9b12df34f61a92fb0u-boot-2024.10.tar.bz2The hash symlink for linux-headers is missing. This is probably due to the missing BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_6_12=y. Could you add it
please?See how it is done in another board, for example:
https://gitlab.com/buildroot.org/buildroot/-/tree/master/board/freescale/imx8mpevk/patches/You are also missing the hash file for arm-trusted-firmware (because the defconfig sets a
CUSTOM_VERSION). It is currently working because this version happen to be the default TF-A version and a valid hash is
in: boot/arm-trusted-firmware/*/arm-trusted-firmware.hashTo make sure this defconfig can be updated independently of boot/arm-trusted-firmware/ default version, you should have your own arm-trusted-firmware.hash too.
Could you add the arm-trusted-firmware.hash please?
[...]
configs/polyhex_debix_model_a_defconfig line 2
Quoted 9 lines
configs/polyhex_debix_model_a_defconfig new file +2
-0@@ -0,0 +1,46 @@ +BR2_aarch64=y +BR2_ARM_FPU_VFPV3=yCould you add back BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_6_12=y here please?
configs/polyhex_debix_model_a_defconfig line 11
Quoted 9 lines
configs/polyhex_debix_model_a_defconfig new file +9
-0+BR2_GLOBAL_PATCH_DIR="board/polyhex/debix-model-a/patches" +BR2_DOWNLOAD_FORCE_CHECK_HASHES=y +BR2_TARGET_GENERIC_GETTY_PORT="ttymxc1" +BR2_ROOTFS_POST_BUILD_SCRIPT="board/polyhex/debix-model-a/post-build.sh" +BR2_ROOTFS_POST_IMAGE_SCRIPT="support/scripts/genimage.sh" +BR2_ROOTFS_POST_SCRIPT_ARGS="-c $(BINARIES_DIR)/genimage.cfg" +BR2_LINUX_KERNEL=y +BR2_LINUX_KERNEL_CUSTOM_VERSION=y +BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="6.12.13"For info, 6.12.14 was tagged today, in case you want to update it, while you are doing other changes.
Quoted 10 lines
configs/polyhex_debix_model_a_defconfig new file +10
-0+BR2_LINUX_KERNEL_USE_ARCH_DEFAULT_CONFIG=y +BR2_LINUX_KERNEL_DTS_SUPPORT=y +BR2_LINUX_KERNEL_INTREE_DTS_NAME="freescale/imx8mp-debix-model-a" +BR2_LINUX_KERNEL_DTB_KEEP_DIRNAME=y +BR2_LINUX_KERNEL_INSTALL_TARGET=y +BR2_LINUX_KERNEL_NEEDS_HOST_OPENSSL=y +BR2_PACKAGE_FREESCALE_IMX=y +BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8MP=y +BR2_PACKAGE_FIRMWARE_IMX=y +BR2_TARGET_ROOTFS_EXT2=yconfigs/polyhex_debix_model_a_defconfig line 31
Quoted 10 lines
configs/polyhex_debix_model_a_defconfig new file +10
-0+BR2_TARGET_ROOTFS_EXT2_4=y +BR2_TARGET_ROOTFS_EXT2_SIZE="128M" +BR2_TARGET_ARM_TRUSTED_FIRMWARE=y +BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_VERSION=y +BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_VERSION_VALUE="v2.12" +BR2_TARGET_ARM_TRUSTED_FIRMWARE_PLATFORM="imx8mp" +BR2_TARGET_UBOOT=y +BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y +BR2_TARGET_UBOOT_CUSTOM_VERSION=y +BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2024.10"There is already a u-boot version v2025.01 available. Could you consider switching to it?
Quoted 16 lines
configs/polyhex_debix_model_a_defconfig new file +15
-1+BR2_TARGET_UBOOT_BOARD_DEFCONFIG="imx8mp_debix_model_a" +BR2_TARGET_UBOOT_NEEDS_DTC=y +BR2_TARGET_UBOOT_NEEDS_PYLIBFDT=y +BR2_TARGET_UBOOT_NEEDS_OPENSSL=y +BR2_TARGET_UBOOT_NEEDS_GNUTLS=y +BR2_TARGET_UBOOT_NEEDS_UTIL_LINUX=y +BR2_TARGET_UBOOT_NEEDS_ATF_BL31=y +BR2_TARGET_UBOOT_NEEDS_IMX_FIRMWARE=y +BR2_TARGET_UBOOT_FORMAT_CUSTOM=y +BR2_TARGET_UBOOT_FORMAT_CUSTOM_NAME="flash.bin" +BR2_TARGET_UBOOT_SPL=y +BR2_PACKAGE_HOST_GENIMAGE=y +BR2_PACKAGE_HOST_IMX_MKIMAGE=y +BR2_PACKAGE_HOST_UBOOT_TOOLS=y +BR2_PACKAGE_HOST_UBOOT_TOOLS_FIT_SUPPORT=y --Quoted 1 line
2.43.0
Best regards,
Quoted 1 line
Julien.
Thanks again for the thorough review!
I addressed all your comments and will send a v3 shortly.
thank you!
Regards
Gilles.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot