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

Re: booting an apple g4 from network



Benjamin Herrenschmidt <benh@kernel.crashing.org> writes:

> There are several ways.

> The first issue you'll encounter is the DHCP problem. Apple firmware
> will happily DHCP to obtain an IP address and TFTP down a file if you
> tell it to do so explicitely (providing the server address and file name
> explicitely, via OF command line or environment variables in flash).
> However, it will not accept a server address & file name to retreive
> from the DHCP server (fully auto-netboot, aka "n" key) unless the server
> has some Apple extensions. In order to get those, you had to patch it,
> though I've been told recent dhcpd's may have that included now,
> provided you have the right option in the config file of the server. I
> don't know the details as I never use that capability, I always specify
> the file explicitely.

this is exactly what i want to do. so i tried it with the following
dhcpd.conf, but it doesn't work. Any ideas?

parts of dhcpd.conf
################################################################################
allow bootp;
authoritative;
allow booting;

option mac-nc-client-unknown code 220 = string;
option mac-nc-client-id code 221 = string;
option mac-version code 230 = string;
option mac-username code 232 = text;
option mac-password code 233 = text;
option mac-nb-img code 234 = string;
option mac-apps-img code 235 = string;
option mac-machine-name code 237 = text;
option mac-client-nb-img code 238 = string;

if (option mac-nc-client-id = "Apple MacNC") {
   option dhcp-max-message-size 576;
   option dhcp-parameter-request-list
                 1, # subnet mask
                 3, # routers
                 220, 221, 230, 232, 233, 234, 235, 236, 237, 238; #
   mac options

   # put global macnc-specific options here...
   option mac-version 0:0:0:0;
}

host g4test {
  hardware ethernet 00:30:65:65:7a:a8;
  fixed-address 10.0.200.2;
  filename "yaboot";
  server-name "10.0.0.40";
  next-server 10.0.0.40;

}
################################################################################

Jan-David Salchow



Reply to: