[ADD] viki files and Makefile
[arrow.git] / viki / uboot / uboot-mips-run.viki
blobc174a2ac456b2852b34c9fcfd01a7624347964b1
1 ====== how to run mips on qemu ======
2 * MIPS BIOS not found on startup(deal with error)
3 <code console>
4 [ralf@box qemu]$ qemu-system-mips -kernel /tftboot/192.168.0.1/vmlinux.bin -m 16 -nographic
5     (qemu) mips_r4k_init: start
6     mips_r4k_init: load BIOS '/usr/local/share/qemu/mips_bios.bin' size 131072
7     qemu: could not load MIPS bios '/usr/local/share/qemu/mips_bios.bin'
8 [ralf@box qemu]$ dd if=/dev/zero of=/usr/local/share/qemu/mips_bios.bin bs=1024 count=128
9 </code>
11 * run qemu
12 <code console>
13 $ insmod kqemu.ko
14 $ qemu-img create -f qcow disk.img 128M
15 $ qemu -hda disk.img -cdrom /root/cflinux-1.0.iso -boot d
16 </code>
18 * gdbserver for qemu
19 <code console>
20 # cd /opt
21 # mkdir -p arm-gdb/build
22 # cd arm-gdb/build
23 # /opt/gdb-6.6/configure --host=i386-linux --target=mips-linux-uclibc --prefix=/opt/mips-gdb
24 # make
25 # make install
26 </code>
27 ref:(http://blog.csdn.net/hansel/archive/2007/10/18/1830543.aspx)