-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.sh
executable file
·45 lines (35 loc) · 1.11 KB
/
test.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/bin/sh
ROOTFS="core-image-minimal-qemux86-64.ext3"
# ROOTFS="core-image-sato-qemux86-64-20121104193726.rootfs.ext3"
top=`pwd`
sudo umount root
sudo rm -rf core* root
sudo mkdir root
cp ../TestImages/$ROOTFS .
sudo mount -o loop $ROOTFS root
cd linux-stable
sudo make INSTALL_MOD_PATH="$top/root" modules_install
sync
cd $top
sudo umount root
sudo qemu-system-x86_64 \
-kernel linux-stable/arch/x86/boot/bzImage \
-hda $ROOTFS \
-serial stdio \
-net nic,model=rtl8139 \
-net user \
-show-cursor -usb -usbdevice wacom-tablet \
-vga vmware -no-reboot \
-m 128 \
--append "console=ttyS0 vga=0 root=/dev/sda rw mem=128M oprofile.timer=1"
#--append "console=ttyS0 vga=0 root=/dev/sda ip=10.1.2.222:10.1.2.0:255.255.255.0 rw mem=128M oprofile.timer=1"
#sudo qemu-system-x86_64 \
# -kernel linux-stable/arch/x86/boot/bzImage \
# -hda core-image-sato-qemux86-64.ext3 \
# -net nic,vlan=0 \
# -net tap,vlan=0,ifname=tap0,script=no,downscript=no \
# -serial stdio \
# -show-cursor -usb -usbdevice wacom-tablet \
# -vga vmware -no-reboot \
# -m 128 \
# --append "console=ttyS0 vga=0 root=/dev/sda rw mem=128M oprofile.timer=1"