Port-macppc archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

iMac netboot issues



I'm trying to netboot an iMac.  The netboot server is 3.1 on i386.

After struggling a bit with dhcpd.conf, I ended up more or less cloning
the config from the 3.1 INSTALL.more file (3.1 is what I'm trying to
run on the iMac for the moment).  I got it to the point where it loads
ofwboot.xcf, but then it fails to even try to do NFS, and I can't see
what's wrong.

A ten-finger copy off the iMac's screen:

0 > boot enet:,ofwboot.xcf
CLIENT: 0030657a806c 10.0.255.2
SERVER: 0080c84a6678 10.0.255.1
Transfer FILE: ofwboot.xcf \
TFTP-actual=c5d4 TFTP-adler32=56939cb7 load-size=c5d4 adler32=56939cb7

loading XCOFF

tsize=c2c0 dsize=234 bsize=29c0 entry=e00000
SECTIONS:
.text    00e00000 00e00000 0000c2c0 000000e0
.data    00e0d000 00e0d000 00000234 0000c3a0
.bss     00e0d238 00e0d238 000029c0 00000000
loading .txt, done..
loading .data, done..
clearing .bss, done..

>> NetBSD/macppc OpenFirmware Boot, Revision 1.10
>> (builds@wb27, Tue Oct  7 22:21:03 PDT 2008)
BOOTP/BSDP failed: no FILENAME specifiedopen /netbsd: Device not configured

BOOTP/BSDP failed: no FILENAME specifiedopen /netbsd.gz: Device not configured

BOOTP/BSDP failed: no FILENAME specifiedopen /netbsd.macppc: Device not 
configured
Boot: 

Before each of the BOOTP/BSDP lines is a substantial delay.  Snooping
the traffic during those intervals indicates that the Mac is sending
out BOOTP/DHCP requests.  The boot server's dhcpd is sending out
replies, but that doesn't seem to matter.

I have a tcpdump capture file of the whole sequence; here's the last
TFTP packet and the first two DHCP packets, as captured by snooping for
"ether host 00:30:65:7a:80:6c", that being the iMac's MAC, and dumped
with tcpdump -v -r:

23:06:23.741960 IP (tos 0x0, ttl  30, id 0, offset 0, flags [none], length: 32) 
10.0.255.2.49152 > 10.0.255.1.65502: [udp sum ok] UDP, length: 4
23:06:23.765832 IP (tos 0x0, ttl  30, id 0, offset 0, flags [none], length: 
331) 0.0.0.0.68 > 255.255.255.255.67: [udp sum ok] BOOTP/DHCP, Request from 
00:30:65:7a:80:6c, length: 303, xid:0x5c4b, flags: [none]
          Client Ethernet Address: 00:30:65:7a:80:6c
          Vendor-rfc1048:
            DHCP:DISCOVER
            VC:"AAPLBSDPC/ppc/PowerMac2,2"
            VO:2.2.1.0.255
            PR:SM+DG+VO+VC
            T220:0
            T221:65.112.112.108.101.32.77.97.99.78.67
23:06:23.768607 IP (tos 0x10, ttl  32, id 0, offset 0, flags [none], length: 
328) 10.0.255.1.67 > 10.0.255.2.68: [udp sum ok] BOOTP/DHCP, Reply, length: 
300, xid:0x5c4b, flags: [none]
          Your IP: 10.0.255.2
          Server IP: 10.0.255.1
          Client Ethernet Address: 00:30:65:7a:80:6c
          file "ofwboot.xcf"
          Vendor-rfc1048:
            DHCP:OFFER
            SID:10.0.255.1
            LT:86400
            SM:255.255.255.0
            DG:10.0.255.1
23:06:23.769383 IP (tos 0x0, ttl  30, id 0, offset 0, flags [none], length: 
328) 10.0.255.2.68 > 255.255.255.255.67: [udp sum ok] BOOTP/DHCP, Request from 
00:30:65:7a:80:6c, length: 300, xid:0x5c4b, flags: [none]
          Server IP: 10.0.255.1
          Client Ethernet Address: 00:30:65:7a:80:6c
          Vendor-rfc1048:
            DHCP:REQUEST
            SID:10.0.255.1
            RQ:10.0.255.2
            VC:"AAPLBSDPC/ppc/PowerMac2,2"
            PR:SM+DG+VO+VC
23:06:23.772138 IP (tos 0x10, ttl  32, id 0, offset 0, flags [none], length: 
328) 10.0.255.1.67 > 10.0.255.2.68: [udp sum ok] BOOTP/DHCP, Reply, length: 
300, xid:0x5c4b, flags: [none]
          Your IP: 10.0.255.2
          Server IP: 10.0.255.1
          Client Ethernet Address: 00:30:65:7a:80:6c
          file "ofwboot.xcf"
          Vendor-rfc1048:
            DHCP:ACK
            SID:10.0.255.1
            LT:86400
            SM:255.255.255.0
            DG:10.0.255.1

Perhaps significantly, I don't see the strings from dhcpd.conf's
"option root-path" or "option host-name" values, even in the raw
tcpdump capture file, but I have no idea why dhcpd is failing to
include them.  dhcpd's log messages don't include anything helpful; log
messages covering the above attempt, again starting with TFTP, are

Apr  4 23:06:23 iMac-backup tftpd[1339]: 10.0.255.2: read request for 
ofwboot.xcf: success
Apr  4 23:06:23 iMac-backup dhcpd: DHCPDISCOVER from 00:30:65:7a:80:6c via vr0
Apr  4 23:06:23 iMac-backup dhcpd: DHCPOFFER on 10.0.255.2 to 00:30:65:7a:80:6c 
via vr0
Apr  4 23:06:23 iMac-backup dhcpd: DHCPREQUEST for 10.0.255.2 (10.0.255.1) from 
00:30:65:7a:80:6c via vr0
Apr  4 23:06:23 iMac-backup dhcpd: DHCPACK on 10.0.255.2 to 00:30:65:7a:80:6c 
via vr0
Apr  4 23:06:28 iMac-backup dhcpd: DHCPINFORM from 10.0.255.2 via vr0
Apr  4 23:06:28 iMac-backup dhcpd: DHCPACK to 10.0.255.2
Apr  4 23:06:37 iMac-backup dhcpd: DHCPINFORM from 10.0.255.2 via vr0
Apr  4 23:06:37 iMac-backup dhcpd: DHCPACK to 10.0.255.2
Apr  4 23:06:54 iMac-backup dhcpd: DHCPINFORM from 10.0.255.2 via vr0
Apr  4 23:06:54 iMac-backup dhcpd: DHCPACK to 10.0.255.2

(iMac-backup is the name I gave the boot server - the point of this is
to boot the iMac diskless to back up its disk).

And, finally, here's the dhcpd.conf in use:

ddns-update-style none;
allow bootp;
authoritative;

default-lease-time 86400;
max-lease-time 86400;

subnet 10.0.255.0 netmask 255.255.255.0 {
        option broadcast-address 10.0.255.255;
        option domain-name "example.tld";
        option routers 10.0.255.1;
        option domain-name-servers 10.0.255.1;
        option subnet-mask 255.255.255.0;
        option ntp-servers 10.0.255.1;
        server-identifier 10.0.255.1;
}

host imac.example.tld {
        hardware ethernet 00:30:65:7a:80:6c;
        fixed-address 10.0.255.2;
        filename "ofwboot.xcf";
        option root-path "/nfs/macppc";
        option host-name "imac.example.tld";
}

I tried having it TFTP the kernel directly instead of using
ofwboot.xcf, but that errors out with "LOAD-SIZE is too small".

/~\ The ASCII                             Mouse
\ / Ribbon Campaign
 X  Against HTML                mouse%rodents-montreal.org@localhost
/ \ Email!           7D C8 61 52 5D E7 2D 39  4E F1 31 3E E8 B3 27 4B


Home | Main Index | Thread Index | Old Index