Hi Experts, QEMU 1.2.0 Virtual Platform: versatilepb Linux Kernel: 3.5.5
Command to run QEMU: /usr/local/bin/qemu-system-arm -M versatilepb -kernel /home/vgahlaut/labs/linux-3.5.5/arch/arm/boot/zImage -nographic -hda /home/vgahlaut/labs/disk.img -append "root=/dev/sda mem=128M console=ttyAMA0,115200" After my system boots fine, I can see /dev/mtdblock0 but when I tried to mount mtdblock0 linux gives me error as below / # mount /dev/mtdblock0 mnt/ mount: mounting /dev/mtdblock0 on mnt/ failed: Invalid argument / # mount -t ext2 /dev/mtdblock0 mnt/ mount: mounting /dev/mtdblock0 on mnt/ failed: Invalid argument / # mount -t ext2 -o ro /dev/mtdblock0 mnt/ mount: mounting /dev/mtdblock0 on mnt/ failed: Invalid argument Then I changed my command to below (added -mtdblock option) /usr/local/bin/qemu-system-arm -M versatilepb -kernel /home/vgahlaut/labs/linux-3.5.5/arch/arm/boot/zImage -nographic -hda /home/vgahlaut/labs/disk.img -mtdblock /home/vgahlaut/labs/nand.img -append "root=/dev/sda mem=128M console=ttyAMA0,115200" but then again I get same errors while mounting /dev/mtdblock0. I have created nand.img is created with qemu-img command and formatted with ext2 after mounting with loopback. I didn't find much information in documentation on how to use mtdblock device with QEMU. Can someone please guide me how can I mount qemu simulated mtdblock device in linux. Thanks in Advance. Best Regards Vipin