public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] Operation timed out
@ 2007-02-15 10:29 Srinivas rao
  2007-02-15 11:23 ` Nick Garnett
  2007-02-15 13:10 ` Andrew Lunn
  0 siblings, 2 replies; 6+ messages in thread
From: Srinivas rao @ 2007-02-15 10:29 UTC (permalink / raw)
  To: ecos

Hi,

Iam using rltk 8139 pci card and eCos rltk 8139 eternet drinver for my NUPort Board
Iam testing the ping_test case on my NUPort Board. 
the request packets are sending but reply packets are not recieving, I checked in the Ehtereal.
Can u pls suggest a possible
solution. The following is an extract of the ping_test ....

After running the ping_test.bin file on board.

## Starting application at 0x00030000 ...
Init device '/dev/ttydiag'
Init tty channel: 0x0006ba78
Init device '/dev/tty0'
Init tty channel: 0x0006ba94
Init device '/dev/haldiag'
HAL/diag SERIAL init
Network stack using 69632 bytes for misc space
                    69632 bytes for mbufs
                    139264 bytes for mbuf clusters
[cyg_net_init] Init: mbinit(0x00000000)
[cyg_net_init] Init: cyg_net_init_devs(0x00000000)
Init device 'rltk8139_eth0'
cyg_pci_find_matching - func is at 319c8
cyg_pci_find_next: start[ffffffff] ...
   Bus: 0, Dev: 1, Fn: 0, Vendor: 10ec
... PCI vendor = 10ec, device = 8139, class 20000
Interrupt pin is 8
Interrupt pin is 8
[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(0x0006b7e4)
New domain internet at 0x00000000
[cyg_net_init] Init: cyg_net_add_domain(0x0006b244)
New domain route at 0x00000000
[cyg_net_init] Init: call_route_init(0x00000000)
[cyg_net_init] Done
eCos Started...
BOOTP[eth0] op: REPLY
       htype: Ethernet
        hlen: 6
        hops: 0
         xid: 0x0
        secs: 0
       flags: 0x0
       hw_addr: 00:80:48:1b:a5:70
     client IP: 192.168.2.130
         my IP: 192.168.2.130
     server IP: 192.168.2.196
    gateway IP: 192.168.2.1
  options:
        subnet mask: 255.255.255.0
       IP broadcast: 192.168.2.255
            gateway: 192.168.2.1
rltk8139_start2(eth0)
Sending 42 bytes
xmit 42 bytes at 0x0008fcd6 sg[1]
0008FCD6: FF FF FF FF FF FF 00 80  48 1B A5 70 08 06 00 01  |........H..p....|
0008FCE6: 08 00 06 04 00 01 00 80  48 1B A5 70 C0 A8 02 82  |........H..p....|
0008FCF6: 00 00 00 00 00 00 C0 A8  02 82                    |..........      |
rltk8139_start2(eth0)
Sending 42 bytes
xmit 42 bytes at 0x0008fc56 sg[1]
0008FC56: FF FF FF FF FF FF 00 80  48 1B A5 70 08 06 00 01  |........H..p....|
0008FC66: 08 00 06 04 00 01 00 80  48 1B A5 70 C0 A8 02 82  |........H..p....|
0008FC76: 00 00 00 00 00 00 C0 A8  02 82                    |..........      |
rltk8139_start2(eth0)
PING server 192.168.2.196
Sending 42 bytes
xmit 42 bytes at 0x0008fad6 sg[1]
0008FAD6: FF FF FF FF FF FF 00 80  48 1B A5 70 08 06 00 01  |........H..p....|
0008FAE6: 08 00 06 04 00 01 00 80  48 1B A5 70 C0 A8 02 82  |........H..p....|
0008FAF6: 00 00 00 00 00 00 C0 A8  02 C4                    |..........      |
recvfrom: Operation timed out
Sending 42 bytes
xmit 42 bytes at 0x0008fbd6 sg[1]
0008FBD6: FF FF FF FF FF FF 00 80  48 1B A5 70 08 06 00 01  |........H..p....|
0008FBE6: 08 00 06 04 00 01 00 80  48 1B A5 70 C0 A8 02 82  |........H..p....|
0008FBF6: 00 00 00 00 00 00 C0 A8  02 C4                    |..........      |
recvfrom: Operation timed out
Sending 42 bytes
xmit 42 bytes at 0x0008fa56 sg[1]
0008FA56: FF FF FF FF FF FF 00 80  48 1B A5 70 08 06 00 01  |........H..p....|
0008FA66: 08 00 06 04 00 01 00 80  48 1B A5 70 C0 A8 02 82  |........H..p....|
0008FA76: 00 00 00 00 00 00 C0 A8  02 C4                    |..........      |
rltk8139_send
recvfrom: Operation timed out
Sending 42 bytes
xmit 42 bytes at 0x0008fb56 sg[1]
0008FB56: FF FF FF FF FF FF 00 80  48 1B A5 70 08 06 00 01  |........H..p....|
0008FB66: 08 00 06 04 00 01 00 80  48 1B A5 70 C0 A8 02 82  |........H..p....|
0008FB76: 00 00 00 00 00 00 C0 A8  02 C4                    |..........      |
recvfrom: Operation timed out
recvfrom: Operation timed out
recvfrom: Operation timed out
recvfrom: Operation timed out
sendto: Host is down
sendto: Host is down
sendto: Host is down
sendto: Host is down
sendto: Host is down
sendto: Host is down
sendto: Host is down
sendto: Host is down
sendto: Host is down
Sent 16 packets, received 0 OK, 0 bad
PING server 192.168.2.228
recvfromfun
recvfrom: Operation timed out
recvfromfun
recvfrom: Operation timed out
recvfromfun
recvfrom: Operation timed out
recvfromfun
recvfrom: Operation timed out
recvfromfun
recvfrom: Operation timed out
recvfromfun
recvfrom: Operation timed out
sendto: Host is down
sendto: Host is down
sendto: Host is down
sendto: Host is down
sendto: Host is down
sendto: Host is down
sendto: Host is down
sendto: Host is down
sendto: Host is down
sendto: Host is down
Sent 16 packets, received 0 OK, 0 bad
PASS:<Ping test OK>
EXIT:<done>

 
Thanks & Regards
Srinivas Rao.Ch




		
__________________________________________________________
Yahoo! India Answers: Share what you know. Learn something new
http://in.answers.yahoo.com/

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [ECOS] Operation timed out
  2007-02-15 10:29 [ECOS] Operation timed out Srinivas rao
@ 2007-02-15 11:23 ` Nick Garnett
  2007-02-15 13:10 ` Andrew Lunn
  1 sibling, 0 replies; 6+ messages in thread
From: Nick Garnett @ 2007-02-15 11:23 UTC (permalink / raw)
  To: Srinivas rao; +Cc: ecos

Srinivas rao <ch_srinivas321@yahoo.co.in> writes:

> Hi,
> 
> Iam using rltk 8139 pci card and eCos rltk 8139 eternet drinver for my NUPort Board
> Iam testing the ping_test case on my NUPort Board. 
> the request packets are sending but reply packets are not recieving, I checked in the Ehtereal.
> Can u pls suggest a possible
> solution. The following is an extract of the ping_test ....

The most obvious thing to look at is whether you are getting any
interrupts. I don't see any evidence that you are from the output you
supplied. So you need to check through the PCI interrupt routing,
interrupt controller and CPU interrupt flag for where they might be
getting blocked.


-- 
Nick Garnett                                          eCos Kernel Architect
http://www.ecoscentric.com                     The eCos and RedBoot experts
Besuchen Sie uns vom 13.-15.02.07 auf der Embedded World 2007, Stand 11-336
Visit us at Embedded World 2007, Nürnberg, Germany, 13-15 Feb, Stand 11-336


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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [ECOS] Operation timed out
  2007-02-15 10:29 [ECOS] Operation timed out Srinivas rao
  2007-02-15 11:23 ` Nick Garnett
@ 2007-02-15 13:10 ` Andrew Lunn
  2007-02-15 13:16   ` Gary Thomas
  1 sibling, 1 reply; 6+ messages in thread
From: Andrew Lunn @ 2007-02-15 13:10 UTC (permalink / raw)
  To: Srinivas rao; +Cc: ecos

On Thu, Feb 15, 2007 at 03:59:24PM +0530, Srinivas rao wrote:
> Hi,
> 

> Iam using rltk 8139 pci card and eCos rltk 8139 eternet drinver for
> my NUPort Board

> Iam testing the ping_test case on my NUPort Board. 

> the request packets are sending but reply packets are not recieving,
> I checked in the Ehtereal.

Another thing to check is if the device knows its own MAC
addresses. Sometimes you need to read if from an EEPROM and program it
into the chip. Check if you receive Ethernet broadcast packets, but
not unicast packets addressed to the device.

    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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [ECOS] Operation timed out
  2007-02-15 13:10 ` Andrew Lunn
@ 2007-02-15 13:16   ` Gary Thomas
  0 siblings, 0 replies; 6+ messages in thread
From: Gary Thomas @ 2007-02-15 13:16 UTC (permalink / raw)
  To: Srinivas rao, ecos

Andrew Lunn wrote:
> On Thu, Feb 15, 2007 at 03:59:24PM +0530, Srinivas rao wrote:
>> Hi,
>>
> 
>> Iam using rltk 8139 pci card and eCos rltk 8139 eternet drinver for
>> my NUPort Board
> 
>> Iam testing the ping_test case on my NUPort Board. 
> 
>> the request packets are sending but reply packets are not recieving,
>> I checked in the Ehtereal.
> 
> Another thing to check is if the device knows its own MAC
> addresses. Sometimes you need to read if from an EEPROM and program it
> into the chip. Check if you receive Ethernet broadcast packets, but
> not unicast packets addressed to the device.

Also, try using it with RedBoot which is only polled.


-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [ECOS] Operation timed out
@ 2007-03-06 10:08 Srinivas rao
  0 siblings, 0 replies; 6+ messages in thread
From: Srinivas rao @ 2007-03-06 10:08 UTC (permalink / raw)
  To: Andrew Lunn; +Cc: ecos

Iam reading the MAC ID from EEPROM of The Chip and same Mac Id I programmed into the chip using below code of rltk8139 driver(if_8139.c)

  if (enaddr != NULL) {
    for (i = 0; i < 6; ++i) {
      rltk8139_info->mac[i] = enaddr[i];
      OUTB(enaddr[i], rltk8139_info->base_address + IDR0 + i);
    }
  }

After this code I reading the MAC Id using below code and Its giving same MAC Id.

  for (i = 0; i < 6; ++i)
{
    rltk8139_info->mac[i] = INB(rltk8139_info->base_address + IDR0 + i);
    diag_printf("%x:",rltk8139_info->mac[i]);
}

In MAC Id I didn't find any chanage.

Srinivas Rao.Ch


----- Original Message ----
From: Srinivas rao <ch_srinivas321@yahoo.co.in>
To: Andrew Lunn <andrew@lunn.ch>
Cc: ecos <ecos-discuss@sourceware.org>
Sent: Tuesday, 6 March, 2007 2:14:03 PM
Subject: Re: [ECOS] Operation timed out

Sorry!  for the late response

Iam not reading and programming the MAC id from EEPROM.
Iam not receving the broadcast packets also.

Srinivas Rao.Ch



----- Original Message ----
From: Andrew Lunn <andrew@lunn.ch>
To: Srinivas rao <ch_srinivas321@yahoo.co.in>
Cc: ecos <ecos-discuss@sourceware.org>
Sent: Thursday, 15 February, 2007 6:40:26 PM
Subject: Re: [ECOS] Operation timed out

On Thu, Feb 15, 2007 at 03:59:24PM +0530, Srinivas rao wrote:
> Hi,
> 

> Iam using rltk 8139 pci card and eCos rltk 8139 eternet drinver for
> my NUPort Board

> Iam testing the ping_test case on my NUPort Board. 

> the request packets are sending but reply packets are not recieving,
> I checked in the Ehtereal.

Another thing to check is if the device knows its own MAC
addresses. Sometimes you need to read if from an EEPROM and program it
into the chip. Check if you receive Ethernet broadcast packets, but
not unicast packets addressed to the device.

    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






        
__________________________________________________________
Yahoo! India Answers: Share what you know. Learn something new
http://in.answers.yahoo.com/

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






		
__________________________________________________________
Yahoo! India Answers: Share what you know. Learn something new
http://in.answers.yahoo.com/

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [ECOS] Operation timed out
@ 2007-03-06  8:44 Srinivas rao
  0 siblings, 0 replies; 6+ messages in thread
From: Srinivas rao @ 2007-03-06  8:44 UTC (permalink / raw)
  To: Andrew Lunn; +Cc: ecos

Sorry!  for the late response

Iam not reading and programming the MAC id from EEPROM.
Iam not receving the broadcast packets also.

Srinivas Rao.Ch



----- Original Message ----
From: Andrew Lunn <andrew@lunn.ch>
To: Srinivas rao <ch_srinivas321@yahoo.co.in>
Cc: ecos <ecos-discuss@sourceware.org>
Sent: Thursday, 15 February, 2007 6:40:26 PM
Subject: Re: [ECOS] Operation timed out

On Thu, Feb 15, 2007 at 03:59:24PM +0530, Srinivas rao wrote:
> Hi,
> 

> Iam using rltk 8139 pci card and eCos rltk 8139 eternet drinver for
> my NUPort Board

> Iam testing the ping_test case on my NUPort Board. 

> the request packets are sending but reply packets are not recieving,
> I checked in the Ehtereal.

Another thing to check is if the device knows its own MAC
addresses. Sometimes you need to read if from an EEPROM and program it
into the chip. Check if you receive Ethernet broadcast packets, but
not unicast packets addressed to the device.

    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






		
__________________________________________________________
Yahoo! India Answers: Share what you know. Learn something new
http://in.answers.yahoo.com/

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2007-03-06 10:08 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-15 10:29 [ECOS] Operation timed out Srinivas rao
2007-02-15 11:23 ` Nick Garnett
2007-02-15 13:10 ` Andrew Lunn
2007-02-15 13:16   ` Gary Thomas
2007-03-06  8:44 Srinivas rao
2007-03-06 10:08 Srinivas rao

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).