Skip to contentSkip to conversation

system emulation of non-x86 targets

Qemu-devel Fabrice Bellard 4 participants 5 messages Jan 31, 2004 – Feb 1, 2004

lore
Share & tools
lore
#0 lore raw
Quoted 6 lines

As per subject, I'm interested in being able to boot and run an ARM kernel and a full linux enviroment inside QEMU, primarily to aid in (re-)porting Gentoo Linux to ARM. What would be required to modify/add to QEMU to support this?

I have a rackmount netwinder, but it's external power supply has failed :-( and Netwinder Inc. don't seem to respond to any of the voicemails I leave at their support phone #.

Two things need to be added:

1) ARM kernel level emulation. It includes MMU emulation and exceptions. If you know exactly what kind of ARM you want to emulate (StrongARM ?), it is not difficult to add, provided you have the ARM MMU documentation.

2) Device drivers: some ARM specific device drivers need to be added. The first task would be to find a working Linux ARM target which is close to a PC, so that you can reuse most of the QEMU devices (in particular IDE, serial, floppy and VGA). You need to add at least an IRQ controller and a timer.

Personnally I think it would be cool to have the fastest ARM system on Earth on your PC :-) If someone can work at the device drivers, I can improve the ARM emulation core to simulate MMU and kernel mode.

Fabrice.

#2 lore raw

Re: [Qemu-devel] Emulateurs...

Quoted 6 lines · J. Mayer

Salut,

Tiens, des nouveaux venus:
lancé, apparement le 30/01/2004:
http://www.serenityvirtual.com/index.php
Apparement, c'est plus un virtualiseur...

Oops, sorry for non-french guys...
I intended to send this mail to Fabrice in private...

Signature · 2 lines
J. Mayer <[email protected]>
Never organized
#4 lore raw
In reply to Fabrice Bellard
Quoted 3 lines · Fabrice Bellard

1) ARM kernel level emulation. It includes MMU emulation and exceptions. If you know exactly what kind of ARM you want to emulate (StrongARM ?), it is not difficult to add, provided you have the ARM MMU documentation.

StrongARM is my primary area of interest, but Intel's XScale is a close second (I really wish I could afford a devkit for it).

As for documentation:
ARM Architecture Reference Manual, Second Edition.
Editor: David Seal
ISBN: 0-201-73719-1

is a good general referance on it (it's what the Linux ARM kernel people recommend), and for the XScale stuff, see Intel's online tech document entitled:
"Intel XScale Microarchitecture for the PXA250 and PXA210 Applications Processors"

Quoted 5 lines

2) Device drivers: some ARM specific device drivers need to be added. The first task would be to find a working Linux ARM target which is close to a PC, so that you can reuse most of the QEMU devices (in particular IDE, serial, floppy and VGA). You need to add at least an IRQ controller and a timer.

I'm not aware of any modern ARM system that has a floppy drive.

However, the netwinder is pretty damn close to a PC - IGS CyberPro2000 [x86, ppc, netwinder, (possibly some mips as well)] video, and a Winbond SuperIO chip providing keyboard/mouse, IDE, serial, parallel and probably a few more things (wouldn't surprise me if the chip has a floppy controller, but it was just never wired up in the NetWinder hardware). Any pointers on IRQ controller/timer stuff welcome (general stuff or specific to QEMU), I'm going to dig into the details of the Netwinder some more since I think it's a good match already.

Quoted 3 lines

Personnally I think it would be cool to have the fastest ARM system on Earth on your PC :-) If someone can work at the device drivers, I can improve the ARM emulation core to simulate MMU and kernel mode.

I think some of the Intel XScale units would probably still outrun us, given the speed hits of Software MMU in QEMU, as their core speeds go up to 600Mhz. However, we could still have the fastest Netwinder on Earth :-).

Signature · 5 lines
Robin Hugh Johnson
E-Mail     : [email protected]
Home Page  : http://www.orbis-terrarum.net/?l=people.robbat2
ICQ#       : 30269588 or 41961639
GnuPG FP   : 11AC BA4F 4778 E3F6 E4ED  F38E B27B 944E 3488 4E85