Skip to contentSkip to conversation

Running Barebox in Barebox.

DISCUSSION Renaud Barbier 2 participants 2 messages Nov 28, 2011

lore
Share & tools
lore
#1 lore raw

Hi Renaud,

Quoted 2 lines · Renaud Barbier

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.

Quoted 2 lines

Is that something that has been tested with the MPC5200?

This should work since

commit 1c9c937a6ac34c4d41fa70d0339f546f40b6c6d5

Author: Sascha Hauer <[email protected]>
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.

Just tested on current master and this works for me.

Sascha

Signature · 9 lines
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
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox