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]

Re: Configuration of static IP addresses


Christian Plessl wrote:
> 
> >There are three configuration options that implement the way the IP
> >address is determined: CYGHWR_NET_DRIVER_ETH0_MANUAL, BOOTP, and
> >ADDRS. The default is BOOTP. Only one of these can be enabled, so you
> >need to disable the default option BOOTP and then enable ADDRS.
> >
> >If you look at CYGHWR_NET_DRIVER_ETH0_SETUP where the problem is
> >reported, you should see something like:
> >
> >cdl_interface CYGHWR_NET_DRIVER_ETH0_SETUP {
> >     # Implemented by CYGHWR_NET_DRIVER_ETH0_MANUAL, active, disabled
> >     # Implemented by CYGHWR_NET_DRIVER_ETH0_BOOTP, active, enabled
> >     # Implemented by CYGHWR_NET_DRIVER_ETH0_ADDRS, active, disabled
> >     ...
> >}
> >
> >This lists all the relevant configuration options.
> 
> Now it works.
> 
> I had to set all the following options
> 
> CYGHWR_NET_DRIVER_ETH0_ADDRS => user_value 1
> CYGHWR_NET_DRIVER_ETH0_ADDRS_IP => user_value 192.168.1.50
> CYGPKG_NET_DHCP =>  user_value 0
> CYGHWR_NET_DRIVER_ETH0_BOOTP =>  user_value 0

Purely FYI, you should have found that the latter two would have
automatically got set to 0 if you used "ecosconfig resolve".

Jifl
-- 
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Un cheval, pas du glue. Pas du cheval, beaucoup du glue. || Opinions==mine

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