All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH v2 0/2] i.MX28 EVK
@ 2015-03-22 13:25 Arnout Vandecappelle
  2015-03-22 13:25 ` [Buildroot] [PATCH v2 1/2] boot/uboot: add support for i.MX28 SD format Arnout Vandecappelle
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Arnout Vandecappelle @ 2015-03-22 13:25 UTC (permalink / raw)
  To: buildroot

This is a repost of the series by Vincent Stehl? with some minor fixes.

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

* [Buildroot] [PATCH v2 1/2] boot/uboot: add support for i.MX28 SD format
  2015-03-22 13:25 [Buildroot] [PATCH v2 0/2] i.MX28 EVK Arnout Vandecappelle
@ 2015-03-22 13:25 ` Arnout Vandecappelle
  2015-03-22 21:02   ` Jörg Krause
  2015-03-24  7:37   ` Jörg Krause
  2015-03-22 13:25 ` [Buildroot] [PATCH v2 2/2] config: Add defconfig for Freescale i.MX28 EVK Arnout Vandecappelle
  2015-04-03 15:26 ` [Buildroot] [PATCH v2 0/2] i.MX28 EVK Thomas Petazzoni
  2 siblings, 2 replies; 9+ messages in thread
From: Arnout Vandecappelle @ 2015-03-22 13:25 UTC (permalink / raw)
  To: buildroot

From: Vincent Stehl? <vincent.stehle@freescale.com>

Allow to generate u-boot.sd, Freescale i.MX28 SB format with a header for
booting from an SD card.

U-boot includes an mxsboot tool to generate this format, starting from
v2011.12.

See u-boot doc/README.mxs (or doc/README.mx28_common before 2013.07).

[Arnout:
 - Wrap Config.in help text at 72 columns.
 - Remove v from U-Boot version specifier.
 - Refer to different README name before 2013.07.
 - Depend on host-elftosb
 - Add comment to clarify sb -> sd conversion.]

Signed-off-by: Vincent Stehl? <vincent.stehle@freescale.com>
Tested-by: J?rg Krause <joerg.krause@embedded.rocks>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
---
 boot/uboot/Config.in | 12 ++++++++++++
 boot/uboot/uboot.mk  |  7 +++++++
 2 files changed, 19 insertions(+)

diff --git a/boot/uboot/Config.in b/boot/uboot/Config.in
index 03e6acc..3f39ee8 100644
--- a/boot/uboot/Config.in
+++ b/boot/uboot/Config.in
@@ -117,6 +117,18 @@ config BR2_TARGET_UBOOT_FORMAT_SB
 	depends on BR2_arm
 	bool "u-boot.sb"
 
+config BR2_TARGET_UBOOT_FORMAT_SD
+	depends on BR2_arm
+	bool "u-boot.sd"
+	help
+	  This is Freescale i.MX28 SB format, with a header for booting
+	  from an SD card.
+
+	  U-boot includes an mxsboot tool to generate this format,
+	  starting from 2011.12.
+
+	  See doc/README.mxs (or doc/README.mx28_common before 2013.07)
+
 config BR2_TARGET_UBOOT_FORMAT_CUSTOM
 	bool "Custom (specify below)"
 	help
diff --git a/boot/uboot/uboot.mk b/boot/uboot/uboot.mk
index a9ba054..630619a 100644
--- a/boot/uboot/uboot.mk
+++ b/boot/uboot/uboot.mk
@@ -49,6 +49,11 @@ else ifeq ($(BR2_TARGET_UBOOT_FORMAT_SB),y)
 UBOOT_BIN = u-boot.sb
 UBOOT_MAKE_TARGET = $(UBOOT_BIN)
 UBOOT_DEPENDENCIES += host-elftosb
+else ifeq ($(BR2_TARGET_UBOOT_FORMAT_SD),y)
+# BootStream (.sb) is generated by U-Boot, we convert it to SD format
+UBOOT_BIN = u-boot.sd
+UBOOT_MAKE_TARGET = u-boot.sb
+UBOOT_DEPENDENCIES += host-elftosb
 else ifeq ($(BR2_TARGET_UBOOT_FORMAT_CUSTOM),y)
 UBOOT_BIN = $(call qstrip,$(BR2_TARGET_UBOOT_FORMAT_CUSTOM_NAME))
 else
@@ -116,6 +121,8 @@ define UBOOT_BUILD_CMDS
 	$(TARGET_CONFIGURE_OPTS) 	\
 		$(MAKE) -C $(@D) $(UBOOT_MAKE_OPTS) 		\
 		$(UBOOT_MAKE_TARGET)
+	$(if $(BR2_TARGET_UBOOT_FORMAT_SD),
+		$(@D)/tools/mxsboot sd $(@D)/u-boot.sb $(@D)/u-boot.sd)
 endef
 
 define UBOOT_BUILD_OMAP_IFT
-- 
2.1.4

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

* [Buildroot] [PATCH v2 2/2] config: Add defconfig for Freescale i.MX28 EVK
  2015-03-22 13:25 [Buildroot] [PATCH v2 0/2] i.MX28 EVK Arnout Vandecappelle
  2015-03-22 13:25 ` [Buildroot] [PATCH v2 1/2] boot/uboot: add support for i.MX28 SD format Arnout Vandecappelle
@ 2015-03-22 13:25 ` Arnout Vandecappelle
  2015-04-04 18:17   ` [Buildroot] [PATCH] freescale_imx28evk_defconfig: select headers 3.19 Vincent Stehle
  2015-04-03 15:26 ` [Buildroot] [PATCH v2 0/2] i.MX28 EVK Thomas Petazzoni
  2 siblings, 1 reply; 9+ messages in thread
From: Arnout Vandecappelle @ 2015-03-22 13:25 UTC (permalink / raw)
  To: buildroot

From: Vincent Stehl? <vincent.stehle@freescale.com>

The i.MX28 Evaluation Kit (or EVK) is Freescale's evaluation board based on the
i.MX287 Applications Processor.

This defconfig is based on mainline u-boot and Linux kernel.

Also, we add an SD card creation script and documentation, shamelessly based on
the ones for i.MX5/6 by Luca Ceresoli.

[Arnout: fixate U-Boot and kernel (headers) versions]

Signed-off-by: Vincent Stehl? <vincent.stehle@freescale.com>
Cc: Luca Ceresoli <luca@lucaceresoli.net>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
---
 board/freescale/imx28evk/create-boot-sd.sh | 97 ++++++++++++++++++++++++++++++
 board/freescale/imx28evk/readme.txt        | 58 ++++++++++++++++++
 configs/freescale_imx28evk_defconfig       | 25 ++++++++
 3 files changed, 180 insertions(+)
 create mode 100755 board/freescale/imx28evk/create-boot-sd.sh
 create mode 100644 board/freescale/imx28evk/readme.txt
 create mode 100644 configs/freescale_imx28evk_defconfig

diff --git a/board/freescale/imx28evk/create-boot-sd.sh b/board/freescale/imx28evk/create-boot-sd.sh
new file mode 100755
index 0000000..5e050cb
--- /dev/null
+++ b/board/freescale/imx28evk/create-boot-sd.sh
@@ -0,0 +1,97 @@
+#!/bin/sh
+
+set -u
+set -e
+
+PROGNAME=$(basename $0)
+
+usage()
+{
+    echo "Create an SD card that boots on an i.MX28 EVK board."
+    echo
+    echo "Note: all data on the the card will be completely deleted!"
+    echo "Use with care!"
+    echo "Superuser permissions may be required to write to the device."
+    echo
+    echo "Usage: ${PROGNAME} <sd_block_device>"
+    echo "Arguments:"
+    echo "  <sd_block_device>     The device to be written to"
+    echo
+    echo "Example: ${PROGNAME} /dev/mmcblk0"
+    echo
+}
+
+if [ $# -ne 1 ]; then
+    usage
+    exit 1
+fi
+
+if [ $(id -u) -ne 0 ]; then
+    echo "${PROGNAME} must be run as root"
+    exit 1
+fi
+
+DEV=${1}
+
+# The partition name prefix depends on the device name:
+# - /dev/sde -> /dev/sde1
+# - /dev/mmcblk0 -> /dev/mmcblk0p1
+if echo ${DEV}|grep -q mmcblk ; then
+    PART="p"
+else
+    PART=""
+fi
+
+PART1=${DEV}${PART}1
+PART2=${DEV}${PART}2
+PART3=${DEV}${PART}3
+
+# Unmount the partitions if mounted
+umount ${PART1} || true
+umount ${PART2} || true
+umount ${PART3} || true
+
+# First, clear the card
+dd if=/dev/zero of=${DEV} bs=1M count=20
+
+sync
+
+# Partition the card.
+# SD layout for i.MX28 boot:
+# - Special partition type 53 at sector 2048, containing an SD-SB-encapsulated u-boot
+# - FAT partition containing zImage
+# - ext2/3 partition formatted as ext2 or ext3, containing the root filesystem.
+sfdisk --force -u S ${DEV} <<EOF
+2048,2000,53
+4048,16000,b
+20048,,L
+EOF
+
+sync
+
+# Copy the bootloader@offset 2048
+# (We need to skip the partition table in the .sd, too.)
+dd if=output/images/u-boot.sd of=${DEV}1 bs=1M
+
+# Prepare a temp dir for mounting partitions
+TMPDIR=$(mktemp -d)
+ 
+# FAT partition: kernel
+mkfs.vfat ${PART2}
+mount ${PART2} ${TMPDIR}
+cp output/images/*Image ${TMPDIR}/
+cp output/images/*.dtb  ${TMPDIR}/ || true
+sync
+umount ${TMPDIR}
+
+# ext2 partition: root filesystem
+mkfs.ext2 ${PART3}
+mount ${PART3} ${TMPDIR}
+tar -C ${TMPDIR}/ -xf output/images/rootfs.tar
+sync
+umount ${TMPDIR}
+
+# Cleanup
+rmdir ${TMPDIR}
+sync
+echo Done
diff --git a/board/freescale/imx28evk/readme.txt b/board/freescale/imx28evk/readme.txt
new file mode 100644
index 0000000..cbf6aae
--- /dev/null
+++ b/board/freescale/imx28evk/readme.txt
@@ -0,0 +1,58 @@
+**************************
+Freescale i.MX28 EVK board
+**************************
+
+This file documents the Buildroot support for the Freescale i.MX28 EVK board.
+
+Read the i.MX28 Evaluation Kit Quick Start Guide [1] for an introduction to the
+board.
+
+Build
+=====
+
+First, configure Buildroot for your i.MX28 EVK board:
+
+  make freescale_imx28evk_defconfig
+
+Build all components:
+
+  make
+
+You will find in ./output/images/ the following files:
+  - imx28-evk.dtb
+  - rootfs.tar
+  - u-boot.sd
+  - zImage
+
+Create a bootable SD card
+=========================
+
+To determine the device associated to the SD card have a look in the
+/proc/partitions file:
+
+  cat /proc/partitions
+
+Run the following script as root on your SD card. This will partition the card
+and copy the bootloader, kernel and root filesystem as needed.
+
+*** WARNING! The script will destroy all the card content. Use with care! ***
+
+  ./board/freescale/imx28evk/create-boot-sd.sh <your-sd-device>
+
+Boot the i.MX28 EVK board
+=========================
+
+To boot your newly created system (refer to the i.MX28 EVK Quick Start Guide
+[1] for guidance):
+- insert the SD card in the SD Card Socket 0 of the board;
+- verify that your i.MX28 EVK board jumpers and switches are set as mentioned
+  in the i.MX28 EVK Quick Start Guide [1];
+- connect an RS232 UART cable to the Debug UART Port and connect using a
+  terminal emulator at 115200 bps, 8n1;
+- power on the board.
+
+Enjoy!
+
+References
+==========
+[1] http://cache.freescale.com/files/32bit/doc/user_guide/EVK_imx28_QuickStart.pdf
diff --git a/configs/freescale_imx28evk_defconfig b/configs/freescale_imx28evk_defconfig
new file mode 100644
index 0000000..7125cec
--- /dev/null
+++ b/configs/freescale_imx28evk_defconfig
@@ -0,0 +1,25 @@
+# architecture
+BR2_arm=y
+BR2_arm926t=y
+
+# toolchain
+BR2_KERNEL_HEADERS_VERSION=y
+BR2_DEFAULT_KERNEL_VERSION="3.19.2"
+
+# system
+BR2_TARGET_GENERIC_GETTY_PORT="ttyAMA0"
+
+# kernel
+BR2_LINUX_KERNEL=y
+BR2_LINUX_KERNEL_SAME_AS_HEADERS=y
+BR2_LINUX_KERNEL_DEFCONFIG="mxs"
+BR2_LINUX_KERNEL_ZIMAGE=y
+BR2_LINUX_KERNEL_DTS_SUPPORT=y
+BR2_LINUX_KERNEL_INTREE_DTS_NAME="imx28-evk"
+
+# bootloader
+BR2_TARGET_UBOOT=y
+BR2_TARGET_UBOOT_BOARDNAME="mx28evk"
+BR2_TARGET_UBOOT_CUSTOM_VERSION=y
+BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2015.01"
+BR2_TARGET_UBOOT_FORMAT_SD=y
-- 
2.1.4

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

* [Buildroot] [PATCH v2 1/2] boot/uboot: add support for i.MX28 SD format
  2015-03-22 13:25 ` [Buildroot] [PATCH v2 1/2] boot/uboot: add support for i.MX28 SD format Arnout Vandecappelle
@ 2015-03-22 21:02   ` Jörg Krause
  2015-03-22 21:15     ` Jörg Krause
  2015-03-24  7:37   ` Jörg Krause
  1 sibling, 1 reply; 9+ messages in thread
From: Jörg Krause @ 2015-03-22 21:02 UTC (permalink / raw)
  To: buildroot

Hi Arnout,

On So, 2015-03-22 at 14:25 +0100, Arnout Vandecappelle (Essensium/Mind)
wrote:
> From: Vincent Stehl? <vincent.stehle@freescale.com>
> 
> Allow to generate u-boot.sd, Freescale i.MX28 SB format with a header for
> booting from an SD card.
> 
> U-boot includes an mxsboot tool to generate this format, starting from
> v2011.12.
> 
> See u-boot doc/README.mxs (or doc/README.mx28_common before 2013.07).
> 
> [Arnout:
>  - Wrap Config.in help text at 72 columns.
>  - Remove v from U-Boot version specifier.
>  - Refer to different README name before 2013.07.
>  - Depend on host-elftosb

host-elftosb is not necessary anymore. BootStream support has been
merged upstream and it's not necessary to convert the u-boot binary with
elftosb. This should be removed for u-boot.sb make target as well. 

>  - Add comment to clarify sb -> sd conversion.]
> 
> Signed-off-by: Vincent Stehl? <vincent.stehle@freescale.com>
> Tested-by: J?rg Krause <joerg.krause@embedded.rocks>
> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
> Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
> ---
>  boot/uboot/Config.in | 12 ++++++++++++
>  boot/uboot/uboot.mk  |  7 +++++++
>  2 files changed, 19 insertions(+)
> 
> diff --git a/boot/uboot/Config.in b/boot/uboot/Config.in
> index 03e6acc..3f39ee8 100644
> --- a/boot/uboot/Config.in
> +++ b/boot/uboot/Config.in
> @@ -117,6 +117,18 @@ config BR2_TARGET_UBOOT_FORMAT_SB
>  	depends on BR2_arm
>  	bool "u-boot.sb"
>  
> +config BR2_TARGET_UBOOT_FORMAT_SD
> +	depends on BR2_arm
> +	bool "u-boot.sd"
> +	help
> +	  This is Freescale i.MX28 SB format, with a header for booting

i.MX28 BootStream (.sb) format

> +	  from an SD card.
> +
> +	  U-boot includes an mxsboot tool to generate this format,
> +	  starting from 2011.12.
> +
> +	  See doc/README.mxs (or doc/README.mx28_common before 2013.07)
> +
>  config BR2_TARGET_UBOOT_FORMAT_CUSTOM
>  	bool "Custom (specify below)"
>  	help
> diff --git a/boot/uboot/uboot.mk b/boot/uboot/uboot.mk
> index a9ba054..630619a 100644
> --- a/boot/uboot/uboot.mk
> +++ b/boot/uboot/uboot.mk
> @@ -49,6 +49,11 @@ else ifeq ($(BR2_TARGET_UBOOT_FORMAT_SB),y)
>  UBOOT_BIN = u-boot.sb
>  UBOOT_MAKE_TARGET = $(UBOOT_BIN)
>  UBOOT_DEPENDENCIES += host-elftosb
> +else ifeq ($(BR2_TARGET_UBOOT_FORMAT_SD),y)
> +# BootStream (.sb) is generated by U-Boot, we convert it to SD format
> +UBOOT_BIN = u-boot.sd
> +UBOOT_MAKE_TARGET = u-boot.sb
> +UBOOT_DEPENDENCIES += host-elftosb
>  else ifeq ($(BR2_TARGET_UBOOT_FORMAT_CUSTOM),y)
>  UBOOT_BIN = $(call qstrip,$(BR2_TARGET_UBOOT_FORMAT_CUSTOM_NAME))
>  else
> @@ -116,6 +121,8 @@ define UBOOT_BUILD_CMDS
>  	$(TARGET_CONFIGURE_OPTS) 	\
>  		$(MAKE) -C $(@D) $(UBOOT_MAKE_OPTS) 		\
>  		$(UBOOT_MAKE_TARGET)
> +	$(if $(BR2_TARGET_UBOOT_FORMAT_SD),
> +		$(@D)/tools/mxsboot sd $(@D)/u-boot.sb $(@D)/u-boot.sd)
>  endef
>  
>  define UBOOT_BUILD_OMAP_IFT

Best regards
J?rg

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

* [Buildroot] [PATCH v2 1/2] boot/uboot: add support for i.MX28 SD format
  2015-03-22 21:02   ` Jörg Krause
@ 2015-03-22 21:15     ` Jörg Krause
  2015-03-22 21:30       ` Jörg Krause
  0 siblings, 1 reply; 9+ messages in thread
From: Jörg Krause @ 2015-03-22 21:15 UTC (permalink / raw)
  To: buildroot

Hi Arnout,

On So, 2015-03-22 at 22:02 +0100, J?rg Krause wrote:
> Hi Arnout,
> 
> On So, 2015-03-22 at 14:25 +0100, Arnout Vandecappelle (Essensium/Mind)
> wrote:
> > From: Vincent Stehl? <vincent.stehle@freescale.com>
> > 
> > Allow to generate u-boot.sd, Freescale i.MX28 SB format with a header for
> > booting from an SD card.
> > 
> > U-boot includes an mxsboot tool to generate this format, starting from
> > v2011.12.
> > 
> > See u-boot doc/README.mxs (or doc/README.mx28_common before 2013.07).
> > 
> > [Arnout:
> >  - Wrap Config.in help text at 72 columns.
> >  - Remove v from U-Boot version specifier.
> >  - Refer to different README name before 2013.07.
> >  - Depend on host-elftosb
> 
> host-elftosb is not necessary anymore. BootStream support has been
> merged upstream and it's not necessary to convert the u-boot binary with
> elftosb. This should be removed for u-boot.sb make target as well. 

Sorry, I just saw your comment on this in the other mail. Would it make
sense to extract the version from the Makefile in uboots build
directory?

Best regards
J?rg

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

* [Buildroot] [PATCH v2 1/2] boot/uboot: add support for i.MX28 SD format
  2015-03-22 21:15     ` Jörg Krause
@ 2015-03-22 21:30       ` Jörg Krause
  0 siblings, 0 replies; 9+ messages in thread
From: Jörg Krause @ 2015-03-22 21:30 UTC (permalink / raw)
  To: buildroot

Hi Arnout,

On So, 2015-03-22 at 22:15 +0100, J?rg Krause wrote:
> Hi Arnout,
> 
> On So, 2015-03-22 at 22:02 +0100, J?rg Krause wrote:
> > Hi Arnout,
> > 
> > On So, 2015-03-22 at 14:25 +0100, Arnout Vandecappelle (Essensium/Mind)
> > wrote:
> > > From: Vincent Stehl? <vincent.stehle@freescale.com>
> > > 
> > > Allow to generate u-boot.sd, Freescale i.MX28 SB format with a header for
> > > booting from an SD card.
> > > 
> > > U-boot includes an mxsboot tool to generate this format, starting from
> > > v2011.12.
> > > 
> > > See u-boot doc/README.mxs (or doc/README.mx28_common before 2013.07).
> > > 
> > > [Arnout:
> > >  - Wrap Config.in help text at 72 columns.
> > >  - Remove v from U-Boot version specifier.
> > >  - Refer to different README name before 2013.07.
> > >  - Depend on host-elftosb
> > 
> > host-elftosb is not necessary anymore. BootStream support has been
> > merged upstream and it's not necessary to convert the u-boot binary with
> > elftosb. This should be removed for u-boot.sb make target as well. 
> 
> Sorry, I just saw your comment on this in the other mail. Would it make
> sense to extract the version from the Makefile in uboots build
> directory?
> 

Stupid idea from me, it's about build dependency. Please, forget this :)

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

* [Buildroot] [PATCH v2 1/2] boot/uboot: add support for i.MX28 SD format
  2015-03-22 13:25 ` [Buildroot] [PATCH v2 1/2] boot/uboot: add support for i.MX28 SD format Arnout Vandecappelle
  2015-03-22 21:02   ` Jörg Krause
@ 2015-03-24  7:37   ` Jörg Krause
  1 sibling, 0 replies; 9+ messages in thread
From: Jörg Krause @ 2015-03-24  7:37 UTC (permalink / raw)
  To: buildroot

On So, 2015-03-22 at 14:25 +0100, Arnout Vandecappelle (Essensium/Mind)
wrote:
> From: Vincent Stehl? <vincent.stehle@freescale.com>
> 
> Allow to generate u-boot.sd, Freescale i.MX28 SB format with a header for
> booting from an SD card.
> 
> U-boot includes an mxsboot tool to generate this format, starting from
> v2011.12.
> 
> See u-boot doc/README.mxs (or doc/README.mx28_common before 2013.07).
> 
> [Arnout:
>  - Wrap Config.in help text at 72 columns.
>  - Remove v from U-Boot version specifier.
>  - Refer to different README name before 2013.07.
>  - Depend on host-elftosb
>  - Add comment to clarify sb -> sd conversion.]
> 
> Signed-off-by: Vincent Stehl? <vincent.stehle@freescale.com>
> Tested-by: J?rg Krause <joerg.krause@embedded.rocks>
> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
> Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
> ---
>  boot/uboot/Config.in | 12 ++++++++++++
>  boot/uboot/uboot.mk  |  7 +++++++
>  2 files changed, 19 insertions(+)
> 
> diff --git a/boot/uboot/Config.in b/boot/uboot/Config.in
> index 03e6acc..3f39ee8 100644
> --- a/boot/uboot/Config.in
> +++ b/boot/uboot/Config.in
> @@ -117,6 +117,18 @@ config BR2_TARGET_UBOOT_FORMAT_SB
>  	depends on BR2_arm
>  	bool "u-boot.sb"
>  
> +config BR2_TARGET_UBOOT_FORMAT_SD
> +	depends on BR2_arm
> +	bool "u-boot.sd"
> +	help
> +	  This is Freescale i.MX28 SB format, with a header for booting
> +	  from an SD card.
> +
> +	  U-boot includes an mxsboot tool to generate this format,
> +	  starting from 2011.12.
> +
> +	  See doc/README.mxs (or doc/README.mx28_common before 2013.07)
> +
>  config BR2_TARGET_UBOOT_FORMAT_CUSTOM
>  	bool "Custom (specify below)"
>  	help
> diff --git a/boot/uboot/uboot.mk b/boot/uboot/uboot.mk
> index a9ba054..630619a 100644
> --- a/boot/uboot/uboot.mk
> +++ b/boot/uboot/uboot.mk
> @@ -49,6 +49,11 @@ else ifeq ($(BR2_TARGET_UBOOT_FORMAT_SB),y)
>  UBOOT_BIN = u-boot.sb
>  UBOOT_MAKE_TARGET = $(UBOOT_BIN)
>  UBOOT_DEPENDENCIES += host-elftosb
> +else ifeq ($(BR2_TARGET_UBOOT_FORMAT_SD),y)
> +# BootStream (.sb) is generated by U-Boot, we convert it to SD format
> +UBOOT_BIN = u-boot.sd
> +UBOOT_MAKE_TARGET = u-boot.sb
> +UBOOT_DEPENDENCIES += host-elftosb
>  else ifeq ($(BR2_TARGET_UBOOT_FORMAT_CUSTOM),y)
>  UBOOT_BIN = $(call qstrip,$(BR2_TARGET_UBOOT_FORMAT_CUSTOM_NAME))
>  else
> @@ -116,6 +121,8 @@ define UBOOT_BUILD_CMDS
>  	$(TARGET_CONFIGURE_OPTS) 	\
>  		$(MAKE) -C $(@D) $(UBOOT_MAKE_OPTS) 		\
>  		$(UBOOT_MAKE_TARGET)
> +	$(if $(BR2_TARGET_UBOOT_FORMAT_SD),
> +		$(@D)/tools/mxsboot sd $(@D)/u-boot.sb $(@D)/u-boot.sd)
>  endef
>  
>  define UBOOT_BUILD_OMAP_IFT

After understanding that host-elftosb is needed for older U-Boot versions:

Reviewed-by: J?rg Krause <joerg.krause@embedded.rocks>

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

* [Buildroot] [PATCH v2 0/2] i.MX28 EVK
  2015-03-22 13:25 [Buildroot] [PATCH v2 0/2] i.MX28 EVK Arnout Vandecappelle
  2015-03-22 13:25 ` [Buildroot] [PATCH v2 1/2] boot/uboot: add support for i.MX28 SD format Arnout Vandecappelle
  2015-03-22 13:25 ` [Buildroot] [PATCH v2 2/2] config: Add defconfig for Freescale i.MX28 EVK Arnout Vandecappelle
@ 2015-04-03 15:26 ` Thomas Petazzoni
  2 siblings, 0 replies; 9+ messages in thread
From: Thomas Petazzoni @ 2015-04-03 15:26 UTC (permalink / raw)
  To: buildroot

Dear Arnout Vandecappelle (Essensium/Mind),

On Sun, 22 Mar 2015 14:25:13 +0100, Arnout Vandecappelle
(Essensium/Mind) wrote:
> This is a repost of the series by Vincent Stehl_ with some minor fixes.

Both patches applied, thanks!

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

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

* [Buildroot] [PATCH] freescale_imx28evk_defconfig: select headers 3.19
  2015-03-22 13:25 ` [Buildroot] [PATCH v2 2/2] config: Add defconfig for Freescale i.MX28 EVK Arnout Vandecappelle
@ 2015-04-04 18:17   ` Vincent Stehle
  0 siblings, 0 replies; 9+ messages in thread
From: Vincent Stehle @ 2015-04-04 18:17 UTC (permalink / raw)
  To: buildroot

From: Vincent Stehl? <vincent.stehle@laposte.net>

We use a manually specified custom version 3.19.2 of the linux kernel
for i.MX28, but linux-headers defaults to a 2.6.x family.

Select custom headers family 3.19.x explicitely, to repair linux-headers
"build".

Signed-off-by: Vincent Stehl? <vincent.stehle@laposte.net>
Cc: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
---
 configs/freescale_imx28evk_defconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/configs/freescale_imx28evk_defconfig b/configs/freescale_imx28evk_defconfig
index 7125cec..9ce5217 100644
--- a/configs/freescale_imx28evk_defconfig
+++ b/configs/freescale_imx28evk_defconfig
@@ -5,6 +5,7 @@ BR2_arm926t=y
 # toolchain
 BR2_KERNEL_HEADERS_VERSION=y
 BR2_DEFAULT_KERNEL_VERSION="3.19.2"
+BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_3_19=y
 
 # system
 BR2_TARGET_GENERIC_GETTY_PORT="ttyAMA0"
-- 
2.1.4

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

end of thread, other threads:[~2015-04-04 18:17 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-22 13:25 [Buildroot] [PATCH v2 0/2] i.MX28 EVK Arnout Vandecappelle
2015-03-22 13:25 ` [Buildroot] [PATCH v2 1/2] boot/uboot: add support for i.MX28 SD format Arnout Vandecappelle
2015-03-22 21:02   ` Jörg Krause
2015-03-22 21:15     ` Jörg Krause
2015-03-22 21:30       ` Jörg Krause
2015-03-24  7:37   ` Jörg Krause
2015-03-22 13:25 ` [Buildroot] [PATCH v2 2/2] config: Add defconfig for Freescale i.MX28 EVK Arnout Vandecappelle
2015-04-04 18:17   ` [Buildroot] [PATCH] freescale_imx28evk_defconfig: select headers 3.19 Vincent Stehle
2015-04-03 15:26 ` [Buildroot] [PATCH v2 0/2] i.MX28 EVK Thomas Petazzoni

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.