cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Visitor
Visitor
742 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
Highlighted
Moderator
Moderator
732 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


View solution in original post

0 Kudos
2 Replies
Highlighted
Moderator
Moderator
733 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


View solution in original post

0 Kudos
Highlighted
Moderator
Moderator
726 Views
Registered: ‎09-12-2007

Re: Petalinux u-boot development

Jump to solution
0 Kudos