[OpenWrt-Devel] Configuring ethernet auto-negotiation off, setting speeds explicitly
Florian Fainelli
florian at openwrt.org
Wed Nov 12 21:35:11 EST 2014
On Nov 11, 2014 6:09 PM, "Shankar Unni" <shankarunni at netscape.net> wrote:
>
> Our box has to deal with a few broken external switches that don't
auto-negotiate properly. (Our box is based on an Intel Rangeley Atom, with
the IGB driver for eth0/1, and we're running BB, more or less - tip of the
barrier_breaker branch).
>
> 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?
I do not think netifd supports that but one way to do it is to invoke
ethtool. That said, it should not be too hard to patch netifd to send the
ethtool ioctl() to force the speed/duplex/autoneg on a specific interface
>
> I'm guessing this will come down to writing some hotplug scripts to read
extra configs from /etc/config/network and invoke ethtool manually..
Right that's what I would do, unless you go patch netifd to do that.
>
> Thanks in advance!
> --
> Shankar Unni.
> _______________________________________________
> openwrt-devel mailing list
> openwrt-devel at lists.openwrt.org
> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.infradead.org/pipermail/openwrt-devel/attachments/20141112/07ce0f41/attachment.htm>
-------------- next part --------------
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list