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]

Error: Socket was forcibly closed by remote host


Hi all

We are facing a strange problem. We first run the Redboot monitor with
Ethernet support and obtain the Redboot prompt. Then we load the application
image obtained by compiling 'hello.c' with 'init_all_network_interfaces()'
and the net template build in eCos Config Tool.

When the Redboot monitor executes, it is able to successfully get the IP
address from a BOOTP/DHCP server. But when we execute the kernel image, it
sends a BOOTP request to the BOOTP server, and the BOOTP server even
responds to it (we can see this in the BOOTP log window), but then the BOOTP
server flashes a dialog saying "Error: Socket was forcibly closed by remote
host". And the terminal window shows "BOOTP/DHCP failed on eth1". We are
using FCC2/eth 1 for our board.

--------------------------------------------------------------------

RedBoot> go
[cyg_net_init] Init: mbinit(0x00000000)
[cyg_net_init] Init: cyg_net_init_devs(0x00000000)
Init device 'fcc_eth0'
Getting MAC address from EEPROM...
Reading MAC Addr for FCC1

Current MAC address for unit 0 is ff:ff:ff:ff:ff:ff
Getting ESA from EEPROM...
Unsupported PHY device - id: ffffffff
Init device 'fcc_eth1'
Getting MAC address from EEPROM...
Reading MAC Addr for FCC2
Current MAC address for unit 1 is 0:a0:1e:1:7:b1
Getting ESA from EEPROM...
PHY: Intel LXT971A
Negotiating PHY parameters...
FCC eth1: 100Mb/Full Duplex
[cyg_net_init] Init: loopattach(0x00000000)
[cyg_net_init] Init: ifinit(0x00000000)
[cyg_net_init] Init: domaininit(0x00000000)
[cyg_net_init] Init: cyg_net_add_domain(0x000a3e40)
New domain internet at 0x00000000
[cyg_net_init] Init: cyg_net_add_domain(0x000a38f8)
New domain route at 0x00000000
[cyg_net_init] Init: call_route_init(0x00000000)
[cyg_net_init] Done

Starting network...
SIOCSIFADDR: Device not configured
BOOTP/DHCP failed on eth0
BOOTP[eth1] op: REQUEST
       htype: Ethernet
        hlen: 6
        hops: 0
         xid: 0x0
        secs: 0
       flags: 0x0
       hw_addr: 00:08:e5:11:22:33
     client IP: 0.0.0.0
         my IP: 0.0.0.0
     server IP: 0.0.0.0
    gateway IP: 0.0.0.0
  options:
        subnet mask: 0.0.0.0
       IP broadcast: 0.0.0.0
            gateway: 0.0.0.0
BOOTP/DHCP failed on eth1
[eth_drv_ioctl] Warning: Driver can't set multi-cast mode
[eth_drv_ioctl] Warning: Driver can't set multi-cast mode
[eth_drv_ioctl] Warning: Driver can't set multi-cast mode

Hello, eCos world!

------------------------------------------------------------

We don't know why the board is closing the socket connection "forcefully",
as is being alleged by the BOOTP server in its error dialog.

Guidance please!

Regards

Chandrashekhar Padiyar


-- 
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]