qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [Bug 1831115] Re: qemu 4.0.0 on aarch64: uefi firmware


From: Alex Bennée
Subject: Re: [Qemu-devel] [Bug 1831115] Re: qemu 4.0.0 on aarch64: uefi firmware oversize
Date: Fri, 31 May 2019 17:28:50 +0100
User-agent: mu4e 1.3.2; emacs 26.1

Jerry <address@hidden> writes:

> address@hidden aarch64]$ du -b *
> 67108864        AAVMF_CODE.fd
> 67108864        AAVMF_VARS.fd
> 67108864        QEMU_EFI.fd
> 67108864        QEMU_VARS.fd
>
> 2097152 QEMU_EFI.fd.orig
> 786432  QEMU_VARS.fd.orig
>
>
> Both files have been padded to 64MB. (if padding means filling it with
> /dev/zero)

You can use:

   truncate -s 64m /path/to/blob

>
> QEMU_EFI.fd and QEMU_VARS.fd are built by myself according to
> https://wiki.linaro.org/LEG/UEFIforQEMU. With the self-built formware,
> I'm getting almost the same error: qemu-system-aarch64: Initialization
> of device cfi.pflash01 failed: device requires 67108864 bytes, block
> backend provides 786432 bytes

Are you sure your libvirt invocation is properly pointing at your new
re-sized blobs? WFM here on master:

  ./aarch64-softmmu/qemu-system-aarch64 -cpu max -machine 
type=virt,virtualization=on -display none -m 4096 -serial mon:stdio -netdev 
user,id=unet,hostfwd=tcp::2222-:22 -device virtio-net-pci,netdev=unet -device 
virtio-scsi-pci -blockdev 
driver=raw,node-name=hd,discard=unmap,file.driver=host_device,file.filename=/dev/zen-disk/debian-buster-arm64
 -device scsi-hd,drive=hd -bios /usr/share/AAVMF/AAVMF_CODE.fd

Where:

ls -l /usr/share/AAVMF/*
-rw-r--r-- 1 root root 67108864 Mar 16 00:37 /usr/share/AAVMF/AAVMF32_CODE.fd
-rw-r--r-- 1 root root 67108864 Mar 16 00:37 /usr/share/AAVMF/AAVMF32_VARS.fd
-rw-r--r-- 1 root root 67108864 Mar 16 00:37 /usr/share/AAVMF/AAVMF_CODE.fd
-rw-r--r-- 1 root root 67108864 Mar 16 00:37 /usr/share/AAVMF/AAVMF_VARS.fd

--
Alex Bennée



reply via email to

[Prev in Thread] Current Thread [Next in Thread]