Patchwork [14/14] Link yaboot at 1MB

login
register
mail settings
Submitter Anton Blanchard
Date July 9, 2010, 5:03 a.m.
Message ID <20100709050342.620264514@samba.org>
Download mbox | patch
Permalink /patch/58337/
State Changes Requested
Headers show

Comments

Anton Blanchard - July 9, 2010, 5:03 a.m.
Give ourselves another 1MB of available space by moving yaboot
down to 1MB. With load-base at 0x4000, our yaboot image would have to
be 1MB-0x4000 before we should encounter problems (because firmware
would have issues relocating us from 0x4000 to 1MB).

Signed-off-by: Anton Blanchard <anton@samba.org>
---

Patch

Index: yaboot/Makefile
===================================================================
--- yaboot.orig/Makefile	2010-07-09 14:12:47.000000000 +1000
+++ yaboot/Makefile	2010-07-09 14:12:47.000000000 +1000
@@ -15,8 +15,8 @@  GETROOT = fakeroot
 # We use fixed addresses to avoid overlap when relocating
 # and other trouble with initrd
 
-# Load the bootstrap at 2Mb
-TEXTADDR	= 0x200000
+# Load the bootstrap at 1Mb
+TEXTADDR	= 0x100000
 # Malloc block of 1MB
 MALLOCSIZE	= 0x100000
 # Load kernel and ramdisk at real-base.  If there is overlap, will retry until find open space