cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Newbie
Newbie
863 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
Highlighted
Newbie
Newbie
794 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

View solution in original post

0 Kudos
3 Replies
Highlighted
Moderator
Moderator
836 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
Highlighted
Newbie
Newbie
795 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

View solution in original post

0 Kudos
Highlighted
Moderator
Moderator
784 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