What's the best way to build applications for the debian dockstar/pogoplug environment?
Obviously, one way is to build them on the device itself. This has the advantage that is simple and easy to understand.
But I'd like to build on my main debian workstation, which has plenty of cpu horsepower and memory, but is an AMD (i686) arch. I figured I could copy my debian dockstar disk to an image file and run it under qemu. First, I plugged my usb flash drive in my desktop system and tried copying the entire disk to an image and running qemu like this:
dd if=/dev/sdc of=debian-dockstar.img
qemu-system-arm debian-dockstar.img
But this complained that I need to specify a kernel. So next I tried
qemu-system-arm -kernel debian-dockstar.img
qemu immediately exited with an access violation. Next I tried making a copy of just the root filesystem and running that
dd if=/dev/sdc1 of=debian-dockstar-root.img
qemu-system-arm -kernel debian-dockstar-root.img
This opens a qemu display window, but it remains blank. The qemu-system-arm process consumes 100% cpu, apparently indefinitely. After a few minutes, I killed it.
Next, I tried mounting the root filesystem so I could point qemu at the kernel and initrd images.
sudo mkdir /mnt/tmp
sudo mount -o loop debian-dockstar-root.img /mnt/tmp
qemu-system-arm -kernel /mnt/tmp/boot/vmlinuz-2.6.32-5-kirkwood -initrd /mnt/tmp/boot/initrd.img-2.6.32-5-kirkwood -hda debian-dockstar-root.img
This produced the same empty qemu window and 100% cpu.
So has anyone managed to get their debian dockstar image to run under qemu?