mpc8349-mITX DTB load failure

2008-07-28 Thread Sparks, Sam
Hello All,

I am trying to boot the mpc8349-mITX board with Compact flash support,
and am unable to boot the Linux kernel. Here is the pertinant versioning
information:
DTC 1.2.0-rc2-g17773b0e
U-Boot 1.3.4-rc1-00012-g1953d12
Linux-2.6.26-05752-g93ded9b

I've built the DTB using the following two commands - neither change the
error I get during boot-up.
$ ../dtc/dtc -b 0 -I dts -O dtb -R 4 -S 0x3000 -o
/tftproot/ssparks/itx/cf2/itx.dtb -V 17
arch/powerpc/boot/dts/mpc8349emitx.dts
$ ../dtc/dtc -I dts -O dtb -o /tftproot/ssparks/itx/cf2/itx2.dtb
arch/powerpc/boot/dts/mpc8349emitx.dts

Can anyone shed any light onto what I am doing to cause the following
error? I haven't been able to find this error message in the mailing
list or by asking google...
## Booting kernel from Legacy Image at 01001000 ...
   Image Name:   Linux-2.6.26-05752-g93ded9b
   Created:  2008-07-24  20:40:59 UTC
   Image Type:   PowerPC Linux Kernel Image (gzip compressed)
   Data Size:1708661 Bytes =  1.6 MB
   Load Address: 
   Entry Point:  
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK
## Flattened Device Tree blob at 0100
   Booting using the fdt blob at 0x100
   Loading Device Tree to 007fb000, end 007ff526 ... OK
WARNING: could not create /chosen FDT_ERR_BADSTRUCTURE.
ERROR: /chosen node create failed - must RESET the board to recover.
Resetting the board.

Thanks for the help,
Sam

___
Linuxppc-dev mailing list
Linuxppc-dev@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-dev


Re: mpc8349-mITX DTB load failure

2008-07-28 Thread Grant Likely
On Mon, Jul 28, 2008 at 11:10:47AM -0500, Sparks, Sam wrote:
 Hello All,
 
 I am trying to boot the mpc8349-mITX board with Compact flash support,
 and am unable to boot the Linux kernel. Here is the pertinant versioning
 information:
 DTC 1.2.0-rc2-g17773b0e
 U-Boot 1.3.4-rc1-00012-g1953d12
 Linux-2.6.26-05752-g93ded9b
 
 I've built the DTB using the following two commands - neither change the
 error I get during boot-up.
 $ ../dtc/dtc -b 0 -I dts -O dtb -R 4 -S 0x3000 -o
 /tftproot/ssparks/itx/cf2/itx.dtb -V 17
 arch/powerpc/boot/dts/mpc8349emitx.dts
 $ ../dtc/dtc -I dts -O dtb -o /tftproot/ssparks/itx/cf2/itx2.dtb
 arch/powerpc/boot/dts/mpc8349emitx.dts

Try adding -p 0x3000 to ensure that you get padding to the blob.

g.

___
Linuxppc-dev mailing list
Linuxppc-dev@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-dev


RE: mpc8349-mITX DTB load failure

2008-07-28 Thread Sparks, Sam
 From: Grant Likely
 Sent: Monday, July 28, 2008 12:17 PM
 
 On Mon, Jul 28, 2008 at 11:10:47AM -0500, Sparks, Sam wrote:
  Hello All,
  
  I am trying to boot the mpc8349-mITX board with Compact 
 flash support, 
  and am unable to boot the Linux kernel. Here is the pertinant 
  versioning
  information:
  DTC 1.2.0-rc2-g17773b0e
  U-Boot 1.3.4-rc1-00012-g1953d12
  Linux-2.6.26-05752-g93ded9b
  
  I've built the DTB using the following two commands - 
 neither change 
  the error I get during boot-up.
  $ ../dtc/dtc -b 0 -I dts -O dtb -R 4 -S 0x3000 -o 
  /tftproot/ssparks/itx/cf2/itx.dtb -V 17 
  arch/powerpc/boot/dts/mpc8349emitx.dts
  $ ../dtc/dtc -I dts -O dtb -o /tftproot/ssparks/itx/cf2/itx2.dtb
  arch/powerpc/boot/dts/mpc8349emitx.dts
 
 Try adding -p 0x3000 to ensure that you get padding to the blob.
 
 g.
 

No luck there, either. I ran into a issue with space a year ago, and was
getting the FDT_ERR_NOSPACE error until I added the -S 0x3000 option.
This looks like something completely different.

Thanks tho,
Sam

___
Linuxppc-dev mailing list
Linuxppc-dev@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-dev


Re: mpc8349-mITX DTB load failure

2008-07-28 Thread Grant Likely
On Mon, Jul 28, 2008 at 12:49:19PM -0500, Sparks, Sam wrote:
 No luck there, either. I ran into a issue with space a year ago, and was
 getting the FDT_ERR_NOSPACE error until I added the -S 0x3000 option.
 This looks like something completely different.

Does your dts source file already have a chosen node?  There had been an
issue where u-boot cacks if chosen was pre-created.

g.
___
Linuxppc-dev mailing list
Linuxppc-dev@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-dev


RE: mpc8349-mITX DTB load failure

2008-07-28 Thread Sparks, Sam
 From: Grant Likely
 Sent: Monday, July 28, 2008 1:03 PM
 Does your dts source file already have a chosen node?  There 
 had been an issue where u-boot cacks if chosen was pre-created.

Nope, there is no reference to chosen in the dts

--Sam

___
Linuxppc-dev mailing list
Linuxppc-dev@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-dev


Re: mpc8349-mITX DTB load failure

2008-07-28 Thread Kim Phillips
On Mon, 28 Jul 2008 11:10:47 -0500
Sparks, Sam [EMAIL PROTECTED] wrote:

 ## Booting kernel from Legacy Image at 01001000 ...

 ## Flattened Device Tree blob at 0100

so the dtb is being loaded only 0x1000 bytes from the kernel, yet it's
probably bigger than that.  Can you try different load addresses,
preferably with the two images at least 0x3000 bytes apart?

Kim
___
Linuxppc-dev mailing list
Linuxppc-dev@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-dev


RE: mpc8349-mITX DTB load failure

2008-07-28 Thread Sparks, Sam
 From: Kim Phillips
 Sent: Monday, July 28, 2008 1:31 PM
  ## Booting kernel from Legacy Image at 01001000 ...
 
  ## Flattened Device Tree blob at 0100
 
 so the dtb is being loaded only 0x1000 bytes from the kernel, 
 yet it's probably bigger than that.  Can you try different 
 load addresses, preferably with the two images at least 
 0x3000 bytes apart?

Ouch. Thanks for pointing that out, it worked. :-)

--Sam

___
Linuxppc-dev mailing list
Linuxppc-dev@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-dev