From: Eric Nelson <eric.nelson@boundarydevices.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 2/4] nitrogen6x: use 6x_bootscript/6x_upgrade instead of older 6q_ versions
Date: Thu, 26 Sep 2013 08:13:56 -0700 [thread overview]
Message-ID: <52444F34.1060308@boundarydevices.com> (raw)
In-Reply-To: <87r4cb7ip6.fsf@dell.be.48ers.dk>
Hi Peter,
On 09/26/2013 07:37 AM, Peter Korsgaard wrote:
>>>>>> "Eric" == Eric Nelson <eric.nelson@boundarydevices.com> writes:
>
> Hi Eric,
>
> Eric> Signed-off-by: Eric Nelson <eric.nelson@boundarydevices.com>
>
> Eric> +++ b/board/boundarydevices/nitrogen6x/post-build.sh
> Eric> @@ -1,18 +1,20 @@
> Eric> #!/bin/sh
> Eric> # post-build fixups
> Eric> -# for furthe details, see
> Eric> -# http://boundarydevices.com/u-boot-conventions-for-i-mx6-nitrogen6x-and-sabrelite/
> Eric> +# for further details, see
> Eric> +#
> Eric> +# http://boundarydevices.com/u-boot-on-i-mx6/
> Eric> +#
>
> Eric> TARGET_DIR=$1
> Eric> IMAGES_DIR=$1/../images
> Eric> BOARD_DIR="$(dirname $0)"
>
> Eric> # bd u-boot looks for bootscript here
> Eric> -cp $BOARD_DIR/6q_bootscript $TARGET_DIR
> Eric> +cp $BOARD_DIR/6x_bootscript $TARGET_DIR
>
> Eric> # u-boot / update script for bd upgradeu command
> Eric> -if [ -e $IMAGES_DIR/u-boot.bin ];
> Eric> +if [ -e $IMAGES_DIR/u-boot.imx ];
> Eric> then
> Eric> - cp $IMAGES_DIR/u-boot.bin $TARGET_DIR
> Eric> - cp $BOARD_DIR/6q_upgrade $TARGET_DIR
> Eric> + cp $IMAGES_DIR/u-boot.imx $TARGET_DIR
> Eric> + cp $BOARD_DIR/6x_upgrade $TARGET_DIR
>
> Hmm, how is that supposed to work? I don't know the details of the imx6
> boot sequence, but:
>
> - We don't currently have an option in the u-boot package to install
> u-boot.imx to IMAGES_DIR/, so this will never run
>
> - Comparing 6q_upgrade and 6x_upgrade I see we used to write the raw
> u-boot.bin to offset 0 in the spi flash, and now are writing
> u-boot.imx (which presumably is u-boot.bin with a freescale header) to
> offset 1K. I see that the .imx file is 4K bigger than the .bin
> file, so that's presumably the size of the freescale header.
>
The switch from "u-boot.bin" to "u-boot.imx" occurred when we
switched from using a Freescale-derived U-Boot 2009.08 to
main-line U-Boot sources (currently 2013.07).
Details in this post:
http://boundarydevices.com/switching-u-boot-versions-on-i-mx6/
> I'll go and add a option for u-boot.imx to the u-boot package, but would
> like to hear if 6x_upgrade is doing the right thing here.
>
A short description of the change is that Freescale's build process
generated u-boot.bin with 512 bytes of padding at the beginning,
while main-line U-Boot generates u-boot.imx without the padding.
There are also a handful of discrepancies in the syntax for
various commands between the two versions, especially in the
areas of SPI NOR (sf probe command), which prompted us to switch
the name of the upgrade script (6q_upgrade == old/6x_upgrade == new)
when switching to main-line based code.
Note that unlike many ARM-based boards out there, our devices boot
to SPI-NOR, so building U-Boot is a convenience. It's not needed
to build an SD card image and the choice of when to upgrade should
largely be based on the need for features or bug fixes and not
tied to each userspace build.
The 6x_bootscript is required though, and provides the distribution-
specifics of how/where to load kernel, DTS file, ram disk, et cetera.
Regards,
Eric
next prev parent reply other threads:[~2013-09-26 15:13 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-25 19:07 [Buildroot] [PATCH 0/4] i.MX6 and Nitrogen6x updates Eric Nelson
2013-09-25 19:07 ` [Buildroot] [PATCH 1/4] nitrogen6x: bump U-Boot to latest production version (2013.07) Eric Nelson
2013-09-26 19:19 ` Peter Korsgaard
2013-09-25 19:07 ` [Buildroot] [PATCH 2/4] nitrogen6x: use 6x_bootscript/6x_upgrade instead of older 6q_ versions Eric Nelson
2013-09-26 14:37 ` Peter Korsgaard
2013-09-26 15:13 ` Eric Nelson [this message]
2013-09-26 19:10 ` Peter Korsgaard
2013-09-26 20:20 ` Eric Nelson
2013-09-26 19:20 ` Peter Korsgaard
2013-09-25 19:07 ` [Buildroot] [PATCH 3/4] nitrogen6x: bump kernel to latest version (3.0.35-4.1.0) Eric Nelson
2013-09-26 19:20 ` Peter Korsgaard
2013-09-25 19:07 ` [Buildroot] [PATCH 4/4] i.MX6: Update Freescale hardware-acceleration bits to latest versions Eric Nelson
2013-09-26 19:36 ` Peter Korsgaard
2013-09-26 20:41 ` Eric Nelson
2013-10-01 6:20 ` Arnout Vandecappelle
2013-10-01 14:07 ` Eric Nelson
2013-10-01 19:42 ` Thomas Petazzoni
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=52444F34.1060308@boundarydevices.com \
--to=eric.nelson@boundarydevices.com \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox