This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Re: Unable to get IP address using do_bootp (found a bug in do_bootp!)


agyhoo said:
> --- Gary Thomas <gary@mlbassoc.com> wrote:
>>
>> agyhoo said:
> ......
>> >
>> > So I can get bootp to work in 2 ways:
>> > 1. set the broadcast flag in the ecos do_bootp fn.
>> > 2. set the always-broadcast flag to on in the
>> dhcpd.conf
>> > file.
>> >
>> > Note that the do_dhcp fn. does set the same broadcast
>> bit.
>> >
>>
>> There must be something else wrong with your target.  I
>> (and
>> many others) use DHCPD on RH 9 without ever resorting to
>> either
>> of the steps you outline above.
>>
>
> AG> The do_dhcp routine DOES set the broadcast flag. That
> is
> probably why it can see the reply from dhcpd even without
> the always-broadcast option.

But that's in eCos, not RedBoot.  RedBoot does DHCP as well,
but the routine is called __bootp_find_local_ip :-)

>
>> My quess is that your ethernet is not being setup with
>> the proper
>> ESA (MAC address).  When you do a BOOTP (or DHCP)
>> request, you tell
>> the server what your ESA is.  When it replies, it sends
>> the reply
>> to exactly that node.  If what your hardware is expecting
>> and what
>> the DHCP server sends (ESA addresses!) don't match, then
>> your target
>> won't see the response.
>>
>> If you to set this bit, and your target sees the reply,
>> can you then
>> use the node, e.g. TFTP load something?  Have you
>> verified that the
>> network stack functions after it manages to get an
>> address?
>>
>
> Yes, I have. I can ping the target, telnet to it (my appl
> has a telnet server) etc.

If you force RedBoot (by setting this flag), can you ping the
RedBoot stack?  Can you telnet to *it*?

------------------------------------------------------------
Gary Thomas                 |
MLB Associates              |  Consulting for the
+1 (970) 229-1963           |    Embedded world
http://www.mlbassoc.com/    |
email: <gary@mlbassoc.com>  |
gpg: http://www.chez-thomas.org/gary/gpg_key.asc
------------------------------------------------------------

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]