From: Hans de Goede <hdegoede@redhat.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH sunxi-tools v2 0/2] Support unified u-boot SPL for SD cards and FEL mode
Date: Tue, 10 Feb 2015 09:21:59 +0100 [thread overview]
Message-ID: <54D9BFA7.80508@redhat.com> (raw)
In-Reply-To: <1423449442-3135-1-git-send-email-siarhei.siamashka@gmail.com>
Hi,
On 09-02-15 03:37, Siarhei Siamashka wrote:
> An updated variant of the older patch
> http://lists.denx.de/pipermail/u-boot/2015-February/204024.html
>
> These patches are not for the u-boot code (unless u-boot decides to
> cannibalize the 'fel' tool later) but still provide a glue layerHi,
> between the Allwinner BROM code and the u-boot SPL code. And need
> to play nice with both of them.
>
> The updated 'fel' tool is supposed to be used together with u-boot
> v2015.04 and provide support for booting regular u-boot SPL binaries
> over USB via FEL mode. So that a special u-boot sunxi FEL configuration
> can be eventually dropped in the future.
>
> The usage instructions are in the 'New method of booting u-boot over USB
> (u-boot v2015.04 and later versions)' section of the linux-sunxi wiki page
> http://linux-sunxi.org/index.php?title=FEL/USBBoot&oldid=12979
>
> It temporarily moves the BROM data from the first 32 KiB of SRAM into
> a different SRAM section before calling the SPL code. And then moves
> it back before returning from the SPL back to the FEL code in BROM.
> This provides a contiguous 32 KiB block in the beginning of SRAM for
> use by the SPL. And in the case if an extra SRAM section is not
> available, we can at least "defragmemnt" the free memory areas
> and still provide a contiguous ~21 KiB block to the SPL in the
> beginning of SRAM.
>
> This code is also available in the following branch:
> https://github.com/ssvb/sunxi-tools/commits/20150206-fel-large-spl-support
>
> Siarhei Siamashka (2):
> fel: Split 'aw_fel_get_version' into 'get' and 'print' variants
> fel: New command for loading U-Boot SPL binaries in eGON format
>
> fel-to-spl-thunk.S | 172 +++++++++++++++++++++++++++++++
> fel-to-spl-thunk.h | 69 +++++++++++++
> fel.c | 291 +++++++++++++++++++++++++++++++++++++++++++++++++----
> 3 files changed, 510 insertions(+), 22 deletions(-)
> create mode 100644 fel-to-spl-thunk.S
> create mode 100644 fel-to-spl-thunk.h
Thanks for your work on this, ACK to both patches, feel free to push them.
One question, the new wiki instructions say that for the latest upstream u-boot
_felconfig is no longer necessary, but Simon's patches to fix FEL support upstream
contain some #ifdef FEL in start.S to skip some lowlevel init when in FEL mode,
does that mean that skipping this is no longer necessary ?
Regards,
Hans
next prev parent reply other threads:[~2015-02-10 8:21 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-09 2:37 [U-Boot] [PATCH sunxi-tools v2 0/2] Support unified u-boot SPL for SD cards and FEL mode Siarhei Siamashka
2015-02-09 2:37 ` [U-Boot] [PATCH sunxi-tools v2 1/2] fel: Split 'aw_fel_get_version' into 'get' and 'print' variants Siarhei Siamashka
2015-02-09 2:37 ` [U-Boot] [PATCH sunxi-tools v2 2/2] fel: New command for loading U-Boot SPL binaries in eGON format Siarhei Siamashka
2015-02-09 22:14 ` [U-Boot] [PATCH sunxi-tools v2 0/2] Support unified u-boot SPL for SD cards and FEL mode Simon Glass
2015-02-11 3:01 ` Siarhei Siamashka
2015-02-10 8:21 ` Hans de Goede [this message]
2015-02-11 3:06 ` Siarhei Siamashka
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=54D9BFA7.80508@redhat.com \
--to=hdegoede@redhat.com \
--cc=u-boot@lists.denx.de \
/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