#4152 NORM MP Star: 'boot net' fails

Zarro Boogs per Child bugtracker at laptop.org
Sun Sep 21 19:12:14 EDT 2008


#4152: 'boot net' fails
-----------------------------------+----------------------------------------
   Reporter:  dwmw2                |       Owner:  wmb at firmworks.com
       Type:  defect               |      Status:  reopened         
   Priority:  normal               |   Milestone:  MP Start         
  Component:  ofw - open firmware  |     Version:                   
 Resolution:                       |    Keywords:                   
Next_action:  never set            |    Verified:  0                
  Blockedby:                       |    Blocking:                   
-----------------------------------+----------------------------------------

Comment(by richie):

 It took me all day to figure out, and finally got back to the first thing
 I tried... the problem was somewhere else.

 Here's a workaround:

 {{{
 dev /obp-tftp
 : my-do-discover  ( -- error? )
    do-discover
    true to use-last?
 ;

 patch my-do-discover do-discover do-dhcp
 dend
 }}}

 If you add those lines to the beginning of your boot script, it will just
 work.

 For some reason DHCP is tried twice (inet/netload.fth/s-all called twice),
 and that's the problem. The first time using a broadcast address of
 255.255.255.255, and the second using the just assigned broadcast address.
 This doesn't fail on other dhcpd's that honor the advertised bcast
 address, but for some reason DD-WRT's doesn't.

 The workaround will force the second time s-all is called to just go with
 what's already configured. For that we hook dhcp.fth/do-discover to set
 use-last?

 A proper fix whould be either on DD-WRT to honor the advertised bcast
 address, or make OFW don't request an address twice.

-- 
Ticket URL: <http://dev.laptop.org/ticket/4152#comment:13>
One Laptop Per Child <http://laptop.org/>
OLPC bug tracking system


More information about the Bugs mailing list