libfdt queries

Varun Wadekar vwadekar at nvidia.com
Tue Nov 1 15:17:08 EST 2011


>> Found out the root cause. My bootloader was not manipulating the dtb
>> blob size properly and hence the final dtb was messed up. This resulted
>> in the kernel not finding proper fields inside the dtb.
> Ok.  You mean you were truncating the blob?

There is an internal function which actually copies the .dtb from a
partition on the eMMC to SDRAM before handing control to the kernel. I
forgot to set the proper size to be used after manipulating the command
line (since the command line size changed the copy routine should now
copy the updated size and should discard the old size).
>   Or you were manually
> (without libfdt) manipulating the size property somehow and messing
> that up?
>

libfdt was properly changing the size inside the blob, but I did not use
the updated size while copying the blob from eMMC to SDRAM.

-----------------------------------------------------------------------------------
This email message is for the sole use of the intended recipient(s) and may contain
confidential information.  Any unauthorized review, use, disclosure or distribution
is prohibited.  If you are not the intended recipient, please contact the sender by
reply email and destroy all copies of the original message.
-----------------------------------------------------------------------------------


More information about the devicetree-discuss mailing list