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

Re: Simulator/Emulator for Raspberry Pi?

Wed Sep 21, 2011 8:27 pm

Hm, now I know the problem.
Qemu says, that all *.img files, created with qemu-img have
zero size. And the same about *.img files, that I put from outside into.
So, some problems with Qemu on Arm to simulate i386 machine, much more than vice versa
Dietmar

User avatar
crundy
Posts: 310
Joined: Fri Aug 12, 2011 7:47 am

Re: Simulator/Emulator for Raspberry Pi?

Wed Sep 21, 2011 8:39 pm

Well, mine got past the package selection, and is still downloading required packages (5 hours later). I guess I'll have to leave it overnight if it hasn't finished by the time I go to bed :-\

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

Re: Simulator/Emulator for Raspberry Pi?

Wed Sep 21, 2011 8:47 pm

@crundy: I had a freeze at some point. It went away when I selected the QEMU window. Are your downloads actually moving ?
@emercer: maybe not, that screen without arrow keys was hell.
@dietmar: there seems to be a bug in qemu-img with the G suffix. Substitute 1024M.

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?

Wed Sep 21, 2011 9:19 pm

Just so the lazy don't feel discouraged: I've made a couple of torrents. This one is for LXDE:

http://www.mybtfiles.com/torre...../95884788/

And this one is for Debian with Gnome:

http://www.mybtfiles.com/torre...../84004592/

All you need is QEMU for Windows. I've made a fat-free, ARM-emulation-only ZIP file you can download here:

http://www.megaupload.com/?d=IQ57NN7O

Unzip'em all to the same folder, run the .BAT file for the corresponding image and voilá! Instant Linux on ARM.

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

Re: Simulator/Emulator for Raspberry Pi?

Wed Sep 21, 2011 9:26 pm

that's great thanks. Could you restart a new thread with these files + link to your blog (and a good title !) so that people can find these quickly ?
I can do it too, but I don't wan to steal your glory :-p

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

Re: Simulator/Emulator for Raspberry Pi?

Wed Sep 21, 2011 9:28 pm

just typed startx... the suspense is kiling me !
hey, the mouse pointer just appeared

Victory !


Thanks emercer !

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?

Wed Sep 21, 2011 9:48 pm

Here's the new topic, obarthelemy!

http://www.raspberrypi.org/for.....38;t=577.0

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

Re: Simulator/Emulator for Raspberry Pi?

Wed Sep 21, 2011 10:33 pm

Hi all,
with commandline
qemu -M pc -m 128 -cpu qemu32 -drive file=xpsp1.raw,index=0,media=disk
I get my harddisk detect by Qemu on ARM, simulating I386 processor.
Strange, that -hda xpsp1.raw not works!!!
Dietmar

PS: Exact this strange commandline behavior may be the real reason, why my harddisk before for recognicing -cpu arm1176 not works.

EDIT: Nice instructionset for Qemu
http://linux.die.net/man/1/qemu

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

Re: Simulator/Emulator for Raspberry Pi?

Wed Sep 21, 2011 10:36 pm

Way to go emercer.
Now let's get some popcorn out and watch the tribulations of a German in QEMUlandia ^^

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

Re: Simulator/Emulator for Raspberry Pi?

Thu Sep 22, 2011 1:37 am

I'm having an issue getting a bigger screen. The default is 640x480, I'd like 800x600 or 1024x768.

Apparently the qemu command line option (-g WxH[xDEPTH]) is said not to work.

"They" say we just have to change the screen rez within VM, but the xorg.conf tweaks I found cause X to crash:

Tweak 1
Section "Device"
Identifier "Generic Video Card"
Driver "cirrus"
EndSection

Section "Monitor"
Identifier "Generic Monitor"
Option "DPMS"
HorizSync 28-64
VertRefresh 43-60
EndSection

Tweak 2
Section "Monitor"
Identifier "Monitor0"
HorizSync 20.0 - 50.0
VertRefresh 40.0 - 80.0
EndSection

Section "Device"
Identifier "Device0"
Driver "vesa"
EndSection

Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 16
Subsection "Display"
Depth 16
Modes "1024x768"
EndSubsection
EndSection

Anyone knows something that works ?

ShiftPlusOne
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 6115
Joined: Fri Jul 29, 2011 5:36 pm
Location: The unfashionable end of the western spiral arm of the Galaxy

Re: Simulator/Emulator for Raspberry Pi?

Thu Sep 22, 2011 7:30 am

I haven't found anything yet.

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

Re: Simulator/Emulator for Raspberry Pi?

Thu Sep 22, 2011 11:02 am

Hi,
via Qemu on an "ARM" machine I can boot -cdrom xp.iso , it starts XP install.
xp.iso is just the image of the original XPSP1 installations CD. This is really strange, because no other image of a harddisk or superfloppy can be booted the same way. Always appears message "Can not read from harddisk".
I tried also the small Linux image from http://wiki.qemu.org/download/......2.img.bz2
which is a superfloppy, no partitionstable, on an ext2 partition. The same result.
So I come to the question, if any harddisk.img can be bootet from Qemu on an ARM machine. This will become much more important in future, when real ARM is avaible.
May be somebody here in the forum can make just now a test with a real ARM hardware,
if Qemu works on it. I compiled Qemu on an ARM machine with the patch, that I described some messages ago. In internet I also find no result for Qemu on an ARM machine, may be because of that missing patch.
It is not the fault of XP or Linux, just any harddisk.img is not recogniced but cd.iso in the same folder works
Dietmar

EDIT: fdisk harddisk.img shows:
Aktiv Partition, 64 heads, 63 sec 0 cylinders??
Disk harddisk.img 0 MB, 0 Bytes
yes , logical with 0 cylinders^^
any idea?

User avatar
crundy
Posts: 310
Joined: Fri Aug 12, 2011 7:47 am

Re: Simulator/Emulator for Raspberry Pi?

Thu Sep 22, 2011 12:42 pm

Anyone managed to get MAME installed? It's not in the apt-get packages, and if I try to compile from source (after installing GCC & make) it bombs out because it seems to want to download some stuff from a mame site that's suspended at the moment :-\

ShiftPlusOne
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 6115
Joined: Fri Jul 29, 2011 5:36 pm
Location: The unfashionable end of the western spiral arm of the Galaxy

Re: Simulator/Emulator for Raspberry Pi?

Thu Sep 22, 2011 1:21 pm

so far I've only played with dosbox and scummvm. ScummVM works great, dosbox is very laggy, especially with sound enabled.

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?

Thu Sep 22, 2011 3:20 pm

Quote from obarthelemy on September 22, 2011, 02:37
Anyone knows something that works ?

I was gonna say "Try vga=303 as a kernel argument", but then I tried it myself... Doesn't do zilch.

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

Re: Simulator/Emulator for Raspberry Pi?

Thu Sep 22, 2011 5:01 pm

Hi,
now I see, that the 64 heads, 63 sec 0 cylinders
belongs always to the Images, that are build from Qemu.
Dietmar

http://sourceforge.net/apps/tr.....;20Machine

http://qemu-buch.de/de/index.p.....x_als_Dom0

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

Re: Simulator/Emulator for Raspberry Pi?

Thu Sep 22, 2011 5:37 pm

From http://www.gnu.org/s/hurd/hurd...../qemu.html

Mounting Disk Image on Host

You may wish to mount your disk image on your host system to transfer files. To do this you will first need to find the offset of the partition you wish to mount.

# fdisk -ul hd0.img
...
128 heads, 63 sectors/track, 0 cylinders, total 0 sectors
Units = sectors of 1 * 512 = 512 bytes

Device Boot Start End Blocks Id System
hd0.img1 * 63 3515903 1757920+ 83 Linux
hd0.img2 3515904 4193279 338688 82 Linux swap / Solaris
Now take the number of sectors for the beginning of the partition and multiply it by the sector size. My partition starts at sector 63 and I have a sector size of 512 therefore my offset is 32256. For a start at 2048 the ofsset is 1048576.

# sudo mkdir /mnt/diskimage
# sudo mount -t ext2 -o loop,offset=32256 hd0.img /mnt/diskimage

All the files from hd0.img stay then in /mnt/diskimage
This is a really nice idea, because now you can change files between guest and host system and this saves a lot of time :-)
Dietmar

PS: # sudo umount /mnt/diskimage
when you are ready.

ShiftPlusOne
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 6115
Joined: Fri Jul 29, 2011 5:36 pm
Location: The unfashionable end of the western spiral arm of the Galaxy

Re: Simulator/Emulator for Raspberry Pi?

Thu Sep 22, 2011 6:14 pm

Nope, vga= and video= don't do anything. We're not using standard vesa of uvesa.


ShiftPlusOne
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 6115
Joined: Fri Jul 29, 2011 5:36 pm
Location: The unfashionable end of the western spiral arm of the Galaxy

Re: Simulator/Emulator for Raspberry Pi?

Fri Sep 23, 2011 5:38 pm

Oh, I didn't know there was an ARM build available. Nice! ('course it's an unstable mess, but that helps give it that 'windows' feel).

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

Re: Simulator/Emulator for Raspberry Pi?

Fri Sep 23, 2011 7:27 pm

Funny how I see 3 times more Gnome downloads than lxde. Either I'm missing something and Gnome provides something more than eye candy, or people are incredibly set in their way.

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?

Fri Sep 23, 2011 7:43 pm

I'm all for Gnome, despite the extra requirements... It's a lot easier to use, and the emulation won't let either run too quick anyways. I do, of course, have an LXDE install handy, 'cause that's what we're gonna get in the end, but insofar as software testing goes, I'm doing it all on Gnome (what can I say? I love Synaptic).

ShiftPlusOne
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 6115
Joined: Fri Jul 29, 2011 5:36 pm
Location: The unfashionable end of the western spiral arm of the Galaxy

Re: Simulator/Emulator for Raspberry Pi?

Fri Sep 23, 2011 8:31 pm

obarthelemy, the desktop environment doesn't matter. Gnome just bundles more stuff together, while LXDE is meant to be lightweight (you install what you need). There's nothing preventing you from 'applications for gnome' in LXDE. They just drag in more dependencies and use more libraries (and RAM). Of course if all applications use the same libraries, then it becomes less of a problem. But if you just want to run a few specific applications, you don't need a massive bundle of things that you may or may not find useful. Basically you just get a panel, a terminal, a desktop, a file manager and you do whatever you want with the rest.

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

Re: Simulator/Emulator for Raspberry Pi?

Fri Sep 23, 2011 8:50 pm

Hi all,
I set up Gnome from the commandline from running Qemu on Arm for ARM1176,
following the Tutorial from http://debiananwenderhandbuch......ml#gnome26
I see after LONG installation the desktop without any errormessages.
But now my mouse and my keyboard do not work any more.
Keyboard worked before in commandline:-).

Is this because of the missing Modules in /lib/modules?
And how can this be corrected, because now I am on Gnome Desktop and CTLR ALT F1
brings me always back to the commandline of underlieying Ubuntu 11.04?
Thanks for help,
Dietmar

ShiftPlusOne
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 6115
Joined: Fri Jul 29, 2011 5:36 pm
Location: The unfashionable end of the western spiral arm of the Galaxy

Re: Simulator/Emulator for Raspberry Pi?

Fri Sep 23, 2011 10:21 pm

You need to enable 'event interface'. I updated the tutorial a few days ago to include it.

Return to “Other projects”