Raspberry Pi Emulator For Windows 10: Circuits
Raspberry Pi Emulator For Windows 10: Circuits
advertisement
Raspberry Pi Emulator for Windows 10
By TechWizYouTube in Circuits > Computers 84,141 111 15 Featured
Download Favorite
By
TechWizYouTube
TechWizTime
YouTube
Follow More
by the
author:
advertisement
About: I'm a YouTube Maker and Creator who loves to
find ways outside of the box to create and use things.
My primary mission is to teach what I have learnt in the
simplest way possible to all human kind. Follow me...
More About 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!
Download
advertisement
Step 1: What You'll Need
Step 2: Download QEMU
Go to http://qemu.weilnetz.de/w32/
Select the 32-bit folder.
Click on the version with the most recent
Click on the version with the most recent
modify date.
When it downloads, use 7zip to extract it’s
contents into a folder.
Step 3: Download the Kernel
Go to https://github.com/dhruvvyas90/qemu-
rpi-kernel
Select the most recent ㄮ㠵le.
Click on the “Download” at the left of
“History”
After it downloads, place the ㄮ㠵le inside the
folder where you extracted the QEMU.
Add Tip V Ask Question | Comment
Download
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.
Step 5: Set Up the Emulator
Get inside the folder where you extracted
Raspbian, QEMU and placed the Kernel.
Create a new text ㄮ㠵le and name it “start.bat”
Right click on it and press “Edit”
Type in “qemu-system-arm -kernel kernel-
qemu-4.4.34-jessie -cpu arm1176 -m 256 -M
versatilepb -no-reboot -serial stdio -append
“root=/dev/sda2 panic=1 rootfstype=ext4 rw
init=/bin/bash” -drive “ㄮ㠵le=2017-03-02-
raspbian-
jessie.img,index=0,media=disk,format=raw” -
redir tcp:2222::22″
Save the ㄮ㠵le and close it.
Type “cmd” on the address bar to start up the
command prompt.
In the command prompt, type “start.bat”
Type in “sudo nano /etc/udev/rules.d/90-
qemu.rules” Press “Enter” Type in
“KERNEL==”sda”, SYMLINK+=”mmcblk0″
KERNEL==”sda?”, SYMLINK+=”mmcblk0p%n”
KERNEL==”sda2″, SYMLINK+=”root””
Press “Ctrl X” “Y” “Enter”
Close the emulator.
Go to the “start.bat” ㄮ㠵le.
Delete the line “init=/bin/bash””
Save and close the ㄮ㠵le.
In the cmd, type in “qemu-img.exe resize
2017-03-02-raspbian-jessie.img +4G”
Press “Enter”
A small error will appear, but the resizing will
take e洠㘴ect.
Type in “start.bat”
Press “Enter”
Step 6: Optimize the Emulator
Once it loads, open up the Terminal.
Type in “sudo fdisk/dev/sda”
Press “Enter”
Type “P”
Press “Enter”
Type “D”
Press “Enter”
Type “2”
Press “Enter”
Type “N”
Press “Enter”
Type “P”
Press “Enter”
You’ll be asked for the ㄮ㠵rst sector of the
partition, type in the number you see on the
ㄮ㠵rst partition +1. IE: 20298 + 1 = 20299
Press “Enter”
When it ask for the last sector, press “Enter” to
use the whole ammount of the image.
Type “W”
Press “Enter”
You’ll get a message stating that the creation
of the partition failed, shut down the emulator
for the changes to take e洠㘴ect.
In the cmd, start the emulator by starting the
“start.bat” ㄮ㠵le.
Get inside the Terminal of Raspbian once it
loads.
Type in “sudo resize2fs /dev/sda2”
Press “Enter”
A message will appear saying that the
partition rezise was successful.
Type in “sudo nano /etc/dphys-swapㄮ㠵le”
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-swapㄮ㠵le stop”
Press “Enter”
Type in “sudo /etc/init.d/dphys-swapㄮ㠵le start”
Go to “Raspberry Pi Conㄮ㠵guration”
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 “Yes”
Congratulations, you’ve just installed
Raspbian on your Windows 10 PC via QEMU,
conㄮ㠵gured it, optimized it and that’s it for this
Instructable.
If you enjoy this Instructable, consider
If you enjoy this Instructable, consider
checking out my TechWizTime YouTube
Channel.
And for a good source of Raspberry Pi
products, check out my Raspberry Pi Amazon
List.
Sterling
WEBSITE DIRECTIONS
advertisement
Be the First to Share
Did you make this project? Share it with us!
I Made It!
Recommendations
Arduino Magnetic Board by andrei.erdei in
Arduino
16 8 5.4K
Add Tip
V Ask Question
| Post Comment
We have a be nice policy.
Please be positive and constructive.
Add Images Post
15 Discussions
rulet5 14 days ago
Reply / Upvote
C:\files1\qemu>qemusystemarm kernel kernel
qemu4.19.50buster cpu arm1176 m 256 M
versatilepb noreboot serial stdio append
versatilepb noreboot serial stdio append
"root=/dev/sda2 panic=1 rootfstype=ext4 rw
init=/bin/bash" hda 20200527raspiosbuster
fullarmhf.img
qemusystemarm: warning: GdkPixbuf: Cannot
open pixbuf loader module file
'C:\files1\qemu\lib\gdkpixbuf
2.0\2.10.0\loaders.cache': No such file or
directory
This likely means that your installation is broken.
Try running the command
gdkpixbufqueryloaders > C:\files1\qemu\lib\gdk
pixbuf2.0\2.10.0\loaders.cache
to make things work again for the time being.
WARNING: Image format was not specified for
'20200527raspiosbusterfullarmhf.img' and
probing guessed raw.
Automatically detecting the format is dangerous
for raw images, write operations on block 0 will be
restricted.
Specify the 'raw' format explicitly to remove the
restrictions.
dsound: Could not initialize DirectSoundCapture
dsound: Reason: No sound driver is available for
use, or the given GUID is not a valid DirectSound
device ID
Error: invalid dtb and unrecognized/unsupported
machine ID
r1=0x00000183, r2=0x00000100
r2[]=05 00 00 00 01 00 41 54 01 00 00 00 00 10
00 00
Available machine support:
ID (hex) NAME
ffffffff Generic DT based system
ffffffff ARMVersatile (Device Tree Support)
Please check your kernel config and/or
bootloader.
C:\files1\qemu>
/ vOOda 1 year ago
Reply / Upvote
2
The post is very outdated ...
1 reply F
Lodbrok 1 year ago
Reply / Upvote
Regarding “sudo fdisk /dev/sda”
After doing this part I get
"No filesystem could mount root, tried: ext4
Kernel panic not syncing: VFS: Unable to mount
root fs on unknownblock(8,2)"
Does anyone know how to get out of that hole,
and even better, what to do instead?
VladivariusV 2 years ago
Reply / Upvote
I needed to do this emulation so many times, I
created a small program to do it in one click! I
also thought that other people would find it useful
so I put on a website for it. You can find it here:
http://www.rpiemulator.com/
2 replies F
Pavan Kumar VarmaG 2 years ago
Reply / Upvote
this is the error i get when i execute start.bat file
qemusystemarm kernel kernelqemu4.4.34
jessie cpu arm1176 m 256 M versatilepb no
reboot serial stdio append ôroot=/dev/sda2
panic=1 rootfstype=ext4 rw init=/bin/bashö drive
ôfile=20170302raspbian
jessie.img,index=0,media=disk,format=rawö redir
jessie.img,index=0,media=disk,format=rawö redir
tcp:2222::22
qemusystemarm: redir tcp:2222::22: The redir
option is deprecated. Please use 'netdev
user,hostfwd=...' instead.
qemusystemarm: append ⌠root=/dev/sda2:
Could not open 'panic=1': The system cannot find
the file specified.
1 reply F
CharlieB65 2 years ago
Reply / Upvote
After 4 failed attempts at this I think the op might
want to review the content for usability. I get the
machine spun up ok, but it all goes downhill from
there. Particularly the stage in resizing the
partition.
"
You’ll be asked for the first sector of the partition,
type in the number you see on the first partition
+1. IE: 20298 + 1 = 20299
"
There are 3 numbers on the first partition. Which
one do you mean? I was guessing the end of the
partition, but again there are 2 numbers for that. I
tried both and hosed the machine on both
occasions.
So on my fourth and final try, I used gparted to
resize sda2, made the changes to the swapfile,
set the pi config options for turbo mode and now
my machine is toast again.
Says it can't mount the kernel file system.
It's a great article, and has been fun to try but
frustrating to not have anything to show for my
efforts after around 6 hrs of tinkering.
ArielZusya 2 years ago
Reply / Upvote
Thanks for creating this tutorial but something is
Thanks for creating this tutorial but something is
wrong... I too am running into the same problem
as the other commenters. I've tried several things.
First, I tried installing QEMU using the installer
and I tried just extracting it to a folder like you did
in the video. No difference between the two (apart
from having to push windows to allow me to move
the various other files into a program files (x86)
subfolder). Then I tried it with the current version
of Raspbian (0907 stretch) and with the version
that was available when you created the tutorial
(0302 jessie available at
http://downloads.raspberrypi.org/raspbian/images/raspbian
20170303/) and no change there. I too could not
get the batch file to run so I had to manually type
the line into the command prompt. That allowed
me to launch the emulator, but it reboots and then
closes. Looking at the screen grab (attached) just
before reboot, I wonder if that line, "kernel panic
not syncing: VFS: Unable to mount root fs on
unknownblock(0,0)" is the culprit. Any thoughts
on how one might fix this? Thanks!
chinmayeer 2 years ago
Reply / Upvote
Hi, I have reached half way after typing start.bat
its showing'qemusystemarm' is not recognized
as an internal or external command,
operable program or batch file. what should I
do..Plz help.
KeralaReviews 2 years ago
Reply / Upvote
Hi TechWiz , I followed your instructions, reached
half way. but after doing a partition and shutting it
down. The emulator runs and says "rebooting 1
second" then goes away. Please help
rpotts2 3 years ago
Reply / Upvote
What? no swagfile? LOL!
Well written!
1 reply F
Post Comment
Cooking
Find Us
© 2020 Autodesk, Inc.