diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2015-05-21 11:42:37 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2015-05-21 11:44:57 +0200 |
commit | 6bda70a1bb92f3aa67ae88c99e14f621c7e17158 (patch) | |
tree | d255113b611393cf8030d99f7bbc73b6c17b2ae9 /README | |
parent | d9e83e9242ae08c0ba45aed54980ec6d06cbd82f (diff) | |
download | qboot-6bda70a1bb92f3aa67ae88c99e14f621c7e17158.zip qboot-6bda70a1bb92f3aa67ae88c99e14f621c7e17158.tar.gz qboot-6bda70a1bb92f3aa67ae88c99e14f621c7e17158.tar.bz2 |
add README
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'README')
-rw-r--r-- | README | 26 |
1 files changed, 26 insertions, 0 deletions
@@ -0,0 +1,26 @@ +A simple x86 firmware that can boot Linux. Usage: + +fw_cfg based example: + +$ qemu-kvm -bios bios.bin \ + -kernel /boot/vmlinuz-4.0.3-300.fc22.x86_64 \ + -serial mon:stdio -append 'console=ttyS0,115200,8n1' + +cbfs-based example (pflash isn't the definitive interface though): + +$ dd if=/dev/zero of=boot.bin bs=4096 count=1 +$ cbfstool cbfs.rom create -s 8m -B boot.bin -m x86 -o 0x1000 +$ cbfstool cbfs.rom add -f /boot/vmlinuz-4.0.3-300.fc22.x86_64 -n vmlinuz -t raw +$ echo 'console=ttyS0,115200,8n1' > cmdline +$ cbfstool cbfs.rom add -f cmdline -n cmdline -t raw +$ qemu-kvm -drive if=pflash,file=bios.bin,readonly=on \ + -drive if=pflash,file=cbfs.rom,readonly=on \ + -serial mon:stdio + +TODO: +- ACPI tables +- SMBIOS tables +- Multiboot loading + +Example: + |