]> git.ozlabs.org Git - yaboot.git/commitdiff
Allocate kernel and ramdisk as low as possible
authorAnton Blanchard <anton@samba.org>
Thu, 8 Jul 2010 19:03:43 +0000 (19:03 +0000)
committerTony Breeds <tony@bakeyournoodle.com>
Fri, 16 Jul 2010 05:51:57 +0000 (15:51 +1000)
We currently start the search for free memory for the kernel at
12MB. This made sense back when firmware (real-base) was always
12MB, but it doesn't now it is often at 32MB.

In light of this and now we have fixed the initrd load issues,
just try and allocate the kernel as low as possible.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Tony Breeds <tony@bakeyournoodle.com>
Makefile

index 78184a0ccc6b701c537fbe4f258cdb2df1b150dd..e8f62ad34a7da4419463dc22a4317478a3ca3638 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -19,8 +19,8 @@ GETROOT = fakeroot
 TEXTADDR       = 0x200000
 # Malloc block of 1MB
 MALLOCSIZE     = 0x100000
-# Load kernel and ramdisk at real-base.  If there is overlap, will retry until find open space
-KERNELADDR     = 0x00C00000
+# Load kernel and ramdisk at as low as possible
+KERNELADDR     = 0x00000000
 
 # Set this to the prefix of your cross-compiler, if you have one.
 # Else leave it empty.