From patchwork Fri Jul 9 05:03:44 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anton Blanchard X-Patchwork-Id: 58337 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from bilbo.ozlabs.org (localhost [127.0.0.1]) by ozlabs.org (Postfix) with ESMTP id 5A748B709E for ; Fri, 9 Jul 2010 15:12:12 +1000 (EST) Received: by ozlabs.org (Postfix, from userid 1010) id 28011B6F1A; Fri, 9 Jul 2010 15:12:11 +1000 (EST) Message-Id: <20100709050342.620264514@samba.org> User-Agent: quilt/0.48-1 Date: Fri, 09 Jul 2010 15:03:44 +1000 From: Anton Blanchard To: yaboot-devel@lists.ozlabs.org Subject: [patch 14/14] Link yaboot at 1MB References: <20100709050330.507659708@samba.org> Content-Disposition: inline; filename=move_yaboot_down X-BeenThere: yaboot-devel@lists.ozlabs.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Technical and development discussion regarding yaboot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: yaboot-devel-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Errors-To: yaboot-devel-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org 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 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