This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: Problem with accept() on i386 pc.
On Thu, 2006-04-20 at 16:43 -0700, Patrick O'Grady wrote:
> I was testing it by loading and running the program under GDB by a remote
> connection ('connect remote 10.4.0.73:9000', 'load', 'continue'). After
> starting, the DHCP request messages show up as expected. After that,
> pinging works as expected, and if I let it sit a while, I'll get more DHCP
> messages. But alas, no telnet connection.
>
> There are no firewall or connectivity issues--not only is the client system
> that I'm telnetting from the same computer as is running GDB (which is
> downloading the program to the target system in the first place!) but as I
> indicated below, I saw SYN with RST set--by looking at the specific packets
> in Etherreal--again, here on the same client system.
>
> One potential issue is that I'm running an unusual netmask: my network is
> 10.4.0.0/255.255.252.0; but if that was the problem, then I wouldn't expect
> ping to work either.
>
> Hopefully someone else can try server_test on a pc386/i82559 setup with a
> current copy from CVS... it'd be good to know if anyone else is having
> success with that. Thanks.
If you're using GDB via the network to load & run, you need to have a
different IP address for your eCos application than is used by RedBoot.
This is required because of how RedBoot and eCos share the ethernet
hardware.
> -patrick
>
>
> ----- Original Message -----
> From: "Gary Thomas" <gary@mlbassoc.com>
> To: "Patrick O'Grady" <patrick@baymotion.com>
> Cc: "eCos Discussion" <ecos-discuss@ecos.sourceware.org>
> Sent: Thursday, April 20, 2006 4:27 PM
> Subject: Re: [ECOS] Problem with accept() on i386 pc.
>
>
> > On Thu, 2006-04-20 at 16:24 -0700, Patrick O'Grady wrote:
> >> server_test seems to have the same behavior--telnetting to 7734 doesn't
> >> connect. Interestingly though, tcp_lo_test passes.
> >
> > You say you can ping it - is that *after* the application (yours or
> > 'server_test') runs? or are you pinging RedBoot?
> >
> > Perhaps there is a firewall or some other connectivity issue between
> > your host (where you are trying to telnet from) and the target.
> >
> >>
> >> ----- Original Message -----
> >> From: "Gary Thomas" <gary@mlbassoc.com>
> >> To: "Patrick O'Grady" <patrick@baymotion.com>
> >> Cc: "eCos Discussion" <ecos-discuss@ecos.sourceware.org>
> >> Sent: Thursday, April 20, 2006 4:02 PM
> >> Subject: Re: [ECOS] Problem with accept() on i386 pc.
> >>
> >>
> >> > On Thu, 2006-04-20 at 15:30 -0700, Patrick O'Grady wrote:
> >> >> Hi, all--
> >> >>
> >> >> Curious if anyone else has seen this problem, or if I'm just doing
> >> >> something
> >> >> wrong. If I compile the following program on cygwin, then it works as
> >> >> expected: I can 'telnet localhost 7227' and see my server there.
> >> >> However,
> >> >> if I compile this program and run it on my i386 pc with an i82559
> >> >> ethernet
> >> >> adapter, it doesn't work. My target system is at IP address
> >> >> 10.4.0.73,
> >> >> and
> >> >> I can ping that with no problems. But if I 'telnet 10.4.0.73 7227', I
> >> >> get
> >> >> response SYN response packets with RST--implying that the port isn't
> >> >> listening. My target is configured using 'ecosconfig new pc net' with
> >> >> eCos
> >> >> from CVS as of today (4/20). I've not tried this program on eCos
> >> >> before;
> >> >> but if I undefine ECOS_MODE, then it compiles and works under Cygwin
> >> >> as
> >> >> expected. Thanks for your input!
> >> >
> >> > This looks very similar to the standard test "server_test". Have you
> >> > tried running it on your hardware?
> >
> > --
> > ------------------------------------------------------------
> > 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
> >
> >
>
>
--
------------------------------------------------------------
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