LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 04-16-2018, 09:33 AM   #1
kcid42
LQ Newbie
 
Registered: Apr 2018
Posts: 2

Rep: Reputation: Disabled
How to set ethtool phyad of ethernet interface


I have a beaglebone black running debian, which sometimes boots with a dead NIC.

When it is not working, the lights of the NIC stay on or off permanenty, indepent of actual connection state. No packets are received or any communication is possible. The NIC drivers are loaded and dmesg shows no abnormalities. I can compare all of that output with a working board.

I noticed that when the NIC is not working though, the output of dmesg and ethtool are showing a different 'physical address' (not the MAC).

Working:
dmesg: [ 1.473566] davinci_mdio 4a101000.mdio: phy[0]: device 4a101000.mdio:00, driver SMSC LAN8710/LAN8720
ethtool: Settings for eth0:
...
PHYAD: 0

Not working:
dmesg: [ 1.473676] davinci_mdio 4a101000.mdio: phy[2]: device 4a101000.mdio:02, driver SMSC LAN8710/LAN8720
ethtool: Settings for eth0:
...
PHYAD: 2

My question is, can I set/force this phyad to 0, to solve this problem?
I tried it using ethtool, but it refuses:
root@beaglebone:# ethtool -s eth0 phyad 0
Cannot set new settings: Invalid argument
not setting phy_address

root@beaglebone:# ethtool -s eth0 phyad 2
<this command completes>
 
Old 04-18-2018, 06:29 AM   #2
kcid42
LQ Newbie
 
Registered: Apr 2018
Posts: 2

Original Poster
Rep: Reputation: Disabled
Can somebody at least tell me, what that sub address is? Is it in index in a list of found devices, an address on a bus, or something else?
 
Old 04-18-2018, 08:33 PM   #3
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
This subaddress, as you call it? 4a101000.mdio:00, that's the phy. It's enumerated somewhere in /sys. Here's the datasheet for the device: http://www.sunnyqi.com/upLoad/produc...06/LAN8710.pdf
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ethtool command not changing speed of Ethernet card bennetthaselton Linux - Networking 5 05-04-2011 09:06 AM
[AMD] 79c970 [PCnet32 LANCE] Can’t set speed 1000 with ethtool Krajisnik Linux - Hardware 1 06-02-2010 01:20 PM
Change ethernet card to 10Mbps (ethtool doesn’t work for FC1) pwangee Fedora 6 07-08-2004 08:30 AM
Change ethernet card to 10Mbps (ethtool doesn’t work for FC1) pwangee Linux - Networking 0 07-07-2004 09:45 AM
How to set TOS bits on LINUX ethernet interface markraem Linux - Networking 3 02-26-2004 08:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 05:48 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration