Powerpc client on x64 server

Bill Moseley moseley at hank.org
Thu Jan 10 00:37:54 GMT 2008


On Tue, Jan 08, 2008 at 03:40:14PM +0200, Carl Olof Englund wrote:
> Hi!
> 
> An old iMac appeared and practically begged me to add it as a client
> to our wonderful Edubuntu network.
> 
> The question is how. ltsp-build-client on the server doesn't seem to
> want to create a powerpc boot enviroment for the iMac. Shouldn't it
> be possible for gcc to compile powerpc-stuff on any architecture?

Sorry, a bit late responding.

It's been a while since I did this but IIRC I booted the mac with
xubuntu live cd.  Then I nfs mounted /opt/lstp.  And then built the
client chroot.

The trickier part was getting the macs to boot from what the dhcp
server returned -- which this list was very helpful in solving.

I'll attach my test setup's dhcp that works with my Macs.

I'd welcome comments explaining what some of the config options do. ;)


Oh, also it seems as if lts.conf is fetched from a different location
for the powerpc.  I have a single lts.conf symlinked.  Wireshark was
helpful to track that down.






-- 
Bill Moseley
moseley at hank.org

-------------- next part --------------
#
# Default LTSP dhcpd.conf config file.
#
# imac 00:14:51:32:BA:44
#

ddns-updates off;           # Don't attempt to do any DNS updates (default is on)
ignore client-updates;      # Default is to allow
authoritative;

# Deal with broken mac clients.  Not sure what these first options do.
option option-128 code 128 = string;
option option-129 code 129 = text;
option dhcp-parameter-request-list 1,3,6,15,17,43,44,46,60;

# Define a class for Apple Powerpc
# http://www.afp548.com/article.php?story=20061220102102611

class "AppleNBI-ppc" {
    match if substring (option vendor-class-identifier, 0, 13) = "AAPLBSDPC/ppc";

    option dhcp-parameter-request-list 1,3,6,12,15,17,43,53,54,60;

    # The Apple Boot Loader binary image. This file will in turn TFTP the
    # kernel image and extension cache.
    filename "/ltsp/powerpc/yaboot";


    option vendor-class-identifier "AAPLBSDPC";  # now sure what this does

    if (option dhcp-message-type = 1) {     # DHCP Discover
        option vendor-encapsulated-options 08:04:81:00:00:09;
    }

    elsif (option dhcp-message-type = 8) {  # DHCP Inform
        option vendor-encapsulated-options 01:01:02:08:04:81:00:00:09;
    }

    else {
        option vendor-encapsulated-options 00:01:02:03:04:05:06:07;
    }


    option root-path "192.168.0.254:/opt/ltsp/powerpc";
}

# Old imacs don't supply a vendor string so match by MAC address.
group {
    option dhcp-parameter-request-list 1,3,6,12,15,17,43,53,54,60;

    # The Apple Boot Loader binary image. This file will in turn TFTP the
    # kernel image and extension cache.
    filename "/ltsp/powerpc/yaboot";


    option vendor-class-identifier "AAPLBSDPC";  # not sure what this does

    if (option dhcp-message-type = 1) {     # DHCP Discover
        option vendor-encapsulated-options 08:04:81:00:00:09;
    }

    elsif (option dhcp-message-type = 8) {  # DHCP Inform
        option vendor-encapsulated-options 01:01:02:08:04:81:00:00:09;
    }

    else {
        option vendor-encapsulated-options 00:01:02:03:04:05:06:07;
    }


    option root-path "192.168.0.254:/opt/ltsp/powerpc";

    host imac1 {
        hardware ethernet 00:05:02:91:cb:17;
        fixed-address 192.168.0.18;
    }
}


class "PC-i386" {
    match if substring( option vendor-class-identifier, 0, 9 ) = "PXEClient";

    filename "/ltsp/i386/pxelinux.0";
}




subnet 192.168.0.0 netmask 255.255.255.0 {
    range 192.168.0.20 192.168.0.250;
    option broadcast-address 192.168.0.255;
    option subnet-mask 255.255.255.0;


    # LAN config
    option domain-name "<my domain>";
    option domain-name-servers 192.168.1.1;
    option routers 192.168.0.254;

}



More information about the edubuntu-users mailing list