Przeglądaj źródła

Add .pdsk target (padded .dsk, suitable for qemu).

tags/v0.9.3
Michael Brown 17 lat temu
rodzic
commit
763a3eab8a
2 zmienionych plików z 9 dodań i 3 usunięć
  1. 2
    3
      contrib/bochs/README.qemu
  2. 7
    0
      src/arch/i386/Makefile

+ 2
- 3
contrib/bochs/README.qemu Wyświetl plik

@@ -54,15 +54,14 @@ To get qemu running is fairly simple:
54 54
 
55 55
 8.  Build Etherboot floppy disk images and pad to 1.44MB
56 56
       pushd ../../src
57
-      make bin/rtl8139.dsk
58
-      ./util/dskpad.pl bin/rtl8139.dsk
57
+      make bin/rtl8139.pdsk
59 58
       popd
60 59
 
61 60
 9.  Start qemu
62 61
       export SDL_VIDEO_X11_DGAMOUSE=0
63 62
       ./qemu/i386-softmmu/qemu -L qemu/pc-bios \
64 63
 			       -net nic,model=rtl8139 -net tap,ifname=tap0 \
65
-			       -boot a -fda ../../src/bin/rtl8139.dsk 
64
+			       -boot a -fda ../../src/bin/rtl8139.pdsk 
66 65
 
67 66
 You should see qemu start up, load up Etherboot and attempt to boot
68 67
 from the network.

+ 7
- 0
src/arch/i386/Makefile Wyświetl plik

@@ -111,6 +111,12 @@ NON_AUTO_MEDIA		+= fd0
111 111
 	dd if=$< bs=512 conv=sync of=/dev/fd0
112 112
 	sync
113 113
 
114
+# rule to create padded disk images
115
+NON_AUTO_MEDIA		+= pdsk
116
+%pdsk : %dsk
117
+	cp $< $@
118
+	$(PERL) ./util/dskpad.pl $@
119
+
114 120
 # rule to make a non-emulation ISO boot image
115 121
 NON_AUTO_MEDIA		+= iso
116 122
 %iso:	%lilo util/geniso
@@ -125,6 +131,7 @@ NON_AUTO_MEDIA		+= liso
125 131
 $(BIN)/usbdisk.bin : $(BIN)/usbdisk.o
126 132
 	$(OBJCOPY) -O binary $< $@
127 133
 
134
+NON_AUTO_MEDIA		+= usb
128 135
 %usb: $(BIN)/usbdisk.bin %hd
129 136
 	cat $^ > $@
130 137
 

Ładowanie…
Anuluj
Zapisz