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 F2D0EE007AE for ; Wed, 26 Feb 2014 04:07:05 -0800 (PST) Received: by mail.chez-thomas.org (Postfix, from userid 1998) id 2856FF811F8; Wed, 26 Feb 2014 05:07:05 -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=ham version=3.3.2 Received: from [192.168.1.114] (zeus [192.168.1.114]) by mail.chez-thomas.org (Postfix) with ESMTP id 8FF97F811D9; Wed, 26 Feb 2014 05:07:04 -0700 (MST) Message-ID: <530DD8EB.9040609@mlbassoc.com> Date: Wed, 26 Feb 2014 05:07:07 -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: meta-freescale@yoctoproject.org References: In-Reply-To: X-Enigmail-Version: 1.5.2 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 12:07:06 -0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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 -- ------------------------------------------------------------ Gary Thomas | Consulting for the MLB Associates | Embedded world ------------------------------------------------------------