Wednesday, December 17, 2014

Run Raspberry Pi using Qemu emulater on Windows

There are a few things that make the Raspberry Pi a great device on which to learn programming. Firstly it's cheap. At around a tenth of the price of a low-end PC, it's cheap enough to have in addition to your main computer.Here is the guide to emulate Raspberry pi using Qemu Emulator on our PC.





1. Download Suitable virsion of the the Qemu Emulator and Extract it into the folder
2. Download and place the Qemu kernel in the same directory.
3. Download the Image file for your Raspberry Pi Emulator and Extract it into the same Directory .

Now Your Folder Should be like this in the final view after all editing works
Now the time to start our Emulator so to make easy the work we need to create a .bat file to run Starting command.in your text editor create a new file and type the below command and save it as Raspberry.bat name is optional one and make sure your image file name.
qemu-system-armw.exe -kernel kernel-qemu -cpu arm1176 -m 256 -M versatilepb -no-reboot -serial stdio -append "root=/dev/sda2 panic=1 rootfstype=ext4 rw init=/bin/bash" -hda wheezy_raspbian.img



then we need to make some modifications before we boot properly to make this change run the .Bat file as a administrator then only it will allow to modify the files

Type                nano /etc/ld.so.preload
Put a # in front of the first line so that it looks like this:
           #/usr/lib/arm-linux-gnueabihf/libcofi_rpi.so
Now Press ctrl-x then y then enter to save and exit.

Now is the time to run the Emulator to do then open your .bat file and delete the code init=/bin/bash
 its mean
qemu-system-armw.exe -kernel kernel-qemu -cpu arm1176 -m 256 -M versatilepb -no-reboot -serial stdio -append "root=/dev/sda2 panic=1 rootfstype=ext4 rw" -hda wheezy_raspbian.img

Above is the new code to run if you run this code




















when we run the command it will ask the username and password for the pi

Default Username=pi
Default Password=Raspberry

if we type correct username & Password above window will appear in that console type startx this is the command to start the Raspberry pi Emulator




















Yes! we Done our work now Qemu Emulator Running on Windows Machine

No comments:

Post a Comment