Running the *.img file instead of the SD card, three partitions are detected: sda1, sda2, sda5. This time partitions are not detected and I get the error copied above. (Notice that I used "fuse-ext2" which is a third-party on MacOSX). $ qemu-system-arm -kernel path/to/kernel-qemu -cpu arm1176 -m 256 -M versatilepb -no-reboot -serial stdio -append "console=ttyAMA0 root=/dev/sda5 rootfstype= fuse-ext2 rw" -hda /dev/disk2 Then I try to run the same from MacOSX, as follows: Where /dev/sdd is my SD card as recognized by Arch Linux. $ qemu-system-arm -kernel /path/to/kernel-qemu -cpu arm1176 -m 256 -M versatilepb -no-reboot -serial stdio -append "console=ttyAMA0 root=/dev/sda5 rootfstype=ext4 rw" -hda /dev/sdd I can emulate my Pi system from the SD card when I run QEMU from Arch Linux (as described in this link): $ qemu-system-arm -kernel path/to/kernel-qemu -cpu arm1176 -m 256 -M versatilepb -no-reboot -serial stdio -append "console=ttyAMA0 root=/dev/sda5 rootfstype=ext4 rw" -hda /path/to/ Enter fuse-ext2, a new similar project which indeed does work with recent distros, both in Mac OS X 10.4.x and 10.5.x, on Intel and PowerPC machines. Both these projects, however, don't seem to be developed any more. Using the following command, I can emulate my Pi image ( *.img) successfully (both from Arch Linux and from MacOSX: ext2 filesystem in user space, with an available experimental Mac OS X package (from the author of NTFS-3G/Mac). First you have to download, make and install several tools (m4, autoconf, automake, libtool, e2fsprogs). Then open Terminal.app and enter cd /Downloads assuming the fuse-ext2 file was unzipped there. Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(8,5)ĬPU: 0 PID: 1 Comm: swapper Not tainted 3.10.26+ #2 Download the source from github and unzip the file. Please append a correct "root=" boot option here are the available partitions: is used to identify the Mac OS-X partition, which is used by Mac OS-X computers. Actually, whatever I put in this rootfstype field, I get the same error: VFS: Cannot open root device "sda5" or unknown-block(8,5): error -6 You may need to install 'fuse-exfat' device driver to support it. Running QEMU, I try to specify the filesystem with rootfstype=fuse-ext2, but QEMU still does not detect the partitions. Now I can mount my ext4 filesystem without problems using: $ mount -t fuse-ext2 /dev/disk2s5 /mnt/sda5 Since MacOSX cannot mount ext4 natively, I tried to install osxfuse and fuse-ext2. It does not when I use the SD card, though. However, the partitions on my SD card are not recognized properly: when I use the *.img file, QEMU detects the partitions. I am trying to emulate a RaspberryPi directly from the SD card (using the same commands as presented here from MacOSX.
0 Comments
Leave a Reply. |