linux powerpc and device trees

Josh Boyer jwboyer at gmail.com
Sat May 24 03:49:40 EST 2008


On Fri, 23 May 2008 14:53:44 +0000
- Reyneke <reynekejunk at hotmail.com> wrote:

> memory {
> device_type = "memory";
> reg = ; /* Filled in by zImage */
> };
> 
> This is where I am unclear as to how to prepare the device tree. Is step (4) correct since I'm using uImage? Where is the memory information suppose to come from? Previously U-boot passes this kind of data to the kernel via bd_t - how does it work now using device trees?

As others have noted, U-Boot can fill in the device tree parts that are
missing if your version of U-Boot is FDT capable.  If not, you need to
use a cuImage wrapper to do that part for you.  See
arch/powerpc/boot/cuboot-sequoia.c for examples.

josh


More information about the Linuxppc-embedded mailing list