Skip to contentSkip to conversation

configs/imx6ullevk: add imx6ullevk support

PATCH New jeffrey.kinross at i3pd.com 3 participants 5 messages May 21, 2019 – Apr 13, 2020 Arm i.MX and Layerscape

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 configs/imx6ullevk: add imx6ullevk support

From: Jeffrey Kinross <[email protected]>

---
 board/freescale/imx6ullevk/readme.txt | 64 +++++++++++++++++++++++++++
 configs/imx6ullevk_defconfig          | 38 ++++++++++++++++
 2 files changed, 102 insertions(+)
 create mode 100644 board/freescale/imx6ullevk/readme.txt
 create mode 100644 configs/imx6ullevk_defconfig
board/freescale/imx6ullevk/readme.txt new file +64 -0
new file mode 100644
index 0000000000..1b10f90621
@@ -0,0 +1,64 @@
+***************************
+Freescale i.MX6ULL EVK board
+***************************
+
+This file documents the Buildroot support for the Freescale i.MX6ULL EVK board.
+
+Please read the i.MX6ULL Evaluation Kit Quick Start Guide [1] for an
+introduction to the board.
+
+Build
+=====
+
+First, configure Buildroot for your i.MX6ULL EVK board:
+
+make imx6ullevk_defconfig
+
+Build all components:
+
+  make
+
+You will find in ./output/images/ the following files:
+  - imx6ull-14x14-evk.dtb
+  - rootfs.ext4
+  - rootfs.tar
+  - sdcard.img
+  - u-boot.imx
+  - zImage
+
+Create a bootable microSD card
+==============================
+
+To determine the device associated to the microSD card have a look in the
+/proc/partitions file:
+
+  cat /proc/partitions
+
+Buildroot prepares a bootable "sdcard.img" image in the output/images/
+directory, ready to be dumped on a microSD card. Launch the following
+command as root:
+
+  dd if=./output/images/sdcard.img of=/dev/<your-microsd-device>
+
+*** WARNING! This will destroy all the card content. Use with care! ***
+
+For details about the medium image layout, see the definition in
+board/freescale/common/imx/genimage.cfg.template.
+
+Boot the i.MX6ULL EVK board
+=========================
+
+To boot your newly created system (refer to the i.MX6ULL EVK Quick Start Guide
+[1] for guidance):
+- insert the microSD card in the microSD slot of the board;
+- verify that your i.MX6ULL EVK board jumpers and switches are set as mentioned
+  in the i.MX6ULL EVK Quick Start Guide [1];
+- put a micro USB cable into the Debug USB Port and connect using a terminal
+  emulator at 115200 bps, 8n1;
+- power on the board.
+
+Enjoy!
+
+References
+==========
+[1] https://www.nxp.com/files-static/32bit/doc/brochure/IMX6ULLQSG.pdf
configs/imx6ullevk_defconfig new file +38 -0
new file mode 100644
index 0000000000..85e0f4fe8b
@@ -0,0 +1,38 @@
+# architecture
+BR2_arm=y
+BR2_cortex_a7=y
+BR2_ARM_FPU_NEON_VFPV4=y
+
+# Linux headers same as kernel, a 4.19 series
+BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_19=y
+
+# system
+BR2_TARGET_GENERIC_GETTY_PORT="ttymxc0"
+
+# kernel
+BR2_LINUX_KERNEL=y
+BR2_LINUX_KERNEL_CUSTOM_VERSION=y
+BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="4.19.44"
+BR2_LINUX_KERNEL_DEFCONFIG="imx_v6_v7"
+BR2_LINUX_KERNEL_DTS_SUPPORT=y
+BR2_LINUX_KERNEL_INTREE_DTS_NAME="imx6ull-14x14-evk"
+BR2_LINUX_KERNEL_NEEDS_HOST_OPENSSL=y
+
+# bootloader
+BR2_TARGET_UBOOT=y
+BR2_TARGET_UBOOT_BOARDNAME="mx6ullevk"
+BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y
+BR2_TARGET_UBOOT_USE_DEFCONFIG=y
+BR2_TARGET_UBOOT_BOARD_DEFCONFIG="mx6ull_14x14_evk"
+BR2_TARGET_UBOOT_FORMAT_IMX=y
+BR2_TARGET_UBOOT_NEEDS_DTC=y
+
+# required tools to create the SD card image
+BR2_PACKAGE_HOST_DOSFSTOOLS=y
+BR2_PACKAGE_HOST_GENIMAGE=y
+BR2_PACKAGE_HOST_MTOOLS=y
+
+# filesystem / image
+BR2_ROOTFS_POST_IMAGE_SCRIPT="board/freescale/common/imx/post-image.sh"
+BR2_TARGET_ROOTFS_EXT2=y
+BR2_TARGET_ROOTFS_EXT2_4=y
Signature · 1 line
2.20.1
#1 lore raw

PATCH 1/1 configs/imx6ullevk: add imx6ullevk support

Hi Jeffrey,

Le mar. 21 mai 2019 ? 22:45, <[email protected]> a ?crit :

Quoted 128 lines

From: Jeffrey Kinross <[email protected]>

---
 board/freescale/imx6ullevk/readme.txt | 64 +++++++++++++++++++++++++++
 configs/imx6ullevk_defconfig          | 38 ++++++++++++++++
 2 files changed, 102 insertions(+)
 create mode 100644 board/freescale/imx6ullevk/readme.txt
 create mode 100644 configs/imx6ullevk_defconfig
board/freescale/imx6ullevk/readme.txt new file +64 -0
new file mode 100644
index 0000000000..1b10f90621
@@ -0,0 +1,64 @@
+***************************
+Freescale i.MX6ULL EVK board
+***************************
+
+This file documents the Buildroot support for the Freescale i.MX6ULL EVK board.
+
+Please read the i.MX6ULL Evaluation Kit Quick Start Guide [1] for an
+introduction to the board.
+
+Build
+=====
+
+First, configure Buildroot for your i.MX6ULL EVK board:
+
+make imx6ullevk_defconfig
+
+Build all components:
+
+  make
+
+You will find in ./output/images/ the following files:
+  - imx6ull-14x14-evk.dtb
+  - rootfs.ext4
+  - rootfs.tar
+  - sdcard.img
+  - u-boot.imx
+  - zImage
+
+Create a bootable microSD card
+==============================
+
+To determine the device associated to the microSD card have a look in the
+/proc/partitions file:
+
+  cat /proc/partitions
+
+Buildroot prepares a bootable "sdcard.img" image in the output/images/
+directory, ready to be dumped on a microSD card. Launch the following
+command as root:
+
+  dd if=./output/images/sdcard.img of=/dev/<your-microsd-device>
+
+*** WARNING! This will destroy all the card content. Use with care! ***
+
+For details about the medium image layout, see the definition in
+board/freescale/common/imx/genimage.cfg.template.
+
+Boot the i.MX6ULL EVK board
+=========================
+
+To boot your newly created system (refer to the i.MX6ULL EVK Quick Start Guide
+[1] for guidance):
+- insert the microSD card in the microSD slot of the board;
+- verify that your i.MX6ULL EVK board jumpers and switches are set as mentioned
+  in the i.MX6ULL EVK Quick Start Guide [1];
+- put a micro USB cable into the Debug USB Port and connect using a terminal
+  emulator at 115200 bps, 8n1;
+- power on the board.
+
+Enjoy!
+
+References
+==========
+[1] https://www.nxp.com/files-static/32bit/doc/brochure/IMX6ULLQSG.pdf
configs/imx6ullevk_defconfig new file +38 -1
new file mode 100644
index 0000000000..85e0f4fe8b
@@ -0,0 +1,38 @@
+# architecture
+BR2_arm=y
+BR2_cortex_a7=y
+BR2_ARM_FPU_NEON_VFPV4=y
+
+# Linux headers same as kernel, a 4.19 series
+BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_19=y
+
+# system
+BR2_TARGET_GENERIC_GETTY_PORT="ttymxc0"
+
+# kernel
+BR2_LINUX_KERNEL=y
+BR2_LINUX_KERNEL_CUSTOM_VERSION=y
+BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="4.19.44"
+BR2_LINUX_KERNEL_DEFCONFIG="imx_v6_v7"
+BR2_LINUX_KERNEL_DTS_SUPPORT=y
+BR2_LINUX_KERNEL_INTREE_DTS_NAME="imx6ull-14x14-evk"
+BR2_LINUX_KERNEL_NEEDS_HOST_OPENSSL=y
+
+# bootloader
+BR2_TARGET_UBOOT=y
+BR2_TARGET_UBOOT_BOARDNAME="mx6ullevk"
+BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y
+BR2_TARGET_UBOOT_USE_DEFCONFIG=y
+BR2_TARGET_UBOOT_BOARD_DEFCONFIG="mx6ull_14x14_evk"
+BR2_TARGET_UBOOT_FORMAT_IMX=y
+BR2_TARGET_UBOOT_NEEDS_DTC=y
+
+# required tools to create the SD card image
+BR2_PACKAGE_HOST_DOSFSTOOLS=y
+BR2_PACKAGE_HOST_GENIMAGE=y
+BR2_PACKAGE_HOST_MTOOLS=y
+
+# filesystem / image
+BR2_ROOTFS_POST_IMAGE_SCRIPT="board/freescale/common/imx/post-image.sh"
+BR2_TARGET_ROOTFS_EXT2=y
+BR2_TARGET_ROOTFS_EXT2_4=y
--

2.20.1

Quoted 4 lines

_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot

Thanks for your contribution.
I have tried and built this new defconfig and I do get the correct artifiacts mentioned in your description.
I couldn't test it though as I don't have the board.

Two comments:
1) the subject of your commit should say: configs/imx6ullevk: new defconfig Then you can add more information in your commit message

2) You need to add an entry to the DEVELOPERS file with your name and contribution if you want to be the maintainer of this board.

Can you please send a v2 version?

Thanks
Gilles.

#2 lore raw

PATCH 1/1 configs/imx6ullevk: add imx6ullevk support

In reply to jeffrey.kinross at i3pd.com

Hello Jeffrey,

Thanks for your contribution, and sorry for the slow feedback. Gilles already commented that the DEVELOPERS file needs to be updated. But there is another issue that I can't fix myself. See below.

configs/imx6ullevk_defconfig line 23

Quoted 3 lines · On Tue, 21 May 2019 15:45:34 -0500 jeffrey.kinross at i3pd.com wrote:
configs/imx6ullevk_defconfig new file +3 -0
+# bootloader
+BR2_TARGET_UBOOT=y
+BR2_TARGET_UBOOT_BOARDNAME="mx6ullevk"

This option does not exist when BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y.

configs/imx6ullevk_defconfig line 28

Quoted 5 lines
configs/imx6ullevk_defconfig new file +5 -0
+BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y
+BR2_TARGET_UBOOT_USE_DEFCONFIG=y
+BR2_TARGET_UBOOT_BOARD_DEFCONFIG="mx6ull_14x14_evk"
+BR2_TARGET_UBOOT_FORMAT_IMX=y
+BR2_TARGET_UBOOT_NEEDS_DTC=y

But more importantly, we need to have a specific U-Boot version selected, not just what happens to be the default. Indeed, just like for the Linux kernel, we want to be sure to rebuild always the same U-Boot version.

Could you adjust this, and send an updated version ?

Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
#3 lore raw

PATCH v2 1/1 configs/imx6ullevk: new defconfig board/freescale/imx6ullevk/readme.txt: new readme for the imx6ullevk board. DEVELOPERS: Add myself as the maintainer of imx6ullevk.

In reply to jeffrey.kinross at i3pd.com

Changes v1 -> v2:
- DEVELOPERS - Add myself as maintainer of configs/imx6ullevk (suggested by Gilles Talis)
- configs/imx6ullevk - Use the FSL kernel and uboot. Pin the kernel and uboot version (suggested by Thomas Petazzoni)

configs/imx6ullevk: new defconfig board/freescale/imx6ullevk/readme.txt: new readme for the imx6ullevk board.
DEVELOPERS: Add myself as the maintainer of imx6ullevk.

Add support for imx6ullevk board, using the kernel and uboot from the FSL Community BSP.

---
 DEVELOPERS                            |  4 ++
 board/freescale/imx6ullevk/readme.txt | 64 +++++++++++++++++++++++++++
 configs/imx6ullevk_defconfig          | 41 +++++++++++++++++
 3 files changed, 109 insertions(+)
 create mode 100644 board/freescale/imx6ullevk/readme.txt
 create mode 100644 configs/imx6ullevk_defconfig
DEVELOPERS +4 -0
index 69d2ed6272..5fa55f506f 100644
@@ -1334,6 +1334,10 @@ F:	package/ramsmp/
 N:	Kieran Bingham <[email protected]>
 F:	package/libcamera/
 
+N:	Kinross Jeffrey <[email protected]>
+F:	board/freescale/imx6ulevk/
+F:	configs/imx6ullevk_defconfig
+
 N:	Koen Martens <[email protected]>
 F:	package/capnproto/
 F:	package/linuxconsoletools/
board/freescale/imx6ullevk/readme.txt new file +64 -0

64 lines not on this page · raw message

configs/imx6ullevk_defconfig new file +41 -0

41 lines not on this page · raw message

Signature · 1 line
2.20.1
#4 lore raw

PATCH v2 1/1 configs/imx6ullevk: new defconfig board/freescale/imx6ullevk/readme.txt: new readme for the imx6ullevk board. DEVELOPERS: Add myself as the maintainer of imx6ullevk.

Hello Jeffrey,

Quoted 11 lines · On Thu, 26 Sep 2019 13:14:20 -0500 Jeffrey Kinross <[email protected]>…

Changes v1 -> v2:
- DEVELOPERS - Add myself as maintainer of configs/imx6ullevk (suggested by Gilles Talis)
- configs/imx6ullevk - Use the FSL kernel and uboot. Pin the kernel and uboot version (suggested by Thomas Petazzoni)

configs/imx6ullevk: new defconfig board/freescale/imx6ullevk/readme.txt: new readme for the imx6ullevk board.
DEVELOPERS: Add myself as the maintainer of imx6ullevk.

Add support for imx6ullevk board, using the kernel and uboot from the FSL Community BSP.

Thanks a lot for your contribution. However in the mean time, we have merged
https://git.buildroot.org/buildroot/tree/configs/freescale_imx6ullevk_defconfig
which supports the same board, also with the NXP-provided kernel and U-Boot.

Best regards,

Thomas Petazzoni

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com