[ECOS] Settign ethernet speed and duplex

Laurie Gellatly laurie.gellatly@netic.com
Fri Sep 15 11:35:00 GMT 2006


Nick,
OK, you've given me something to think a bit more on. Appreciate your
experience in this area. As it turns out there is already the facility
to set the value on startup. This might be the best path for me rather
than trying to create a dynamic setting.
Then the next time the system boots, the new values will be adopted.

Thanks again.			...Laurie:{)

-----Original Message-----
From: ecos-discuss-owner@ecos.sourceware.org
[mailto:ecos-discuss-owner@ecos.sourceware.org]On Behalf Of Nick Garnett
Sent: Friday, 15 September 2006 9:07 PM
To: laurie.gellatly@netic.com
Cc: ecos-discuss@ecos.sourceware.org
Subject: Re: [ECOS] Settign ethernet speed and duplex


"Laurie Gellatly" <laurie.gellatly@netic.com> writes:

> Nick,
> You've never seen auto negotiation fail then like I have.
> If auto negotiation works the way its suppose to then I agree, you're
better
> off leaving it like that.
> Reality unfortunatly does not always follow the best laid plans of mice
and
> men.

Indeed. But we sort it out in the ethernet driver, no need for the
application to be bothered.

>
> Regardless of what you and I might think the customer would still like to
> set speed and duplex manually so....
> Back to the original question, how should this be provided for?
>

You might be able to get an ioctl() to work. However there is no
existing BSD IOCTL to do this. So you would have to invent a new one,
work out how to encode it and work out how it gets passed through the
stack to the driver.

Note that the fact that there is not an existing IOCTL for this
suggests that it is not something that applications should normally
get involved in.

Alternatively, define some config options, or some global variables
that the application can set before bringing the ethernet up. Changing
these settings after the driver is already running is a very bad idea.


--
Nick Garnett                                 eCos Kernel Architect
http://www.ecoscentric.com            The eCos and RedBoot experts


--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss



More information about the Ecos-discuss mailing list