Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/4] linux kernel: bump default to version 4.7
@ 2016-07-24 23:56 Fabio Estevam
  2016-07-24 23:56 ` [Buildroot] [PATCH 2/4] linux-headers: " Fabio Estevam
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Fabio Estevam @ 2016-07-24 23:56 UTC (permalink / raw)
  To: buildroot

From: Fabio Estevam <fabio.estevam@nxp.com>

Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
---
 linux/Config.in | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/linux/Config.in b/linux/Config.in
index 310f18b..b6f3e5e 100644
--- a/linux/Config.in
+++ b/linux/Config.in
@@ -27,7 +27,7 @@ choice
 	prompt "Kernel version"
 
 config BR2_LINUX_KERNEL_LATEST_VERSION
-	bool "Latest version (4.6.4)"
+	bool "Latest version (4.7)"
 
 config BR2_LINUX_KERNEL_CUSTOM_VERSION
 	bool "Custom version"
@@ -110,7 +110,7 @@ config BR2_LINUX_KERNEL_CUSTOM_LOCAL_PATH
 
 config BR2_LINUX_KERNEL_VERSION
 	string
-	default "4.6.4" if BR2_LINUX_KERNEL_LATEST_VERSION
+	default "4.7" if BR2_LINUX_KERNEL_LATEST_VERSION
 	default BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE \
 		if BR2_LINUX_KERNEL_CUSTOM_VERSION
 	default "custom" if BR2_LINUX_KERNEL_CUSTOM_TARBALL
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [Buildroot] [PATCH 2/4] linux-headers: bump default to version 4.7
  2016-07-24 23:56 [Buildroot] [PATCH 1/4] linux kernel: bump default to version 4.7 Fabio Estevam
@ 2016-07-24 23:56 ` Fabio Estevam
  2016-07-25 20:19   ` Thomas Petazzoni
  2016-07-24 23:56 ` [Buildroot] [PATCH 3/4] toolchain: add 4.7.x choice for headers Fabio Estevam
                   ` (2 subsequent siblings)
  3 siblings, 1 reply; 8+ messages in thread
From: Fabio Estevam @ 2016-07-24 23:56 UTC (permalink / raw)
  To: buildroot

From: Fabio Estevam <fabio.estevam@nxp.com>

Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
---
 package/linux-headers/Config.in.host | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/package/linux-headers/Config.in.host b/package/linux-headers/Config.in.host
index 5845f60..b463d1d 100644
--- a/package/linux-headers/Config.in.host
+++ b/package/linux-headers/Config.in.host
@@ -6,7 +6,7 @@ comment "Kernel Header Options"
 choice
 	prompt "Kernel Headers"
 	default BR2_KERNEL_HEADERS_AS_KERNEL if BR2_LINUX_KERNEL
-	default BR2_KERNEL_HEADERS_4_6
+	default BR2_KERNEL_HEADERS_4_7
 	help
 	  Select the kernel version to get headers from.
 
@@ -92,6 +92,10 @@ choice
 		bool "Linux 4.6.x kernel headers"
 		select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_6
 
+	config BR2_KERNEL_HEADERS_4_7
+		bool "Linux 4.7.x kernel headers"
+		select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_7
+
 	config BR2_KERNEL_HEADERS_VERSION
 		bool "Manually specified Linux version"
 endchoice
@@ -112,6 +116,10 @@ choice
 	  This is used to hide/show some packages that have strict
 	  requirements on the version of kernel headers.
 
+config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_7
+	bool "4.7.x"
+	select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_7
+
 config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_6
 	bool "4.6.x"
 	select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_6
@@ -241,4 +249,5 @@ config BR2_DEFAULT_KERNEL_HEADERS
 	default "4.4.15"	if BR2_KERNEL_HEADERS_4_4
 	default "4.5.7"		if BR2_KERNEL_HEADERS_4_5
 	default "4.6.4"		if BR2_KERNEL_HEADERS_4_6
+	default "4.7"		if BR2_KERNEL_HEADERS_4_7
 	default BR2_DEFAULT_KERNEL_VERSION if BR2_KERNEL_HEADERS_VERSION
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [Buildroot] [PATCH 3/4] toolchain: add 4.7.x choice for headers
  2016-07-24 23:56 [Buildroot] [PATCH 1/4] linux kernel: bump default to version 4.7 Fabio Estevam
  2016-07-24 23:56 ` [Buildroot] [PATCH 2/4] linux-headers: " Fabio Estevam
@ 2016-07-24 23:56 ` Fabio Estevam
  2016-07-25 20:19   ` Thomas Petazzoni
  2016-07-24 23:56 ` [Buildroot] [PATCH 4/4] configs: Add new configuration for i.MX6UL Pico board Fabio Estevam
  2016-07-25 20:18 ` [Buildroot] [PATCH 1/4] linux kernel: bump default to version 4.7 Thomas Petazzoni
  3 siblings, 1 reply; 8+ messages in thread
From: Fabio Estevam @ 2016-07-24 23:56 UTC (permalink / raw)
  To: buildroot

From: Fabio Estevam <fabio.estevam@nxp.com>

Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
---
 toolchain/toolchain-common.in          | 5 +++++
 toolchain/toolchain-external/Config.in | 4 ++++
 2 files changed, 9 insertions(+)

diff --git a/toolchain/toolchain-common.in b/toolchain/toolchain-common.in
index 65df31b..2108edb 100644
--- a/toolchain/toolchain-common.in
+++ b/toolchain/toolchain-common.in
@@ -248,10 +248,15 @@ config BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_6
 	bool
 	select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_5
 
+config BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_7
+	bool
+	select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_6
+
 # This order guarantees that the highest version is set, as kconfig
 # stops affecting a value on the first matching default.
 config BR2_TOOLCHAIN_HEADERS_AT_LEAST
 	string
+	default "4.7"  if BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_7
 	default "4.6"  if BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_6
 	default "4.5"  if BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_5
 	default "4.4"  if BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_4
diff --git a/toolchain/toolchain-external/Config.in b/toolchain/toolchain-external/Config.in
index 16b877a..5edde24 100644
--- a/toolchain/toolchain-external/Config.in
+++ b/toolchain/toolchain-external/Config.in
@@ -793,6 +793,10 @@ choice
 	    m = ( LINUX_VERSION_CODE >> 8  ) & 0xFF
 	    p = ( LINUX_VERSION_CODE >> 0  ) & 0xFF
 
+config BR2_TOOLCHAIN_EXTERNAL_HEADERS_4_7
+	bool "4.7.x"
+	select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_7
+
 config BR2_TOOLCHAIN_EXTERNAL_HEADERS_4_6
 	bool "4.6.x"
 	select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_6
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [Buildroot] [PATCH 4/4] configs: Add new configuration for i.MX6UL Pico board
  2016-07-24 23:56 [Buildroot] [PATCH 1/4] linux kernel: bump default to version 4.7 Fabio Estevam
  2016-07-24 23:56 ` [Buildroot] [PATCH 2/4] linux-headers: " Fabio Estevam
  2016-07-24 23:56 ` [Buildroot] [PATCH 3/4] toolchain: add 4.7.x choice for headers Fabio Estevam
@ 2016-07-24 23:56 ` Fabio Estevam
  2016-07-25 20:36   ` Thomas Petazzoni
  2016-07-25 20:18 ` [Buildroot] [PATCH 1/4] linux kernel: bump default to version 4.7 Thomas Petazzoni
  3 siblings, 1 reply; 8+ messages in thread
From: Fabio Estevam @ 2016-07-24 23:56 UTC (permalink / raw)
  To: buildroot

From: Fabio Estevam <fabio.estevam@nxp.com>

Add support for Technexion's i.MX6UL Pico board running U-boot 2016.07
and kernel 4.7.

For information about this board, please visit:
http://www.wandboard.org/images/hobbit/hobbitboard-imx6ul-reva1.pdf

Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
---
 board/technexion/imx6ulpico/genimage.cfg  | 41 +++++++++++++++++++++
 board/technexion/imx6ulpico/post-image.sh | 16 +++++++++
 board/technexion/imx6ulpico/readme.txt    | 59 +++++++++++++++++++++++++++++++
 configs/imx6ulpico_defconfig              | 34 ++++++++++++++++++
 4 files changed, 150 insertions(+)
 create mode 100644 board/technexion/imx6ulpico/genimage.cfg
 create mode 100755 board/technexion/imx6ulpico/post-image.sh
 create mode 100644 board/technexion/imx6ulpico/readme.txt
 create mode 100644 configs/imx6ulpico_defconfig

diff --git a/board/technexion/imx6ulpico/genimage.cfg b/board/technexion/imx6ulpico/genimage.cfg
new file mode 100644
index 0000000..9e67105
--- /dev/null
+++ b/board/technexion/imx6ulpico/genimage.cfg
@@ -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"
+  }
+}
diff --git a/board/technexion/imx6ulpico/post-image.sh b/board/technexion/imx6ulpico/post-image.sh
new file mode 100755
index 0000000..8757355
--- /dev/null
+++ b/board/technexion/imx6ulpico/post-image.sh
@@ -0,0 +1,16 @@
+#!/usr/bin/env bash
+
+BOARD_DIR="$(dirname $0)"
+GENIMAGE_CFG="${BOARD_DIR}/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 $?
diff --git a/board/technexion/imx6ulpico/readme.txt b/board/technexion/imx6ulpico/readme.txt
new file mode 100644
index 0000000..8046bdb
--- /dev/null
+++ b/board/technexion/imx6ulpico/readme.txt
@@ -0,0 +1,59 @@
+*****************************
+Technexion i.MX6UL Pico board
+*****************************
+
+This file documents the Buildroot support for the Technexion i.MX6UL Pico board.
+
+Build
+=====
+
+First, configure Buildroot for the i.MX6UL Pico board:
+
+  make imx6ulpico_defconfig
+
+Build all components:
+
+  make
+
+You will find in output/images/ the following files:
+  - imx6ul-pico-hobbit.dtb
+  - rootfs.ext4
+  - rootfs.tar
+  - sdcard.img
+  - u-boot.imx
+  - zImage
+
+Create a bootable SD card
+=========================
+
+In the U-Boot prompt lauch:
+
+=> ums 0 mmc 0
+
+This will mount the eMMC content in the host PC as a mass storage device.
+
+To determine the device associated to the eMMC 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 the eMMC card. Launch the following
+command as root:
+
+  dd if=output/images/sdcard.img of=/dev/<your-sd-device>
+
+*** WARNING! This will destroy all the card content. Use with care! ***
+
+For details about the medium image layout, see the definition in
+board/technexion/imx6ulpico/genimage.cfg.
+
+Boot the i.MX6UL Pico board
+=========================
+
+To boot your newly created system:
+- 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!
diff --git a/configs/imx6ulpico_defconfig b/configs/imx6ulpico_defconfig
new file mode 100644
index 0000000..2372636
--- /dev/null
+++ b/configs/imx6ulpico_defconfig
@@ -0,0 +1,34 @@
+# architecture
+BR2_arm=y
+BR2_cortex_a7=y
+
+# Linux headers same as kernel, a 4.7 series
+BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_7=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.7"
+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.07"
+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
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [Buildroot] [PATCH 1/4] linux kernel: bump default to version 4.7
  2016-07-24 23:56 [Buildroot] [PATCH 1/4] linux kernel: bump default to version 4.7 Fabio Estevam
                   ` (2 preceding siblings ...)
  2016-07-24 23:56 ` [Buildroot] [PATCH 4/4] configs: Add new configuration for i.MX6UL Pico board Fabio Estevam
@ 2016-07-25 20:18 ` Thomas Petazzoni
  3 siblings, 0 replies; 8+ messages in thread
From: Thomas Petazzoni @ 2016-07-25 20:18 UTC (permalink / raw)
  To: buildroot

Hello,

On Sun, 24 Jul 2016 20:56:07 -0300, Fabio Estevam wrote:
> From: Fabio Estevam <fabio.estevam@nxp.com>
> 
> Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
> ---
>  linux/Config.in | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)

Thanks, I've applied after changing the prefix from "linux kernel:" to
just "linux:" since "linux" is the name of the Buildroot package this
change applies to.

Thanks!

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Buildroot] [PATCH 2/4] linux-headers: bump default to version 4.7
  2016-07-24 23:56 ` [Buildroot] [PATCH 2/4] linux-headers: " Fabio Estevam
@ 2016-07-25 20:19   ` Thomas Petazzoni
  0 siblings, 0 replies; 8+ messages in thread
From: Thomas Petazzoni @ 2016-07-25 20:19 UTC (permalink / raw)
  To: buildroot

Hello,

On Sun, 24 Jul 2016 20:56:08 -0300, Fabio Estevam wrote:

> +	config BR2_KERNEL_HEADERS_4_7
> +		bool "Linux 4.7.x kernel headers"
> +		select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_7

You're selecting a symbol that doesn't exist here. Your patch 3/4
should have come before 2/4.

So I've applied this patch, but after applying 3/4.

Thanks!

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Buildroot] [PATCH 3/4] toolchain: add 4.7.x choice for headers
  2016-07-24 23:56 ` [Buildroot] [PATCH 3/4] toolchain: add 4.7.x choice for headers Fabio Estevam
@ 2016-07-25 20:19   ` Thomas Petazzoni
  0 siblings, 0 replies; 8+ messages in thread
From: Thomas Petazzoni @ 2016-07-25 20:19 UTC (permalink / raw)
  To: buildroot

Hello,

On Sun, 24 Jul 2016 20:56:09 -0300, Fabio Estevam wrote:
> From: Fabio Estevam <fabio.estevam@nxp.com>
> 
> Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
> ---
>  toolchain/toolchain-common.in          | 5 +++++
>  toolchain/toolchain-external/Config.in | 4 ++++
>  2 files changed, 9 insertions(+)

Applied to master, thanks.

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Buildroot] [PATCH 4/4] configs: Add new configuration for i.MX6UL Pico board
  2016-07-24 23:56 ` [Buildroot] [PATCH 4/4] configs: Add new configuration for i.MX6UL Pico board Fabio Estevam
@ 2016-07-25 20:36   ` Thomas Petazzoni
  0 siblings, 0 replies; 8+ messages in thread
From: Thomas Petazzoni @ 2016-07-25 20:36 UTC (permalink / raw)
  To: buildroot

Hello,

On Sun, 24 Jul 2016 20:56:10 -0300, Fabio Estevam wrote:
> From: Fabio Estevam <fabio.estevam@nxp.com>
> 
> Add support for Technexion's i.MX6UL Pico board running U-boot 2016.07
> and kernel 4.7.
> 
> For information about this board, please visit:
> http://www.wandboard.org/images/hobbit/hobbitboard-imx6ul-reva1.pdf
> 
> Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
> ---
>  board/technexion/imx6ulpico/genimage.cfg  | 41 +++++++++++++++++++++
>  board/technexion/imx6ulpico/post-image.sh | 16 +++++++++
>  board/technexion/imx6ulpico/readme.txt    | 59 +++++++++++++++++++++++++++++++
>  configs/imx6ulpico_defconfig              | 34 ++++++++++++++++++
>  4 files changed, 150 insertions(+)
>  create mode 100644 board/technexion/imx6ulpico/genimage.cfg
>  create mode 100755 board/technexion/imx6ulpico/post-image.sh
>  create mode 100644 board/technexion/imx6ulpico/readme.txt
>  create mode 100644 configs/imx6ulpico_defconfig

Applied to master, thanks.

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2016-07-25 20:36 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-24 23:56 [Buildroot] [PATCH 1/4] linux kernel: bump default to version 4.7 Fabio Estevam
2016-07-24 23:56 ` [Buildroot] [PATCH 2/4] linux-headers: " Fabio Estevam
2016-07-25 20:19   ` Thomas Petazzoni
2016-07-24 23:56 ` [Buildroot] [PATCH 3/4] toolchain: add 4.7.x choice for headers Fabio Estevam
2016-07-25 20:19   ` Thomas Petazzoni
2016-07-24 23:56 ` [Buildroot] [PATCH 4/4] configs: Add new configuration for i.MX6UL Pico board Fabio Estevam
2016-07-25 20:36   ` Thomas Petazzoni
2016-07-25 20:18 ` [Buildroot] [PATCH 1/4] linux kernel: bump default to version 4.7 Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox