Bumsfallera
Posts: 16
Joined: Mon Aug 22, 2011 1:15 am

Re: Emulating a RasPi on Windows

Thu Jan 05, 2012 10:09 pm

The links in the main post do not work anymore... I uploaded the files again =)

Can you please update them?

ftp://85.214.234.76/Download/debian-arm-lxde-en-uk.rar

ftp://85.214.234.76/Download/debian-arm-gnome-en-uk.rar

User avatar
emercer
Posts: 165
Joined: Sun Aug 07, 2011 1:54 am
Location: Sao Paulo, Brazil
Contact: Website

Re: Emulating a RasPi on Windows

Sun Jan 08, 2012 12:31 am

Can't edit the main post anymore... Something to do with the forum migration, I guess.

koconnor
Posts: 1
Joined: Fri Jan 20, 2012 4:40 pm

Re: Emulating a RasPi on Windows

Fri Jan 20, 2012 5:17 pm

Is there any chance of getting the lightweight QEMU file uploaded somewhere now that MegaUpload has been raided and shut down?

Thanks!

User avatar
emercer
Posts: 165
Joined: Sun Aug 07, 2011 1:54 am
Location: Sao Paulo, Brazil
Contact: Website

Re: Emulating a RasPi on Windows

Tue Jan 24, 2012 7:06 pm

Since Megaupload went belly-up, I've uploaded all files to RapidShare. Here's the complete QEMU 0.15.0 for Windows:

https://rapidshare.com/files/2354034759 ... indows.zip

And here are the images for LXDE:

https://rapidshare.com/files/916917855/ ... -en-uk.rar

And Gnome:

https://rapidshare.com/files/3588652777 ... -en-uk.rar

Enjoy!

User avatar
mpthompson
Posts: 620
Joined: Fri Feb 03, 2012 7:18 pm
Location: San Carlos, CA
Contact: Website

Re: Emulating a RasPi on Windows

Sat Feb 04, 2012 6:16 am

Terrific tutorial.  I got the whole thing running very quickly considering I went to route of doing a full Debian installation.

A quick question.  Since Qemu is emulating the ARM926, will binaries compiled under this emulated environment be identical to those that would be created on an actual Raspberry Pi running the ARM1176?

Ric
Posts: 4
Joined: Tue Feb 14, 2012 5:32 pm
Contact: Website

Re: Emulating a RasPi on Windows

Wed Feb 15, 2012 3:02 pm

When I create a bridge my host nic seems to stop working (I can't access the Internet or even my router from Windows XP anymore). I have to delete the bridge and disable/enable my Local Area Connection to be able to access the Internet again.

Is this expected behavior?

I wonder if VirtualBox is somehow getting in the way. When I create a tap with OpenVPN, or a bridge, Windows tells me (3 times in a row) that "VirtualBox Bridged Networking Driver Miniport" has not passed Windows Logo testing... I can either install it ("Continue Anyway") or "STOP Installation", but the outcome is the same. Unchecking "VirtualBox Bridged Networking Driver" in the properties of both connections doesn't change a thing.

OTOH, the guest OS can access the Internet when the bridge is created.

I've tried to use user mode networking instead of a tap, but it didn't work (kind of: I just used "-net user" instead of "-net tap,ifname=TAP32" and host name resolution works, but no transfers seems to happen).

Any ideas of what can be (if anything is) wrong, and how to fix it?

BTW, thanks for all the hard work!

Ric
Posts: 4
Joined: Tue Feb 14, 2012 5:32 pm
Contact: Website

Re: Emulating a RasPi on Windows

Wed Feb 15, 2012 5:09 pm

Tip: the batch (or CMD) file below allows you to add more parameters from the command line and see errors and other messages from qemu (like the help when invoked with --help):

@echo off

qemu-system-arm.exe -L . -kernel vmlinuz-2.6.32-5-versatile -initrd initrd.img-2.6.32-5-versatile -hda lxde-en-uk.img -k en-us -m 256 -M versatilepb -append "root=/dev/sda1" -net nic -net tap,ifname=TAP32 %*



if exist stderr.txt type stderr.txt

if exist stdout.txt type stdout.txt

For example, if the file is called "raspberry-lxde.bat", you can use:


"raspberry-lxde.bat -usb" to enable the USB driver
"raspberry-lxde.bat --help | more" to see the invoking syntax and options

hilltop
Posts: 25
Joined: Sat Dec 17, 2011 5:00 pm

Re: Emulating a RasPi on Windows

Wed Feb 15, 2012 6:19 pm

mpthompson said:


A quick question.  Since Qemu is emulating the ARM926, will binaries compiled under this emulated environment be identical to those that would be created on an actual Raspberry Pi running the ARM1176?


And the late reply is.. yes probably, assuming of course that the Pi is also running Debian armel.

To expand on this slightly, the Debian armel distro is targeted at v4t with software floating point (that's 'soft' not 'softfp') and the toolchain should default to this.  ARM926 is v5t while ARM1176 is v6 so they'd usually need a different kernel, but this wouldn't necessarily affect the rest of the tools/binaries.

A downside of running armel on the Pi is wasting the VFP functionality, but unfortunately Debian's new armhf variant is targeted at v7.  It would be possible to compile softfp/hard code with the correct switches to gcc etc. on the Pi itself, but it's a bit involved (and such binaries would be incompatible with ARM926).

However, a more worthwhile use of CPU would be cross-compiling under x86 Linux for an arm(el) target... (see thread on ScratchBox).  Also, as this requires Linux there would be the option of using a newer, ARM1176-supporting QEMU (1.0+, which doesn't appear to be available as a Windows binary yet).

geeus
Posts: 39
Joined: Fri Oct 21, 2011 7:03 pm
Contact: Website

Re: Emulating a RasPi on Windows

Wed Feb 15, 2012 10:32 pm

I"m not to shure if this is mentioned eairlier but i have cnxsoftwares kernel compiled for arm1172 working on qemu on windows with the 1132 cpu setting with no complaints
Regards Gee
Gee The Rabid Inventor :)

User avatar
fusiooon
Posts: 9
Joined: Tue May 08, 2012 11:23 am

Re: Emulating a RasPi on Windows

Sun May 13, 2012 9:20 am

emercer wrote:Since Megaupload went belly-up, I've uploaded all files to RapidShare. Here's the complete QEMU 0.15.0 for Windows:

https://rapidshare.com/files/2354034759 ... indows.zip

And here are the images for LXDE:

https://rapidshare.com/files/916917855/ ... -en-uk.rar

And Gnome:

https://rapidshare.com/files/3588652777 ... -en-uk.rar

Enjoy!
This will be a much faster download:

LXDE: (1.14GB)

http://goo.gl/F8gFY OR http://db.tt/vJ3Raa0T

Still downloading Gnome 15 hours left :|

Return to “Other projects”