mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* Running Barebox in Barebox.
@ 2011-11-28 14:25 Renaud Barbier
  2011-11-28 14:59 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Renaud Barbier @ 2011-11-28 14:25 UTC (permalink / raw)
  To: barebox

I have seen an example of tftp loading barebox in /dev/ram0
and then running it with the go command.

Is that something that has been tested with the MPC5200?

Else is there a good example to achieve this?

Cheers.

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

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

* Re: Running Barebox in Barebox.
  2011-11-28 14:25 Running Barebox in Barebox Renaud Barbier
@ 2011-11-28 14:59 ` Sascha Hauer
  0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2011-11-28 14:59 UTC (permalink / raw)
  To: Renaud Barbier; +Cc: barebox

Hi Renaud,

On Mon, Nov 28, 2011 at 02:25:20PM +0000, Renaud Barbier wrote:
> I have seen an example of tftp loading barebox in /dev/ram0
> and then running it with the go command.

Yes, this works on most boards.

> 
> Is that something that has been tested with the MPC5200?

This should work since

commit 1c9c937a6ac34c4d41fa70d0339f546f40b6c6d5
Author: Sascha Hauer <s.hauer@pengutronix.de>
Date:   Mon Sep 26 17:29:51 2011 +0200

    ppc mpc5200b: cleanup lowlevel startup
    
    The old startup process consisted of several CFG_LOWBOOT,
    CFG_RAMBOOT ifdeffery which I do not understand. So remove
    all this and replace it with:
    
    - put the entry point for second stage loaders to offset 0x0
      so that we can do a go /dev/ram0 to start a second barebox
    - When we come from the reset vector assume MBAR is at 0x80000000
    - When we come from the second stage entry assume that
      SPR 311 is in sync with the current MBAR address.
    - Switch MBAR to 0xf0000000 and we are done.
    
    Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>

Just tested on current master and this works for me.

Sascha


-- 
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:[~2011-11-28 15:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-11-28 14:25 Running Barebox in Barebox Renaud Barbier
2011-11-28 14:59 ` Sascha Hauer

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