qemu_v8.mk: xen: pass -t ext4 instead of -t vfat to make-virt-fs

make-virt-fs is used to generate xen.ext4 but is passed '-t vfat'
instead of '-t ext4'. Fix that.

In fact '-t vfat' happens to be working in general, presumably because
the actual format of the image is detected at runtime. However, I could
not manage to make a VFAT image work in a Docker container based on
Ubuntu 21.04 and with the following kernel image package installed:

  linux-image-kvm/hirsute-updates,now 5.11.0.1009.9 amd64 [installed]

The error messages are as follows:

root@32b61ad4d7f3:~/optee_repo_qemu_v8/build# LIBGUESTFS_DEBUG=1 LIBGUESTFS_TRACE=1 virt-make-fs -t vfat /root/optee_repo_qemu_v8/build/../out/bin/xen_files /root/optee_repo_qemu_v8/build/../out/bin/xen.ext4
[...]
libguestfs: trace: mount_options "utf8" "/dev/sda" "/"
guestfsd: => mkfs (0x116) took 0.47 secs
guestfsd: <= mount_options (0x4a) request length 68 bytes
commandrvf: stdout=n stderr=y flags=0x0
commandrvf: udevadm --debug settle -E /dev/sda
SELinux enabled state cached to: disabled
No filesystem is currently mounted on /sys/fs/cgroup.
Failed to determine unit we run in, ignoring: No data available
command: mount '-o' 'utf8' '/dev/sda' '/sysroot//'
[   11.673076] squashfs: Unknown parameter 'utf8'
[   11.694908] fuseblk: Unknown parameter 'utf8'
command: mount returned 32
command: mount: stderr:
mount: /sysroot: wrong fs type, bad option, bad superblock on /dev/sda, missing codepage or helper program, or other error.
ocaml_exn: 'mount_options' raised 'Failure' exception
guestfsd: error: mount exited with status 32: mount: /sysroot: wrong fs type, bad option, bad superblock on /dev/sda, missing codepage or helper program, or other error.
guestfsd: => mount_options (0x4a) took 0.40 secs
libguestfs: trace: mount_options = -1 (error)
libguestfs: error: mount_options: mount exited with status 32: mount: /sysroot: wrong fs type, bad option, bad superblock on /dev/sda, missing codepage or helper program, or other error.
libguestfs: trace: close
libguestfs: closing guestfs handle 0x55f423503430 (state 2)
[...]

With '-t ext4', the issue is gone.

Signed-off-by: Jerome Forissier <jerome@forissier.org>
Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
Acked-by: Ruchika Gupta <ruchika.gupta@linaro.org>
1 file changed
tree: 0ed1fbd11040f08eb1cee430e2bd966cdfa35364
  1. .github/
  2. br-ext/
  3. fvp/
  4. imx/
  5. kconfigs/
  6. qemu_v8/
  7. rpi3/
  8. ti/
  9. zynqmp/
  10. .gitignore
  11. am43xx.mk
  12. am57xx.mk
  13. common.mk
  14. dra7xx.mk
  15. fvp.mk
  16. get_clang.sh
  17. hikey.mk
  18. hikey960.mk
  19. imx.mk
  20. juno.mk
  21. poplar.mk
  22. qemu-check.exp
  23. qemu.mk
  24. qemu_v8.mk
  25. README.md
  26. rpi3.mk
  27. stm32mp1.mk
  28. synquacer.mk
  29. toolchain.mk
  30. verdin.mk
  31. zynqmp.mk
README.md

OP-TEE build.git

This git contains makefiles etc to be able to build a full OP-TEE developer setup for the OP-TEE project.

All official OP-TEE documentation has moved to http://optee.readthedocs.io. The pages that used to be here in this git can be found under build and Device specific information at he new location for the OP-TEE documentation.

// OP-TEE core maintainers