Page 1 of 1

E1000 stops receiving packets after some time

Posted: Sat Nov 17, 2012 5:21 am
by online
Hello all,

I am experimenting with the E1000 with the help of the info found here on OsDev and in the Intel documentation. I tried to write a simple driver able to receive and transmit frames. It seems to work, but the receiving of packets stops working after some time.
I tried to turn on the E1000 logging in Bochs to see what's happening and everytime the story is the same - after some time the message "Device not ready to receive data" is being displayed.
The code itself and the log from Bochs is attached.

Notice: the behaviour in VirtualBox is the same (with the exception that I don't know the exact reason, but I assume it's the same).

Any idea where I am wrong ?

Thanks for help,
Vladimir

Re: E1000 stops receiving packets after some time

Posted: Sat Nov 17, 2012 5:04 pm
by online
Solved. The RDLEN value was wrong. In case I have only 1 descriptor available, the value has to be 16 :)