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: 
Highlighted
Visitor vicentiu
Visitor
391 Views
Registered: ‎08-22-2018

Petalinux u-boot development

Jump to solution

Hello,

 

I'm trying to debug a u-boot issue (it doesn't detect mass storage devices) by making modifications to the source code and rebuilding.

 

I make the changes in build/tmp/work/plnx_arm-xilinx-linux-gnueabi/u-boot-xlnx/ but after running

petalinux-build -c u-boot, the sources are deleted. They appear again after running petalinux-config -c u-boot but my modifications are lost.

 

I realize I must not be modifying the sources in the right place, but I didn't find the sources in any other directory.

 

What is the proper workflow for editing source -> rebuild -> test -> edit source -> rebuild and so on?

Is there any documentation on this? I looked through UG1157 and UG1144 but I didn't see this addressed.

 

thanks

 

Vicentiu

0 Kudos
1 Solution

Accepted Solutions
Moderator
Moderator
381 Views
Registered: ‎09-12-2007

Re: Petalinux u-boot development

Jump to solution
You should use the "out of tree" build if making mods to the uboot
See the Petalinux user guide 2018.2

Or, download the uboot from github, make your mods, compile, then copy to images/linux in your Petalinux project dir. The pertalinux-package

Once You are happy with your mods, then create a patch (git diff xilinx-v2018.2 < 0001_uboot_patch.patch) then add this to your uboot recipe


0 Kudos
2 Replies
Moderator
Moderator
382 Views
Registered: ‎09-12-2007

Re: Petalinux u-boot development

Jump to solution
You should use the "out of tree" build if making mods to the uboot
See the Petalinux user guide 2018.2

Or, download the uboot from github, make your mods, compile, then copy to images/linux in your Petalinux project dir. The pertalinux-package

Once You are happy with your mods, then create a patch (git diff xilinx-v2018.2 < 0001_uboot_patch.patch) then add this to your uboot recipe


0 Kudos
Moderator
Moderator
375 Views
Registered: ‎09-12-2007

Re: Petalinux u-boot development

Jump to solution
0 Kudos