[PATCH] KERNELADDR and LOAD_BUFFER_POS shift
Leonardo Rangel
lrangel at linux.vnet.ibm.com
Fri Nov 9 04:05:15 EST 2007
Hi guys,
last month we discussed about defining both KERNELADDR and
LOAD_BUFFER_POS with
0x0 address and let prom_claim_chunk dinamically look for a free memory
chunck for TFTP buffer, kernel and initrd
(http://ozlabs.org/pipermail/yaboot-devel/2007-October/000187.html)
This way, I was able to load big kernels/initrds and also zImages.initrd
(ie: rhel5 installation zImage - ppc64.img, which has 7.7MB).
Here is a patch for it. It was built over HEAD + the following patches:
http://ozlabs.org/pipermail/yaboot-devel/2007-October/000174.html
(Scott Moser)
http://ozlabs.org/pipermail/yaboot-devel/2007-October/000176.html
(Scott Moser)
http://ozlabs.org/pipermail/yaboot-devel/2007-October/000177.html
(Paulo Vital)
Thanks and regards,
Leo
Index: yaboot/Makefile
===================================================================
--- yaboot.orig/Makefile 2007-11-08 11:44:33.000000000 -0200
+++ yaboot/Makefile 2007-11-08 11:44:38.000000000 -0200
@@ -21,7 +21,7 @@
MALLOCADDR = 0x300000
MALLOCSIZE = 0x100000
# Load kernel and ramdisk at real-base. If there is overlap, will
retry until find open space
-KERNELADDR = 0x00C00000
+KERNELADDR = 0x00000000
# Set this to the prefix of your cross-compiler, if you have one.
# Else leave it empty.
Index: yaboot/second/fs_of.c
===================================================================
--- yaboot.orig/second/fs_of.c 2007-11-08 11:44:45.000000000 -0200
+++ yaboot/second/fs_of.c 2007-11-08 11:44:54.000000000 -0200
@@ -44,8 +44,8 @@
#include "errors.h"
#include "debug.h"
-#define LOAD_BUFFER_POS 0x1000000
-#define LOAD_BUFFER_SIZE 0x1000000
+#define LOAD_BUFFER_POS 0x00000000
+#define LOAD_BUFFER_SIZE 0x01000000
static int of_open(struct boot_file_t* file, const char* dev_name,
struct partition_t* part, const char* file_name);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: memshift.patch
Type: text/x-diff
Size: 1070 bytes
Desc: not available
URL: <http://lists.ozlabs.org/pipermail/yaboot-devel/attachments/20071108/b176750f/attachment.patch>
More information about the Yaboot-devel
mailing list