Skip to content

Commit

Permalink
Add .pdsk target (padded .dsk, suitable for qemu).
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Brown committed Jul 5, 2007
1 parent 405be07 commit 763a3ea
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
5 changes: 2 additions & 3 deletions contrib/bochs/README.qemu
Expand Up @@ -54,15 +54,14 @@ To get qemu running is fairly simple:

8. Build Etherboot floppy disk images and pad to 1.44MB
pushd ../../src
make bin/rtl8139.dsk
./util/dskpad.pl bin/rtl8139.dsk
make bin/rtl8139.pdsk
popd

9. Start qemu
export SDL_VIDEO_X11_DGAMOUSE=0
./qemu/i386-softmmu/qemu -L qemu/pc-bios \
-net nic,model=rtl8139 -net tap,ifname=tap0 \
-boot a -fda ../../src/bin/rtl8139.dsk
-boot a -fda ../../src/bin/rtl8139.pdsk

You should see qemu start up, load up Etherboot and attempt to boot
from the network.
Expand Down
7 changes: 7 additions & 0 deletions src/arch/i386/Makefile
Expand Up @@ -111,6 +111,12 @@ NON_AUTO_MEDIA += fd0
dd if=$< bs=512 conv=sync of=/dev/fd0
sync

# rule to create padded disk images
NON_AUTO_MEDIA += pdsk
%pdsk : %dsk
cp $< $@
$(PERL) ./util/dskpad.pl $@

# rule to make a non-emulation ISO boot image
NON_AUTO_MEDIA += iso
%iso: %lilo util/geniso
Expand All @@ -125,6 +131,7 @@ NON_AUTO_MEDIA += liso
$(BIN)/usbdisk.bin : $(BIN)/usbdisk.o
$(OBJCOPY) -O binary $< $@

NON_AUTO_MEDIA += usb
%usb: $(BIN)/usbdisk.bin %hd
cat $^ > $@

Expand Down

0 comments on commit 763a3ea

Please sign in to comment.