]> git.ozlabs.org Git - yaboot.git/commitdiff
fs_of: Increase the LOAD_BUFFER_SIZE to 32MB
authorTony Breeds <tony@bakeyournoodle.com>
Mon, 13 May 2013 04:42:21 +0000 (14:42 +1000)
committerTony Breeds <tony@bakeyournoodle.com>
Mon, 13 May 2013 05:03:24 +0000 (15:03 +1000)
Okay this is the last time.  To go bigger than this we'll almost
certainly break smaller systems, if we haven't already.

Also 32MB is as big as std. TFTP will go.  To transfer more than that we
need to support tftp block-size and tftp rollover.  Basically we'd
*require* HPA's tftp daemon and we'd need to write a TFTP client in
yaboot.  So we'll stay at 32MB for a while I think.

Signed-off-by: Tony Breeds <tony@bakeyournoodle.com>
second/fs_of.c

index fc88e8e49c889f7596733ded3e28d9d8af0126f0..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);