More PCI ethernet emulations
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
[Qemu-devel] [BUG?] Duplicate PCI setup?
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=1ne2000_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
Re: [Qemu-devel] [BUG?] Duplicate PCI setup?
Quoted 9 lines · Stefan Weil
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=1ne2000_map: region=0, addr=0x0000c100, size=0x00000100, type=1PCI memory regions get two different addresses.
So? Why is this a problem?
PCI is designed to allow dynamic resource (re-)configuration.
Quoted 2 lines
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
Re: [Qemu-devel] [BUG?] Duplicate PCI setup?
This was fixed with the latest CVS changes.
Fabrice, you are really fast!
Merci,
Stefan
Quoted 9 lines · Stefan Weil
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=1ne2000_map: region=0, addr=0x0000c100, size=0x00000100, type=1PCI memory regions get two different addresses.
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
Quoted 20 lines
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
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
Quoted 20 lines
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
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.
Quoted 20 lines
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
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