From e76ec880bb4a73b515323b4bf8ca317168a6859f Mon Sep 17 00:00:00 2001 From: Ain <41307858+nero@users.noreply.github.com> Date: Wed, 13 Mar 2019 21:07:45 +0000 Subject: [PATCH] Auxillary files for building and testing via PXE --- Makefile | 5 +++++ run.sh | 5 +++++ 2 files changed, 10 insertions(+) create mode 100644 Makefile create mode 100755 run.sh diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..8c5399b --- /dev/null +++ b/Makefile @@ -0,0 +1,5 @@ +kernel.com: *.asm + nasm -s -o kernel.com main.asm + +clean: + rm -f kernel.com diff --git a/run.sh b/run.sh new file mode 100755 index 0000000..1bd108f --- /dev/null +++ b/run.sh @@ -0,0 +1,5 @@ +#!/bin/sh +exec qemu-system-x86_64 -boot n \ + -option-rom /usr/share/qemu/pxe-rtl8139.rom \ + -device e1000,netdev=mynet0,mac=52:54:00:12:34:56 \ + -netdev user,id=mynet0,net=192.168.76.0/24,dhcpstart=192.168.76.9,tftp=$PWD,bootfile=kernel.com