Forums » Software Development »
Ethernet not coming up
Added by Michael Ruen about 8 years ago
I turned the board on today with my custom SD image (FPGA, kernel, file structure...) that I have been using the past couple weeks, only to find the ethernet did not enable. I thought it must have been something with my image, so I loaded up the prebuilt binary found here... https://support.criticallink.com/redmine/attachments/download/9460/MitySOM_5CSX_H6_42A_Dev_Kit_Release_1.zip
It boots and I can do basic things in linux, but still no ethernet connectivity.
When the device first turns on (right around the time uboot is resetting the eth phy gpio 28) one of the ethernet port status light's blinks once very quickly. Otherwise there are no lights or activity to be seen.
I've checked/tried different ethernet cables and end devices with no avail.
Attached is the boot log as seen from the console, and u-boot environment variables.
console_log.txt (12.9 KB) console_log.txt | Console Log | ||
environment_var.txt (2.52 KB) environment_var.txt |
Replies (7)
RE: Ethernet not coming up - Added by Michael Ruen about 8 years ago
I may have fixed it. On the prebuilt image there is the program gpiotest. I ran it just for the heck of it, and here's what I got...
root@mitysom-5csx:~# ./gpiotest
Usage: gpioprog PinFile
root@mitysom-5csx:~# stmmaceth ff702000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
IPv6: ADDRCONF: eth0: link becomes ready
No clue what happened... But it is does appear to be working now. Tried rebooting it a couple times, tried my image. It all seems to work.
Attached is the console log and environment variables now that it's working, just for records sake. I haven't looked through yet to see if there are any differences.
If anyone does have any ideas as to what may have happened, what else I should've tried or captured, or what it was that actually fixed it. I would still like to know in case it happens again or if anyone else here has an issue like it.
Thanks
console_log.txt (13.2 KB) console_log.txt | Console Log | ||
environment_var.txt (2.53 KB) environment_var.txt | Environment Variables |
RE: Ethernet not coming up - Added by Adam Dziedzic about 8 years ago
I'm not sure why it would fail like that, then recover without any real changes. The HPS_GPIO28 controls the Ethernet PHY Reset. If this was set low, the PHY would be held in reset. That being said, the boot log shows that this GPIO should have been toggled at startup to put the PHY in a known state after power-on. Hopefully this at least gives a little more info to work from.
RE: Ethernet not coming up - Added by Michael Ruen about 8 years ago
Well it's doing it again. No ethernet. Tried running the gpio test, didn't do anything. When I plug an ethernet cable in, the link light on the dev board's ethernet will give a really quick flash, also windows will recognize the connection and try to connect then fail after a couple seconds.
RE: Ethernet not coming up - Added by Michael Williamson about 8 years ago
Just out of curiosity, have you tried a different cable? Do you have a switch or anything available to try?
Most PC's have 1Gb ethernet links, and I note your connection message indicated 100 Mbps. Wondering if you have a bad cable or something...
It might be the unit, but I believe we test for 1 Gbps performance on our dev kits before we ship them.
-Mike
RE: Ethernet not coming up - Added by Michael Ruen about 8 years ago
Yup, tried it with 3 cables (patch, patch and crossover) and 3 devices (switch, router and laptop).
The switch it's usually plugged into is 10/100.
RE: Ethernet not coming up - Added by Daniel Vincelette about 8 years ago
Hi Michael,
Sorry for the delayed response.
Would you mind running ethtool and posting the result?
ethtool eth0
It looks from your boot log that the MAC and correctly see the ethernet phy but I just want to double check.
Thank you,
Dan
RE: Ethernet not coming up - Added by Michael Ruen about 8 years ago
I tested the crystal with an oscilloscope and found the crystal had gone bad. After replacing the crystal everything is working again. Thanks all for the help.