Forum Discussion
Altera_Forum
Honored Contributor
16 years agouClinux + eth_ocm, late cable plugging.
Hi
I've got quite fresh uClinux (i think it's latest community revision, I downloaded it recently) and OpenCores MAC (version from February 20, 2008). When I run linux with cable connected, everything is fine, but when I run linux first at then connect ethernet cable I must wait long period of time (even 15 seconds) before ethernet interface is fully operable, or even sometimes whole linux hangs. Autonegotiation is performed correctly, because when I plug the cable mii-tool shows proper link status. I noticed that RX is fine, I receive correct packets just after cnnecting cable, but something is wrong with TX - ifconfig shows thata tx count on this interface is 0. Sometimes I can notice TX error from driver, but sometimes uClinux just freezes.2 Replies
- Altera_Forum
Honored Contributor
We are seeing this same behavior. Please keep this thread updated with anything you find.
- Altera_Forum
Honored Contributor
I've found something. I switched to ethoc driver from uClinux from SOPC (http://sopc.et.ntust.edu.tw/?p=linux-2.6.git;a=blob;f=drivers/net/ethoc.c;h=4b57639df27aa7b1e3b6a7f5833e3ebf892d969b;hb=head). I had to make quit&dirty port to run it unde my uClinux, but it's maintained better, and it's still developed. I'm having some troubles with RX dropping and stopping stack queue, but I recommend this driver.