configs/toradex_apalis_imx6_defconfig: new board
PATCH v2 1/1 configs/toradex_apalis_imx6_defconfig: new board
Signed-off-by Sergio Prado <[email protected]>
---
Changes v1 -> v2:
- using $(dirname $0) as board working dir for genimage config file
- removing extra "=" signs from readme file
- added explanation on how to use uEnv.txt
- using BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_3_14
--- board/toradex/apalis-imx6/genimage.cfg | 15 ++++++++++ board/toradex/apalis-imx6/post-image.sh | 20 +++++++++++++ board/toradex/apalis-imx6/readme.txt | 52 +++++++++++++++++++++++++++++++++ board/toradex/apalis-imx6/uEnv.txt | 6 ++++ configs/toradex_apalis_imx6_defconfig | 24 +++++++++++++++ 5 files changed, 117 insertions(+) create mode 100644 board/toradex/apalis-imx6/genimage.cfg create mode 100755 board/toradex/apalis-imx6/post-image.sh create mode 100644 board/toradex/apalis-imx6/readme.txt create mode 100644 board/toradex/apalis-imx6/uEnv.txt create mode 100644 configs/toradex_apalis_imx6_defconfig
board/toradex/apalis-imx6/genimage.cfg new file +15 -0
@@ -0,0 +1,15 @@ +# Minimal SD card image for the Toradex Apalis i.MX6 COM +# +# It does not need a boot section for a bootloader since it is +# booted from its internal flash memory (eMMC). + +image sdcard.img { + hdimage { + } + + partition rootfs { + partition-type = 0x83 + image = "rootfs.ext2" + size = 512M + } +}
board/toradex/apalis-imx6/post-image.sh new file +20 -0
@@ -0,0 +1,20 @@ +#!/usr/bin/env bash + +GENIMAGE_CFG="$(dirname $0)/genimage.cfg" +GENIMAGE_TMP="${BUILD_DIR}/genimage.tmp" + +# copy the uEnv.txt to the output/images directory +cp board/toradex/apalis-imx6/uEnv.txt $BINARIES_DIR/uEnv.txt + +rm -rf "${GENIMAGE_TMP}" + +# generate rootfs.img +genimage \ + --rootpath "${TARGET_DIR}" \ + --tmppath "${GENIMAGE_TMP}" \ + --inputpath "${BINARIES_DIR}" \ + --outputpath "${BINARIES_DIR}" \ + --config "${GENIMAGE_CFG}" + +RET=${?} +exit ${RET}
board/toradex/apalis-imx6/readme.txt new file +52 -0
52 lines not on this page · raw message
board/toradex/apalis-imx6/uEnv.txt new file +6 -0
@@ -0,0 +1,6 @@ +boot_file=zImage +fdt_file=imx6q-apalis_v1_0-ixora.dtb +sdargs=ip=off root=/dev/mmcblk1p1 rw,noatime rootfstype=ext4 rootwait +sddtbload=ext2load mmc 2:1 ${fdt_addr_r} boot/${fdt_file} +sdkernelload=ext2load mmc 2:1 ${kernel_addr_r} boot/${boot_file} +bootcmd=run setup; setenv bootargs ${defargs} ${sdargs} ${setupargs} ${vidargs}; echo Booting from SD card...; run sddtbload; run sdkernelload; bootz ${kernel_addr_r} - ${fdt_addr_r}
configs/toradex_apalis_imx6_defconfig new file +24 -0
@@ -0,0 +1,24 @@ +BR2_arm=y +BR2_cortex_a9=y +BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_3_14=y +BR2_TARGET_GENERIC_GETTY_PORT="ttymxc0" +BR2_ROOTFS_POST_IMAGE_SCRIPT="board/toradex/apalis-imx6/post-image.sh" +BR2_LINUX_KERNEL=y +BR2_LINUX_KERNEL_CUSTOM_GIT=y +BR2_LINUX_KERNEL_CUSTOM_REPO_URL="git://git.toradex.com/linux-toradex.git" +BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="8f237ebe42f2cb911245369276a6b3043c2815f2" +BR2_LINUX_KERNEL_DEFCONFIG="apalis_imx6" +BR2_LINUX_KERNEL_DTS_SUPPORT=y +BR2_LINUX_KERNEL_INTREE_DTS_NAME="imx6q-apalis-eval imx6q-apalis-ixora imx6q-apalis_v1_0-eval imx6q-apalis_v1_0-ixora" +BR2_LINUX_KERNEL_INSTALL_TARGET=y +BR2_TARGET_ROOTFS_EXT2=y +BR2_TARGET_ROOTFS_EXT2_4=y +BR2_TARGET_UBOOT=y +BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y +BR2_TARGET_UBOOT_CUSTOM_GIT=y +BR2_TARGET_UBOOT_CUSTOM_REPO_URL="git://git.toradex.com/u-boot-toradex.git" +BR2_TARGET_UBOOT_CUSTOM_REPO_VERSION="1ef4a29e8cea0239411dde64f9617ad76248fd02" +BR2_TARGET_UBOOT_BOARD_DEFCONFIG="apalis_imx6" +BR2_TARGET_UBOOT_FORMAT_CUSTOM=y +BR2_TARGET_UBOOT_FORMAT_CUSTOM_NAME="u-boot.imx" +BR2_PACKAGE_HOST_GENIMAGE=y
Signature · 1 line
1.9.1
Thomas Petazzoni
AppliedPATCH v2 1/1 configs/toradex_apalis_imx6_defconfig: new board
Hello,
Quoted 7 lines · Sergio Prado
Signed-off-by Sergio Prado <[email protected]>---
Changes v1 -> v2:
- using $(dirname $0) as board working dir for genimage config file
- removing extra "=" signs from readme file
- added explanation on how to use uEnv.txt
- usingBR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_3_14
Quoted 12 lines
--- board/toradex/apalis-imx6/genimage.cfg | 15 ++++++++++ board/toradex/apalis-imx6/post-image.sh | 20 +++++++++++++ board/toradex/apalis-imx6/readme.txt | 52 +++++++++++++++++++++++++++++++++ board/toradex/apalis-imx6/uEnv.txt | 6 ++++ configs/toradex_apalis_imx6_defconfig | 24 +++++++++++++++ 5 files changed, 117 insertions(+) create mode 100644 board/toradex/apalis-imx6/genimage.cfg create mode 100755 board/toradex/apalis-imx6/post-image.sh create mode 100644 board/toradex/apalis-imx6/readme.txt create mode 100644 board/toradex/apalis-imx6/uEnv.txt create mode 100644 configs/toradex_apalis_imx6_defconfig
Applied to master, thanks.
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com