Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I am running MontaVista Linux Professional Edition 3.1 on an embedded system. My version of this distribution doesn't seem to have ethtool available, and using mii-tool gives the following error:

SIOCGMIIPHY on 'eth0' failed: Operation not supported

Is there another alternative way to access the configuration options that ethtool provides?

share|improve this question
1  
I should have added, I am most interested in the offload parameters, i.e. the ethtool -k flag. –  Dunnie Oct 19 '12 at 13:36

1 Answer 1

With a recent enough kernel, you could have a look at

/sys/class/net/eth0/speed
/sys/class/net/eth0/duplex

Sometimes the dmesg output will show the information when the speed is negotiated. You may have to turn some verbose mode on in the NIC driver (see modinfo output on the module for what parameters (to be set in modprobe.conf or modules.conf) are supported).

If you're looking for other parameters like the offload parameters, the kernel API to retrieve them is called "ethtool" (SIOCETHTOOL ioctl), so I doubt there's any other utility to get it.

You should be able to compile ethtool easily though, there's no special dependency required.

share|improve this answer
    
Thanks, but I don't appear to have those files, and dmesg doesn't give up any info I'm interested. I've added a comment to my original question clarifying exactly what I'm looking for. –  Dunnie Oct 19 '12 at 13:38

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.