mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Michael Grzeschik <mgr@pengutronix.de>
To: Anand Gadiyar <gadiyar@gmail.com>
Cc: "U-Boot Version 2 (barebox)" <barebox@lists.infradead.org>
Subject: Re: Using barebox to replace u-boot on OMAPs
Date: Mon, 20 Sep 2010 08:59:33 +0200	[thread overview]
Message-ID: <20100920065933.GA20946@pengutronix.de> (raw)
In-Reply-To: <AANLkTi=pbGJYGCsbqOxtgrkRwJW8up2FKnHzHsgjg-bV@mail.gmail.com>

Hi Anand,

On Sun, Sep 19, 2010 at 06:07:46PM +0530, Anand Gadiyar wrote:
> What I'm trying to do now is to see if barebox can be used
> to replace u-boot on beagleboard, to load uImage directly.

yes, you can do this. We are currently working on a Step-by-Step manual
to explain how load barebox into the beagleboard. The easiest way, with
an preinstalled u-boot, is to do this with a fat formated sd card. You
can try the following steps:

In u-boot:

$ mmcinit
$ fatload mmc 0x0 0x80200000 barebox.bin
$ go 0x80200000

In barebox:

# tell the memory where your barebox image is,
# (we copied it to  0x80200000, so the offset is 0x200000)

$ addpart /dev/ram0 2M(data),1M(barebox)

# erase the old u-boot
$ addpart /dev/nand0 512k(xloader),1M(barebox)
$ nand -a /dev/nand0.barebox
$ erase /dev/nand0.barebox.bb

# write barebox into nand
$ memcpy -s /dev/ram0.barebox -d /dev/nand0.barebox.bb 0x0 0x0

> Specifically, I would like to know if it given barebox.bin and
> uImage are present at particular RAM locations, how to get
> barebox to locate the uImage in RAM?

To load barebox or linux images into ram, you can create partitions on
specified addresses. Just like in the above example you can memcpy from
partition to partition.

Cheers,
Michael

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

      reply	other threads:[~2010-09-20  6:59 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-19 12:37 Anand Gadiyar
2010-09-20  6:59 ` Michael Grzeschik [this message]

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=20100920065933.GA20946@pengutronix.de \
    --to=mgr@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    --cc=gadiyar@gmail.com \
    /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