Running Barebox in Barebox.

Sascha Hauer s.hauer at pengutronix.de
Mon Nov 28 09:59:57 EST 2011


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 at 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 at 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 |



More information about the barebox mailing list