Install Qemu
[ ]$ wget http://wiki.qemu-project.org/download/qemu-2.0.0.tar.bz2
[ ]$ tar jxvf qemu-2.0.0.tar.bz2
[ ]$ cd qemu-2.0.0
Compile Qemu
[ ]$ ./configure --target-list=mipsel-softmmu
[ ]$ make
[ ]$ sudo make install
Compile U-boot
[ ]$ CROSS_COMPILE=mips-linux-gnu- make -C u-boot-2014.01 qemu_mipsel
Run Qemu/U-boot
[ ]$ dd of=flash bs=1k count=4k if=/dev/zero
[ ]$ dd of=flash bs=1k conv=notrunc if=u-boot.bin
[ ]$ qemu-system-mipsel -M mips -m 128 -pflash flash -monitor null -nographic
U-Boot 2014.01 (Apr 24 2014 - 10:20:11)
Board: Qemu -M mips CPU: 24Kf proc_id=0x19300
DRAM: 128 MiB
Flash: 4 MiB
*** Warning - bad CRC, using default environment
In: serial
Out: serial
Err: serial
Net: NE2000
Hit any key to stop autoboot: 0
qemu-mipsel # version
U-Boot 2014.01 (Apr 24 2014 - 10:20:11)
mips-linux-gnu-gcc (Sourcery CodeBench Lite 2013.11-36) 4.8.1
GNU ld (Sourcery CodeBench Lite 2013.11-36) 2.23.52.20130912
qemu-mipsel #
No comments:
Post a Comment