configs/kontron_pitx_imx8m: new defconfig
PATCH 1/1 configs/kontron_pitx_imx8m: new defconfig
Signed-off-by Heiko Thiery <[email protected]>
--- DEVELOPERS | 2 + board/kontron/pitx-imx8m/boot.cmd | 8 +++ board/kontron/pitx-imx8m/genimage.cfg | 16 ++++++ board/kontron/pitx-imx8m/post-build.sh | 4 ++ board/kontron/pitx-imx8m/post-image.sh | 4 ++ board/kontron/pitx-imx8m/readme.txt | 74 ++++++++++++++++++++++++++ configs/kontron_pitx_imx8m_defconfig | 54 +++++++++++++++++++ 7 files changed, 162 insertions(+) create mode 100644 board/kontron/pitx-imx8m/boot.cmd create mode 100644 board/kontron/pitx-imx8m/genimage.cfg create mode 100755 board/kontron/pitx-imx8m/post-build.sh create mode 100755 board/kontron/pitx-imx8m/post-image.sh create mode 100644 board/kontron/pitx-imx8m/readme.txt create mode 100644 configs/kontron_pitx_imx8m_defconfig
DEVELOPERS +2 -0
@@ -1121,6 +1121,8 @@ F: package/python-sip/ F: package/uhd/ N: Heiko Thiery <[email protected]> +F: board/kontron/pitx-imx8m/ +F: configs/kontron_pitx_imx8m_defconfig F: package/altera-stapl/ F: package/ipmitool/ F: package/libnetconf2/
board/kontron/pitx-imx8m/boot.cmd new file +8 -0
@@ -0,0 +1,8 @@ +echo "Root File Sytem on MMC${devnum}" +setenv rootfs /dev/mmcblk${devnum}p1 +setenv bootargs root=${rootfs} rootwait rw ${extrabootargs} + +load ${devtype} ${devnum} ${kernel_addr_r} boot/Image +load ${devtype} ${devnum} ${fdt_addr_r} boot/imx8mq-kontron-pitx-imx8m.dtb + +booti ${kernel_addr_r} - ${fdt_addr_r}
board/kontron/pitx-imx8m/genimage.cfg new file +16 -0
@@ -0,0 +1,16 @@ +image sdcard.img { + hdimage { + } + + partition imx-boot { + in-partition-table = "no" + image = "imx8-boot-sd.bin" + offset = 33k + } + + partition rootfs { + partition-type = 0x83 + image = "rootfs.ext4" + offset = 8M + } +}
board/kontron/pitx-imx8m/post-build.sh new file +4 -0
@@ -0,0 +1,4 @@ +#!/bin/sh + +mkdir -p $TARGET_DIR/boot/ +cp $BINARIES_DIR/boot.scr $TARGET_DIR/boot/boot.scr
board/kontron/pitx-imx8m/post-image.sh new file +4 -0
@@ -0,0 +1,4 @@ +#!/bin/sh + +support/scripts/genimage.sh -c $(dirname $0)/genimage.cfg +exit $?
board/kontron/pitx-imx8m/readme.txt new file +74 -0
74 lines not on this page · raw message
configs/kontron_pitx_imx8m_defconfig new file +54 -0
54 lines not on this page · raw message
Signature · 1 line
2.30.0
Yann E. MORIN
AppliedPATCH 1/1 configs/kontron_pitx_imx8m: new defconfig
Heiko, All,
On 2021-06-29 12:06 +0200, Heiko Thiery spake thusly:
Quoted 2 lines
Signed-off-by Heiko Thiery <[email protected]>---
[--SNIP--]
board/kontron/pitx-imx8m/post-image.sh line 4
Quoted 10 lines
board/kontron/pitx-imx8m/post-image.sh new file +4
-0@@ -0,0 +1,4 @@ +#!/bin/sh + +support/scripts/genimage.sh -c $(dirname $0)/genimage.cfg +exit $?
The shell will exit with the return status of the last command it executed. So using 'exit $?' as the last line of a shell script is superfluous. I dropped it.
Applied to master with the above change, thanks.
Regards,
Yann E. MORIN.
Quoted 147 lines
board/kontron/pitx-imx8m/readme.txt new file +74
-0@@ -0,0 +1,74 @@ +Kontron pitx-imx8m +================== + +https://www.kontron.com/produkte/pitx-imx8m/p155258 + + +How to build it +=============== + +Configure buildroot: + + $ make kontron_pitx_imx8m_defconfig + +Change settings to fit your needs (optional): + + $ make menuconfig + +Compile everything and buildr the rootfs image: + + $ make + + +Result of the build +=================== + +After building, the output/images directory contains: + + output/images/ + ??? bl31.bin + ??? boot.scr + ??? ddr_fw.bin + ??? Image + ??? imx8-boot-sd.bin + ??? imx8mq-kontron-pitx-imx8m.dtb + ??? lpddr4_pmu_train_fw.bin + ??? rootfs.ext2 + ??? rootfs.ext4 -> rootfs.ext2 + ??? rootfs.tar + ??? sdcard.img + ??? signed_hdmi_imx8m.bin + ??? u-boot.bin + ??? u-boot.itb + ??? u-boot-nodtb.bin + ??? u-boot-spl.bin + ??? u-boot-spl-ddr.bin + + +Flashing the SD card image +========================== + +To install the image on a SDCard simply copy sdcard.img to the storage (e.g. SD, eMMC) + + $ sudo dd if=output/images/sdcard.img of=<your-sd-device> + + +Preparing the board +=================== + + * Connect a serial line to the board + * Insert the SD card + * Make sure the boot source selection DIP switches are set correctly + * SW1 1-4 OFF + * SW1 2-3 OFF + * Power-up the board + + +Booting the board +================= + +By default the bootloader will search for the first valid image, starting +with the internal eMMC. To make sure the bootloader loads bootscript from +the correct location (SD card) set the boot_targets environment variable: + + $ setenv boot_targets mmc1configs/kontron_pitx_imx8m_defconfig new file +54
-0@@ -0,0 +1,54 @@ +# Architecture +BR2_aarch64=y +BR2_ARM_FPU_VFPV3=y + +# System +BR2_TARGET_GENERIC_GETTY_PORT="ttymxc2" +BR2_ROOTFS_POST_BUILD_SCRIPT="board/freescale/common/imx/imx8-bootloader-prepare.sh board/kontron/pitx-imx8m/post-build.sh" +BR2_ROOTFS_POST_IMAGE_SCRIPT="board/kontron/pitx-imx8m/post-image.sh" +BR2_ROOTFS_POST_SCRIPT_ARGS="${UBOOT_DIR}/arch/arm/dts/pitx-imx8mq.dtb" + +# Kernel +BR2_LINUX_KERNEL=y +BR2_LINUX_KERNEL_CUSTOM_VERSION=y +BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="5.13" +BR2_LINUX_KERNEL_USE_ARCH_DEFAULT_CONFIG=y +BR2_LINUX_KERNEL_DTS_SUPPORT=y +BR2_LINUX_KERNEL_INTREE_DTS_NAME="freescale/imx8mq-kontron-pitx-imx8m" +BR2_LINUX_KERNEL_INSTALL_TARGET=y +BR2_LINUX_KERNEL_NEEDS_HOST_OPENSSL=y + +BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_13=y + +BR2_PACKAGE_FREESCALE_IMX=y +BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8M=y +BR2_PACKAGE_FIRMWARE_IMX=y + +# Filesystem / image +BR2_TARGET_ROOTFS_EXT2=y +BR2_TARGET_ROOTFS_EXT2_4=y +BR2_TARGET_ROOTFS_EXT2_SIZE="120M" + +# Bootloader +BR2_TARGET_ARM_TRUSTED_FIRMWARE=y +BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_VERSION=y +BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_VERSION_VALUE="v2.5" +BR2_TARGET_ARM_TRUSTED_FIRMWARE_PLATFORM="imx8mq" +BR2_TARGET_ARM_TRUSTED_FIRMWARE_BL31=y +BR2_TARGET_UBOOT=y +BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y +BR2_TARGET_UBOOT_CUSTOM_TARBALL=y +BR2_TARGET_UBOOT_CUSTOM_TARBALL_LOCATION="https://gitlab.kontron.com/imx/u-boot-imx/-/archive/PITX-IMX8M-R12/u-boot-imx-PITX-IMX8M-R12.tar.gz" +BR2_TARGET_UBOOT_BOARD_DEFCONFIG="pitx-imx8m" +BR2_TARGET_UBOOT_NEEDS_DTC=y +BR2_TARGET_UBOOT_FORMAT_CUSTOM=y +BR2_TARGET_UBOOT_FORMAT_CUSTOM_NAME="u-boot-nodtb.bin" +BR2_TARGET_UBOOT_SPL=y + +# Required host tools to create the SD/eMMC image +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 +BR2_PACKAGE_HOST_UBOOT_TOOLS_BOOT_SCRIPT=y +BR2_PACKAGE_HOST_UBOOT_TOOLS_BOOT_SCRIPT_SOURCE="board/kontron/pitx-imx8m/boot.cmd"Signature · 6 lines
2.30.0 _______________________________________________ buildroot mailing list buildroot at busybox.net http://lists.busybox.net/mailman/listinfo/buildroot
Signature · 6 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. | '------------------------------^-------^------------------^--------------------'