qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] Patch: Sparc system support
@ 2004-09-26 16:01 Blue Swirl
  2004-09-30 22:23 ` Fabrice Bellard
  0 siblings, 1 reply; 9+ messages in thread
From: Blue Swirl @ 2004-09-26 16:01 UTC (permalink / raw)
  To: qemu-devel

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

Hi,

This version of Sparc system emulation can load ELF kernels (see 
screenshot), like Linux or *BSD using a hacked (patch attached) Proll.  The 
kernels won't run very far, there is still much work to do.  Also new to 
previous patch is m48t08 NVRAM chip support, based on the PPC's newer 
m48t59.

How to try: Patch Proll, compile, convert mrcoffee/proll.elf to binary with 
objdump -O binary.  Configure Qemu with ./configure 
--target-list="sparc-softmmu".  Run qemu-system-sparc with -L path_to_proll 
-kernel vmlinux or bsd.

_________________________________________________________________
The new MSN 8: smart spam protection and 2 months FREE*  
http://join.msn.com/?page=features/junkmail

[-- Attachment #2: proll.patch.bz2 --]
[-- Type: application/octet-stream, Size: 900 bytes --]

[-- Attachment #3: snapshot5.png --]
[-- Type: image/png, Size: 6474 bytes --]

[-- Attachment #4: qemu-0.6.0-sparc.patch-7.bz2 --]
[-- Type: application/octet-stream, Size: 32360 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread
* Re: [Qemu-devel] Patch: Sparc system support
@ 2004-10-02 11:07 Blue Swirl
  2004-10-02 13:07 ` Fabrice Bellard
  0 siblings, 1 reply; 9+ messages in thread
From: Blue Swirl @ 2004-10-02 11:07 UTC (permalink / raw)
  To: qemu-devel

Most of your changes are ok, except for the DHCP one. It's idea is to 
respond to BOOTP clients which use no extensions added by DHCP.

The magic address-banging loader is a quick & dirty hack anyway, I'm 
thinking of a better way to initialise Proll and implement kernel loading.

What are you planning for env->access_type? Sparc MMU needs to know whether 
the memory access is for data or instructions, did the access come from user 
or kernel code and is it read or write.

I'll send updates etc. soonish.

_________________________________________________________________
Tired of spam? Get advanced junk mail protection with MSN 8. 
http://join.msn.com/?page=features/junkmail

^ permalink raw reply	[flat|nested] 9+ messages in thread
* Re: [Qemu-devel] Patch: Sparc system support
@ 2004-10-03  7:37 Blue Swirl
  0 siblings, 0 replies; 9+ messages in thread
From: Blue Swirl @ 2004-10-03  7:37 UTC (permalink / raw)
  To: fabrice; +Cc: qemu-devel

>OK. So you mean I must reverse your patch in bootp.c or implement a correct 
>bootp server ?

For example like this:
diff -ruN qemu.orig/slirp/bootp.c qemu/slirp/bootp.c
--- qemu.orig/slirp/bootp.c     2004-10-01 00:22:08.000000000 +0200
+++ qemu/slirp/bootp.c  2004-10-02 16:40:07.000000000 +0200
@@ -138,7 +138,8 @@

     if (dhcp_msg_type != DHCPDISCOVER &&
         dhcp_msg_type != DHCPREQUEST)
-        return;
+        dhcp_msg_type = DHCPREQUEST; /* Force reply for old BOOTP clients 
*/
+
     /* XXX: this is a hack to get the client mac address */
     memcpy(client_ethaddr, bp->bp_hwaddr, 6);

_________________________________________________________________
Help STOP SPAM with the new MSN 8 and get 2 months FREE*  
http://join.msn.com/?page=features/junkmail

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

end of thread, other threads:[~2004-10-03  7:45 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-09-26 16:01 [Qemu-devel] Patch: Sparc system support Blue Swirl
2004-09-30 22:23 ` Fabrice Bellard
2004-10-01 14:10   ` Renzo Davoli
2004-10-01 16:00     ` Johannes Schindelin
2004-10-01 23:06       ` J. Mayer
2004-10-02  3:50         ` Johannes Schindelin
  -- strict thread matches above, loose matches on Subject: below --
2004-10-02 11:07 Blue Swirl
2004-10-02 13:07 ` Fabrice Bellard
2004-10-03  7:37 Blue Swirl

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).