U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot-Users] Does ft_dump_blob() work for anyone?
@ 2007-01-23 16:10 Timur Tabi
  2007-01-23 16:40 ` Jerry Van Baren
  2007-01-23 16:42 ` Ben Warren
  0 siblings, 2 replies; 5+ messages in thread
From: Timur Tabi @ 2007-01-23 16:10 UTC (permalink / raw)
  To: u-boot

I'm trying to debug some problems with ft_setup(), and when I call 
ft_dump_blob(), I get output like this:

recieved oftree
/ {
     model = [00 00 00 00 4d 50 43 38 33 34 39 45 4d];
      ** Unknown tag 0x00000000 at 0xfd9d05c
final OF-tree
/memreserve/ 1 0;
/ {
     model = [00 00 00 00 4d 50 43 38 33 34 39 45 4d];
      ** Unknown tag 0x00000000 at 0xfd9d06c
/memreserve/ 1 0;
/ {
     model = [00 00 00 00 4d 50 43 38 33 34 39 45 4d];
      ** Unknown tag 0x00000000 at 0xfd9d06c

Obviously, it's hard to debug OF code without this function working.  I believe 
the bug is somewhere in this code:

		sz = be32_to_cpu(*p++);
		s = (const char *)p_strings + be32_to_cpu(*p++);
		t = (const char *)p;
		p = (const u32 *)_ALIGN((unsigned long)p + sz, 4);


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.

-- 
Timur Tabi
Linux Kernel Developer @ Freescale

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2007-01-23 17:06 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-23 16:10 [U-Boot-Users] Does ft_dump_blob() work for anyone? Timur Tabi
2007-01-23 16:40 ` Jerry Van Baren
2007-01-23 17:02   ` Timur Tabi
2007-01-23 17:06     ` Jon Loeliger
2007-01-23 16:42 ` Ben Warren

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox