public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* Re: [ECOS] Trouble using lwIP (driver crash...)
@ 2006-04-03 23:02 Uwe Kindler
  2006-04-04 13:20 ` Michael Grimard
  0 siblings, 1 reply; 8+ messages in thread
From: Uwe Kindler @ 2006-04-03 23:02 UTC (permalink / raw)
  To: ecos-discuss; +Cc: michaelg

Hello,

which file does include cyg/fileio/limits.h? I searched the whole lwIP 
stack sources but did not found any file that includes limits.h.

The nc_test_slave is currently not applicable because SO_REUSEADDR and 
SO_REUSEPORT are not supported at the moment and the nc_test_slave 
requires both.

Regards, Uwe




-- 
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] 8+ messages in thread
* Re: [ECOS] Trouble using lwIP (driver crash...)
@ 2006-04-04 15:45 Uwe Kindler
  2006-04-04 17:10 ` Michael Grimard
  0 siblings, 1 reply; 8+ messages in thread
From: Uwe Kindler @ 2006-04-04 15:45 UTC (permalink / raw)
  To: ecos-discuss, michaelg

Did you ran any other lwip test successfully? Does the tcpecho, udpecho 
and sockets tests work properly. Did you ran any other eCos tests 
successfully?


 >Stack base corrupt - i: 0
 >...
 >...
 >ASSERT FAIL: <A>thread.inl[119]void Cyg_HardwareThread::check_stack() 
 >Stack
 >base corrupt
 >
 >Any idea what causes this?

-- 
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] 8+ messages in thread
* [ECOS] Trouble using lwIP (driver crash...)
@ 2006-04-03 13:14 Michael Grimard
  0 siblings, 0 replies; 8+ messages in thread
From: Michael Grimard @ 2006-04-03 13:14 UTC (permalink / raw)
  To: ecos-discuss

Hi,
  I have downloaded the latest source for eCos with the ported version of
lwIP (1.1.1) and I have some trouble with it.

With the eCos Configuration Tool, I choose i386 PC target with i82559
ethernet template with the lwip_eth package and this configuration doesn’t
compile. I got “cyg/fileio/limits.h: No such file or directory” error. In
fact, the directory cyg/fileio has not been created by the config tool. I
added the POSIX File IO compatibility layer package and now eCos builds
without errors. I guess that this package should be included by default…

I never used lwIP so I wanted to start with the nc_test_xxx examples to test
it, but nc_test_master.c is not given, so I started porting it to use lwIP.
The biggest problem I had with the code was that gethostbyname() and struct
hostent that are undefined.

struct hostent is defined in netdb.h or dns.h. I don’t have dns.h (the
directory “ns” has not been created by the config tool), so I must use
netdb.h, but by doing this, gethostbyname() gets defined to a function
returning NULL… That’s not really what I was expecting…

Does lwIP supports a call to gethostbyname()? If yes, how can I do it?

For now, I’m using the IP4_ADDR macro and nc_test_master compiles.

Now… my real problem. Is anybody have used lwIP with the i82559 driver?

When I run nc_test_master, the first packet sent triggers the ARP Protocol.
An ARP Request is sent, the reply from the slave is sent and the master
sends the first packet (NC_REQUEST_TCP_ECHO), but when the master receives
the ACK from the slave, I got:

ASSERT FAIL: <5>if_i82559.c [2008]PacketRxReady() No prev EL

Can anyone help me with this?

If someone has already the nc_test_master.c file modified for lwIP and can
send it to me, I will try it to see if it is the modification I made to the
nc_test_master.c file that causes this or something else (maybe eth_drv.c?).


Thanks,
Michael



--
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] 8+ messages in thread

end of thread, other threads:[~2006-04-05  7:26 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-04-03 23:02 [ECOS] Trouble using lwIP (driver crash...) Uwe Kindler
2006-04-04 13:20 ` Michael Grimard
2006-04-04 13:33   ` Andrew Lunn
2006-04-04 14:36     ` Michael Grimard
  -- strict thread matches above, loose matches on Subject: below --
2006-04-04 15:45 Uwe Kindler
2006-04-04 17:10 ` Michael Grimard
2006-04-05  7:26   ` Birahim Larou Fall
2006-04-03 13:14 Michael Grimard

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