UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Visitor csabaerhardt
Visitor
12,103 Views
Registered: ‎01-07-2009

U-boot doesn't recognize Flattened Device Tree blob made by DTC

Jump to solution

Hi Everybody especially John Linn!

 

 U-Boot recognizes uImage and uramdisk.image.gz with imi <memory address> command but doesn't recognize the dtc made image.

 

scripts/dtc/dtc -b 0 -V 17 -R 4 -S 0x3000 -I dts -O dtb -o ml405.dtb -f arch/powerpc/boot/dts/virtex405-ml405.dts

 

The situation is the same with virtex440-ml507.dts >> ml507.dtb

 

Does anyone have any advice to me?!

 

Thanks and regards,

Csaba Erhardt

0 Kudos
1 Solution

Accepted Solutions
Visitor csabaerhardt
Visitor
15,453 Views
Registered: ‎01-07-2009

Re: U-boot doesn't recognize Flattened Device Tree blob made by DTC

Jump to solution

Everything is OK!

 

define -s  CONFIG_OF_LIBFDT and CONFIG_OF_BOARD_SETUP were missing.

 

Marry Christmas and Happy New Year for everybody!

 

Csaba Erhardt

View solution in original post

0 Kudos
9 Replies
Xilinx Employee
Xilinx Employee
12,094 Views
Registered: ‎09-10-2008

Re: U-boot doesn't recognize Flattened Device Tree blob made by DTC

Jump to solution

Hi Csaba,

 

Merry Christmas, we must have met, but I'm sorry I don't remember it.  Too many names and not enough faces to go with them :)

 

When I look at this command in the help it makes sense why the command doesn't work on the dtb image (I think).  We are not calling mkimage to wrap the dtb image file with a u-boot header like we do with the kernel and ramdisk.  This command looks for that u-boot header.

 

This is what I'm thinking if you really need this to work, but I have not tried it so it might not work as I think. 

 

If you wanted this command to work on the dtb image in memory, you could wrap it with a u-boot header using mkimage.  After loading it into memory, you would need to pass that address + an offset (I was thinking the u-boot header is 64 bytes) to the kernel for the device tree address so that the kernel doesn't see the u-boot header as part of the device tree.

 

We don't put a u-boot header on because we don't have to.

 

Hope that help.

0 Kudos
Visitor csabaerhardt
Visitor
12,091 Views
Registered: ‎01-07-2009

Re: U-boot doesn't recognize Flattened Device Tree blob made by DTC

Jump to solution

Hi John,

 

Thanks for your answer. I think I understand  it, but ...

 

if doesn't need the dtb to have u-boot header, then why doesn't work:

 

FX12MM:/# bootm ff8b0000 ffa40000 ffbb0000


## Booting kernel from Legacy Image at ff8b0000 ...
   Image Name:   Linux-2.6.31
   Image Type:   PowerPC Linux Kernel Image (gzip compressed)
   Data Size:    1604530 Bytes =  1.5 MB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at ffa40000 ...
   Image Name:
   Image Type:   PowerPC Linux RAMDisk Image (gzip compressed)
   Data Size:    1507104 Bytes =  1.4 MB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
>>>>>
   Uncompressing Kernel Image ... OK
   Loading Ramdisk to 03e25000, end 03f94f20 ... OK

>>>>>     it would have gone


## Flattened Device Tree blob at ffbb0000
    Booting using the fdt blob at 0x ffbb0000
 

but doesn't

 

I didn't try it with u-boot header, but I'm not shure it would help.

 

Thanks your help and kind regards,

Csaba

 

(I hope it would be occasion to wish you Merry Christmas!)

0 Kudos
Xilinx Employee
Xilinx Employee
12,088 Views
Registered: ‎09-10-2008

Re: U-boot doesn't recognize Flattened Device Tree blob made by DTC

Jump to solution

Are you saying that the kernel doesn't boot because of the device tree?  I need to understand if you're asking this as information or trying to debug a problem that shouldn't exist?

 

I boot the kernel with our u-boot, but I don't have specifically remember it's output.

 

Thanks.

0 Kudos
Visitor csabaerhardt
Visitor
12,084 Views
Registered: ‎01-07-2009

Re: U-boot doesn't recognize Flattened Device Tree blob made by DTC

Jump to solution

It seems to me, that the kernel doesn't boot because of the device tree or rather because the u-boot doesn't load the dtb. The simpleImage.initrd.xxx.elf does boot and is working so I think the dts is good. (I'm using the Avnet-Memec V4FX12 Mini-Module and Baseboard as well)

Regards,

Csaba

0 Kudos
Xilinx Employee
Xilinx Employee
12,068 Views
Registered: ‎09-10-2008

Re: U-boot doesn't recognize Flattened Device Tree blob made by DTC

Jump to solution

Have you tried dumping memory where the device tree blob is loaded in u-boot and verifying it looks like it's good?

 

Maybe there's something unique about the memory map also with regard to the kernel finding it at those locations you're using?


Sorry I'm not more help, but I haven't seen this issue before. 

0 Kudos
Visitor csabaerhardt
Visitor
12,032 Views
Registered: ‎01-07-2009

Re: U-boot doesn't recognize Flattened Device Tree blob made by DTC

Jump to solution

Hi John,

 

U-Boot doesn't recognize the FDT blob and I think the reason is that the FDT is not compiled into u-boot, I don't know why. (FDT commands are missing) Could you help me how could I correct this missing? Where in the make procedure should be it?Thanks your help!

Regards,

Csaba

0 Kudos
Visitor csabaerhardt
Visitor
15,454 Views
Registered: ‎01-07-2009

Re: U-boot doesn't recognize Flattened Device Tree blob made by DTC

Jump to solution

Everything is OK!

 

define -s  CONFIG_OF_LIBFDT and CONFIG_OF_BOARD_SETUP were missing.

 

Marry Christmas and Happy New Year for everybody!

 

Csaba Erhardt

View solution in original post

0 Kudos
Xilinx Employee
Xilinx Employee
12,020 Views
Registered: ‎09-10-2008

Re: U-boot doesn't recognize Flattened Device Tree blob made by DTC

Jump to solution

Glad to hear that.  If you use our configuration that we provide and follow the wiki build flow I don't think that should be a problem.  If I'm wrong about that and you did follow our flow, let me know.

 

Thanks.

0 Kudos
Visitor csabaerhardt
Visitor
12,014 Views
Registered: ‎01-07-2009

Re: U-boot doesn't recognize Flattened Device Tree blob made by DTC

Jump to solution

Thanks John, you're right but your configuration doesn't have configuration for Avnet-Memec FX12MM, so it seemed to me more simple to use the DENX U-Boot configuration (maybe it is not true any more?). Compiling U-Boot with your configuration I've always have errors (I know the problem is with me), so that seemed to be the simplest solution. By the way I would appreciate if you send me a basic u-boot-xlnx configuration for FX12MM!

Thanks for your help and Marry Christmas!

Kind regards,

Csaba

0 Kudos