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: 
Newbie apaluch
Newbie
320 Views
Registered: ‎12-19-2018

Boot petaLinux on QEMU without project

Jump to solution

Hi

I have built petaLinux image using yocto/bitbake. I've tried boot the image on QEMU: petalinux-boot --qemu --image BOOT-zcu111-zynqmp-20181217101619.bin

, but result is "ERROR: You are not inside a PetaLinux project. Please specify a PetaLinux project!"

Is it possible to create something like "fake project" or other way to force QEMU to boot the image?

0 Kudos
1 Solution

Accepted Solutions
Newbie apaluch
Newbie
251 Views
Registered: ‎12-19-2018

Re: Boot petaLinux on QEMU without project

Jump to solution

Hi

Finally I boot my externally build images. Procedure is as follows:

create fake zynq project:

petalinux-create -t project -s <path-to...>/xilinx-zcu111-v2018.3-final.bsp

set SDK environment and go to newly created project path:

source /opt/pkg/petalinux/settings.sh
cd /<path to created project>/xilinx-zcu111-2018.3

starting qemu ("--prebuilt 2" means "start u-boot"):

petalinux-boot  --qemu --prebuilt 2 --qemu-args "-tftp /<path on host containing Image, system.dtb and cpio.gz.u-boot>"

u-boot commands to boot image:

tftpboot 0x80000 10.0.2.2:Image; tftpboot 0x6000000 10.0.2.2:cpio.gz.u-boot; tftpboot 0x4000000 10.0.2.2:system.dtb; booti 0x80000 0x6000000 0x4000000

0 Kudos
3 Replies
Xilinx Employee
Xilinx Employee
293 Views
Registered: ‎06-27-2017

Re: Boot petaLinux on QEMU without project

Jump to solution

Hi @apaluch,

If you built the project with zynqMP template, then you will not get the qemu images which are required to boot. They are available when you build with petalinux bsp provided by Xilinx. 

I dont think you can boot with any dummy project because petalinux-boot --qemu has option which automatically boots qemu images.

Best Regards
Kranthi
--------------------------
Don't forget to reply, kudo, and accept as solution.
0 Kudos
Newbie apaluch
Newbie
252 Views
Registered: ‎12-19-2018

Re: Boot petaLinux on QEMU without project

Jump to solution

Hi

Finally I boot my externally build images. Procedure is as follows:

create fake zynq project:

petalinux-create -t project -s <path-to...>/xilinx-zcu111-v2018.3-final.bsp

set SDK environment and go to newly created project path:

source /opt/pkg/petalinux/settings.sh
cd /<path to created project>/xilinx-zcu111-2018.3

starting qemu ("--prebuilt 2" means "start u-boot"):

petalinux-boot  --qemu --prebuilt 2 --qemu-args "-tftp /<path on host containing Image, system.dtb and cpio.gz.u-boot>"

u-boot commands to boot image:

tftpboot 0x80000 10.0.2.2:Image; tftpboot 0x6000000 10.0.2.2:cpio.gz.u-boot; tftpboot 0x4000000 10.0.2.2:system.dtb; booti 0x80000 0x6000000 0x4000000

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

Re: Boot petaLinux on QEMU without project

Jump to solution

You can also use the released images on the wiki

https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/18842316/Zynq+Releases

QEMU is also delivered with XSCT so you don't need petalinux

0 Kudos