You are on page 1of 6

instructables

Raspberry Pi Emulator for Windows 10

by TechWizYouTube

In this article, you are going to learn how to run Raspbian on your Windows 10 PC.

If you really enjoy this article, consider checking out my TechWizTime YouTube Channel.

And for an awesome source of Raspberry Pi Accessories, check out my Raspberry Pi Amazon List.

Let’s get started!

Raspberry Pi Emulator for Windows 10: Page 1


Step 1: What You'll Need

1. QEMU
2. Compatible Kernel
3. Raspbian
4. Windows 10
5. Keyboard
6. 7Zip

https://www.youtube.com/watch?v=xiQX0YXYuqU&feature=push-u-sub&attr_tag=dMSrwtD0RrjqEV2K-6

Step 2: Download QEMU

Go to http://qemu.weilnetz.de/w32/

Select the 32-bit folder.

Click on the version with the most recent modify date.

When it downloads, use 7zip to extract it’s contents into a folder.

Raspberry Pi Emulator for Windows 10: Page 2


Step 3: Download the Kernel

Go to https://github.com/dhruvvyas90/qemu-rpi-kernel

Select the most recent file.

Click on the “Download” at the left of “History”

After it downloads, place the file inside the folder where you extracted the QEMU.

Step 4: Download Raspbian

Go to http://downloads.raspberrypi.org/

Click on “Downloads” Select “Raspbian”

Download the Pixel desktop version.

After it downloads, extract the contents on the same folder where you extracted QEMU.

Raspberry Pi Emulator for Windows 10: Page 3


Step 5: Set Up the Emulator

Get inside the folder where you extracted Raspbian, Save the file and close it.
QEMU and placed the Kernel.
Type “cmd” on the address bar to start up the
Create a new text file and name it “start.bat” command prompt.

Right click on it and press “Edit” In the command prompt, type “start.bat”

Type in “qemu-system-arm -kernel kernel-qemu- Type in “sudo nano /etc/udev/rules.d/90-qemu.rules”


4.4.34-jessie -cpu arm1176 -m 256 -M versatilepb - Press “Enter” Type in “KERNEL==”sda”,
no-reboot -serial stdio -append “root=/dev/sda2 SYMLINK+=”mmcblk0² KERNEL==”sda?”,
panic=1 rootfstype=ext4 rw init=/bin/bash” -drive SYMLINK+=”mmcblk0p%n” KERNEL==”sda2²,
“file=2017-03-02-raspbian- SYMLINK+=”root””
jessie.img,index=0,media=disk,format=raw” -redir
tcp:2222::22² Press “Ctrl X” “Y” “Enter”

Close the emulator. Press “Enter”

Go to the “start.bat” file. A small error will appear, but the resizing will take
effect.
Delete the line “init=/bin/bash””
Type in “start.bat”
Save and close the file.
Press “Enter”
In the cmd, type in “qemu-img.exe resize 2017-03-02-
raspbian-jessie.img +4G”

Step 6: Optimize the Emulator

Raspberry Pi Emulator for Windows 10: Page 4


Once it loads, open up the Terminal. Type “P”

Type in “sudo fdisk/dev/sda” Press “Enter”

Press “Enter” You’ll be asked for the first sector of the partition, type
in the number you see on the first partition +1. IE:
Type “P” 20298 + 1 = 20299

Press “Enter” Press “Enter”

Type “D” When it ask for the last sector, press “Enter” to use
the whole ammount of the image.
Press “Enter”
Type “W”
Type “2”
Press “Enter”
Press “Enter”
You’ll get a message stating that the creation of the
Type “N” partition failed, shut down the emulator for the
changes to take effect.
Press “Enter”

In the cmd, start the emulator by starting the “Yes”


“start.bat” file.
Congratulations, you’ve just installed Raspbian on
Get inside the Terminal of Raspbian once it loads. your Windows 10 PC via QEMU, configured it,
optimized it and that’s it for this Instructable.
Type in “sudo resize2fs /dev/sda2”
If you enjoy this Instructable, consider checking out
Press “Enter” my TechWizTime YouTube Channel.

A message will appear saying that the partition rezise And for a good source of Raspberry Pi products,
was successful. check out my Raspberry Pi Amazon List.

Type in “sudo nano /etc/dphys-swapfile”

Press “Enter”

Go down to where it says “conf_swapsize=100” and


change the “100” to “1024”

Press “Ctrl X” “Y” and “Enter”

Type in “sudo /etc/init.d/dphys-swapfile stop”

Press “Enter”

Type in “sudo /etc/init.d/dphys-swapfile start”

Go to “Raspberry Pi Configuration”
Raspberry Pi Emulator for Windows 10: Page 5
Click on “Enabled”

Locate “SSH” and press “Enable”

Click on “Performance”

On “Overclock”, select “Tubo (1000GHz)”

EXTRA: You can go to Localization and select your


country of residence or the country you prefer and
then click on “Keyboard” to change your keyboard
settings.

Press “OK” to save all of your changes.

Shut down the Emulator.

Open it again via cmd using the “start.bat”

If you turned on SSH, you’ll see a warning, click on

Raspberry Pi Emulator for Windows 10: Page 6

You might also like