cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
imgignacio
Explorer
Explorer
6,466 Views
Registered: ‎11-24-2013

Package Prebuilt Image?

Hello all,

 

I am following the work flow described in the document UG1144 (PetaLinux Reference Guide) but there's something that is not very clear for me. I post it here in case anyone could clarify it a bit.

 

I work on a Zynq ZC702 board.

 

Following the guide, I fulfill these steps:

 

  1. Intalation of Petalinux and Environment Setup.
  2. Creation of hardware with Vivado (including .bit file).
  3. Creation of a PetaLinux project (page 21).
  4. Import of the Hardware Configuration (page 23).
  5. Build System image (page 25).
  6. Generate Boot Image (page 27).

In this moment, there is a folder into the project directory with path:

/images/linux

that contains:

BOOT.BIN
hw_block_design_wrapper.bit
image.elf
image.ub
rootfs.cpio
rootfs.cpio.gz
system.dtb
System.map.linux
u-boot.bin
u-boot.elf
u-boot-s.bin
u-boot-s.elf
u-boot.srec
u-boot-s.srec
urootfs.cpio.gz
vmlinux
zImage
zynq_fsbl.elf

In this moment the files "BOOT.BIN" and "image.ub" already exist, and according to the guide (page 34) this would be enough to boot from an SD card.

 

But before that, following the flow, there is another step, "Package Prebuilt Image" (page 29).

 

In that moment, a new folder is created, with path:

/pre-built/linux/images

that contains:

BOOT.BIN
image.elf
image.ub
system.dtb
System.map.linux
u-boot.elf
u-boot-s.bin
zImage
zynq_fsbl.elf

From this point, the guide uses this prebuilt images for booting on Quemu and via Jtag in the board (pages 31 and 37).

 

My question is: what is the meaning of "packagin prebuild images"? is that option using always the same kernel or default options without taking account of the changes made by the user?

 

What is the difference between booting via JTAG with:

$ petalinux-boot --jtag --prebuilt 3

and:

$ petalinux-boot --jtag --kernel

 Or the difference between:

$ petalinux-boot --qemu --prebuilt 3

and:

$ petalinux-boot --qemu --kernel

Thanks in advance,

 

Ignacio

Tags (2)
0 Kudos
0 Replies