qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] More PCI ethernet emulations
@ 2006-09-16 19:47 Stefan Weil
  2006-09-24 18:52 ` [Qemu-devel] [BUG?] Duplicate PCI setup? Stefan Weil
                   ` (4 more replies)
  0 siblings, 5 replies; 9+ messages in thread
From: Stefan Weil @ 2006-09-16 19:47 UTC (permalink / raw)
  To: qemu-devel

Hello,

I want to run QEMU with disk images of existing PC hardware.
These PC hardware uses ethernet cards which are not emulated
by QEMU, and because the disk images only support these cards,
the current QEMU won't work. So I have to write new emulation
drivers for QEMU...

These are the emulations needed:
    Intel 8255xER PCI (Linux driver: eepro100)
    Realtek RTL8168/8111 PCI (Linux driver: r1000)
    National Semiconductor DP83815/DP83816 (Linux driver: natsemi)

If somebody already started to write any of these emulations
this would be really helpful. Any other kind of help is welcome, too.

Regards
Stefan

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

* [Qemu-devel] [BUG?] Duplicate PCI setup?
  2006-09-16 19:47 [Qemu-devel] More PCI ethernet emulations Stefan Weil
@ 2006-09-24 18:52 ` Stefan Weil
  2006-09-24 19:09   ` Paul Brook
  2006-11-19 20:43 ` [Qemu-devel] More PCI ethernet emulations Stefan Weil
                   ` (3 subsequent siblings)
  4 siblings, 1 reply; 9+ messages in thread
From: Stefan Weil @ 2006-09-24 18:52 UTC (permalink / raw)
  To: qemu-devel

When I start QEMU for i386 with an emulated PCI network card,
this card's PCI memory space is setup twice:
once by QEMU, a second time from BIOS.

PCI I/O regions both times get the same address:
ne2000_map: region=0, addr=0x0000c100, size=0x00000100, type=1
ne2000_map: region=0, addr=0x0000c100, size=0x00000100, type=1

PCI memory regions get two different addresses.

Maybe the setup by QEMU was needed with an earlier PC BIOS
and is no longer needed today?

Stefan

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

* Re: [Qemu-devel] [BUG?] Duplicate PCI setup?
  2006-09-24 18:52 ` [Qemu-devel] [BUG?] Duplicate PCI setup? Stefan Weil
@ 2006-09-24 19:09   ` Paul Brook
  2006-09-24 19:47     ` Stefan Weil
  0 siblings, 1 reply; 9+ messages in thread
From: Paul Brook @ 2006-09-24 19:09 UTC (permalink / raw)
  To: qemu-devel

On Sunday 24 September 2006 19:52, Stefan Weil wrote:
> When I start QEMU for i386 with an emulated PCI network card,
> this card's PCI memory space is setup twice:
> once by QEMU, a second time from BIOS.
>
> PCI I/O regions both times get the same address:
> ne2000_map: region=0, addr=0x0000c100, size=0x00000100, type=1
> ne2000_map: region=0, addr=0x0000c100, size=0x00000100, type=1
>
> PCI memory regions get two different addresses.

So? Why is this a problem?
PCI is designed to allow dynamic resource (re-)configuration.

> Maybe the setup by QEMU was needed with an earlier PC BIOS
> and is no longer needed today?

From hw/piix_pci.c

/*
 * This function initializes the PCI devices as a normal PCI BIOS
 * would do. It is provided just in case the BIOS has no support for
 * PCI.
 */

Paul

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

* Re: [Qemu-devel] [BUG?] Duplicate PCI setup?
  2006-09-24 19:09   ` Paul Brook
@ 2006-09-24 19:47     ` Stefan Weil
  0 siblings, 0 replies; 9+ messages in thread
From: Stefan Weil @ 2006-09-24 19:47 UTC (permalink / raw)
  To: qemu-devel

This was fixed with the latest CVS changes.
Fabrice, you are really fast!

Merci,
Stefan

On Sunday 24 September 2006 19:52, Stefan Weil wrote:

> When I start QEMU for i386 with an emulated PCI network card,
> this card's PCI memory space is setup twice:
> once by QEMU, a second time from BIOS.
>
> PCI I/O regions both times get the same address:
> ne2000_map: region=0, addr=0x0000c100, size=0x00000100, type=1
> ne2000_map: region=0, addr=0x0000c100, size=0x00000100, type=1
>
> PCI memory regions get two different addresses.

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

* Re: [Qemu-devel] More PCI ethernet emulations
  2006-09-16 19:47 [Qemu-devel] More PCI ethernet emulations Stefan Weil
  2006-09-24 18:52 ` [Qemu-devel] [BUG?] Duplicate PCI setup? Stefan Weil
@ 2006-11-19 20:43 ` Stefan Weil
  2006-11-25 14:46 ` Stefan Weil
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 9+ messages in thread
From: Stefan Weil @ 2006-11-19 20:43 UTC (permalink / raw)
  To: qemu-devel

Hello,

these new ethernet drivers for QEMU are now available:

Intel 8255x ("E100", "EEPRO100"):
http://svn.berlios.de/wsvn/ar7-firmware/qemu/trunk/hw/eepro100.c?op=file

National Semiconductor DP83815/DP83816:
http://svn.berlios.de/wsvn/ar7-firmware/qemu/trunk/hw/dp8381x.c?op=file

Both drivers use a new EEPROM driver:
http://svn.berlios.de/wsvn/ar7-firmware/qemu/trunk/hw/eeprom93xx.c?op=file
http://svn.berlios.de/wsvn/ar7-firmware/qemu/trunk/hw/eeprom93xx.h?op=file

This EEPROM driver can be shared by any other device which needs
an EEPROM, for example replace the driver for RTL8139 or add an
EEPROM to cirrus vga or other ethernet cards.

I estimate the status of the EEPROM driver to be stable.
Fabrice, maybe this part can be integrated in QEMU head.

Both ethernet drivers work with QEMU head and Linux on x86 host / guest,
but have known endianess issues (they will at least need fixes for big
endian hosts) and are experimental. I am still working on them.

Feedback and bug fixes are welcome.

Regards
Stefan

> Hello,
>
> I want to run QEMU with disk images of existing PC hardware.
> These PC hardware uses ethernet cards which are not emulated
> by QEMU, and because the disk images only support these cards,
> the current QEMU won't work. So I have to write new emulation
> drivers for QEMU...
>
> These are the emulations needed:
> Intel 8255xER PCI (Linux driver: eepro100)
> Realtek RTL8168/8111 PCI (Linux driver: r1000)
> National Semiconductor DP83815/DP83816 (Linux driver: natsemi)
>
> If somebody already started to write any of these emulations
> this would be really helpful. Any other kind of help is welcome, too.
>
> Regards
> Stefan
>
>

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

* Re: [Qemu-devel] More PCI ethernet emulations
  2006-09-16 19:47 [Qemu-devel] More PCI ethernet emulations Stefan Weil
  2006-09-24 18:52 ` [Qemu-devel] [BUG?] Duplicate PCI setup? Stefan Weil
  2006-11-19 20:43 ` [Qemu-devel] More PCI ethernet emulations Stefan Weil
@ 2006-11-25 14:46 ` Stefan Weil
  2006-12-03 11:59 ` Stefan Weil
  2007-02-27 18:47 ` Stefan Weil
  4 siblings, 0 replies; 9+ messages in thread
From: Stefan Weil @ 2006-11-25 14:46 UTC (permalink / raw)
  To: qemu-devel

Hello,

these new ethernet drivers for QEMU are now available:

Intel 8255x ("E100", "EEPRO100"):
http://svn.berlios.de/wsvn/ar7-firmware/qemu/trunk/hw/eepro100.c?op=file

National Semiconductor DP83815/DP83816:
http://svn.berlios.de/wsvn/ar7-firmware/qemu/trunk/hw/dp8381x.c?op=file

Both drivers use a new EEPROM driver:
http://svn.berlios.de/wsvn/ar7-firmware/qemu/trunk/hw/eeprom93xx.c?op=file
http://svn.berlios.de/wsvn/ar7-firmware/qemu/trunk/hw/eeprom93xx.h?op=file

This EEPROM driver can be shared by any other device which needs
an EEPROM, for example replace the driver for RTL8139 or add an
EEPROM to cirrus vga or other ethernet cards.

I estimate the status of the EEPROM driver to be stable.
Fabrice, maybe this part can be integrated in QEMU head.

Both ethernet drivers work with QEMU head and Linux on x86 host / guest,
but have known endianess issues (they will at least need fixes for big
endian hosts) and are experimental. I am still working on them.

Feedback and bug fixes are welcome.

Regards
Stefan

> Hello,
>
> I want to run QEMU with disk images of existing PC hardware.
> These PC hardware uses ethernet cards which are not emulated
> by QEMU, and because the disk images only support these cards,
> the current QEMU won't work. So I have to write new emulation
> drivers for QEMU...
>
> These are the emulations needed:
> Intel 8255xER PCI (Linux driver: eepro100)
> Realtek RTL8168/8111 PCI (Linux driver: r1000)
> National Semiconductor DP83815/DP83816 (Linux driver: natsemi)
>
> If somebody already started to write any of these emulations
> this would be really helpful. Any other kind of help is welcome, too.
>
> Regards
> Stefan
>
>

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

* Re: [Qemu-devel] More PCI ethernet emulations
  2006-09-16 19:47 [Qemu-devel] More PCI ethernet emulations Stefan Weil
                   ` (2 preceding siblings ...)
  2006-11-25 14:46 ` Stefan Weil
@ 2006-12-03 11:59 ` Stefan Weil
  2007-02-27 18:47 ` Stefan Weil
  4 siblings, 0 replies; 9+ messages in thread
From: Stefan Weil @ 2006-12-03 11:59 UTC (permalink / raw)
  To: qemu-devel

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

Hello,

these new PCI ethernet drivers for QEMU are now available:

* Intel 8255x ("E100", "EEPRO100")

* National Semiconductor DP83815/DP83816

* Both drivers use a new EEPROM driver.

This EEPROM driver can be shared by any other device which needs
an EEPROM, for example replace the driver for RTL8139 or add an
EEPROM to cirrus vga or other ethernet cards.

I estimate the status of the EEPROM driver to be stable.
Fabrice, maybe this part can be integrated in QEMU head.

Both ethernet drivers work with QEMU head and Linux on x86 host / guest,
but have known endianess issues (they will at least need fixes for big
endian hosts) and are experimental. I am still working on them.

Feedback and bug fixes are welcome.

Regards
Stefan Weil

PS. I tried to send this mail several times using a URL for each
new driver file, but these mails did not reach the mailing list.
Are mails with URLs blocked by some mechanism?
Now all new source files are in the tar archive appended to the mail.


> Hello,
>
> I want to run QEMU with disk images of existing PC hardware.
> These PC hardware uses ethernet cards which are not emulated
> by QEMU, and because the disk images only support these cards,
> the current QEMU won't work. So I have to write new emulation
> drivers for QEMU...
>
> These are the emulations needed:
> Intel 8255xER PCI (Linux driver: eepro100)
> Realtek RTL8168/8111 PCI (Linux driver: r1000)
> National Semiconductor DP83815/DP83816 (Linux driver: natsemi)
>
> If somebody already started to write any of these emulations
> this would be really helpful. Any other kind of help is welcome, too.
>
> Regards
> Stefan
>
>







[-- Attachment #2: qemu-drivers.tar.bz2 --]
[-- Type: application/octet-stream, Size: 21328 bytes --]

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

* Re: [Qemu-devel] More PCI ethernet emulations
@ 2006-12-19  3:47 Huang, Xinmei
  0 siblings, 0 replies; 9+ messages in thread
From: Huang, Xinmei @ 2006-12-19  3:47 UTC (permalink / raw)
  To: qemu-devel, weil


Hello,

Hi Stefan,

    I have applied  your eepro100 emulator for vitsta RTM guest, and met
some problems.

    Vista complaints :
	 The device is not configured correctly.(Code 1). There is no
driver selected for the device information set or element.
    	 And Hardware Ids in device manager
is:PCI\VEN_8086&DEV_1209&SUBSYS_00000000&REV_09
    
    I 've searched in C:\Windows\inf and got no driver information of
PCI device id=1209, i.e. Vista could not confirgure this device
correctly as it believes this device is unsupported.

    So  I made a tiny change in your code, i.e. let PCI device ID=1229
and tried several sub system id, neither of vista's driver could start
eepro100 unfortunately. There's a yellow exclamation mark in device
manager. Eventually, I installed intel's eepro100 driver for vista, this
issue remains ;-(.

    Can you help to give me any comment or suggestion?
  
   Thanks a lot
    
	
Your original mail:

these new PCI ethernet drivers for QEMU are now available:

* Intel 8255x ("E100", "EEPRO100")

* National Semiconductor DP83815/DP83816

* Both drivers use a new EEPROM driver.

This EEPROM driver can be shared by any other device which needs
an EEPROM, for example replace the driver for RTL8139 or add an
EEPROM to cirrus vga or other ethernet cards.

I estimate the status of the EEPROM driver to be stable.
Fabrice, maybe this part can be integrated in QEMU head.

Both ethernet drivers work with QEMU head and Linux on x86 host / guest,
but have known endianess issues (they will at least need fixes for big
endian hosts) and are experimental. I am still working on them.

Feedback and bug fixes are welcome.

Regards
Stefan Weil

PS. I tried to send this mail several times using a URL for each
new driver file, but these mails did not reach the mailing list.
Are mails with URLs blocked by some mechanism?
Now all new source files are in the tar archive appended to the mail.


> Hello,
>
> I want to run QEMU with disk images of existing PC hardware.
> These PC hardware uses ethernet cards which are not emulated
> by QEMU, and because the disk images only support these cards,
> the current QEMU won't work. So I have to write new emulation
> drivers for QEMU...
>
> These are the emulations needed:
> Intel 8255xER PCI (Linux driver: eepro100)
> Realtek RTL8168/8111 PCI (Linux driver: r1000)
> National Semiconductor DP83815/DP83816 (Linux driver: natsemi)
>
> If somebody already started to write any of these emulations
> this would be really helpful. Any other kind of help is welcome, too.
>
> Regards
> Stefan
>
>

Best Regards
Xinmei.Huang

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

* Re: [Qemu-devel] More PCI ethernet emulations
  2006-09-16 19:47 [Qemu-devel] More PCI ethernet emulations Stefan Weil
                   ` (3 preceding siblings ...)
  2006-12-03 11:59 ` Stefan Weil
@ 2007-02-27 18:47 ` Stefan Weil
  4 siblings, 0 replies; 9+ messages in thread
From: Stefan Weil @ 2007-02-27 18:47 UTC (permalink / raw)
  To: QEMU Developers

A new PCI network card is emulated partially with QEMU:

the wireless LAN adapter TNETW1130 (ACX111).

I needed this driver as a debugging aid for existing (AR7) hardware
with the Open Source ACX111 driver for Linux.

So my main focus are debug messages from this driver, not real
network emulation (although this might be the first emulated
wireless LAN).

The current version emulates PCI hardware detection and some
basic functions including firmware download. It works with Linux
2.6.x on PC- or AR7 based emulated hardware.

Source is available from
http://svn.berlios.de/wsvn/ar7-firmware/qemu/trunk/hw/tnetw1130.c?op=file

Contributions or feedback are welcome.

Stefan

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

end of thread, other threads:[~2007-02-27 18:47 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-16 19:47 [Qemu-devel] More PCI ethernet emulations Stefan Weil
2006-09-24 18:52 ` [Qemu-devel] [BUG?] Duplicate PCI setup? Stefan Weil
2006-09-24 19:09   ` Paul Brook
2006-09-24 19:47     ` Stefan Weil
2006-11-19 20:43 ` [Qemu-devel] More PCI ethernet emulations Stefan Weil
2006-11-25 14:46 ` Stefan Weil
2006-12-03 11:59 ` Stefan Weil
2007-02-27 18:47 ` Stefan Weil
  -- strict thread matches above, loose matches on Subject: below --
2006-12-19  3:47 Huang, Xinmei

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