cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Visitor
Visitor
245 Views
Registered: ‎08-27-2020

Boot.bin include multiple elf in petalinux-package

Hi,

I wrote a small standalone project( I named my project myproj.elf ) for ZC706 board using Xilinx SDK. It could work through testing with jtag and uart.

I also made a SD card for booting linux ubuntu OS using Petalinux.

The 1st partition of SD card includes boot.bin, image.ub, system.dtb.

The 2nd partition includes linaro ubuntu rootfs.

The Boot.bin includes fsbl.elf, system_top.bit, and u-boot.elf.

Now I want to let ZC706 run my standalone code when ZC706 booting ubuntu desktop.

I don't want to build my standalone code into linaro rootfs. Can the boot.bin or other files in 1st partition of SD card include my standalone code myproj.elf ? 

Can I use petalinux-package command or other petalinux commandsto do this? 

Let the Boot.bin includes fsbl.elf, system_top.bit, u-boot.elf, and myproj.elf ,or in some other way?

 

Can someone help me with this?

Thank in advance!

 

0 Kudos
Reply
3 Replies
Highlighted
Moderator
Moderator
213 Views
Registered: ‎09-12-2007

Once your myproj.elf doesnt occupy the same region in memory (executable memory), as the other executables, then you should be fine adding this to the same boot.bin

0 Kudos
Reply
Highlighted
Visitor
Visitor
166 Views
Registered: ‎08-27-2020

I use this command:

petalinux-package --fpga system_top.bit --u-boot u-boot.elf --fsbl zynq_fsbl.elf--add myproj.elf

to include my standalone code into boot.bin.

The booting process is good, but I can not see anything about myproj.elf from uart output.

I don't know why?

 

Thanks!

0 Kudos
Reply
Highlighted
Visitor
Visitor
154 Views
Registered: ‎08-27-2020

Soory, I update the previous post...

I use this command:

petalinux-package --boot --force --fsbl zynq_fsbl.elf --fpga system_top.bit --add myproj.elf --u-boot u-boot.elf

to include my standalone code into boot.bin.

The booting process is good and I can see the running result of myproj.elf ,but I can not see anything about u-boot.elf from uart output message.

The u-boot.elf is not executed.

I don't know why?

 

Thanks!

0 Kudos
Reply