commit | 9d99185de6e39e963787593d45143c42b2e0a66a | [log] [tgz] |
---|---|---|
author | Trammell hudson <hudson@trmm.net> | Fri Mar 13 16:38:30 2020 +0100 |
committer | Trammell hudson <hudson@trmm.net> | Fri Mar 13 16:38:30 2020 +0100 |
tree | e33ff109c1234a5417cec09fe8bec704806f8e86 | |
parent | 7aeec271d806efe1ecc18bf6dc32f39dfe8b994a [diff] |
readme: markdown formatting Signed-off-by: Trammell hudson <hudson@trmm.net>
A simple x86 firmware that can boot Linux.
Most of QEMU's startup time is spent:
./configure --disable-libssh2 --disable-tcmalloc --disable-glusterfs \ --disable-seccomp --disable-{bzip2,snappy,lzo} --disable-usb-redir \ --disable-libusb --disable-smartcard-nss --disable-libnfs \ --disable-libiscsi --disable-rbd --disable-spice --disable-attr \ --disable-cap-ng --disable-linux-aio --disable-brlapi \ --disable-vnc-{jpeg,tls,sasl,png,ws} --disable-rdma --disable-bluez \ --disable-fdt --disable-curl --disable-curses --disable-sdl \ --disable-gtk --disable-tpm --disable-vte --disable-vnc \ --disable-xen --disable-opengl --target-list=x86_64-softmmu
in the BIOS. qboot saves another 150 ms.
until QEMU 2.7+, in fw_cfg
. qboot uses the DMA interface which is pretty much instantaneous.
qboot
Clone the source:
$ git clone https://github.com/bonzini/qboot.git
Compile the qboot firmware (you may need to install the relevant build time dependancies):
$ make
The result will be a 64K file named build/bios.bin
.
$ qemu-kvm -bios bios.bin \ -kernel /boot/vmlinuz-4.0.3-300.fc22.x86_64 \ -serial mon:stdio -append 'console=ttyS0,115200,8n1'