public inbox for ecos-devel@sourceware.org
 help / color / mirror / Atom feed
* Re: ecos freebsd_stack
@ 2005-03-04  2:55 Raghu
  0 siblings, 0 replies; 6+ messages in thread
From: Raghu @ 2005-03-04  2:55 UTC (permalink / raw)
  To: andrew, ecos-devel

Hi,
I enabled the "ICMPPRINTFS" in ip_icmp.c, but the
console does not print any messages releated to ICMP
activity. Where probably we should expect it to
construct a ICMP request packet and send, but this the
"ping_test" program does by copying the ICMP header
information by type casting the
unsigned char pkt1[]. Why doesnt it get sent at the
stack level ??

--- Andrew Lunn <andrew@lunn.ch> wrote:
> What does the console show? Does it say anything
> about the ICMP
> message it is trying to send?




	
		
__________________________________ 
Celebrate Yahoo!'s 10th Birthday! 
Yahoo! Netrospective: 100 Moments of the Web 
http://birthday.yahoo.com/netrospective/

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

* Re: ecos freebsd_stack
  2005-03-04 10:09 Raghu
  2005-03-04 13:42 ` Gary Thomas
@ 2005-03-04 13:54 ` David Vrabel
  1 sibling, 0 replies; 6+ messages in thread
From: David Vrabel @ 2005-03-04 13:54 UTC (permalink / raw)
  To: Raghu; +Cc: ecos-devel

Raghu wrote:
> 
> Any clues if this driver is "interrupt" driven or
> "polled mode", and how does interrupt processing
> happens in ixp425 ??

Unless someones added interrupt handlers etc. since I last looked the
NPE driver is polled mode only (suitable for RedBoot but not much else).

David Vrabel
-- 
David Vrabel, Design Engineer

Arcom, Clifton Road           Tel: +44 (0)1223 411200 ext. 3233
Cambridge CB1 7EA, UK         Web: http://www.arcom.com/

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

* Re: ecos freebsd_stack
  2005-03-04 10:09 Raghu
@ 2005-03-04 13:42 ` Gary Thomas
  2005-03-04 13:54 ` David Vrabel
  1 sibling, 0 replies; 6+ messages in thread
From: Gary Thomas @ 2005-03-04 13:42 UTC (permalink / raw)
  To: Raghu; +Cc: andrew, eCos development

Note: this should really be on the discussion list and not "devel"

On Fri, 2005-03-04 at 02:09 -0800, Raghu wrote:
> Probed more on this issue and wanted to share the
> findings,The ARP request from IDXP425 is reaching the
> Host IP. 
> Host machine generates an ARP reply and sends it on
> the line, but this is never reaching the NPE drivers
> "npe_recv" function in "if_npe.c". May be because it
> dosent receive an interrupt, and is not running in a
> polled mode. 
> 
> Any clues if this driver is "interrupt" driven or
> "polled mode", and how does interrupt processing
> happens in ixp425 ??
> 

My guess is that the hardware address (sometimes called 'MAC')
on the ixp425 is not being set up properly.  ARP replies are
normally uni-addressed (sent to only the station requesting
them) and if the hardware address does not match, the IXP
won't see it.

> 
> > I enabled the "ICMPPRINTFS" in ip_icmp.c, but the
> > console does not print any messages releated to ICMP
> > activity. Where probably we should expect it to
> > construct a ICMP request packet and send, but this
> > the
> > "ping_test" program does by copying the ICMP header
> > information by type casting the
> > unsigned char pkt1[]. Why doesnt it get sent at the
> > stack level ??
> > --- Andrew Lunn <andrew@lunn.ch> wrote:
> > > What does the console show? Does it say anything
> > > about the ICMP
> > > message it is trying to send?

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

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

* Re: ecos freebsd_stack
@ 2005-03-04 10:09 Raghu
  2005-03-04 13:42 ` Gary Thomas
  2005-03-04 13:54 ` David Vrabel
  0 siblings, 2 replies; 6+ messages in thread
From: Raghu @ 2005-03-04 10:09 UTC (permalink / raw)
  To: andrew, ecos-devel

Probed more on this issue and wanted to share the
findings,The ARP request from IDXP425 is reaching the
Host IP. 
Host machine generates an ARP reply and sends it on
the line, but this is never reaching the NPE drivers
"npe_recv" function in "if_npe.c". May be because it
dosent receive an interrupt, and is not running in a
polled mode. 

Any clues if this driver is "interrupt" driven or
"polled mode", and how does interrupt processing
happens in ixp425 ??


> I enabled the "ICMPPRINTFS" in ip_icmp.c, but the
> console does not print any messages releated to ICMP
> activity. Where probably we should expect it to
> construct a ICMP request packet and send, but this
> the
> "ping_test" program does by copying the ICMP header
> information by type casting the
> unsigned char pkt1[]. Why doesnt it get sent at the
> stack level ??
> --- Andrew Lunn <andrew@lunn.ch> wrote:
> > What does the console show? Does it say anything
> > about the ICMP
> > message it is trying to send?



	
		
__________________________________ 
Celebrate Yahoo!'s 10th Birthday! 
Yahoo! Netrospective: 100 Moments of the Web 
http://birthday.yahoo.com/netrospective/

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

* Re: ecos freebsd_stack
  2005-03-03 12:19 Raghu
@ 2005-03-03 13:10 ` Andrew Lunn
  0 siblings, 0 replies; 6+ messages in thread
From: Andrew Lunn @ 2005-03-03 13:10 UTC (permalink / raw)
  To: Raghu; +Cc: ecos-devel

On Thu, Mar 03, 2005 at 04:18:54AM -0800, Raghu wrote:
> Hi All, 
> 
> I am working with IXDP425 eval board, and I am trying
> to configure CYGPKG_NET_FREEBSD_STACK, by assigning
> static IP address, using
> "CYGHWR_NET_DRIVER_ETH0_ADDRS".
> 
> BOOTP[eth0] op: REPLY
> htype: Ethernet
> hlen: 6
> hops: 0
> xid: 0x0
> secs: 0
> flags: 0x0
> hw_addr: 00:02:b3:3c:25:88
> client IP: 192.168.250.222
> my IP: 192.168.250.222
> server IP: 192.168.250.165
> gateway IP: 192.168.250.2
> options:
> subnet mask: 255.255.255.0
> IP broadcast: 192.168.250.255
> gateway: 192.168.250.2
> Route - dst: 0.0.0.0, mask: 0.0.0.0, gateway:
> 192.168.250.2
> 
> I am trying to "ping" my host machine from the
> IXDP425, using "ping_test.c" On the host machine I
> have "Ethreal" that sniffs packets. And I am able to
> get an "ARP Request" and "ARP Reply", without issues.
> 
> 1 192.168.250.222 Broadcast ARP Who has
> 192.168.250.165?  Tell 192.168.250.222
> 
> 2 192.168.250.165 192.168.250.222 ARP     
> 192.168.250.165 is at 00:11:25:4c:f9:8d
> 
> But the "ICMP - ping request" is not being sent from
> the IXDP425 target board, or probably not being
> generated at all.

Does it send any more arps, or are there only these two messages?

What does the console show? Does it say anything about the ICMP
message it is trying to send?

        Andrew

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

* ecos freebsd_stack
@ 2005-03-03 12:19 Raghu
  2005-03-03 13:10 ` Andrew Lunn
  0 siblings, 1 reply; 6+ messages in thread
From: Raghu @ 2005-03-03 12:19 UTC (permalink / raw)
  To: ecos-devel

Hi All, 

I am working with IXDP425 eval board, and I am trying
to configure CYGPKG_NET_FREEBSD_STACK, by assigning
static IP address, using
"CYGHWR_NET_DRIVER_ETH0_ADDRS".

BOOTP[eth0] op: REPLY
htype: Ethernet
hlen: 6
hops: 0
xid: 0x0
secs: 0
flags: 0x0
hw_addr: 00:02:b3:3c:25:88
client IP: 192.168.250.222
my IP: 192.168.250.222
server IP: 192.168.250.165
gateway IP: 192.168.250.2
options:
subnet mask: 255.255.255.0
IP broadcast: 192.168.250.255
gateway: 192.168.250.2
Route - dst: 0.0.0.0, mask: 0.0.0.0, gateway:
192.168.250.2

I am trying to "ping" my host machine from the
IXDP425, using "ping_test.c" On the host machine I
have "Ethreal" that sniffs packets. And I am able to
get an "ARP Request" and "ARP Reply", without issues.

1 192.168.250.222 Broadcast ARP Who has
192.168.250.165?  Tell 192.168.250.222

2 192.168.250.165 192.168.250.222 ARP     
192.168.250.165 is at 00:11:25:4c:f9:8d

But the "ICMP - ping request" is not being sent from
the IXDP425 target board, or probably not being
generated at all.

Any clues please ??

Thanks in Advance.
Regards,
Raghu


	
		
__________________________________ 
Celebrate Yahoo!'s 10th Birthday! 
Yahoo! Netrospective: 100 Moments of the Web 
http://birthday.yahoo.com/netrospective/

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

end of thread, other threads:[~2005-03-04 13:54 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-04  2:55 ecos freebsd_stack Raghu
  -- strict thread matches above, loose matches on Subject: below --
2005-03-04 10:09 Raghu
2005-03-04 13:42 ` Gary Thomas
2005-03-04 13:54 ` David Vrabel
2005-03-03 12:19 Raghu
2005-03-03 13:10 ` Andrew Lunn

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).