mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* Using barebox to replace u-boot on OMAPs
@ 2010-09-19 12:37 Anand Gadiyar
  2010-09-20  6:59 ` Michael Grzeschik
  0 siblings, 1 reply; 2+ messages in thread
From: Anand Gadiyar @ 2010-09-19 12:37 UTC (permalink / raw)
  To: U-Boot Version 2 (barebox)

Hi all,

I'm new to barebox and trying to play with it on a beagleboard.
So please bear with my newbie questions - I have tried to
search for documentation on this, but I wasn't successful.

I have been able to use barebox with the sandbox config
and figured out how to build a cramfs filesystem and modify
the default environment.

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.

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?

Thanks in advance for any pointers.

- Anand

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

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

* Re: Using barebox to replace u-boot on OMAPs
  2010-09-19 12:37 Using barebox to replace u-boot on OMAPs Anand Gadiyar
@ 2010-09-20  6:59 ` Michael Grzeschik
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Grzeschik @ 2010-09-20  6:59 UTC (permalink / raw)
  To: Anand Gadiyar; +Cc: U-Boot Version 2 (barebox)

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

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

end of thread, other threads:[~2010-09-20  6:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-19 12:37 Using barebox to replace u-boot on OMAPs Anand Gadiyar
2010-09-20  6:59 ` Michael Grzeschik

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox