cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
davethetroll
Observer
Observer
959 Views
Registered: ‎02-26-2018

PetaLinux app missing from Kernel (2016.2)

Jump to solution

I am attempting to build a simple kernel with a simple app.  From there I will make my changes to what I actually want.

I have followed the process, but when I boot linux my app does not appear in the bin directory.

 

. /opt/pkg/petalinux-v2016.2-final/settings.sh

petalinux-create --type project --template zynq --name rubux7 --source mz_7020_2016_2.bsp
cd rubux7
petalinux-config --get-hw-description ../project_1/project_1.sdk
petalinux-create --type apps --template c++ --name app_1
petalinux-config -c rootfs
	Apps ---> [*] app_1

***EDIT Makefile [original file references system_wrapper.bit which does not exist in my case]
	BOOT_BIT_IMAGE = subsystems/linux/hw-description/design_1_wrapper.bit

make

petalinux-boot --jtag --prebuilt 2

All seems to work, without any error messages.
When I log into PetaLinux, and "ls /bin" app_1 does not exist.

I initially had problems with this.  I had it working once.  But now I cannot replicate it.  I do not know what I did differently on the time that it worked.

I am no doubt missing some obvious and essential stage.  Can you help?

0 Kudos
1 Solution

Accepted Solutions
davethetroll
Observer
Observer
1,005 Views
Registered: ‎02-26-2018

Finally found what I need.

petalinux-boot --jtag --kernel

to boot into the developed kernel

petalinux-boot --jtag --kernel --bitstream ../project_1/project_1.runs/impl_1/design_1_wrapper.bit

to also load the FPGA.

 

Copy boot.bin and image.ub from .../rubux7/images/linux folder into the SD card to boot from there.

View solution in original post

0 Kudos
3 Replies
sandeepg
Moderator
Moderator
889 Views
Registered: ‎04-24-2017

Hi @davethetroll,

 

The problem is you are using prebuilt images not the one you have built.

Thanks,
Sandeep
PetaLinux Yocto | Embedded SW Support

---------------------------------------------------------------------------
Don’t forget to Reply, Kudo, and Accept as Solution.
---------------------------------------------------------------------------
davethetroll
Observer
Observer
878 Views
Registered: ‎02-26-2018
I get the same when I boot using --u-boot instead of --prebuilt or copy the files to SD.

What is the solution?
How do I use the one I have built?
0 Kudos
davethetroll
Observer
Observer
1,006 Views
Registered: ‎02-26-2018

Finally found what I need.

petalinux-boot --jtag --kernel

to boot into the developed kernel

petalinux-boot --jtag --kernel --bitstream ../project_1/project_1.runs/impl_1/design_1_wrapper.bit

to also load the FPGA.

 

Copy boot.bin and image.ub from .../rubux7/images/linux folder into the SD card to boot from there.

View solution in original post

0 Kudos