public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* RE: [ECOS] Re: DHCP shuts down Ethernet device?
@ 2001-04-23 12:25 Anthony Massa
  2001-04-23 12:29 ` Jonathan Larmour
  0 siblings, 1 reply; 5+ messages in thread
From: Anthony Massa @ 2001-04-23 12:25 UTC (permalink / raw)
  To: 'Jonathan Larmour'; +Cc: eCos (E-mail)

>> I am running RedBoot on an MBX board and downloading my eCos 
>application
>> with networking support.
>> 
>> I noticed your post about the Ethernet device shutdown and 
>was wondering if
>> I could possibly be running
>> into the same problem.
>
>Only if you don't have a DHCP server on your net and you're 
>trying to use
>the ethernet driver for other purposes than the TCP/IP stack.


I have a DHCP server on my net.  However, my confusion comes with the fact
that I have RedBoot coming up using BOOTP, which I have a server for as
well.  So, RedBoot gets its IP address.  Is this address then passed onto
the application, or is the application layer supposed to get its own, new
address?

I'm a little confused about how the RedBoot and eCos app layer stack coexist
on my target.  I am using the RedBoot Ethernet for debugging the
application.

--Anthony

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

* Re: [ECOS] Re: DHCP shuts down Ethernet device?
  2001-04-23 12:25 [ECOS] Re: DHCP shuts down Ethernet device? Anthony Massa
@ 2001-04-23 12:29 ` Jonathan Larmour
  2001-04-24  6:00   ` Hugo Tyson
  0 siblings, 1 reply; 5+ messages in thread
From: Jonathan Larmour @ 2001-04-23 12:29 UTC (permalink / raw)
  To: Anthony Massa; +Cc: eCos (E-mail)

Anthony Massa wrote:
> 
> >> I am running RedBoot on an MBX board and downloading my eCos
> >application
> >> with networking support.
> >>
> >> I noticed your post about the Ethernet device shutdown and
> >was wondering if
> >> I could possibly be running
> >> into the same problem.
> >
> >Only if you don't have a DHCP server on your net and you're
> >trying to use
> >the ethernet driver for other purposes than the TCP/IP stack.
> 
> I have a DHCP server on my net.  However, my confusion comes with the fact
> that I have RedBoot coming up using BOOTP, which I have a server for as
> well.  So, RedBoot gets its IP address.  Is this address then passed onto
> the application, or is the application layer supposed to get its own, new
> address?
> 
> I'm a little confused about how the RedBoot and eCos app layer stack coexist
> on my target.  I am using the RedBoot Ethernet for debugging the
> application.

They each get their own addresses. Or one can be static and the other
dynamic, or whatever you want. Think of them as completely separate.

Jifl
-- 
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine

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

* Re: [ECOS] Re: DHCP shuts down Ethernet device?
  2001-04-23 12:29 ` Jonathan Larmour
@ 2001-04-24  6:00   ` Hugo Tyson
  0 siblings, 0 replies; 5+ messages in thread
From: Hugo Tyson @ 2001-04-24  6:00 UTC (permalink / raw)
  To: ecos-discuss


Jonathan Larmour <jlarmour@redhat.com> writes:
> Anthony Massa wrote:
> > >> I am running RedBoot on an MBX board and downloading my eCos
> > >application
> > >> with networking support.
> > >>
> > >> I noticed your post about the Ethernet device shutdown and
> > >was wondering if
> > >> I could possibly be running
> > >> into the same problem.
> > >
> > >Only if you don't have a DHCP server on your net and you're
> > >trying to use
> > >the ethernet driver for other purposes than the TCP/IP stack.
> > 
> > I have a DHCP server on my net.  However, my confusion comes with the fact
> > that I have RedBoot coming up using BOOTP, which I have a server for as
> > well.  So, RedBoot gets its IP address.  Is this address then passed onto
> > the application, or is the application layer supposed to get its own, new
> > address?

The latter.  The app gets a separate IP address.

> > I'm a little confused about how the RedBoot and eCos app layer stack coexist
> > on my target.  I am using the RedBoot Ethernet for debugging the
> > application.
> 
> They each get their own *IP* addresses. Or one can be static and the other
> dynamic, or whatever you want. Think of them as completely separate.

...but they share a MAC address (inevitably).  Which means that it is
unlikely to work correctly if you have *both* IP addresses acquired
dynamically, because the BOOTP or DHCP server doesn't know who is asking,
so doesn't know which of the two IP addresses to serve.

I suppose that, since RedBoot uses BOOTP only, and the eCos stack uses DHCP
only, if you tell your DHCP server to ignore BOOTP requests, then they
would be distinguished correctly.  But the servers are quite entitled to
cancel the address they handed out "last time" if they see the same MAC
address asking for (and getting) a different address.

I always configure a static IP address in RedBoot's fconfig world, for use
by RedBoot, and let the eCos app get a dynamic address from DHCP.  That
works fine.

	- Huge

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

* Re: [ECOS] Re: DHCP shuts down Ethernet device?
  2001-04-23 11:49 Anthony Massa
@ 2001-04-23 12:22 ` Jonathan Larmour
  0 siblings, 0 replies; 5+ messages in thread
From: Jonathan Larmour @ 2001-04-23 12:22 UTC (permalink / raw)
  To: Anthony Massa; +Cc: eCos (E-mail)

Anthony Massa wrote:
> 
> I am running RedBoot on an MBX board and downloading my eCos application
> with networking support.
> 
> I noticed your post about the Ethernet device shutdown and was wondering if
> I could possibly be running
> into the same problem.

Only if you don't have a DHCP server on your net and you're trying to use
the ethernet driver for other purposes than the TCP/IP stack.

Jifl
-- 
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine

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

* [ECOS] Re: DHCP shuts down Ethernet device?
@ 2001-04-23 11:49 Anthony Massa
  2001-04-23 12:22 ` Jonathan Larmour
  0 siblings, 1 reply; 5+ messages in thread
From: Anthony Massa @ 2001-04-23 11:49 UTC (permalink / raw)
  To: eCos (E-mail)

I am running RedBoot on an MBX board and downloading my eCos application
with networking support.

I noticed your post about the Ethernet device shutdown and was wondering if
I could possibly be running
into the same problem.  After I download my application over the Remote/TCP
GDB connection the application
runs, prints out a network stack usage message, outputs [New thread 1] and
then hangs before it gets into
my cyg_user_start routine.  The target disconnects from the debugger as
well.

Is this what you are seeing?

Does it sound like a similar problem to yours?

I can run my code over the serial port - and it does get into my
cyg_user_start routine.

--Anthony

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

end of thread, other threads:[~2001-04-24  6:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-04-23 12:25 [ECOS] Re: DHCP shuts down Ethernet device? Anthony Massa
2001-04-23 12:29 ` Jonathan Larmour
2001-04-24  6:00   ` Hugo Tyson
  -- strict thread matches above, loose matches on Subject: below --
2001-04-23 11:49 Anthony Massa
2001-04-23 12:22 ` Jonathan Larmour

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