From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.chez-thomas.org (mail.mlbassoc.com [65.100.170.105]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 9DEF2E0084D for ; Wed, 26 Feb 2014 05:28:30 -0800 (PST) Received: by mail.chez-thomas.org (Postfix, from userid 1998) id 909BDF811F9; Wed, 26 Feb 2014 06:28:30 -0700 (MST) X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on hermes.chez-thomas.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=4.0 tests=ALL_TRUSTED,BAYES_00 autolearn=unavailable version=3.3.2 Received: from [192.168.1.114] (zeus [192.168.1.114]) by mail.chez-thomas.org (Postfix) with ESMTP id 0C784F811F8; Wed, 26 Feb 2014 06:28:29 -0700 (MST) Message-ID: <530DEC00.8010609@mlbassoc.com> Date: Wed, 26 Feb 2014 06:28:32 -0700 From: Gary Thomas User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 MIME-Version: 1.0 To: Prasant J References: <530DD8EB.9040609@mlbassoc.com> In-Reply-To: X-Enigmail-Version: 1.5.2 Cc: "meta-freescale@yoctoproject.org" Subject: Re: imx6q: force 100 mbps network X-BeenThere: meta-freescale@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-fsl-* layers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Feb 2014 13:28:32 -0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit On 2014-02-26 06:12, Prasant J wrote: > > On Wed, Feb 26, 2014 at 5:59 PM, Prasant J > wrote: > > > > On Wed, Feb 26, 2014 at 5:37 PM, Gary Thomas > wrote: > > On 2014-02-26 05:03, Prasant J wrote: > > Hi, > > > > I'm using linux-3.0.35 on my custom hardware (uses imx6 quad) based on sabresd platform. I'm using yocto root filesystem (this is a soft float build). > > > > I want to force my system to use 100 mbps ethernet speed even if the network supports 1000 mbps link. How can I enable this ? > > > > My custom hardware uses Micrel's Gigabit Ethernet PHY KSZ9021RNI. > > > > I can change the network speed (by ssh-ing into the linux system) using: > > ethtool -s eth0 autoneg off speed 100 > > but I want network speed of 100 mbps when network is initialized during startup. > > > > Any inputs will be of help. > > If you are using init-ifupdown to manage the network, you can > change /etc/network/interfaces to look something like this: > > auto eth0 > iface eth0 inet dhcp > pre-up ethtool -s eth0 speed 100 duplex full autoneg off > > > Hi Gary, > > That will help. > I guess the same will work when I configure staticip by modifying the /etc/network/interfaces file. > > I will try this one. Thanks once again! > > > This did not work :( > > This is from the serial log: > > Configuring network interfaces... Cannot get current device settings: No such device > not setting speed > not setting duplex > not setting autoneg > > > I guess before ifup is executed, ethtool cannot get eth0. > > Any other suggestions? Just add another line to force the network up. I just ran this on my SabreLite and it worked fine: # Wired or wireless interfaces auto eth0 iface eth0 inet dhcp pre-up ifconfig eth0 up pre-up ethtool -s eth0 speed 10 duplex full autoneg on I chose 10Mbps so I could make sure the settings were from what I set, not the automatic ones. -- ------------------------------------------------------------ Gary Thomas | Consulting for the MLB Associates | Embedded world ------------------------------------------------------------