diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2017-06-10 16:09:46 +0200 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2017-06-10 16:09:46 +0200 |
commit | 82b2c8ddb429903da774b1a70585e6b47d60a2f4 (patch) | |
tree | 52f76090383331d85e5f4c87092da0005f6e4d6d /src/Makefile | |
parent | c79bbf47202f14af01a339dfb5a4250f8e06e15e (diff) | |
download | abaos-82b2c8ddb429903da774b1a70585e6b47d60a2f4.tar.gz abaos-82b2c8ddb429903da774b1a70585e6b47d60a2f4.tar.bz2 |
using int13h/8h only for floppies for now, geometry on emulated USB
disks seems to be completly wrong. Probing on real machine for
first non-readable sector hangs the machine or creates reboots, no
clue. Writing a boot loader is not the scope of the project. For
me it runs where it has to run for now..
Diffstat (limited to 'src/Makefile')
-rw-r--r-- | src/Makefile | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Makefile b/src/Makefile index fed9fd3..1609299 100644 --- a/src/Makefile +++ b/src/Makefile @@ -9,7 +9,7 @@ MAGIC := $(shell printf '%x' `date +%s`) all: image.bin kernel.sym # truncate to correct number of sectors, we have -# 512 (boot, stage 1) + N * 512 (N currenty is 3, stage 2) = 2048 for boot.bin +# 512 (boot, stage 1) + N * 512 (N currenty is 3, stage 2) = 3072 for boot.bin # + M * 512 (M is currently 7) = 3144 for kernel.bin # + 1 * 512 = 512 for magic.bin # (M + N + 1 is the number of sectors to be read in stage 2, as stage 1 @@ -102,6 +102,10 @@ run-qemu-hd: image.bin qemu-system-i386 -net nic,model=ne2k_pci -d guest_errors -m 32 -drive "file=image.bin,if=ide,format=raw" \ -serial file:serial.log +run-qemu-usb: image.bin + qemu-system-i386 -net nic,model=ne2k_pci -d guest_errors -m 32 -usb -usbdevice disk:/dev/sde \ + -serial file:serial.log + run-qemu: image.bin qemu-system-i386 -net nic,model=ne2k_pci -d guest_errors -m 32 -drive "file=image.bin,if=floppy,format=raw" \ -serial file:serial.log |