configs: new configuration for i.MX6UL Pico board
Fabio Estevam
reviewerPATCH 1/1 configs: new configuration for i.MX6UL Pico board
Add support for Technexion's i.MX6UL Pico board.
For information about this board, please visit:
http://www.wandboard.org/images/hobbit/hobbitboard-imx6ul-reva1.pdf
Currently two patches are needed, but in the future they can be removed when we switch to kernel 4.7 and U-boot 2016.07 versions.
--- board/technexion/imx6ulpico/genimage.cfg | 41 ++ .../patches/linux/0001-pico_initial_dts.patch | 558 +++++++++++++++++++++ .../patches/uboot/0001-pico_add_hush.patch | 37 ++ board/technexion/imx6ulpico/post-image.sh | 15 + configs/imx6ulpico_defconfig | 37 ++ 5 files changed, 688 insertions(+) create mode 100644 board/technexion/imx6ulpico/genimage.cfg create mode 100644 board/technexion/imx6ulpico/patches/linux/0001-pico_initial_dts.patch create mode 100644 board/technexion/imx6ulpico/patches/uboot/0001-pico_add_hush.patch create mode 100755 board/technexion/imx6ulpico/post-image.sh create mode 100644 configs/imx6ulpico_defconfig
board/technexion/imx6ulpico/genimage.cfg new file +41 -0
@@ -0,0 +1,41 @@ +# Minimal eMMC card image for the Technexion's i.MX6UL Pico board +# +# We mimic the .sdcard Freescale's image format for i.MX6UL: +# * the eMMC must have 1 kB free space at the beginning, +# * U-Boot is dumped as is, +# * a FAT partition at offset 8 MB is containing zImage and dtbs, +# * a single root filesystem partition is required (Ext4 in this case). +# + +image boot.vfat { + vfat { + files = { + "imx6ul-pico-hobbit.dtb", + "zImage" + } + } + size = 16M +} + +image sdcard.img { + hdimage { + } + + partition u-boot { + in-partition-table = "no" + image = "u-boot.imx" + offset = 1024 + } + + partition boot { + partition-type = 0xC + bootable = "true" + image = "boot.vfat" + offset = 8M + } + + partition rootfs { + partition-type = 0x83 + image = "rootfs.ext4" + } +}
board/technexion/imx6ulpico/patches/linux/0001-pico_initial_dts.patch new file +558 -0
558 lines not on this page · raw message
board/technexion/imx6ulpico/patches/uboot/0001-pico_add_hush.patch new file +37 -0
@@ -0,0 +1,37 @@ +From 451222db5a05c14cc5f0ba8919af69e57106b676 Mon Sep 17 00:00:00 2001 +From: Fabio Estevam <[email protected]> +Date: Tue, 17 May 2016 10:33:39 -0300 +Subject: [PATCH v2] pico-imx6ul: Select CONFIG_HUSH_PARSER option + +Select CONFIG_HUSH_PARSER option in order to fix the following +problem: + +Unknown command 'if' - try 'help' +Unknown command 'then' - try 'help' +Unknown command 'else' - try 'help' +Unknown command 'fi' - try 'help' + +Reported-by: Daiane Angolini <[email protected]> +Signed-off-by: Fabio Estevam <[email protected]> +--- +Changes since v1: +- Remove extra whitespaces in the error messages (Daiane) + + configs/pico-imx6ul_defconfig | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/configs/pico-imx6ul_defconfig b/configs/pico-imx6ul_defconfig +index cc49dc9..d46cd3b 100644 +--- a/configs/pico-imx6ul_defconfig ++++ b/configs/pico-imx6ul_defconfig +@@ -2,6 +2,7 @@ CONFIG_ARM=y + CONFIG_ARCH_MX6=y + CONFIG_TARGET_PICO_IMX6UL=y + CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=board/technexion/pico-imx6ul/imximage.cfg" ++CONFIG_HUSH_PARSER=y + CONFIG_CMD_BOOTZ=y + # CONFIG_CMD_IMLS is not set + CONFIG_CMD_MEMTEST=y +-- +1.9.1 +
board/technexion/imx6ulpico/post-image.sh new file +15 -0
@@ -0,0 +1,15 @@ +#!/usr/bin/env bash + +GENIMAGE_CFG="board/technexion/imx6ulpico/genimage.cfg" +GENIMAGE_TMP="${BUILD_DIR}/genimage.tmp" + +rm -rf "${GENIMAGE_TMP}" + +genimage \ + --rootpath "${TARGET_DIR}" \ + --tmppath "${GENIMAGE_TMP}" \ + --inputpath "${BINARIES_DIR}" \ + --outputpath "${BINARIES_DIR}" \ + --config "${GENIMAGE_CFG}" + +exit $?
configs/imx6ulpico_defconfig new file +37 -0
@@ -0,0 +1,37 @@ +# architecture +BR2_arm=y +BR2_cortex_a7=y + +# patches +BR2_GLOBAL_PATCH_DIR="board/technexion/imx6ulpico/patches/" + +# Linux headers same as kernel, a 4.6 series +BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_6=y + +# system +BR2_TARGET_GENERIC_GETTY_PORT="ttymxc5" + +# kernel +BR2_LINUX_KERNEL=y +BR2_LINUX_KERNEL_CUSTOM_VERSION=y +BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="4.6" +BR2_LINUX_KERNEL_DEFCONFIG="imx_v6_v7" +BR2_LINUX_KERNEL_DTS_SUPPORT=y +BR2_LINUX_KERNEL_INTREE_DTS_NAME="imx6ul-pico-hobbit" + +# bootloader +BR2_TARGET_UBOOT=y +BR2_TARGET_UBOOT_BOARDNAME="pico-imx6ul" +BR2_TARGET_UBOOT_CUSTOM_VERSION=y +BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2016.05" +BR2_TARGET_UBOOT_FORMAT_IMX=y + +# required tools to create the eMMC image +BR2_PACKAGE_HOST_DOSFSTOOLS=y +BR2_PACKAGE_HOST_GENIMAGE=y +BR2_PACKAGE_HOST_MTOOLS=y + +# filesystem / image +BR2_ROOTFS_POST_IMAGE_SCRIPT="board/technexion/imx6ulpico/post-image.sh" +BR2_TARGET_ROOTFS_EXT2=y +BR2_TARGET_ROOTFS_EXT2_4=y
Signature · 1 line
1.9.1
PATCH 1/1 configs: new configuration for i.MX6UL Pico board
Hello,
Quoted 9 lines · Fabio Estevam
Add support for Technexion's i.MX6UL Pico board.
For information about this board, please visit:
http://www.wandboard.org/images/hobbit/hobbitboard-imx6ul-reva1.pdfCurrently two patches are needed, but in the future they can be removed when we switch to kernel 4.7 and U-boot 2016.07 versions.
Signed-off-by Fabio Estevam <[email protected]>
This generally looks good, but we generally like when a readme.txt is added to indicate how to quickly setup the board to use the Buildroot image.
board/technexion/imx6ulpico/post-image.sh line 3
Quoted 9 lines
board/technexion/imx6ulpico/post-image.sh new file +3
-0@@ -0,0 +1,15 @@ +#!/usr/bin/env bash + +GENIMAGE_CFG="board/technexion/imx6ulpico/genimage.cfg"
Maybe use the $(dirname $0) trick ?
Other than that, looks good to me.
Thanks,
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
Fabio Estevam
reviewerPATCH 1/1 configs: new configuration for i.MX6UL Pico board
Hi Thomas,
Quoted 8 lines · Thomas Petazzoni
Hello,
Quoted 5 lines · Fabio Estevam
Add support for Technexion's i.MX6UL Pico board.
For information about this board, please visit:
http://www.wandboard.org/images/hobbit/hobbitboard-imx6ul-reva1.pdf
Quoted 8 lines
Quoted 4 lines
Currently two patches are needed, but in the future they can be removed when we switch to kernel 4.7 and U-boot 2016.07 versions.
Signed-off-by Fabio Estevam <[email protected]>This generally looks good, but we generally like when a readme.txt is added to indicate how to quickly setup the board to use the Buildroot image.
Thanks for the review. I will send v2 including the readme file.
I will wait for 4.7 kernel to be released this weekend, so that I don't have to carry the extra dts patch anymore.
Will also bump U-boot to 2016.07.
Regards,
Fabio Estevam