[Doubt] PPC Linux Device Tree Update
Scott Wood
scottwood at freescale.com
Tue Jun 12 06:14:16 EST 2012
On 06/11/2012 02:52 AM, Kay One wrote:
> Hi All,
>
> Currently I am working on p1020rdb soc for some kernel bringing up activity.
> I have come across one requirement to update the memory map (MMAP) of
> kernel from evaluation board to
> some other board who is having the same soc.
>
> for my eval board I have used the p1020rdb.dts file from 2.6.38 standard
> kernel source.
Why not start with the latest version?
> (PFA) which is working almost fine.
> But, I am really not able to find the following mapping as a part of the
> attached dts file what I am using.
> Can anyone please point me out that dts file is the only one to search
> out following base addresses selected in memory map or is there
> some specific file of kernel inside which I will be able to search
> through to find the following base addresses?
>
> FFFF_F000 4 KB .bootpg
This is not expressed in the device tree, though it is marked reserved
by U-Boot in the reserve map (part of the dtb, but not part of the
actual tree).
> FFE0_0000 1 MB CCSR
That's the "soc" node.
> EC00_0000 64 MB Flash + alias
/localbus at ffe05000/nor at 0,0/
...but it's at 0xef00_0000 according to the tree you attached.
Read the ePAPR spec for a description of how the ranges property works.
> 8000_0000 1 GB PCI[1:2] mem
> FFC0_0000 256 KB PCI[1:2] I/O
These are encoded in the ranges property of the relevant PCIe node (see
version 1.0 of the ePAPR spec for how), but I don't see one with those
specific addresses. I don't know what the [1:2] is supposed to mean.
> FFB0_0000 1 MB VTSS
/localbus at ffe05000/L2switch at 2,0/
> FFA0_0000 1 MB CPLD
Not represented in the device tree. The device tree shows NAND at this
address.
> FF80_0000 1 MB NAND
/localbus at ffe05000/nand at 1,0/
...but with a different address, as noted above.
> 0000_0000 1 GB DDR
/memory
U-Boot fills in the reg property.
-Scott
More information about the Linuxppc-dev
mailing list