mirror of
https://github.com/ipxe/ipxe
synced 2025-12-06 17:30:26 +03:00
[build] Pad .rom, .dsk, and .hd images to 512-byte boundaries
QEMU will silently round down a disk or ROM image file to the nearest 512 bytes. Fix by always padding .rom, .dsk and .hd images to the nearest 512-byte boundary. Originally-fixed-by: Stefan Hajnoczi <stefanha@gmail.com>
This commit is contained in:
@@ -47,13 +47,13 @@ To get qemu running is fairly simple:
|
||||
|
||||
8. Build gPXE floppy disk images and pad to 1.44MB
|
||||
pushd ../../src
|
||||
make bin/rtl8139.pdsk
|
||||
make bin/rtl8139.dsk
|
||||
popd
|
||||
|
||||
9. Start qemu
|
||||
./qemu/i386-softmmu/qemu -L qemu/pc-bios \
|
||||
-net nic,model=rtl8139 -net tap,ifname=tap0 \
|
||||
-boot a -fda ../../src/bin/rtl8139.pdsk
|
||||
-boot a -fda ../../src/bin/rtl8139.dsk
|
||||
|
||||
You should see qemu start up, load up gPXE and attempt to boot from
|
||||
the network.
|
||||
|
||||
Reference in New Issue
Block a user