This is the mail archive of the ecos-discuss@sourceware.org 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: Configure Network Support for eCos


On Fri, Aug 19, 2005 at 09:16:04PM -0000, Ruchika Singh wrote:
> 
> Hi All:
> 
> I am using BRH evaluation board by ADI Engg, it runs an older eCos
> version,(downloaded April 02)

Rather old. I suggest you try to upgrade to anoncvs is possible.

> I am trying to configure network support for the same.
> I addedd packages   :
> CYGPKG_NET
> CYGPKG_IO_ETH_DRIVERS
> CYGPKG_IO_FILEIO

Rather than add packages its better to use the net template...

ecosconfig new foobar net

> configured option CYGHWR_NET_DRIVER_ETH1_ADDRS to statically assign IP,
> provide netmask, gateway,server ip etc.
> When I run server_test.c i get following output:
> 
> 0x11bb8 in ?? ()
> Loading section .rom_vectors, size 0x40 lma 0xc0020000
> Loading section .text, size 0x430a0 lma 0xc0020040
> Loading section .rodata, size 0x1d60 lma 0xc00630e0
> Loading section .data, size 0x2418 lma 0xc0064e40
> Start address 0xc0020040 , load size 291416
> Transfer rate: 40900 bits/sec, 300 bytes/write.
> Scanning PCI bus for an Ethernet device.  Please Wait.
> Start SERVER test
> BOOTP[eth0] op: REPLY
>        htype: Ethernet
>         hlen: 6
>         hops: 0
>          xid: 0x0
>         secs: 0
>        flags: 0x0
>        hw_addr: ff:ff:ff:ff:ff:ff
>      client IP: 192.168.1.2
>          my IP: 192.168.1.2
>      server IP: 192.168.1.101
>     gateway IP: 192.168.1.1
>   options:
>         subnet mask: 255.255.255.0
>        IP broadcast: 192.168.1.255
>             gateway: 192.168.1.1
> SIOCSIFADDR: Device not configured
> BOOTP/DHCP failed on eth1
> SIOCSIFADDR: Device not configured
> BOOTP/DHCP failed on eth2
> SIOCSIFADDR: Device not configured
> Network initialization failed for eth0
> 
> I am not sure what causes initialization to fail for eth0.
> What configuration option I might be missing? Where do I specify hw_address??

That will depend on your ethernet device driver. Read the source code.y

        Andrew

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


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