This mini howto should work with another versions of SmartQ. It only run with some limited features (no X environment, only with nxPADD firmware and it extremly slow). You can get the nxPADD firmware in this post.

You need to have a working QEMU installation with arm support. You also need this kernel (if you have another working kernel put the link as a comment).


Create System Image

felipe@funstation $ dd if=/dev/zero of=rootfs-new.raw bs=1024 count=2048000
felipe@funstation $ mkfs.ext3 -F -L smartq rootfs-new.raw
felipe@funstation $ sudo mount -o loop rootfs-new.raw /mnt/temp

Copy Filesystem

felipe@funstation $ sudo cp -a extracted/rootfs/* /mnt/temp/
felipe@funstation $ sudo cp -a extracted/homefs/user /mnt/temp/home/

Edit fstab

felipe@funstation $ sudo nano /mnt/temp/etc/fstab

The file must look like this:

#/dev/ndda1     /               ext3    noatime         0       1
#/dev/ndda2     /home           ext3    noatime         0       2
/dev/sda        /               ext3    noatime         0       0

umount image

felipe@funstation $ sudo umount /mnt/temp

Run Virtual Machine

felipe@funstation $ qemu-system-arm -M versatilepb -cpu cortex-a8 -kernel vmlinuz -hda rootfs-new.raw -m 256 -show-cursor -serial vc -append "root=/dev/sda mem=256M rootwait rw"