cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Observer
Observer
610 Views
Registered: ‎10-18-2017

U-boot port from petalinux build

Hi!

Based on the xilinx-v2017.3 u-boot tag, I produced my own u-boot port for my zynqmp based board.

I now have some problems rebasing my port on the u-boot xilinx-v2018.2 tag.

 

If I use petalinux 2018.2 to build my U-boot, it produces a working u-boot.

 

Can I somewhere in my petalinux project directories find an h-file and an defconfig-file that I can use for my port?

I can see that my dts-file is good enough.

 

Kind regards,

Mats

0 Kudos
3 Replies
Highlighted
Adventurer
Adventurer
532 Views
Registered: ‎05-26-2017

Re: U-boot port from petalinux build

Hi Mats, 

 

What kind of error are you seeing ? 

 

I use platform-top.h along with cfg files in project-spec/meta-user/recipes-bsp/u-boot/files to enable / disable what's needed

 

/Otto

0 Kudos
Highlighted
Observer
Observer
512 Views
Registered: ‎10-18-2017

Re: U-boot port from petalinux build

I managed to get it to work in the end, but I am still curious:

 

I can find the device tree files that petalinux produces for my custom board.

I can also find the dtb-file and so I can recreate the total dts-file used.

 

A port consists of at least two other files as well:

One file in u-boot-xlnx/include/configs e.g. xilinx_zynqmp_zcu102.h

One file in u-boot-xlnx/configs e.g. xilinx_zynqmp_zcu102_revA_defconfig

 

Is there anyway I can find what petalinux produces for my board?

0 Kudos
Highlighted
Adventurer
Adventurer
504 Views
Registered: ‎05-26-2017

Re: U-boot port from petalinux build

For the final u-boot (and kernel) config run 

 

find -name .config  

 

in the build directory. The device tree file is in 

 

components/plnx_workspace/device-tree/device-tree-generation/plnx_aarch64-system.dts

 

/Otto

0 Kudos