Monday, March 22, 2010

How to run Qi NanoNote's OpenWRT in QEMU?

I'm putting this post here as a place holder... I'll be adding to it, as I learn how to use the Force...

This is in preparation for the arrival of my Qi NanoNote!

-Joshua

==============

On Fedora 12 x86_64:

$ su -

$ yum install qemu-system-mips

as non-root:

$ cd ~

$ mkdir -p nn-dev/openwrt

$ cd nn-dev/openwrt

$ git clone git://projects.qi-hardware.com/openwrt-xburst.git

$ cd openwrt-xburst

$ git fetch origin

$ git checkout --track -b xburst origin/xburst

$ make menuconfig

# select "Ingenic XBurst" as "Target System"

# select "U-Boot target board" and the string for it is "qi_lb60"

# save / exit


$ make

$

http://free-electrons.com/doc/u-boot-labs-mips.odt


 http://en.qi-hardware.com/wiki/Ben_source_code

 http://kamikaze.openwrt.org/docs/openwrt.html#x1-410002.1.1

=======

pavo test

$ yum install install SDL_* zlib-devel

$ cd ~

$ mkdir pavo-test



$ wget http://jz-hacking.googlecode.com/files/qemu-JZ_20090207.tar.gz

$ tar zxvf qemu-JZ_20090207.tar.gz


$ cd qemu-JZ

$ ./configure --target-list=mipsel-softmmu --prefix=~/pavo-test/qemu-jz

$ make

$ make install

$ cd ~/pavo-test

$ wget http://jz-hacking.googlecode.com/files/jz_uboot_20090624.tar.bz2

$ tar -jxvf jz_uboot_20090624.tar.bz2

$ cd jz_uboot

http://code.google.com/p/jz-hacking/wiki/qemujz





### someone else's snippet (for some other use)

qemu-system-mips -kernel vmlinux-2.6.18-5-qemu -hda debian_etch_mips_small.qcow -append "root=/dev/hda1 console=ttyS0" -nographic

2 comments:

  1. Hi,

    I don't quite get how to run be able to run OpenWRT as compiled for the nano in qemu. Already have qemu mips installed, and the OpenWRT toolchain (already 2 ported programs!).

    Any more hints, please?

    Ruben

    ReplyDelete
  2. First, thanks for visiting.. Second, I've not had success myself... I hope to continue updating this post as I piece what I know is theoretically possible into a reality. :)

    Joshua

    ReplyDelete