On Friday, February 04, 2011 2:12:38 am Michael Hope wrote:
I've had a go with running the QEMU release candidate. Short story is that it boots to a prompt against the 11.05 alpha2 release so I'm happy.
It was a messy road so I've written up my train of though here: https://wiki.linaro.org/MichaelHope/Sandbox/QEMU
Hi Michael,
Thank you for sharing this! I noticed that you're using the offset and sizelimit options to mount the two partitions. If found the kpartx tool quite convenient for such tasks. It reads the partition table from the image and creates device maps:
# prerequisites sudo apt-get install kpartx
# list the partitions sudo kpartx -l mmc-beagle.img
# map the partions to /dev/mapper/loop0p* sudo kpartx -a mmc-beagle.img
# mount the partions sudo mount /dev/mapper/loop0p1 /mnt/tmp1 -o loop sudo mount /dev/mapper/loop0p2 /mnt/tmp2 -o loop
# unmount and unmap sudo umount /mnt/tmp1 /mnt/tmp2 sudo kpartx -d /dev/mapper/loop0p*
Regards Ken