qemu on Raspberry Pi Arch Linux latest sd image qemu on Raspberry Pi Arch Linux latest sd image linux linux

qemu on Raspberry Pi Arch Linux latest sd image


In case archlinux-hf-2013-07-22.imgHere there 3 partion are made.you can check by using

fdisk -l archlinux-hf-2013-07-22.img

rootfs is in sd5 i.e 5th partion.

So pass this parameter "root=/dev/sda5 panic=1" , it will boot perfectly.


In 2013-05-25-wheezy-raspbian.imgYou can use same kernel for both image.

Here you have to comment ld.so.preload which will load some shared-library,which will unable login. so kernel panic.

Note:-"root=/dev/sda2 panic=1" pass this parameter only.

You can comment it by doing below.

sudo kpartx -av 2013-05-25-wheezy-raspbian.img

mkdir tmp

sudo mount /dev/mapper/loop0p2 tmp/

cd tmp/etc

sudo vi ld.so.preload/usr/lib/arm-linux-gnueabihf/libcofi_rpi.socomment

#/usr/lib/arm-linux-gnueabihf/libcofi_rpi.so

umount /dev/mapper/loop0p2kpartx -d 2013-05-25-wheezy-raspbian.img

Then run qemu

qemu-system-arm -kernel kernel-qemu -cpu arm1176 -m 256 -M versatilepb -no-reboot -serial stdio -append "root=/dev/sda2 panic=1" -hda 2013-05-25-wheezy-raspbian.img

this will perfectly boot without any trouble