All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ben Warren <biggerbadderben@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] PATCH for U-Boot 1.3.3 DHCP fails with netgear WGR614v6
Date: Fri, 11 Jul 2008 11:21:13 -0700	[thread overview]
Message-ID: <4877A499.8040202@gmail.com> (raw)
In-Reply-To: <200807111217.03285.rgetz@blackfin.uclinux.org>

Robin Getz wrote:
> I was trying out U-Boot 1.1.3 with a new(er) router netgear WGR614v6 - 
> firmware version V2.0.19_1.0.19NA, on a Blackfin BF537-STAMP.
>
> http://kbserver.netgear.com/products/wgr614v6.asp
>
> and found that dhcp fails :( 
>
> bfin> dhcp
> BOOTP broadcast 1
> BOOTP broadcast 2
> BOOTP broadcast 3
> BOOTP broadcast 4
> BOOTP broadcast 5
>
> Retry count exceeded; starting again
>
> When turning on some more verbose debug messages (in the net driver & in the 
> network code, not all of which exists in U-Boot release or trunk), we can see 
> exactly what is going on...
>
> =============================
> bfin> dhcp
> Eth_halt: ......
> Eth_init: ......
> BOOTP broadcast 1
> setting transaction ID to 3268fe22
> BFIN EMAC send: length = 343
> BFIN EMAC rx: length = 552
> packet received
> packet received
> Receive from protocol 0x800
> Got IP
> len=308, v=45
> passing packet len= 280
> DHCPHandler: got packet: (src=67, dst=68, len=280) state: 3
> Filtering pkt = 0
> DHCPHandler: got DHCP packet: (src=67, dst=68, len=280) state: 3
> DHCP: state=SELECTING bp_file: ""
> TRANSITIONING TO REQUESTING STATE
> IP was: 0.0.0.0
> IP now: 192.168.0.9
> Bootfile:
> DhcpSendRequestPkt: Sending DHCPREQUEST
> Transmitting DHCPREQUEST packet: len = 343
> BFIN EMAC send: length = 343
> BFIN EMAC rx: length = 64
> packet received
> packet received
> Receive from protocol 0x806
> Got ARP
> Got ARP REQUEST, for 192.168.0.9, return our MAC
> BFIN EMAC send: length = 42
> BFIN EMAC rx: length = 552
> packet received
> packet received
> Receive from protocol 0x800
> Got IP
> len=272, v=45
> passing packet len= 244
> DHCPHandler: got packet: (src=67, dst=68, len=244) state: 4
> Filtering pkt = 0
> DHCPHandler: got DHCP packet: (src=67, dst=68, len=244) state: 4
> DHCP State: REQUESTING
> you just got DHCP NAKed
>
> ===================
>
> What is happening, is that the server offers an IP number to U-Boot 
> (192.168.0.9), U-Boot does a DHCPREQUEST, the server does a ARP asking 
> for "who has 192.168.0.9", and U-Boot responds "I do" (This is the problem). 
> The server then sends the requester (U-Boot) a DHCP NAK saying that someone 
> else on the network is already using that address.
>
>   
This seems goofy.  Have you tried your fix with other DHCP servers to 
verify that it works?  If so, which ones?  I unfortunately can't try 
anything right now but will play around a bit tonight.

regards,
Ben

       reply	other threads:[~2008-07-11 18:21 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <200807111217.03285.rgetz@blackfin.uclinux.org>
2008-07-11 18:21 ` Ben Warren [this message]
2008-07-11 18:52   ` [U-Boot-Users] PATCH for U-Boot 1.3.3 DHCP fails with netgear WGR614v6 Jerry Van Baren
2008-07-11 19:01     ` Jerry Van Baren
2008-07-11 19:05     ` Ben Warren
2008-07-11 19:15       ` Jerry Van Baren
2008-07-11 19:31         ` Ben Warren
2008-07-11 19:51           ` Jerry Van Baren
     [not found]     ` <200807111720.57618.rgetz@blackfin.uclinux.org>
2008-07-14 12:29       ` Jerry Van Baren
     [not found]   ` <200807111712.51366.rgetz@blackfin.uclinux.org>
2008-07-11 22:05     ` [U-Boot-Users] PATCH for U-Boot 1.3.3 DHCP fails with netgearWGR614v6 Ben Warren
     [not found]       ` <200807111835.35597.rgetz@blackfin.uclinux.org>
2008-07-11 22:41         ` [U-Boot-Users] PATCH for U-Boot 1.3.3 DHCP fails withnetgearWGR614v6 Ben Warren
2008-07-11 22:54           ` Wolfgang Denk
2008-07-11 23:12             ` Ben Warren
2008-07-12 14:17               ` Wolfgang Denk
     [not found]           ` <200807111905.35936.rgetz@blackfin.uclinux.org>
2008-07-14 22:42             ` Ben Warren
2008-07-15 19:47               ` Wolfgang Denk

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4877A499.8040202@gmail.com \
    --to=biggerbadderben@gmail.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.