About u-boot device tree

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

About u-boot device tree

1,459 Views
saadahmad
Contributor I


Hi,

I am using P2041RDB. I need to add a config DTB at the end of u-boot image by using CONFIG_OF_SEPARATE.

According to common/board_f.c function setup_fdt()

#elif defined CONFIG_OF_SEPARATE

  /* FDT is at end of image */

  gd->fdt_blob = (ulong *)&_end;

But there is no _end in u-boot.lds of mpc85xx. I have changed _end to __bss_end but u-boot is not finding any DTB at the end of the image.

Thanks in advance for any help you are able to provide.

Labels (1)
Tags (2)
0 Kudos
Reply
3 Replies

826 Views
Pavel
NXP Employee
NXP Employee

We use SDK from NXP.

The following command sequence is used for u-boot building under SDK:

bitbake -c cleansstate u-boot

bitbake -c patch u-boot // source of the u-boot

bitbake u-boot


Have a great day,
Pavel Chubakov

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
Reply

826 Views
Pavel
NXP Employee
NXP Employee

NXP SDK 2.0 does not support this option of the u-boot. There is error message during u-boot building if CONFIG_OF_SEPARATE is defined.


Have a great day,
Pavel Chubakov

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
Reply

826 Views
saadahmad
Contributor I

I am not using SDK 2.0. I just want to know where to put the _end (end of u-boot image location) in u-boot.lds.

Regards,
Saad

0 Kudos
Reply