From f57cbe8ecdb4f6ecb22618de361d4fcaee3fdcf3 Mon Sep 17 00:00:00 2001 From: Vegard Storheil Eriksen Date: Thu, 24 Dec 2009 02:07:27 +0100 Subject: Use PXE instead of a floppy image for testing with QEMU. --- SConstruct | 4 +++- mboot.c32 | Bin 0 -> 34092 bytes pxelinux.0 | Bin 0 -> 16466 bytes pxelinux.cfg/default | 4 ++++ 4 files changed, 7 insertions(+), 1 deletion(-) create mode 100755 mboot.c32 create mode 100755 pxelinux.0 create mode 100644 pxelinux.cfg/default diff --git a/SConstruct b/SConstruct index ce87bb9..14654ba 100644 --- a/SConstruct +++ b/SConstruct @@ -10,6 +10,8 @@ env.SConscript('kernel/SConscript') env.SConscript('floppy/SConscript') -env.Command('qemu', 'floppy/floppy.img', 'qemu -s -m 32 -fda $SOURCE') +#env.Command('qemu', 'floppy/floppy.img', 'qemu -s -m 32 -fda $SOURCE') + +env.Command('qemu', 'kernel', 'qemu -s -m 32 -boot n -tftp . -bootp /pxelinux.0') Default('kernel') diff --git a/mboot.c32 b/mboot.c32 new file mode 100755 index 0000000..30aaca1 Binary files /dev/null and b/mboot.c32 differ diff --git a/pxelinux.0 b/pxelinux.0 new file mode 100755 index 0000000..8b280c2 Binary files /dev/null and b/pxelinux.0 differ diff --git a/pxelinux.cfg/default b/pxelinux.cfg/default new file mode 100644 index 0000000..b39e4c7 --- /dev/null +++ b/pxelinux.cfg/default @@ -0,0 +1,4 @@ +default potetmos +label potetmos +kernel mboot.c32 +append kernel/kernel -- cgit v1.2.3