Dietmar
Posts: 361
Joined: Sun Sep 04, 2011 5:43 pm
Contact: Website

Re: Simulator/Emulator for Raspberry Pi?

Sat Oct 01, 2011 6:15 pm

Hi all,
I found that nice Tutorial,
http://mingw-cross-env.nongnu.org/
for to cross-compile for Windows under Linux :-)
very soon I give it a try,
Dietmar

PS: Seems to be very easy under Linux Fedora
http://qemu-buch.de/d/QEMU_unt.....nter_Linux

Scribe
Posts: 98
Joined: Wed Sep 28, 2011 12:00 pm
Contact: Website

Re: Simulator/Emulator for Raspberry Pi?

Sun Oct 02, 2011 12:05 am

Hey guys,

Any idea how to change the resolution on the QEMU windows running Debian package? I'm getting 640x480 which is too small to work with. Also I see my CPU is only being used upto 16%, is there anyway to artificially increase speed of the emulation?

Cheers

Dietmar
Posts: 361
Joined: Sun Sep 04, 2011 5:43 pm
Contact: Website

Re: Simulator/Emulator for Raspberry Pi?

Sun Oct 02, 2011 12:09 am

YYEE$AAA, I got itttt!!!
Now I compiled ALL machines, that are supported from Qemu for use in XP.
THEY ARE MUCH FASTER THAN IN LINUX!!! :-) :-)
Now I have XP Debian XP, where both XP can be made small as much as possible,
I get it via crosscompile in Fedora 15,
what a day!!! And: This qemu-system-arm.exe supports as first binary both: ARM926 and ARM1176 in XP,
yeppp
Dietmar



EDIT: I loaded my Qemu 0.15.50 for Windows up to Megaupload.com, its 17MB :-) http://www.megaupload.com/?d=B3U6NBBU

Dietmar
Posts: 361
Joined: Sun Sep 04, 2011 5:43 pm
Contact: Website

Re: Simulator/Emulator for Raspberry Pi?

Sun Oct 02, 2011 1:48 am

And here is XpDebianXP, (full Xp, full Debian with Gnome, full Xp)
boottime is now only :-) :-) 24 minutes.
But I think with shrinking, this has potential, to become factor 10 less during shrinking of Xp. I think, for any Dos games this is enough.
I have around 300 Bogomips in underlying Debian,
may be real Raspberry Pi 8-) reaches more,
nice to hear from you
Dietmar


Dietmar
Posts: 361
Joined: Sun Sep 04, 2011 5:43 pm
Contact: Website

Re: Simulator/Emulator for Raspberry Pi?

Sun Oct 02, 2011 2:01 am

Yepp, I am right. Boottime for fullXPDebianwithGnomefullWin98SE
is now only 3 minutes and it is stable. This means simple: Windows works fantastic on Raspberry Pi,
nice to hear from you Dietmar



http://s3.imgimg.de/uploads/Xp.....0cbjpg.jpg

obarthelemy
Posts: 1407
Joined: Tue Aug 09, 2011 10:53 pm

Re: Simulator/Emulator for Raspberry Pi?

Sun Oct 02, 2011 2:40 am

Congratulations, and thanks !

Dietmar
Posts: 361
Joined: Sun Sep 04, 2011 5:43 pm
Contact: Website

Re: Simulator/Emulator for Raspberry Pi?

Sun Oct 02, 2011 2:44 am

Hi obarthelem-
y,
boottime for MS-Dos Modus in Win98SE is only 7 sec!!! (XP, Debian, MS-Dos)

Dietmar
Posts: 361
Joined: Sun Sep 04, 2011 5:43 pm
Contact: Website

Re: Simulator/Emulator for Raspberry Pi?

Sun Oct 02, 2011 10:29 pm

Hi all,
I noticed, that there is a bug in recognicing a real CD-rom device in
my compiled version Qemu 0.15.50 for Windows. Without a call like -cdrom "I:" for example,
all seems ok but you have no access to the CDROM device.
Only iso files work.
On a real CD-rom device the computer hangs or does not start Qemu.
Because no errormessage during compiling, I think it is a bug in the MinGW compiler for Windows, so next try with Cygwin,
Dietmar

Dietmar
Posts: 361
Joined: Sun Sep 04, 2011 5:43 pm
Contact: Website

Re: Simulator/Emulator for Raspberry Pi?

Mon Oct 03, 2011 11:03 am

Hi all,
that a real CD-rom device is not recogniced by my Qemu 0.15.50 for Windows depends just on the used hardware.
So, it is not a bug in the sense of a real bug. It is just because the way, this Qemu was compiled. Compiler always "think" to make the best version for the underlying real computer hardware and this is a hard job to do this for Windows, when it runs in Linux:-). So, normal IDE controller as real hardware works for CD-Rom device in my Qemu 0.15.50 for Windows but not AHCI, SATA in real hardware etc.
Does there exists a switch to tell compiler to put more virtuell drivers in, during compiling?
Thank you for help
Dietmar

Dietmar
Posts: 361
Joined: Sun Sep 04, 2011 5:43 pm
Contact: Website

Re: Simulator/Emulator for Raspberry Pi?

Mon Oct 03, 2011 9:08 pm

Hi all,
I am just checking, what are the best Bogomips Values we can imagine on a real Raspberry Pi, when one Qemu is running on it. Single Qemu: XP, Full Gnome Arm1176-Debian, I get until now 358 Bogomips. After a lot of messages, that no Server from Debian was online, I overcome this with the nice Tutorial from emercer :-) .
Now I am doing test for Bogomips with Single Qemu: XP, Debian just in command line.
After I make a try with double Qemu: XP,DebianArm1176commandline, MSDos
I think this shows future :-) :-)
greetings Dietmar

Dietmar
Posts: 361
Joined: Sun Sep 04, 2011 5:43 pm
Contact: Website

Re: Simulator/Emulator for Raspberry Pi?

Mon Oct 03, 2011 9:47 pm

Hm, this is really strange:
Debian without any Desktop, just commandline gives smaller Bogomips (276)
against Debian with Gnome Desktop (358), on the same computer with the same Qemu0.15.50 for Windows?

Dietmar
Posts: 361
Joined: Sun Sep 04, 2011 5:43 pm
Contact: Website

Re: Simulator/Emulator for Raspberry Pi?

Tue Oct 04, 2011 9:45 pm

no comment..


Dietmar
Posts: 361
Joined: Sun Sep 04, 2011 5:43 pm
Contact: Website

Re: Simulator/Emulator for Raspberry Pi?

Tue Oct 04, 2011 10:11 pm

Quake II :-) on Arm 1176 via Qemu on Win98SE


covex
Posts: 2
Joined: Thu Oct 06, 2011 4:40 pm

Re: Simulator/Emulator for Raspberry Pi?

Thu Oct 06, 2011 5:53 pm

Running qemu on Linux is not a big deal using the ShiftPlusOne few steps. The only problem I see is that earlier version of qemu than 0.15 (which is really fresh) do not support arm1176, but one may use arm1136 instead. This is however only the emulation of the CPU, the big part of the RasPi is the GPU, what has no emulation, right?!

Dietmar: You have all those versions of Windows compiled for ARM? I am not aware of any Windows version except WinCE/Mobile/Phone to be released for ARM.

Dietmar
Posts: 361
Joined: Sun Sep 04, 2011 5:43 pm
Contact: Website

Re: Simulator/Emulator for Raspberry Pi?

Sun Oct 09, 2011 3:08 am

Hi all,
after a crazy day I succeed to compile Quake2 for direct run on the (emulated) Raspberry Pi on Arm1176 on Debian Squezee. Framerate I can not see, but may be about 20/sec, playable :-) !!! I tested about 20 different packages for Quake2 on Armel and compiled them. Only one works and this time I was nearly given up. The name of that package is
quake2_0.3-3.tar.gz and if somebody wants, I can upload it to Megaupload.com.
The most crazy thing is the commandline:
./sdlquake2 +set vid_ref softsdl +set game baseq2

And: You have to copy gamearm.so that you get after successfull compiling to the folder baseq2 where also the*.pak from original windows Quake2 has to be put in.
And: You have to rename the file gamearm.so there to gamesarm.so because of an error in this package. I think, nobody gets Quake2 to run on Arm because of this crazy mistake,
Dietmar

PS: You only get SDL Graphik and 640x400. But all level works and video. What a difference to my picture before on Quake2 on Win98 on Arm1176.


User avatar
liz
Raspberry Pi Foundation Employee & Forum Moderator
Raspberry Pi Foundation Employee & Forum Moderator
Posts: 5202
Joined: Thu Jul 28, 2011 7:22 pm
Contact: Website

Re: Simulator/Emulator for Raspberry Pi?

Sun Oct 09, 2011 3:30 am

Love it! (And I can't wait to see what you come up with when you have…you know…actual hardware!)
Director of Communications, Raspberry Pi

Dietmar
Posts: 361
Joined: Sun Sep 04, 2011 5:43 pm
Contact: Website

Re: Simulator/Emulator for Raspberry Pi?

Sun Oct 09, 2011 11:09 am

Hi all,
I just load Quake2 Source for Raspberry Pi up, it works :-),
http://www.megaupload.com/?d=0B5UJ216

And here is the compiled Quake2 for ARM1176.
http://www.megaupload.com/?d=I9JNQ58U
You have to put pak0.pak from original Quake2 Windows CD in the folder baseq2, because it is still under copyright,
Dietmar

Dietmar
Posts: 361
Joined: Sun Sep 04, 2011 5:43 pm
Contact: Website

Re: Simulator/Emulator for Raspberry Pi?

Sun Oct 09, 2011 4:41 pm

Hi, I make a try with Dosbox 0.74 on ARM1176
apt-get install dosbox (Debian on arm Squeeze)
It works, but Qemu is faster :-)
Dietmar


ffuentes
Posts: 22
Joined: Sun Sep 11, 2011 8:07 pm
Contact: Website

Re: Simulator/Emulator for Raspberry Pi?

Sun Oct 16, 2011 1:31 am

qemu-system-arm -M versatilepb -cpu arm1176 -hda hda.img -kernel kernel-raspi -no-reboot -append "console=tty0 root=/dev/sda1 rw panic=5" -initrd initrd-raspi.gz

Unable to find CPU definition

ffuentes
Posts: 22
Joined: Sun Sep 11, 2011 8:07 pm
Contact: Website

Re: Simulator/Emulator for Raspberry Pi?

Sun Oct 16, 2011 1:52 am

Ok, I've installed it following the Francisco's tutorial but now I have a question:

My installation says armv5tejl. That's not the same architecture as Raspy, right? But are the applications in both architectures the same or not?

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

Re: Simulator/Emulator for Raspberry Pi?

Sun Oct 16, 2011 2:57 am

The apps are basically the same, but the binaries are slightly different.
Most importantly, anything that runs on ARMv5 will run the RasPi's ARMv6, but not everything that runs on ARMv6 will run on the emulated ARMv5.

ffuentes
Posts: 22
Joined: Sun Sep 11, 2011 8:07 pm
Contact: Website

Re: Simulator/Emulator for Raspberry Pi?

Sun Oct 16, 2011 8:56 pm

Thanks emercer.

I just used the emulator but it's very slow, I know the emulator tends to be slower than the physical device but it ran really slow when I used the X environment (openbox)

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

Re: Simulator/Emulator for Raspberry Pi?

Mon Oct 17, 2011 12:52 pm

@ffuentes

If you do a BogoMIPS check (at /proc/cpuinfo) you'll get something like 370, when the RasPi gives you about 35% more... Don't be disappointed, though, 'cause reality is quite different. Linpack compiled with -mfloat-abi=softfp gives around 22~23 MFLOPS on the RasPi... On the emulated hardware, I get around 14.2~14.5 MFLOPS; about 64% of the RasPi's performance.

So there you have it: you can expect about 57% more bang from the actual hardware than you get from QEMU (and that is floating point alone, the GPU will probably smoke anything we can do graphically on QEMU, several degrees of magnitude).

Dietmar
Posts: 361
Joined: Sun Sep 04, 2011 5:43 pm
Contact: Website

Re: Simulator/Emulator for Raspberry Pi?

Mon Oct 17, 2011 2:03 pm

@emercer,
have you checked, which result for BogoMIPS you get with /proc/cpuinfo on a real Raspberry Pi, when you installed Qemu on it on the second system? This would be very interesting for any simulation experiance in future,
Dietmar

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

Re: Simulator/Emulator for Raspberry Pi?

Mon Oct 17, 2011 3:28 pm

@Dietmar I don't have a Pi with me, I'm using the numbers available at the wiki for reference.

Return to “Other projects”