OSDev.org https://forum.osdev.org/ |
|
D-Link DFE-690TXD CardBus (RTL8139) not receiving packets https://forum.osdev.org/viewtopic.php?f=1&t=56102 |
Page 1 of 1 |
Author: | malformedpacket [ Sun Jan 23, 2022 5:04 pm ] |
Post subject: | D-Link DFE-690TXD CardBus (RTL8139) not receiving packets |
Hello, I have tried every conceivable option I could think of to avoid making yet another thread about RTL8139 adapters, yet here I am, stuck on this issue. I have a D-Link DFE-690TXD CardBus adapter (RTL8139) attached to a Ricoh RL5c476 II CardBus bridge. I am able to transmit, but not receive packets - the RX buffer stays filled with zeroes. I have bus mastering enabled on both the CardBus bridge and the D-Link adapter, I'm hoping that someone can guide me in the correct direction as I may have missed some configuration option? Thanks in advance. |
Author: | Klakap [ Mon Jan 24, 2022 1:18 am ] |
Post subject: | Re: D-Link DFE-690TXD CardBus (RTL8139) not receiving packet |
Hello, without code it is almost impossible to say anything. |
Author: | iansjack [ Mon Jan 24, 2022 4:54 am ] |
Post subject: | Re: D-Link DFE-690TXD CardBus (RTL8139) not receiving packet |
It would also be useful to know what packets you are sending to the NIC. I presume that they are ARP packets as they don't rely on a MAC or IP address and are probably the easiest ones to process. Could you confirm this. |
Author: | malformedpacket [ Mon Jan 24, 2022 8:25 am ] |
Post subject: | Re: D-Link DFE-690TXD CardBus (RTL8139) not receiving packet |
Klakap wrote: Hello, without code it is almost impossible to say anything. I am using the example code from the wiki - this works fine in QEMU, but cannot receive packets on the physical hardware. Transmit packets works fine. |
Author: | malformedpacket [ Mon Jan 24, 2022 8:30 am ] |
Post subject: | Re: D-Link DFE-690TXD CardBus (RTL8139) not receiving packet |
iansjack wrote: It would also be useful to know what packets you are sending to the NIC. I presume that they are ARP packets as they don't rely on a MAC or IP address and are probably the easiest ones to process. Could you confirm this. I am sending DHCP Discover from the RTL8139, DHCP Offer is sent to the RTL8139 but is not copied from the RX FIFO into the RX buffer. |
Author: | malformedpacket [ Mon Jan 24, 2022 9:04 am ] |
Post subject: | Re: D-Link DFE-690TXD CardBus (RTL8139) not receiving packet |
Ok, this is very odd, and I could swear that I've already tried this, but... I browsed to this external link http://www.jbox.dk/sanos/source/sys/dev/rtl8139.c.html and noticed that enable Tx/Rx MUST be enabled before configuring Rx buffer. I moved the line of code to enable Tx/Rx immediately after software reset and... it works I guess this is something to keep in mind when browsing the wiki, that the code example provided will not work with this particular card. |
Page 1 of 1 | All times are UTC - 6 hours |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |