qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] Port Qemu to another ARM platform
@ 2006-08-08 13:07 Christian Roepke
  0 siblings, 0 replies; 6+ messages in thread
From: Christian Roepke @ 2006-08-08 13:07 UTC (permalink / raw)
  To: qemu-devel

Hi,

I consider to port qemu to another ARM platform so that I have a software
simulator for my microcontroller board. There is an ARM926EJ-S core on my board
which is backwards compatible from ARM7. Hence I must not port the cpu core
only the interrupt controller, timer, uart, ... I hope that such a software
simulator is good for testing my software/OS - I am currently porting the L4
micro-kernel (http://os.inf.tu-dresden.de/L4/) to my board.

Is there a documents available which decribes how to port qemu to another ARM
platform or something similar?

Kind regards,
Hans

--
 Hans Christian Röpke
 Network Administration

 Applied Data Security Group
 Ruhr-Universität Bochum, IC 4/42
 Universitätsstrasse 150
 44780 Bochum, Germany
 http://www.prosec.rub.de

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Qemu-devel] Port Qemu to another ARM platform
@ 2006-08-08 15:04 Christian Roepke
  2006-08-08 15:12 ` Paul Brook
  0 siblings, 1 reply; 6+ messages in thread
From: Christian Roepke @ 2006-08-08 15:04 UTC (permalink / raw)
  To: qemu-devel

Hi,

I consider to port qemu to another ARM platform so that I have a software
simulator for my microcontroller board. There is an ARM926EJ-S core on my board
which is backwards compatible from ARM7. Hence I must not port the cpu core
only the interrupt controller, timer, uart, ... I hope that such a software
simulator is good for testing my software/OS - I am currently porting the L4
micro-kernel (http://os.inf.tu-dresden.de/L4/) to my board.

Is there a documents available which decribes how to port qemu to another ARM
platform or something similar?

Kind regards,
Hans

--
 Hans Christian Röpke
 Network Administration

 Applied Data Security Group
 Ruhr-Universität Bochum, IC 4/42
 Universitätsstrasse 150
 44780 Bochum, Germany
 http://www.prosec.rub.de

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Qemu-devel] Port Qemu to another ARM platform
  2006-08-08 15:04 [Qemu-devel] Port Qemu to another ARM platform Christian Roepke
@ 2006-08-08 15:12 ` Paul Brook
  2006-08-09 15:18   ` Christian Roepke
  0 siblings, 1 reply; 6+ messages in thread
From: Paul Brook @ 2006-08-08 15:12 UTC (permalink / raw)
  To: qemu-devel

On Tuesday 08 August 2006 16:04, Christian Roepke wrote:
> Hi,
>
> I consider to port qemu to another ARM platform so that I have a software
> simulator for my microcontroller board. There is an ARM926EJ-S core on my
> board which is backwards compatible from ARM7. Hence I must not port the
> cpu core only the interrupt controller, timer, uart, ... I hope that such a
> software simulator is good for testing my software/OS - I am currently
> porting the L4 micro-kernel (http://os.inf.tu-dresden.de/L4/) to my board.
>
> Is there a documents available which decribes how to port qemu to another
> ARM platform or something similar?

Not really. However qemu already supports a few different Arm boards, so 
looking at the source should tell you most of what you need to know.

Paul

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Qemu-devel] Port Qemu to another ARM platform
  2006-08-08 15:12 ` Paul Brook
@ 2006-08-09 15:18   ` Christian Roepke
  2006-08-09 15:50     ` [Qemu-devel] asking about nfs server on Windows Tieu Ma Dau
  2006-08-09 15:56     ` [Qemu-devel] Port Qemu to another ARM platform Paul Brook
  0 siblings, 2 replies; 6+ messages in thread
From: Christian Roepke @ 2006-08-09 15:18 UTC (permalink / raw)
  To: qemu-devel; +Cc: Paul Brook

Hello,

> > Hi,
> >
> > I consider to port qemu to another ARM platform so that I have a software
> > simulator for my microcontroller board. There is an ARM926EJ-S core on my
> > board which is backwards compatible from ARM7. Hence I must not port the
> > cpu core only the interrupt controller, timer, uart, ... I hope that such a
> > software simulator is good for testing my software/OS - I am currently
> > porting the L4 micro-kernel (http://os.inf.tu-dresden.de/L4/) to my board.
> >
> > Is there a documents available which decribes how to port qemu to another
> > ARM platform or something similar?
> 
> Not really. However qemu already supports a few different Arm boards, so 
> looking at the source should tell you most of what you need to know.

But the Integrator port is the only ARM926EJ-S port, right? Is everythink
platform specific implemented in ./hw/integratorcp.c ?

If my software works on qemu, does it work on a real Integrator board, too? Or
are there some differences?

Thanks,
Hans

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Qemu-devel] asking about nfs server on Windows
  2006-08-09 15:18   ` Christian Roepke
@ 2006-08-09 15:50     ` Tieu Ma Dau
  2006-08-09 15:56     ` [Qemu-devel] Port Qemu to another ARM platform Paul Brook
  1 sibling, 0 replies; 6+ messages in thread
From: Tieu Ma Dau @ 2006-08-09 15:50 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 1269 bytes --]

Hi all,
In Windows, I use ProNFS to create a NFS server on my host; OpenVPN to create a TAP-Win32 Adapter. When I run Qemu to simulate ARM system by the following command:
qemu-system-arm -kernel zImage.integrator -initrd arm_root.img -net nic,vlan=0 -net tap,vlan=0,ifname=my-tap
And after that, in Qemu's screen, I can make mount:
mout -t nfs 192.168.7.1:/c/cygwin/nfsqemu /my_mount_point 
#192.168.7.1: my host IP
It's successful !
But if I want to use "192.168.7.1:/c/cygwin/nfsqemu" as root file system by executing the following command:
qemu-system-arm -kernel zImage.integrator -append "root=/dev/nfs nfsroot=192.168.7.1:/c/cygwin/nfsqemu rw ip=192.168.7.2::192.168.7.1:255.255.255.0 " -net nic,vlan=0 -net tap,vlan=0,ifname=tap0
In the Qemu's screen, Qemu runs till:
"
eth0: link up
Sending DHCP requests...
IP-config: retrying forever (NFS root)...
"
But Qemu can not continue to run. 
Do you know where does the problem arrive? From ProNFS or from anything?
Best regards,
Tieu


 		
---------------------------------
Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2¢/min or less.
 		
---------------------------------
Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2¢/min or less.

[-- Attachment #2: Type: text/html, Size: 1534 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Qemu-devel] Port Qemu to another ARM platform
  2006-08-09 15:18   ` Christian Roepke
  2006-08-09 15:50     ` [Qemu-devel] asking about nfs server on Windows Tieu Ma Dau
@ 2006-08-09 15:56     ` Paul Brook
  1 sibling, 0 replies; 6+ messages in thread
From: Paul Brook @ 2006-08-09 15:56 UTC (permalink / raw)
  To: qemu-devel

> > > Is there a documents available which decribes how to port qemu to
> > > another ARM platform or something similar?
> >
> > Not really. However qemu already supports a few different Arm boards, so
> > looking at the source should tell you most of what you need to know.
>
> But the Integrator port is the only ARM926EJ-S port, right? 

The versatile board also uses an Arm926 core (as well as sharing much of the 
device emulation).

> Is everythink platform specific implemented in ./hw/integratorcp.c ?

Yes. There's actually very little board specific code. Almost everything 
(including interrupt controllers) are implemented as independent devices, the 
board specific code just instantiates those devices.

> If my software works on qemu, does it work on a real Integrator board, too?
> Or are there some differences?

There are several bits of of hardware emulation missing (notably flash, MMC 
and AACI).

Partly as a side-effect of this there's no significant bootloaded on the 
emulated board. It knows how to load linux kernels (or I guess and PIC binary 
image), but that's about it.

Also note that qemu isn't even vaguely cycle accurate, and doesn't accurately 
model TLB or cache. It should be sufficient for most applications, but code 
that does sneaky hardware specific things (like assuming a particular TLB 
size or relying on cache/TLB lockdown for correct behavior) will break.

Other than that it should work just like real hardware. I'm sure there are 
bugs if you look hard enough, but that's a somewhat different issue.

Paul

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2006-08-09 15:57 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-08 15:04 [Qemu-devel] Port Qemu to another ARM platform Christian Roepke
2006-08-08 15:12 ` Paul Brook
2006-08-09 15:18   ` Christian Roepke
2006-08-09 15:50     ` [Qemu-devel] asking about nfs server on Windows Tieu Ma Dau
2006-08-09 15:56     ` [Qemu-devel] Port Qemu to another ARM platform Paul Brook
  -- strict thread matches above, loose matches on Subject: below --
2006-08-08 13:07 Christian Roepke

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).