Project Home
Project Home
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - How to force media type with E1000 driver?: (6 Items)
   
How to force media type with E1000 driver?  
Hi,

I want to know how to force the media type of my e1000 device if the link partner is still configured in auto mode (for 
example with a non managed switch)?

Because if I run for example this:
# ifconfig wm2 mode 10baseT
it's still working in 100baseTX FD because the link partner still advertise all the mode he support.

# ifconfig wm2
wm2: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        capabilities=1f<IP4CSUM,TCP4CSUM,UDP4CSUM,TCP6CSUM,UDP6CSUM>
        enabled=0
...
        media: Ethernet 10baseT (100baseTX full-duplex)
        status: active
...
#

Then I don't found how to force to 10BaseT.

Regards,
Christophe
Re: How to force media type with E1000 driver?  
You can start the driver with the speed an duplex command line options.
io-pkt-v4 -de1000 speed=10,duplex=full/half



On 10-04-14 6:14 AM, "Christophe Hannoyer" <community-noreply@qnx.com>
wrote:

> Hi,
> 
> I want to know how to force the media type of my e1000 device if the link
> partner is still configured in auto mode (for example with a non managed
> switch)?
> 
> Because if I run for example this:
> # ifconfig wm2 mode 10baseT
> it's still working in 100baseTX FD because the link partner still advertise
> all the mode he support.
> 
> # ifconfig wm2
> wm2: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
>         capabilities=1f<IP4CSUM,TCP4CSUM,UDP4CSUM,TCP6CSUM,UDP6CSUM>
>         enabled=0
> ...
>         media: Ethernet 10baseT (100baseTX full-duplex)
>         status: active
> ...
> #
> 
> Then I don't found how to force to 10BaseT.
> 
> Regards,
> Christophe
> 
> 
> 
> _______________________________________________
> 
> Networking Drivers
> http://community.qnx.com/sf/go/post51633
> 

-- 
Hugh Brown                      (613) 591-0931 ext. 2209 (voice)
QNX Software Systems Ltd.        (613) 591-3579           (fax)
175 Terence Matthews Cres.       email:  hsbrown@qnx.com
Kanata, Ontario, Canada.
K2M 1W8
 

Re: How to force media type with E1000 driver?  
Hello,

Thank you for the reply.

When reading the doc of the driver
http://www.qnx.com/developers/docs/6.4.1/neutrino/utilities/d/devnp-e1000.so.html
we can see in the duplex and speed options:
> You can also use ifconfig -m and ifconfig wmX media to set this.
Then it seems reading this it's exactly the same doing the config when starting the driver or later with ifconfig. But 
it's not the case.
When it's done when starting the driver it's forced to the mode you select in the command line and the mii announce only
 this capability (this is what is expected).
For example starting the diver with this:
# io-pkt-v4-hc -ptcpip -de1000 speed=10,duplex=1
And look on the system at the other end you have:
# mii-tool -v eth3
eth3: negotiated 1000baseT-HD flow-control, link ok
...
  link partner: 10baseT-HD
#
Then here the mii of the QNX system announced only 10baseT-HD.

But if I start the driver with:
# io-pkt-v4-hc -ptcpip -de1000
# ifconfig wm2 media 10baseT
The mii of the QNX system continue to announced all capabilities:
# mii-tool -v eth3
eth3: negotiated 1000baseT-HD flow-control, link ok
...
  link partner: 1000baseT-HD 1000baseT-FD 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD
#
This is not what is expected.

A second point. It seems that the duplex option is not used. I start the driver two times with:
# io-pkt-v4-hc -ptcpip -de1000 speed=10,duplex=1
and
# io-pkt-v4-hc -ptcpip -de1000 speed=10,duplex=0
And the remote system always give:
  link partner: 10baseT-HD
(I also tried with duplex=full).

Regards,
Christophe
Re: How to force media type with E1000 driver?  
OK, I'll have to take a look at this.



On 10-04-14 11:18 AM, "Christophe Hannoyer" <community-noreply@qnx.com>
wrote:

> Hello,
> 
> Thank you for the reply.
> 
> When reading the doc of the driver
> http://www.qnx.com/developers/docs/6.4.1/neutrino/utilities/d/devnp-e1000.so.h
> tml
> we can see in the duplex and speed options:
>> You can also use ifconfig -m and ifconfig wmX media to set this.
> Then it seems reading this it's exactly the same doing the config when
> starting the driver or later with ifconfig. But it's not the case.
> When it's done when starting the driver it's forced to the mode you select in
> the command line and the mii announce only this capability (this is what is
> expected).
> For example starting the diver with this:
> # io-pkt-v4-hc -ptcpip -de1000 speed=10,duplex=1
> And look on the system at the other end you have:
> # mii-tool -v eth3
> eth3: negotiated 1000baseT-HD flow-control, link ok
> ...
>   link partner: 10baseT-HD
> #
> Then here the mii of the QNX system announced only 10baseT-HD.
> 
> But if I start the driver with:
> # io-pkt-v4-hc -ptcpip -de1000
> # ifconfig wm2 media 10baseT
> The mii of the QNX system continue to announced all capabilities:
> # mii-tool -v eth3
> eth3: negotiated 1000baseT-HD flow-control, link ok
> ...
>   link partner: 1000baseT-HD 1000baseT-FD 100baseTx-FD 100baseTx-HD 10baseT-FD
> 10baseT-HD
> #
> This is not what is expected.
> 
> A second point. It seems that the duplex option is not used. I start the
> driver two times with:
> # io-pkt-v4-hc -ptcpip -de1000 speed=10,duplex=1
> and
> # io-pkt-v4-hc -ptcpip -de1000 speed=10,duplex=0
> And the remote system always give:
>   link partner: 10baseT-HD
> (I also tried with duplex=full).
> 
> Regards,
> Christophe
> 
> 
> 
> _______________________________________________
> 
> Networking Drivers
> http://community.qnx.com/sf/go/post51669
> 

-- 
Hugh Brown                      (613) 591-0931 ext. 2209 (voice)
QNX Software Systems Ltd.        (613) 591-3579           (fax)
175 Terence Matthews Cres.       email:  hsbrown@qnx.com
Kanata, Ontario, Canada.
K2M 1W8
 

Re: How to force media type with E1000 driver?  
I have attached a new experimental driver for you to test. You should now be
able to set the speed and duplex from ifconfig. I have also added a new
command line option to force the link speed/duplex (force_link). The default
is the advertise the speed/duplex and autonegotiate the link. If you use the
force_link command line option, the link will be forced and no
autonegotiation will take place.


On 10-04-14 11:18 AM, "Christophe Hannoyer" <community-noreply@qnx.com>
wrote:

> Hello,
> 
> Thank you for the reply.
> 
> When reading the doc of the driver
> http://www.qnx.com/developers/docs/6.4.1/neutrino/utilities/d/devnp-e1000.so.h
> tml
> we can see in the duplex and speed options:
>> You can also use ifconfig -m and ifconfig wmX media to set this.
> Then it seems reading this it's exactly the same doing the config when
> starting the driver or later with ifconfig. But it's not the case.
> When it's done when starting the driver it's forced to the mode you select in
> the command line and the mii announce only this capability (this is what is
> expected).
> For example starting the diver with this:
> # io-pkt-v4-hc -ptcpip -de1000 speed=10,duplex=1
> And look on the system at the other end you have:
> # mii-tool -v eth3
> eth3: negotiated 1000baseT-HD flow-control, link ok
> ...
>   link partner: 10baseT-HD
> #
> Then here the mii of the QNX system announced only 10baseT-HD.
> 
> But if I start the driver with:
> # io-pkt-v4-hc -ptcpip -de1000
> # ifconfig wm2 media 10baseT
> The mii of the QNX system continue to announced all capabilities:
> # mii-tool -v eth3
> eth3: negotiated 1000baseT-HD flow-control, link ok
> ...
>   link partner: 1000baseT-HD 1000baseT-FD 100baseTx-FD 100baseTx-HD 10baseT-FD
> 10baseT-HD
> #
> This is not what is expected.
> 
> A second point. It seems that the duplex option is not used. I start the
> driver two times with:
> # io-pkt-v4-hc -ptcpip -de1000 speed=10,duplex=1
> and
> # io-pkt-v4-hc -ptcpip -de1000 speed=10,duplex=0
> And the remote system always give:
>   link partner: 10baseT-HD
> (I also tried with duplex=full).
> 
> Regards,
> Christophe
> 
> 
> 
> _______________________________________________
> 
> Networking Drivers
> http://community.qnx.com/sf/go/post51669
> 

-- 
Hugh Brown                      (613) 591-0931 ext. 2209 (voice)
QNX Software Systems Ltd.        (613) 591-3579           (fax)
175 Terence Matthews Cres.       email:  hsbrown@qnx.com
Kanata, Ontario, Canada.
K2M 1W8
 


Attachment: Text devnp-e1000.so 235.87 KB
Re: How to force media type with E1000 driver?  
Hello,

I run some tests and yes with this version seems to correct what I tell before.
I will run more test later.

Thank you,
Christophe