sundansx
Posts: 3
Joined: Wed Jul 11, 2012 7:28 am

Re: Emulating Raspberry Pi in Windows the easy way

Wed Jul 11, 2012 6:52 pm

touche', I would have to agree.
I am not familar with QEMU at all, but I am with vmware and vbox. I understand what you are saying. i will look at how to configure QEMU as a bridged network.
I will post details of how I did this so others can follow.

Note:
I think that it would be useful for people to post instructions on how to do stuff like this, as opposed to mentioning it in passing...there might be a lot of kids that are using the emulator soon given the contest (I am not one of them) and I think that the kids that are using the emulator are already at a disadvantage to those that have real hardware. They should have waited until they actually shipped some more volume to start a contest. Chicken and egg, I suppose.
thanks.

Joe Schmoe
Posts: 4277
Joined: Sun Jan 15, 2012 1:11 pm

Re: Emulating Raspberry Pi in Windows the easy way

Wed Jul 11, 2012 8:55 pm

I agree with you, but TBH, I'm not a QEMU maven. In fact, like you, I'm more familiar with VMWare than anything (never have used VBox).

But, and here's the thing, I actually didn't know that QEMU could (and did) do the "private network on 10.x.y.z" thing. When I set it up (on Windows), I used "-net nic -net if=TAP" (or something like that - haven't checked lately) and it just magically did the "bridging" thing.
And some folks need to stop being fanboys and see the forest behind the trees.

(One of the best lines I've seen on this board lately)

sundansx
Posts: 3
Joined: Wed Jul 11, 2012 7:28 am

Re: Emulating Raspberry Pi in Windows the easy way

Thu Jul 12, 2012 12:10 am

That's fine. I wasn't targeting you specifically. I just saw several posts that mentioned things in passing but did not explain how to do them or how to find out. I will admit, having to do that research would be good for the kiddies, but if they spend a bunch of their time doing that stuff, they will be at a disadvantage to other competitors.
Just a thought. Thanks very much for you help.

ferrymanr
Posts: 61
Joined: Fri Mar 16, 2012 11:09 pm

Re: Emulating Raspberry Pi in Windows the easy way

Fri Jul 13, 2012 2:34 pm

Two weeks ago I managed to get the wheezy image working in the emulator. Since then I have installed various software packages, expanded the image to almost fill a 4GB SD card and run the expanded image in the emulator and finally write it to a new SD card. On 11th. I received an e-mail from Farnell to say that my order had been shipped. Today it arrived :-) I'm pleased to say my SD card booted without error and all my extra installed packages are intact and ready to go. My thanks to mjlally for enabling all the preparation with his easy emulator.
Richard (Dick) G4BBH

mjlally
Posts: 49
Joined: Thu May 10, 2012 9:08 pm
Location: Reading, UK

Re: Emulating Raspberry Pi in Windows the easy way

Tue Jul 17, 2012 9:39 pm

LATEST UPDATE

I will be uploading new zip folders for debian squeeze and wheezy with the latest qemu for windows, next day or two, depending on when I am next near fast internet.

Sorry for the delay, very busy at the moment.

The latest qemu seems to have normal colour and networking working so far. Anybody have any thoughts about which to make the main download? Any of you who have used wheezy and squeeze, which would be more suitable for kids without a pi who want to use qemu to enter the programming competition?

Joe Schmoe
Posts: 4277
Joined: Sun Jan 15, 2012 1:11 pm

Re: Emulating Raspberry Pi in Windows the easy way

Wed Jul 18, 2012 12:14 am

What's a "zip folder"???

It sounds dangerous to me. Like a zip gun or something.
And some folks need to stop being fanboys and see the forest behind the trees.

(One of the best lines I've seen on this board lately)

Ocean20
Posts: 38
Joined: Wed Jul 18, 2012 2:36 am
Location: Australia

Re: Emulating Raspberry Pi in Windows the easy way

Wed Jul 18, 2012 6:58 am

I installed Oracle VirtualBox and then installed the Debian squeeze and ran it in the virtual machine and got it to work like a RPi. That was fun. There was a video that explained how to do it and it was at www.debianperu.org/archives/1050

mjlally
Posts: 49
Joined: Thu May 10, 2012 9:08 pm
Location: Reading, UK

Re: Emulating Raspberry Pi in Windows the easy way

Wed Jul 18, 2012 9:36 am

Joe Schmoe wrote:What's a "zip folder"???

It sounds dangerous to me. Like a zip gun or something.
I'm sure you know what I meant Joe, but just in case anybody else is confused, when I say zip folder I mean a folder or directory and all of its contents, that has been compressed and saved as a .zip file.

On a more flippant note, it would be dangerous not to store your zip files in a zip folder, all the different lengths and different size teeth, not to mention the different zippers, would get mixed up and you'd have quite a tough job matching everything up!

mjlally
Posts: 49
Joined: Thu May 10, 2012 9:08 pm
Location: Reading, UK

Re: Emulating Raspberry Pi in Windows the easy way

Wed Jul 18, 2012 9:39 am

Ocean20 wrote:I installed Oracle VirtualBox and then installed the Debian squeeze and ran it in the virtual machine and got it to work like a RPi. That was fun. There was a video that explained how to do it and it was at http://www.debianperu.org/archives/1050
Sounds interesting. Does VirtualBox emulate the ARM architecture or just the operating system?

davidb
Posts: 1
Joined: Wed Jul 18, 2012 3:54 pm

Re: Emulating Raspberry Pi in Windows the easy way

Wed Jul 18, 2012 4:12 pm

Ware is the link to download?

Joe Schmoe
Posts: 4277
Joined: Sun Jan 15, 2012 1:11 pm

Re: Emulating Raspberry Pi in Windows the easy way

Wed Jul 18, 2012 4:23 pm

mjlally wrote:
Ocean20 wrote:I installed Oracle VirtualBox and then installed the Debian squeeze and ran it in the virtual machine and got it to work like a RPi. That was fun. There was a video that explained how to do it and it was at http://www.debianperu.org/archives/1050
Sounds interesting. Does VirtualBox emulate the ARM architecture or just the operating system?
I've never understood (seriously!) why people bring in VirtualBox to this discussion. You don't need it and it doesn't accomplish anything (because, as people will tell you by-and-by, Virtualbox (and VMWare similarly) only emulate x86 (on x86)). They do not emulate ARM (unlike QEMU, which does).

Since the title of this thread is "Emulating Raspberry Pi in Windows the easy way", it is off-topic to talk about doing it the hard way (with VBox and/or VMWare). That is, the "easy way" refers specifically to running QEMU-compiled-for-MicrosoftWindows directly under MicrosoftWindows, without anything else getting in the way.
And some folks need to stop being fanboys and see the forest behind the trees.

(One of the best lines I've seen on this board lately)

JeffreySun
Posts: 7
Joined: Thu Jul 19, 2012 1:10 am

Re: Emulating Raspberry Pi in Windows the easy way

Thu Jul 19, 2012 5:40 am

The simulation works on my win 7 OS. Attach some pictures if you want to preview the result priort to run it.

Image
Figure 1 - configure

Image
Figure 2 - login successfully


Image
Figure 3 - GUI

gyeben
Posts: 150
Joined: Tue Jun 19, 2012 6:38 pm
Location: Hungary, Eger

Re: Emulating Raspberry Pi in Windows the easy way

Thu Jul 19, 2012 10:00 am

Hi!

I found that in your qemu/run.bat file the emulated CPU is set to arm1136-r2, whether it should be rather set to arm1176.

mjlally
Posts: 49
Joined: Thu May 10, 2012 9:08 pm
Location: Reading, UK

Re: Emulating Raspberry Pi in Windows the easy way

Thu Jul 19, 2012 9:16 pm

gyeben wrote:Hi!

I found that in your qemu/run.bat file the emulated CPU is set to arm1136-r2, whether it should be rather set to arm1176.
Hi there, that seemed to work best.

I am testing Raspian on the latest qemu for windows at the moment, it is looking good, the issue with the colours is resolved (the raspberry logo is no longer blue!). I have tried both arm1136 and arm1136-r2 with raspian and it seems to work with both.

Should be uploaded tomorrow sometime. Until then I have a couple of screen shots which will go up here soon.

If you want to experiment, I would love to hear how it goes.

mjlally
Posts: 49
Joined: Thu May 10, 2012 9:08 pm
Location: Reading, UK

Re: Emulating Raspberry Pi in Windows the easy way

Thu Jul 19, 2012 9:29 pm

Joe Schmoe wrote:
mjlally wrote:
Ocean20 wrote:I installed Oracle VirtualBox and then installed the Debian squeeze and ran it in the virtual machine and got it to work like a RPi. That was fun. There was a video that explained how to do it and it was at http://www.debianperu.org/archives/1050
Sounds interesting. Does VirtualBox emulate the ARM architecture or just the operating system?
I've never understood (seriously!) why people bring in VirtualBox to this discussion. You don't need it and it doesn't accomplish anything (because, as people will tell you by-and-by, Virtualbox (and VMWare similarly) only emulate x86 (on x86)). They do not emulate ARM (unlike QEMU, which does).

Since the title of this thread is "Emulating Raspberry Pi in Windows the easy way", it is off-topic to talk about doing it the hard way (with VBox and/or VMWare). That is, the "easy way" refers specifically to running QEMU-compiled-for-MicrosoftWindows directly under MicrosoftWindows, without anything else getting in the way.
Just to satisfy my curiosity Joe, are you telling me off for going off topic!? And thanks for explaining to me what the title of the thread refers to, I had a vague idea when I started the thread but it is crystal clear now!!!

My personal view is that we should be somewhat flexible on what is and is not off topic, given that the thread is in the beginners section but then again I do not moderate the forum.

mjlally
Posts: 49
Joined: Thu May 10, 2012 9:08 pm
Location: Reading, UK

Re: Emulating Raspberry Pi in Windows the easy way

Thu Jul 19, 2012 9:44 pm

Screen shots of Raspbian running in qemu on windows 7

Image

Image

bursar
Posts: 22
Joined: Thu Jul 19, 2012 10:53 am
Location: Cambridge, UK

Re: Emulating Raspberry Pi in Windows the easy way

Thu Jul 19, 2012 9:48 pm

Heh, I've just finished downloading your previously bundled files. Should I download the whole thing again once you put up the new version, or is there a shortcut I can take?
http://mmm-pi.co.uk - my adventures with a Pi

mjlally
Posts: 49
Joined: Thu May 10, 2012 9:08 pm
Location: Reading, UK

Re: Emulating Raspberry Pi in Windows the easy way

Thu Jul 19, 2012 9:51 pm

I will upload the Raspbian in Windows Qemu folder to sourceforge tomorrow and a second folder without an OS image for any of you who have already downloaded Raspbian.

mjlally
Posts: 49
Joined: Thu May 10, 2012 9:08 pm
Location: Reading, UK

Re: Emulating Raspberry Pi in Windows the easy way

Thu Jul 19, 2012 9:58 pm

davidb wrote:Ware is the link to download?
This is the link
http://sourceforge.net/projects/rpiqemuwindows/

however the the folder containing Raspbian and a much improved qemu will be ready to download tomorrow if you can wait...

It should be up by 12 noon, British Summer Time(GMT+1).

Wolfram23
Posts: 73
Joined: Thu Jul 19, 2012 6:50 pm

Re: Emulating Raspberry Pi in Windows the easy way

Thu Jul 19, 2012 10:41 pm

Gah, can't wait for that! I'll definitely spend some time on Raspbian this weekend, then. I've got 3 months to figure out what the heck I'm doing :lol:

Definitely excited to get this set up, though. I find nothing answers questions faster than trying it out first. That, and Google. Then forums.

Just gotta find the time to do it between fiberglassing sessions (hand made speaker boxes for my car).

Thanks for putting all this together.

mjlally
Posts: 49
Joined: Thu May 10, 2012 9:08 pm
Location: Reading, UK

Re: Emulating Raspberry Pi in Windows the easy way

Thu Jul 19, 2012 10:44 pm

gyeben wrote:Hi!

I found that in your qemu/run.bat file the emulated CPU is set to arm1136-r2, whether it should be rather set to arm1176.
Misread your post..

The new version emulates arm1176 and has a new kernel compiled for arm1176.

Compressing now, will upload tonight if it is done any time soon.

mjlally
Posts: 49
Joined: Thu May 10, 2012 9:08 pm
Location: Reading, UK

Re: Emulating Raspberry Pi in Windows the easy way

Thu Jul 19, 2012 11:17 pm

Uploading now, 11% done.

mjlally
Posts: 49
Joined: Thu May 10, 2012 9:08 pm
Location: Reading, UK

Re: Emulating Raspberry Pi in Windows the easy way

Thu Jul 19, 2012 11:26 pm

bursar wrote:Heh, I've just finished downloading your previously bundled files. Should I download the whole thing again once you put up the new version, or is there a shortcut I can take?
The new upload has the official Raspbian, the latest qemu for windows and a new kernel for arm1176.

If you have the old version it will contain the Debian Wheezy beta, an older qemu and a kernel compiled for arm1166-r2. You could download the folder I put up tomorrow without the operating system image in it which makes the download a lot smaller. You should be able to use your existing image in the new folder with a small edit to the run.bat file.

mjlally
Posts: 49
Joined: Thu May 10, 2012 9:08 pm
Location: Reading, UK

Re: Emulating Raspberry Pi in Windows the easy way

Thu Jul 19, 2012 11:29 pm

Wolfram23 wrote:Gah, can't wait for that! I'll definitely spend some time on Raspbian this weekend, then. I've got 3 months to figure out what the heck I'm doing :lol:

Definitely excited to get this set up, though. I find nothing answers questions faster than trying it out first. That, and Google. Then forums.

Just gotta find the time to do it between fiberglassing sessions (hand made speaker boxes for my car).

Thanks for putting all this together.
You're welcome. Other people have done most of the work, I've just put it together.

Just uploaded to sourceforge here
http://sourceforge.net/projects/rpiqemuwindows/

enjoy!

Dilligaf
Posts: 283
Joined: Wed May 23, 2012 6:48 pm

Re: Emulating Raspberry Pi in Windows the easy way

Fri Jul 20, 2012 2:11 am

Works good with the supplied image :D Unfortunately doesn't work with the raspbian xbmc image :( I get an error

Code: Select all

failed to open vchiq instance 
when it goes to load xbmc, any ideas or help? Has anyone else tried and failed or succeeded? Thanks for all your work.

Mike

Return to “Beginners”