--- Begin Message ---
Hello,

I wanted to boot a cluster of G4's using yaboot
and a tftp server, but since there were already two DHCP
servers on the network I thought it best to leave off a
third ;)

Anyway, with the patch below my linux box can run just a plain
old tftp server, and the other G4's
can now boot from them, grabbing the yaboot, yaboot.conf
kernel image and even a ramdisk image succefully,
after giving the following command line on the OF prompt:

boot enet:xx.xx.xx.xx,yaboot.debug


With the 2.4.10 kernel I used which had the option to copy the OF
device tree turned on, the kernel hangs after making a call
to prom_printf something like "Copying device tree..."
but if I use the yaboot.debug it all works fine, so .. 
I guess I don't mind so much.

Weird though.

Anyway, I hope you can incorporate this patch or take it into
consideration.

Thanks,
Peter
..
ps. I will also post it to debian-powerpc
--- yaboot-1.3.3-b4/second/file.c       Thu Sep 20 15:15:31 2001
+++ yaboot-1.3.3/second/file.c  Tue Oct  2 01:49:18 2001
@@ -44,13 +44,13 @@
                *partition = -1;
 
        p = strchr(of_device, ':');
-       if (p)
-               *p = 0;
-       else
-               return of_device;
+       if (!p) return of_device;   /* if null terminated we are finished */
        
-       last = ++p;
-       while(*p && *p != ',') {
+       else if (strstr(of_device, "ethernet")) p = strchr(of_device, ','); /* 
skip over ip all the way to the ',' */
+       *p = 0;
+
+       last = ++p;     /* sets to start of second part */
+       while(*p && *p != ',') { 
         if (!isdigit (*p)) {
                        p = last;
                        break;
@@ -64,7 +64,7 @@
        }
        if (*p && file_spec)
                *file_spec = p;
-               
+
        return of_device;
 
 }

--- End Message ---

Reply via email to