[U-Boot-Users] Does ft_dump_blob() work for anyone?

Ben Warren bwarren at qstreams.com
Tue Jan 23 17:42:37 CET 2007


Timur,

On Tue, 2007-01-23 at 10:10 -0600, Timur Tabi wrote:
> I'm trying to debug some problems with ft_setup(), and when I call 
> ft_dump_blob(), I get output like this:

> 
> Notice, for instance, the 'model' node, how it displays 4 zeros first. 
> Obviously, the value of 't' above is incorrect.
> 
> Unfortunately, I don't know the binary layout of the DTB, so this will take me a 
> while to debug.  I was just wondering if anyone else is seeing these problems.
> 

I just added a call to ft_dump_blob() in my 'last_stage_init()', and got
this, which to me looks correct:

 {
    model = "QSPRISM";
    compatible = "QSPRISM";
    #address-cells = <1>;
    #size-cells = <1>;
    cpus {
        #cpus = <1>;
        #address-cells = <1>;
        #size-cells = <0>;
        PowerPC,8349 at 0 {
            device_type = "cpu";
...

The dtb was build on Friday using a same-day git-pull from www.jdl.com.
Sorry I can't help out other than to say that it might just be you...
Here's how the head of mine looks in binary form.  Maybe that would
help:

=> md fe080000
fe080000: d00dfeed 000015fe 00000038 00001438    ...........8...8
fe080010: 00000028 00000010 00000010 feedbeef    ...(............
fe080020: 000001c6 00000000 00000000 00000000    ................
fe080030: 00000000 00000000 00000001 00000000    ................
fe080040: 00000003 00000008 00000000 51535052    ............QSPR
fe080050: 49534d00 00000003 00000008 00000006    ISM.............
fe080060: 51535052 49534d00 00000003 00000004    QSPRISM.........
fe080070: 00000011 00000001 00000003 00000004    ................
fe080080: 00000020 00000001 00000001 63707573    ... ........cpus
fe080090: 00000000 00000003 00000004 0000002c    ...............,
fe0800a0: 00000001 00000003 00000004 00000011    ................
fe0800b0: 00000001 00000003 00000004 00000020    ...............
fe0800c0: 00000000 00000001 506f7765 7250432c    ........PowerPC,
fe0800d0: 38333439 40300000 00000003 00000004    8349 at 0..........
fe0800e0: 00000032 63707500 00000003 00000004    ...2cpu.........
fe0800f0: 0000003e 00000000 00000003 00000004    ...>............

regards,
Ben





More information about the U-Boot mailing list