This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Ethernet stack question


What I have at this point in time is an Ethernet driver with its hooks
to eCos. The name I used is "eth0". My Ethernet driver is actually
compiled part of my code. I did not integrate it in eCos at all besides
the necessary hooks (as I did with my serial driver).

What I see in the .ecc file is that eth0 is not turned on at all. Is
there any other way to do this without having to create a eth0 cdl
package.

if not:

   I looked at the powerpc/quicc driver you wrote. I I understand
correctly, all I have to do is to copy this template, and create an
entry in the ecos.db ??? Is that it ?

Pascal

-----Original Message-----
From: Gary Thomas [mailto:gthomas@ecoscentric.com]
Sent: Wednesday, October 30, 2002 1:43 PM
To: Cusson, Pascal
Cc: eCos Discussion
Subject: RE: [ECOS] Ethernet stack question


On Wed, 2002-10-30 at 11:40, Cusson, Pascal wrote:
> Hi Gary,
>    Thanks for the little tips once again. When looking in the .ecc
file,
> I see the following line:
> 
> cdl_interface CYGHWR_NET_DRIVER_ETH0 with a current value at 0. From
> what I read, this cdl is the main point to activate all other
packages.
> However the second line states that the value cannot be modified
there.
> So where do I modify then ?
> 

This means that your ethernet driver isn't implementing the "eth0"
device.  Look at the CDL for other ethernet devices to see how it's
done.

> Pascal
> 
> -----Original Message-----
> From: Gary Thomas [mailto:gthomas@ecoscentric.com]
> Sent: Wednesday, October 30, 2002 12:53 PM
> To: Cusson, Pascal
> Cc: eCos Discussion
> Subject: Re: [ECOS] Ethernet stack question
> 
> 
> On Wed, 2002-10-30 at 10:49, Cusson, Pascal wrote:
> > Hi,
> >     According to the documentation, the easiest way to configure my
> Ethernet connection is by calling the function
> init_all_network_interfaces. Also according to the doc, this call will
> configure all TCP/IP parameters such as my address, the gateway, the
> mask, etc.
> > 
> >    My question is, what are the defaults and how do I change them ?
I
> tried the find the function init_all_network_interfaces() using a grep
> without succes. Also when I call the init function, is there a simple
> way to make sure everything  was properly initialized ? By looking
into
> data structure or something ???
> > 
> 
> This is all set by the CDL, so look in your ecos.ecc file (or
> use the ConfigTool).
> 
> The default will be to use DHCP to configure the device unless
> you (using the CDL) specify a particular address, etc.
> 
> -- 
> ------------------------------------------------------------
> Gary Thomas                  |
> eCosCentric, Ltd.            |  
> +1 (970) 229-1963            |  eCos & RedBoot experts
> gthomas@ecoscentric.com      |
> http://www.ecoscentric.com/  |
> ------------------------------------------------------------
> 
> -- 
> Before posting, please read the FAQ:
http://sources.redhat.com/fom/ecos
> and search the list archive: http://sources.redhat.com/ml/ecos-discuss
-- 
------------------------------------------------------------
Gary Thomas                  |
eCosCentric, Ltd.            |  
+1 (970) 229-1963            |  eCos & RedBoot experts
gthomas@ecoscentric.com      |
http://www.ecoscentric.com/  |
------------------------------------------------------------

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]