summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMiguel <m.i@gmx.at>2018-09-25 02:45:57 +0200
committerMiguel <m.i@gmx.at>2018-09-25 02:45:57 +0200
commit90c3c74107e9a1e15ea8524057c1e1c48d401da9 (patch)
tree9778fa9087cddaa11ef9904c8b37bc46d0495763 /Makefile
parent0738f270da6c075b6c48d1b7aa929299ec178f2e (diff)
after a long struggle our e1000 can receive and send packets, yeah!
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile26
1 files changed, 22 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 78696d5..efea7ce 100644
--- a/Makefile
+++ b/Makefile
@@ -9,6 +9,8 @@
GIT_REVISION=$(shell git rev-parse HEAD)
+QEMU=/home/miguel/git/EXT/qemu-3.0.0/i386-softmmu/qemu-system-i386
+
#use our cross compiler
CC=i686-foolos-gcc
AS=i686-foolos-as
@@ -176,7 +178,10 @@ run-qemu: all
#qemu-system-i386 -enable-kvm disk.img -smp 4 -s
#qemu-system-i386 -enable-kvm -s -kernel foolos.img -smp 4 -initrd userspace/ext2.img
echo XDOTOOL HACK...&& sleep 0.2 && xdotool search --name "QEMU" windowsize 100 100 && echo XDOTOOL HACK END. &
- qemu-system-i386 -enable-kvm $(FOOLOS_ISO) -smp 4 -serial stdio
+ $(QEMU) -enable-kvm $(FOOLOS_ISO) -smp 4 -serial stdio \
+ -net nic,model=e1000 \
+ -net tap,ifname=tap0
+ #-net dump,file=./netfool
run-qemu-16: all
#qemu-system-i386 -enable-kvm disk.img -smp 4 -s
@@ -189,7 +194,10 @@ run-qemu-debug: all
# qemu -enable-kvm -s -singlestep disk.img
# qemu-system-i386 -enable-kvm -s -S -kernel foolos.img -smp 4 -initrd userspace/ext2.img
echo XDOTOOL HACK...&& sleep 0.2 && xdotool search --name "QEMU" windowsize 100 100 && echo XDOTOOL HACK END. &
- qemu-system-i386 -s -S $(FOOLOS_ISO) -smp 4 -serial stdio #-enable-kvm -smp 1
+ $(QEMU) -s -S -enable-kvm $(FOOLOS_ISO) -smp 4 -serial stdio \
+ -net nic,model=e1000 \
+ -net tap,ifname=tap0
+ #-net dump,file=./netfool \
monitor:
echo XDOTOOL HACK...&& sleep 0.2 && xdotool search --name "QEMU" windowsize 100 100 && echo XDOTOOL HACK END. &
qemu-system-i386 -s -S $(FOOLOS_ISO) -smp 4 -monitor stdio # -serial stdio #-enable-kvm -smp 1
@@ -251,7 +259,17 @@ doxygen: clean
list_headers:
find asm/ driver/ fs/ kernel/ lib/ -iname *.h -exec basename {} \; | sort | uniq -c
+
+
#qemu-system-i386 -netdev tap,id=mynet0,ifname=tap0,script=no,downscript=no -enable-kvm fool-os-i386.iso -smp 4 -serial stdio
#sudo tunctl -t tap0 -u miguel
-qemu-22:
- qemu-system-i386 -s -enable-kvm fool-os-i386.iso -smp 4 -serial stdio -net user,hostfwd=tcp::10022-:22 -net nic -net dump,file=./netfool
+
+# tunctl -u <username>
+
+#-net user,hostfwd=tcp::10022-:22\
+#echo 1 > /proc/sys/net/ipv4/ip_forward
+#echo 1 > /proc/sys/net/ipv4/conf/wlan0/proxy_arp
+#echo 1 > /proc/sys/net/ipv4/conf/tap0/proxy_arp
+
+#ip link set tap0 up
+#route add -host 192.168.0.20 dev tap0 <-- to be changed by you.