<font color='black' size='2' face='arial'>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).
<div><br>
</div>
<div>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.<br>
<br>
Can't add a hotplug script for this, because those are invoked only after a successful negotiation and link sense. :-/.<br>
<br>
<div style="font-family:helvetica,arial;font-size:10pt;color:black">-----Original Message-----<br>
From: Aaron Z <aczlan+openwrt@gmail.com><br>
To: Shankar Unni <shankarunni@netscape.net><br>
Cc: OpenWrt Development List <openwrt-devel@lists.openwrt.org><br>
Sent: Tue, Nov 11, 2014 8:21 pm<br>
Subject: Re: [OpenWrt-Devel] Configuring ethernet auto-negotiation off, setting speeds explicitly<br>
<br>
<div id="AOLMsgPart_0_308aca41-8910-4778-b786-4668ee9d3e22" style="margin: 0px;font-family: Tahoma, Verdana, Arial, Sans-Serif;font-size: 12px;color: #000;background-color: #fff;">
<pre style="font-size: 9pt;"><tt>On Tue, Nov 11, 2014 at 9:09 PM, Shankar Unni <<a href="mailto:shankarunni@netscape.net">shankarunni@netscape.net</a>> 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] <a href="http://wiki.openwrt.org/doc/techref/swconfig" target="_blank">http://wiki.openwrt.org/doc/techref/swconfig</a>
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
</tt></pre>
</div>
<!-- end of AOLMsgPart_0_308aca41-8910-4778-b786-4668ee9d3e22 -->
</div>
</div>
</font>