[U-Boot] Possible fix for dns command

Mathias Adam m.adam--uboot at adamis.de
Wed Nov 23 17:24:15 CET 2011


Hi Stefano,

Am Mi, 23.11.2011, 13:11 schrieb Stefano Babic:
> On 23/11/2011 11:58, Mathias Adam wrote:
>> As mentioned before, I found that tftpboot does make an ARP query and
>> stores the result in NetServerEther. In fact, when I start a "dummy"
>> tftp
>> access dns works, at least one time:
>
> Ok, ARP does not return a valid MAC and the stored MAXC address is
> removed. I see now. Then we should clear the MAC address before a DNS
> query to force an ARP request.
>
>>>> Forcing ARP queries before DNS fixed this (see patch below).
>>>
>>> I do not think this is correct.
>>
>> hmm, not sure about u-boot, but generally I think it is a good idea to
>> do
>> an ARP query before sending packets to some IP address  ;-)
>
> Sorry, it was not so clear to me after the first e-mail which was the
> issue, and I was supposed u-boot does not take the DHCP option for DNS,
> not setting the dnsip variable.
>
> Now that the issue is clear and we agree on the solution, can you supply
> a well-formed patch as requested by Wolfgang to be merged into mainline ?

No problem, I'm going to prepare a patch and post it.

Regards,
Mathias Adam



More information about the U-Boot mailing list