[NE-2000] RTL8029. Problems with both Bochs and QEMU
Posted: Fri Sep 30, 2011 12:41 pm
Hello.
I've recently written a driver for the RTL8029 PCI network card.
I'm having a few problems with Bochs and QEMU:
Bochs:
[+] The driver works great for sending packets.
[+] I ran Wireshark in the host OS and it indeed does see the packets being received.
But when i receive a packet and try to read it off the cards memory, I get all 0xFF's.
I'm pretty much certain that my code is fine because i've compared it to other NE2K drivers and the receiving of packets
and initialization of the card is pretty much the same.
QEMU:
[+] QEMU Emulates the same exact card as Bochs
When i try to send a packet, the controller says its all fine, but I don't get any real traffic (the packet isn't really being sent, i can't see it in Wireshark and i don't get any responses).
I think the problem is with some settings of QEMU that doesn't properly 'connect' to my real network card.
I would be glad if you can help me with any of those problems, thanks in advance.
I've recently written a driver for the RTL8029 PCI network card.
I'm having a few problems with Bochs and QEMU:
Bochs:
[+] The driver works great for sending packets.
[+] I ran Wireshark in the host OS and it indeed does see the packets being received.
But when i receive a packet and try to read it off the cards memory, I get all 0xFF's.
I'm pretty much certain that my code is fine because i've compared it to other NE2K drivers and the receiving of packets
and initialization of the card is pretty much the same.
QEMU:
[+] QEMU Emulates the same exact card as Bochs
When i try to send a packet, the controller says its all fine, but I don't get any real traffic (the packet isn't really being sent, i can't see it in Wireshark and i don't get any responses).
I think the problem is with some settings of QEMU that doesn't properly 'connect' to my real network card.
I would be glad if you can help me with any of those problems, thanks in advance.