Subject: detail of the problem [was Re: netbooting a SS10]
To: None <port-sparc@netbsd.org>
From: Peter Eisch <peter@boku.net>
List: port-sparc
Date: 09/21/2000 10:12:37
I hate to "me too" but I'm running (SS20):

NetBSD isnt 1.4.2 NetBSD 1.4.2 (BLABBER) #6: Mon Sep 18 10:07:13 CDT 2000
peter@opener:/usr/src/sys/arch/sparc/compile/BLABBER sparc

Below are the details that I've used to isolate the problem down to
dhcpd.  Using the same software compiled/run on Sol7 with the exact same
dhcpd.conf works while it fails to send back a root path.  It looks like
ofwboot takes the lack of a path and translates that simply to '/' and
then it all falls apart.

NFS and mountd are confirmed to be working in my case -- I simply change
the dhcpd from running on NetBSD-1.4.2 to Sol7 and the imac still boots
from the NetBSD-1.4.2 without any problems.

I'm trying to netboot an imac that I had booted with the _same_ dhcpd
(isc's 2.0pl5), dhcpd.conf and nfs shares from a Solaris7.

/etc/dhcpd.conf:
host imac {
  hardware ethernet 0:30:65:53:7a:f6;
  fixed-address imac;
  filename "ofwboot.elf";
  server-name "isnt";
  option root-path "/export/netbsd/imac/root";
}

/etc/exports:
/export/netbsd/imac     -maproot=root imac

The ofwboot clearly shows that the root path it's getting is '/' and this
has just bugged me for two hours this morning.

I'm rebuilding dhcpd now with more debug enabled.  I'm not sure that this
is where the problem is.  For reference:

isnt -> NetBSD 1.4.2/sparc (server)
imac -> NetBSD 1.4.2/imac (client)
tanya -> Solaris 7/sparc (box snoop was performed on)

a snoop of ports 67 & 68:

OLD-BROADCAST -> BROADCAST    DHCP/BOOTP BOOTREQUEST

           0: ffff ffff ffff 0030 6553 7af6 0800 4500    .......0eSz..E.
          16: 0148 0000 0000 0411 b5a6 0000 0000 ffff    .H..............
          32: ffff 0044 0043 0134 5f9e 0101 0600 0000    ...D.C.4_.......
          48: 0000 0000 0000 0000 0000 0000 0000 0000    ................
          64: 0000 0000 0000 0030 6553 7af6 0000 0000    .......0eSz....
          80: 0000 0000 0000 0000 0000 0000 0000 0000    ................
          96: 0000 0000 0000 0000 0000 0000 0000 0000    ................
         112: 0000 0000 0000 0000 0000 0000 0000 0000    ................
         128: 0000 0000 0000 0000 0000 0000 0000 0000    ................
         144: 0000 0000 0000 0000 0000 0000 0000 0000    ................
         160: 0000 0000 0000 0000 0000 0000 0000 0000    ................
         176: 0000 0000 0000 0000 0000 0000 0000 0000    ................
         192: 0000 0000 0000 0000 0000 0000 0000 0000    ................
         208: 0000 0000 0000 0000 0000 0000 0000 0000    ................
         224: 0000 0000 0000 0000 0000 0000 0000 0000    ................
         240: 0000 0000 0000 0000 0000 0000 0000 0000    ................
         256: 0000 0000 0000 0000 0000 0000 0000 0000    ................
         272: 0000 0000 0000 6382 5363 ff00 0000 0000    ......c.Sc......
         288: 0000 0000 0000 0000 0000 0000 0000 0000    ................
         304: 0000 0000 0000 0000 0000 0000 0000 0000    ................
         320: 0000 0000 0000 0000 0000 0000 0000 0000    ................
         336: 0000 0000 0000                             ......

        isnt -> imac         DHCP/BOOTP BOOTREPLY

           0: 0030 6553 7af6 0800 201c 9050 0800 4510    .0eSz.. ..P..E.
          16: 0148 0000 0000 1011 8b96 cec5 4064 cec5    .H..........@d..
          32: 4010 0043 0044 0134 9409 0201 0600 0000    @..C.D.4........
          48: 0000 0000 0000 0000 0000 cec5 4010 cec5    ............@...
          64: 4064 0000 0000 0030 6553 7af6 0000 0000    @d.....0eSz....
          80: 0000 0000 0000 6973 6e74 0000 0000 0000    ......isnt......
          96: 0000 0000 0000 0000 0000 0000 0000 0000    ................
         112: 0000 0000 0000 0000 0000 0000 0000 0000    ................
         128: 0000 0000 0000 0000 0000 0000 0000 0000    ................
         144: 0000 0000 0000 6f66 7762 6f6f 742e 656c    ......ofwboot.el
         160: 6600 0000 0000 0000 0000 0000 0000 0000    f...............
         176: 0000 0000 0000 0000 0000 0000 0000 0000    ................
         192: 0000 0000 0000 0000 0000 0000 0000 0000    ................
         208: 0000 0000 0000 0000 0000 0000 0000 0000    ................
         224: 0000 0000 0000 0000 0000 0000 0000 0000    ................
         240: 0000 0000 0000 0000 0000 0000 0000 0000    ................
         256: 0000 0000 0000 0000 0000 0000 0000 0000    ................
         272: 0000 0000 0000 6382 5363 0104 ffff ff00    ......c.Sc......
         288: 0304 cec5 4064 0608 cec5 4064 cec5 4004    ....@d....@d..@.
         304: 0f09 6574 7564 652e 636f 6d1c 04ce c540    ..etude.com....@
         320: ffff 0000 0000 0000 0000 0000 0000 0000    ................
         336: 0000 0000 0000                             ......


and the dhcpd debug:

BOOTREQUEST from 00:30:65:53:7a:f6 via le0
time: now = 969547445  dns = 0 969547445  diff = 121856
Looking up imac
Lookup succeeded; first address is 100c47b0
dns -> data: cec54010  h -> h_addr_list [0]: 100c47b0
hard copy: 3c068 4 cec54010
time: now = 969547445  dns = 969551045 -3600  diff = 121856
easy copy: 3c068 4 cec54010
time: now = 969547445  dns = 969551045 -3600  diff = 121856
easy copy: 3c068 4 cec54010
time: now = 969547445  dns = 0 969547445  diff = 121856
Looking up isnt
Lookup succeeded; first address is 100c47b0
dns -> data: cec54064  h -> h_addr_list [0]: 100c47b0
hard copy: 3c088 4 cec54064
time: now = 969547445  dns = 0 969547445  diff = 121856
Looking up tanya
Lookup succeeded; first address is 100c47b0
dns -> data: cec54004  h -> h_addr_list [0]: 100c47b0
hard copy: 3c090 4 cec54004
time: now = 969547445  dns = 969551045 -3600  diff = 121856
easy copy: 3c088 4 cec54064
time: now = 969547445  dns = 969551045 -3600  diff = 121856
easy copy: 3c090 4 cec54004
BOOTREPLY for 206.197.64.16 to imac (00:30:65:53:7a:f6) via le0

Lastly, for reference, here is a trace from the EXACT dhcpd.conf reply
coming from Solaris 7.

Using device /dev/le (promiscuous mode)
       tanya -> imac         DHCP/BOOTP BOOTREPLY

           0: 0030 6553 7af6 0800 207c 5a84 0800 4510    .0eSz.. |Z...E.
          16: 0148 0000 0000 1011 8bf6 cec5 4004 cec5    .H.........@...
          32: 4010 0043 0044 0134 631b 0201 0600 0000    @..C.D.4c.......
          48: 388f 0000 0000 0000 0000 cec5 4010 cec5    8...........@...
          64: 4004 0000 0000 0030 6553 7af6 0000 0000    @......0eSz....
          80: 0000 0000 0000 6973 6e74 0000 0000 0000    ......isnt......
          96: 0000 0000 0000 0000 0000 0000 0000 0000    ................
         112: 0000 0000 0000 0000 0000 0000 0000 0000    ................
         128: 0000 0000 0000 0000 0000 0000 0000 0000    ................
         144: 0000 0000 0000 6f66 7762 6f6f 742e 656c    ......ofwboot.el
         160: 6600 0000 0000 0000 0000 0000 0000 0000    f...............
         176: 0000 0000 0000 0000 0000 0000 0000 0000    ................
         192: 0000 0000 0000 0000 0000 0000 0000 0000    ................
         208: 0000 0000 0000 0000 0000 0000 0000 0000    ................
         224: 0000 0000 0000 0000 0000 0000 0000 0000    ................
         240: 0000 0000 0000 0000 0000 0000 0000 0000    ................
         256: 0000 0000 0000 0000 0000 0000 0000 0000    ................
         272: 0000 0000 0000 6382 5363 0104 ffff ff00    ......c.Sc......
         288: 0304 cec5 4064 060c cec5 4064 cec5 4065    ....@d....@d..@e
         304: cec5 4004 1118 2f65 7870 6f72 742f 6e65    ..@.../export/ne
         320: 7462 7364 2f69 6d61 632f 726f 6f74 ff00    tbsd/imac/root..
         336: 0000 0000 0000                             ......

OLD-BROADCAST -> BROADCAST    DHCP/BOOTP BOOTREQUEST

           0: ffff ffff ffff 0030 6553 7af6 0800 4500    .......0eSz..E.
          16: 0148 0000 0000 0411 b5a6 0000 0000 ffff    .H..............
          32: ffff 0044 0043 0134 5f9e 0101 0600 0000    ...D.C.4_.......
          48: 0000 0000 0000 0000 0000 0000 0000 0000    ................
          64: 0000 0000 0000 0030 6553 7af6 0000 0000    .......0eSz....
          80: 0000 0000 0000 0000 0000 0000 0000 0000    ................
          96: 0000 0000 0000 0000 0000 0000 0000 0000    ................
         112: 0000 0000 0000 0000 0000 0000 0000 0000    ................
         128: 0000 0000 0000 0000 0000 0000 0000 0000    ................
         144: 0000 0000 0000 0000 0000 0000 0000 0000    ................
         160: 0000 0000 0000 0000 0000 0000 0000 0000    ................
         176: 0000 0000 0000 0000 0000 0000 0000 0000    ................
         192: 0000 0000 0000 0000 0000 0000 0000 0000    ................
         208: 0000 0000 0000 0000 0000 0000 0000 0000    ................
         224: 0000 0000 0000 0000 0000 0000 0000 0000    ................
         240: 0000 0000 0000 0000 0000 0000 0000 0000    ................
         256: 0000 0000 0000 0000 0000 0000 0000 0000    ................
         272: 0000 0000 0000 6382 5363 ff00 0000 0000    ......c.Sc......
         288: 0000 0000 0000 0000 0000 0000 0000 0000    ................
         304: 0000 0000 0000 0000 0000 0000 0000 0000    ................
         320: 0000 0000 0000 0000 0000 0000 0000 0000    ................
         336: 0000 0000 0000                             ......

       tanya -> imac         DHCP/BOOTP BOOTREPLY

           0: 0030 6553 7af6 0800 207c 5a84 0800 4510    .0eSz.. |Z...E.
          16: 0148 0000 0000 1011 8bf6 cec5 4004 cec5    .H.........@...
          32: 4010 0043 0044 0134 9baa 0201 0600 0000    @..C.D.4........
          48: 0000 0000 0000 0000 0000 cec5 4010 cec5    ............@...
          64: 4004 0000 0000 0030 6553 7af6 0000 0000    @......0eSz....
          80: 0000 0000 0000 6973 6e74 0000 0000 0000    ......isnt......
          96: 0000 0000 0000 0000 0000 0000 0000 0000    ................
         112: 0000 0000 0000 0000 0000 0000 0000 0000    ................
         128: 0000 0000 0000 0000 0000 0000 0000 0000    ................
         144: 0000 0000 0000 6f66 7762 6f6f 742e 656c    ......ofwboot.el
         160: 6600 0000 0000 0000 0000 0000 0000 0000    f...............
         176: 0000 0000 0000 0000 0000 0000 0000 0000    ................
         192: 0000 0000 0000 0000 0000 0000 0000 0000    ................
         208: 0000 0000 0000 0000 0000 0000 0000 0000    ................
         224: 0000 0000 0000 0000 0000 0000 0000 0000    ................
         240: 0000 0000 0000 0000 0000 0000 0000 0000    ................
         256: 0000 0000 0000 0000 0000 0000 0000 0000    ................
         272: 0000 0000 0000 6382 5363 0104 ffff ff00    ......c.Sc......
         288: 0304 cec5 4064 060c cec5 4064 cec5 4065    ....@d....@d..@e
         304: cec5 4004 1118 2f65 7870 6f72 742f 6e65    ..@.../export/ne
         320: 7462 7364 2f69 6d61 632f 726f 6f74 ff00    tbsd/imac/root..
         336: 0000 0000 0000                             ......