* imx6q: force 100 mbps network @ 2014-02-26 12:03 Prasant J 2014-02-26 12:07 ` Gary Thomas 0 siblings, 1 reply; 6+ messages in thread From: Prasant J @ 2014-02-26 12:03 UTC (permalink / raw) To: meta-freescale@yoctoproject.org [-- Attachment #1: Type: text/plain, Size: 596 bytes --] 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. -Pj [-- Attachment #2: Type: text/html, Size: 762 bytes --] ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: imx6q: force 100 mbps network 2014-02-26 12:03 imx6q: force 100 mbps network Prasant J @ 2014-02-26 12:07 ` Gary Thomas 2014-02-26 12:29 ` Prasant J 0 siblings, 1 reply; 6+ messages in thread From: Gary Thomas @ 2014-02-26 12:07 UTC (permalink / raw) To: meta-freescale 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 ------------------------------------------------------------ ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: imx6q: force 100 mbps network 2014-02-26 12:07 ` Gary Thomas @ 2014-02-26 12:29 ` Prasant J 2014-02-26 13:12 ` Prasant J 0 siblings, 1 reply; 6+ messages in thread From: Prasant J @ 2014-02-26 12:29 UTC (permalink / raw) To: Gary Thomas; +Cc: meta-freescale@yoctoproject.org [-- Attachment #1: Type: text/plain, Size: 1183 bytes --] On Wed, Feb 26, 2014 at 5:37 PM, Gary Thomas <gary@mlbassoc.com> 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! -Pj [-- Attachment #2: Type: text/html, Size: 1732 bytes --] ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: imx6q: force 100 mbps network 2014-02-26 12:29 ` Prasant J @ 2014-02-26 13:12 ` Prasant J 2014-02-26 13:28 ` Gary Thomas 0 siblings, 1 reply; 6+ messages in thread From: Prasant J @ 2014-02-26 13:12 UTC (permalink / raw) To: Gary Thomas; +Cc: meta-freescale@yoctoproject.org [-- Attachment #1: Type: text/plain, Size: 1607 bytes --] On Wed, Feb 26, 2014 at 5:59 PM, Prasant J <pj0585@gmail.com> wrote: > > > On Wed, Feb 26, 2014 at 5:37 PM, Gary Thomas <gary@mlbassoc.com> 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? -Pj [-- Attachment #2: Type: text/html, Size: 2573 bytes --] ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: imx6q: force 100 mbps network 2014-02-26 13:12 ` Prasant J @ 2014-02-26 13:28 ` Gary Thomas 2014-02-26 14:05 ` Prasant J 0 siblings, 1 reply; 6+ messages in thread From: Gary Thomas @ 2014-02-26 13:28 UTC (permalink / raw) To: Prasant J; +Cc: meta-freescale@yoctoproject.org On 2014-02-26 06:12, Prasant J wrote: > > On Wed, Feb 26, 2014 at 5:59 PM, Prasant J <pj0585@gmail.com <mailto:pj0585@gmail.com>> wrote: > > > > On Wed, Feb 26, 2014 at 5:37 PM, Gary Thomas <gary@mlbassoc.com <mailto:gary@mlbassoc.com>> 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 ------------------------------------------------------------ ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: imx6q: force 100 mbps network 2014-02-26 13:28 ` Gary Thomas @ 2014-02-26 14:05 ` Prasant J 0 siblings, 0 replies; 6+ messages in thread From: Prasant J @ 2014-02-26 14:05 UTC (permalink / raw) To: Gary Thomas; +Cc: meta-freescale@yoctoproject.org [-- Attachment #1: Type: text/plain, Size: 2521 bytes --] On Wed, Feb 26, 2014 at 6:58 PM, Gary Thomas <gary@mlbassoc.com> wrote: > On 2014-02-26 06:12, Prasant J wrote: > > > > On Wed, Feb 26, 2014 at 5:59 PM, Prasant J <pj0585@gmail.com <mailto: > pj0585@gmail.com>> wrote: > > > > > > > > On Wed, Feb 26, 2014 at 5:37 PM, Gary Thomas <gary@mlbassoc.com<mailto: > gary@mlbassoc.com>> 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, this was it. Now I get 100 mbps network. Thanks a ton! -Pj [-- Attachment #2: Type: text/html, Size: 3451 bytes --] ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2014-02-26 14:05 UTC | newest] Thread overview: 6+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2014-02-26 12:03 imx6q: force 100 mbps network Prasant J 2014-02-26 12:07 ` Gary Thomas 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
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.