All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gary Thomas <gary@mlbassoc.com>
To: meta-freescale@yoctoproject.org
Subject: Re: imx6q: force 100 mbps network
Date: Wed, 26 Feb 2014 05:07:07 -0700	[thread overview]
Message-ID: <530DD8EB.9040609@mlbassoc.com> (raw)
In-Reply-To: <CAA2DH4v8SROY6J22KuOitcKL1vj2TWosgo6fXVsDyw=ZRTwNhw@mail.gmail.com>

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
------------------------------------------------------------


  reply	other threads:[~2014-02-26 12:07 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-26 12:03 imx6q: force 100 mbps network Prasant J
2014-02-26 12:07 ` Gary Thomas [this message]
2014-02-26 12:29   ` Prasant J
2014-02-26 13:12     ` Prasant J
2014-02-26 13:28       ` Gary Thomas
2014-02-26 14:05         ` Prasant J

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=530DD8EB.9040609@mlbassoc.com \
    --to=gary@mlbassoc.com \
    --cc=meta-freescale@yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.