Booting PPC Linux

Sascha Hauer s.hauer at pengutronix.de
Thu Mar 1 15:07:29 EST 2012


On Thu, Mar 01, 2012 at 07:41:35PM +0000, Renaud Barbier wrote:
> I have a uImage + dtb that use to boot on a MPC8544-like system
> a few months ago.
> 
> After rebasing my code, it did not work.
> 
> I notice that in arch/ppc/lib/ppclinux.c the kernel is now called
> with the device tree as a parameter.
> 
> After investigation, I copied the device tree to within 8MB of the
> kernel entry point (0x0). It booted.
> 
> Is the DTB relocation a missing step?

Yes, it seems so. barebox holds the device tree in malloced space. This
is likely outside 8MB of the kernel entry point. I was not aware of that
restriction.

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