]> git.ozlabs.org Git - yaboot.git/blobdiff - second/fs_of.c
make: use STRIP
[yaboot.git] / second / fs_of.c
index 36bd354d533913aa61e022c7976725575c9fd97e..13f5e2cd93acc1b7ec8292a59e7a15b694251dc9 100644 (file)
@@ -44,7 +44,7 @@
 #include "errors.h"
 #include "debug.h"
 
-#define LOAD_BUFFER_SIZE       0x1800000
+#define LOAD_BUFFER_SIZE       0x2000000
 
 static int of_open(struct boot_file_t* file,
                   struct partition_t* part, struct boot_fspec_t* fspec);
@@ -144,6 +144,8 @@ of_net_open(struct boot_file_t* file,
      char               *filename = NULL;
      char               *p;
      int                new_tftp;
+     prom_handle        root;
+     ihandle            prom_net;
 
      DEBUG_ENTER;
      DEBUG_OPEN;
@@ -165,11 +167,14 @@ of_net_open(struct boot_file_t* file,
      if (fspec->dev[strlen(fspec->dev)-1] != ':')
           strcat(buffer, ":");
 
-     /* If /packages/cas exists the we have a "new skool" tftp.
+     /* If /ibm,fw-net-compatibility exists the we have a "new skool" tftp.
       * This means that siaddr is the tftp server and that we can add
       * {tftp,bootp}_retrys, subnet mask and tftp block size to the load
       * method */
-     new_tftp = (prom_finddevice("/packages/cas") != PROM_INVALID_HANDLE);
+     new_tftp = 0;
+     root = prom_finddevice("/");
+     if (prom_getprop(root, "ibm,fw-net-compatibility", &prom_net, sizeof(ihandle)) > 0)
+          new_tftp = 1;
      DEBUG_F("Using %s tftp style\n", (new_tftp? "new": "old"));
 
      if (new_tftp) {