You can output both formats, however you can not boot a .tar.gz. There is no mechanism in place to do that. (tar.gz is not a filesystem, it is a collection of files in an archive, you need an actual filesystem in order to boot.)

cpio.gz should work, BUT the Yocto Project workflow configuration for qemu with AMD/Xilinx parts does not support direct booting of a cpio.gz (ramdisk image). That ramdisk still needs to be placed onto a (virtual) sd-card image with bootgen creating a boot bin file.

If you use PetaLinux, there are additional booting methods that may be available to you. But again, tar.gz is not one of them.

--Mark

On 2/14/23 1:07 AM, [email protected] wrote:
Hi,

   I successfully boot a zcu-104 image according to 
https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/821854264/Launching+QEMU+Using+Xilinx+Yocto+toolchains
 by runqemu.
   By default, runqemu loads the sd-image. And I want to load the *tar.gz 
format image instead of sd-image :
   ls leimh@ubinux:~/xilinx-test/build$ ls tmp/deploy/images/zcu104-zynqmp/
   ......
   petalinux-image-minimal-zcu104-zynqmp-20230214035633.rootfs.tar.gz         * 
I want to load this format
   petalinux-image-minimal-zcu104-zynqmp-20230214035633.rootfs.wic.qemu-sd   * 
By default this sd-image that runqemu load
   ......

   If *.tar.gz image format is supported by runqemu, How canI do? Can I change 
it by just editing 
meta-xilinx/meta-xilinx-core/conf/machine/zynqmp-generic.conf?
   ...
   # Default SD image build onfiguration, use qemu-sd to pad
   IMAGE_CLASSES += "image-types-xilinx-qemu"
   # Add wic.qemu-sd only if initramfs_image not set due to circular dependecies
   IMAGE_FSTYPES += "${@'wic.qemu-sd' if (d.getVar('INITRAMFS_IMAGE') or '') == '' 
else 'cpio.gz.u-boot'}"
   WKS_FILES ?= "sdimage-bootpart.wks"
   ...

Best regards
Lei





-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#5152): 
https://lists.yoctoproject.org/g/meta-xilinx/message/5152
Mute This Topic: https://lists.yoctoproject.org/mt/96957772/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-xilinx/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to