U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Tom Rini <trini@ti.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] arm: add IPL support
Date: Tue, 10 Dec 2013 09:30:51 -0500	[thread overview]
Message-ID: <20131210143051.GE420@bill-the-cat> (raw)
In-Reply-To: <CAK65tU7Y+wDUqfPf=qhoxKYdowgAtqOvSWNRn=cT_V2ApqmOPw@mail.gmail.com>

On Mon, Dec 09, 2013 at 04:07:29PM +0800, Kuo-Jung Su wrote:
> 2013/12/6 Tom Rini <trini@ti.com>:
> > On Wed, Dec 04, 2013 at 11:50:48AM +0800, Kuo-Jung Su wrote:
> >
> >> Initial Program Loader (IPL) usually runs with .text and .rodata
> >> in ROM, while .data and .bss reside in RAM.
> >>
> >> This patch uses the AT keyword to specify load address,
> >> and a small code snippet in crt0.S to restore .data section
> >> at runtime.
> >>
> >> Example usage:
> >> Assume the target device has a 4KB ROM at 0x00000000 and a
> >> 4KB SRAM at 0xA0000000, the IPL/SPL config could be:
> >>
> >> #define CONFIG_SPL_MAX_SIZE  0x1000 /* text + data, no bss */
> >> #define CONFIG_SPL_TEXT_BASE 0x00000000
> >> #define CONFIG_SPL_DATA_BASE 0xA0000000
> >> #define CONFIG_SPL_STACK     0xA0001000
> >>
> >> Signed-off-by: Kuo-Jung Su <dantesu@gmail.com>
> >> Cc: Albert Aribaud <albert.u.boot@aribaud.net>
> >
> > Can you provide an example user of this functionality?  Thanks.
> >
> > --
> > Tom
> 
> If you're looking for a real device, unfortunately there is no such
> device right now,
> it's a shiny new design which just came out last week.
> 
> If you're looking for a way for verification:
> 
> 1. A real device with a NOR flash for ROM emulation. (e.g., Faraday A369 EVB)
> 
> 2. A virtual device emulator. (e.g., Qemu)
> 
>    This is the best option for you, the Qemu model for Faraday A369 is
> available at my github account.
>    Please use the command bellow to grab the source tree if necessary.
> 
>    $ git clone -b qemu-1.5.1 https://github.com/dantesu1218/qemu.git
>    $ cd qemu
>    $ ./configure --target-list=arm-softmmu
>    $ make
> 
>    The example IPL code for the up-coming Faraday A369 U-boot is also available:
> 
>    $ git clone -b u-boot-2014.01 https://github.com/dantesu1218/u-boot.git
>    $ cd u-boot
>    $ make a369evb_ipl_config
>    $ make
> 
>    You could also directly grab  the pre-built binaries for quick verification.
> 
>    $ wget https://drive.google.com/file/d/0BwfiewvSmUgAMlBnUkZQb3FMVkE/edit?usp=sharing
>    $ tar xf u-boot-a369-ipl.tar.bz2
>    $ cd u-boot-a369-ipl
>    $ make

What I'm asking for, is can you upstream the a369evb board?  In the
README in board/... you should just document how to use it via QEMU.
Thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20131210/13b8a493/attachment.pgp>

  reply	other threads:[~2013-12-10 14:30 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-04  3:50 [U-Boot] [PATCH] arm: add IPL support Kuo-Jung Su
2013-12-05 21:37 ` Tom Rini
2013-12-09  8:07   ` Kuo-Jung Su
2013-12-10 14:30     ` Tom Rini [this message]
2013-12-11  2:43       ` Kuo-Jung Su

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=20131210143051.GE420@bill-the-cat \
    --to=trini@ti.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