|
From: | Paolo Bonzini |
Subject: | Re: absolute firmware path made relocatable in qemu 5.2.0 |
Date: | Tue, 12 Jan 2021 15:48:13 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.5.0 |
On 12/01/21 15:05, Dave wrote:
Is seem that absolute firmwarepath compilation option is convertedĀ to relocatable in 5.2.0 qemu.# QEMU configure log Tue 12 Jan 14:46:41 GST 2021# Configured with: '../configure' '--prefix=/usr' '--sysconfdir=/etc/qemu' '--disable-bochs' '*--firmwarepath=/usr/share/qemu:/usr/share/qemu-firmware*'#
Yes, all paths within the prefix are relocated. The workaround is simply to configure the intended prefix with configure:
./configure --prefix=/root/qemu ... or if you don't know the prefix: ./configure --prefix=/nonexistent ...Because /usr/share/qemu and /usr/share/qemu-firmware are outside /usr, they will be treated as absolute just like /etc/qemu.
Thanks, Paolo
And trying to run the executable bash-5.1# ./qemu-system-x86_64 qemu: could not load PC BIOS 'bios-256k.bin' If i print out the resultant binary paths bash-5.1# ./qemu-system-x86_64 -L help /root/qemu/../share/qemu /root/qemu/../share/qemu-firmwareSo there is no way to have a absolute path for firmware /bios and all qemu's that we test need to be at the right directory nesting to find firmware, bios etc or else they all need their own duplicate firmware files. Firmware path needs to honor the absolute paths i believe.
[Prev in Thread] | Current Thread | [Next in Thread] |