Thanks for that pointer, Aaron, but it looks like swconfig won't be of use to 
me, because it's for configuring specific switches (my usage is not a switch - 
it's the Intel ethernet port directly from the Rangeley SoC).


Anyway, for now, I'm planning to write a small helper script that is invoked 
from from an early startup script, to invoke ethtool directly on the switch 
ports at startup.  If I want to change the negotiation parameters, I'll have to 
re-invoke that script once for each change.

Can't add a hotplug script for this, because those are invoked only after a 
successful negotiation and link sense. :-/.


-----Original Message-----
From: Aaron Z <aczlan+open...@gmail.com>
To: Shankar Unni <shankaru...@netscape.net>
Cc: OpenWrt Development List <openwrt-devel@lists.openwrt.org>
Sent: Tue, Nov 11, 2014 8:21 pm
Subject: Re: [OpenWrt-Devel] Configuring ethernet auto-negotiation off, setting 
speeds explicitly


On Tue, Nov 11, 2014 at 9:09 PM, Shankar Unni <shankaru...@netscape.net> wrote:
> Is there any way to disable auto-negotiation on an ethernet interface and 
manually set the speed and duplex parameters for it via netifd? (some 
equivalent 
of "option autonegotiate 0", etc.?) I couldn't find anything in netifd that 
would allow us to specify this directly.  Failing this, are there any clever 
tricks that can allow us to do this?
Have you looked into swconfig [1]? that looks like it should let you
set link speeds on a per port basis.

[1] http://wiki.openwrt.org/doc/techref/swconfig


Aaron Z
A human being should be able to change a diaper, plan an invasion,
butcher a hog, conn a ship, design a building, write a sonnet, balance
accounts, build a wall, set a bone, comfort the dying, take orders,
give orders, cooperate, act alone, solve equations, analyze a new
problem, pitch manure, program a computer, cook a tasty meal, fight
efficiently, die gallantly. Specialization is for insects.
— Robert Heinlein, Time Enough for Love

 
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to