From patchwork Wed May 13 23:17:11 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kevin Smith X-Patchwork-Id: 472148 X-Patchwork-Delegate: prafulla@marvell.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 52A6F140283 for ; Thu, 14 May 2015 09:17:49 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id D244A4B695; Thu, 14 May 2015 01:17:35 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 5k0M66OUmpvq; Thu, 14 May 2015 01:17:35 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 54E394B6D7; Thu, 14 May 2015 01:17:29 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 4AE9E4B64D for ; Thu, 14 May 2015 01:17:24 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id y-oDOXWK7kTL for ; Thu, 14 May 2015 01:17:24 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from p01c11o148.mxlogic.net (p01c11o148.mxlogic.net [208.65.144.71]) by theia.denx.de (Postfix) with ESMTPS id 2DAEE4B67E for ; Thu, 14 May 2015 01:17:21 +0200 (CEST) Received: from unknown [64.198.156.98] by p01c11o148.mxlogic.net(mxl_mta-8.4.0-1) over TLS secured channel with SMTP id 08bd3555.0.661543.00-359.1854810.p01c11o148.mxlogic.net (envelope-from ); Wed, 13 May 2015 17:17:22 -0600 (MDT) X-MXL-Hash: 5553db825da2713a-48d027ae446251cf323045195cbfef966fce3c1b Received: from ELECSYS-MAIL.dci.local ([fe80::f963:2d15:a0de:5ad0]) by ELECSYS-MAIL.dci.local ([fe80::f963:2d15:a0de:5ad0%12]) with mapi id 14.03.0224.002; Wed, 13 May 2015 18:17:12 -0500 From: Kevin Smith To: "u-boot@lists.denx.de" Thread-Topic: [PATCH v2 4/4] db-88f6820-gp.h: Load data blobs into lower memory Thread-Index: AQHQjdLwxJQKM/2QZka9a2lSIEJaHQ== Date: Wed, 13 May 2015 23:17:11 +0000 Message-ID: <1431559000-21544-5-git-send-email-kevin.smith@elecsyscorp.com> References: <1431559000-21544-1-git-send-email-kevin.smith@elecsyscorp.com> In-Reply-To: <1431559000-21544-1-git-send-email-kevin.smith@elecsyscorp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.63.192.62] MIME-Version: 1.0 X-AnalysisOut: [v=2.1 cv=Z6P4HRhA c=1 sm=1 tr=0 a=51qEjsKpZkmECDgIwGerrA==] X-AnalysisOut: [:117 a=51qEjsKpZkmECDgIwGerrA==:17 a=wMyvDrEvEnQA:10 a=BLc] X-AnalysisOut: [eEmwcHowA:10 a=8nJEP1OIZ-IA:10 a=xqWC_Br6kY4A:10 a=LfzEU8a] X-AnalysisOut: [ZAAAA:8 a=YlVTAMxIAAAA:8 a=h1PgugrvaO0A:10 a=uWwVuuVBVRS89] X-AnalysisOut: [xUwmTwA:9 a=wPNLvfGTeEIA:10] X-Spam: [F=0.5000000000; CM=0.500; MH=0.500(2015051320); S=0.200(2014051901)] X-MAIL-FROM: X-SOURCE-IP: [64.198.156.98] Cc: "sr@denx.de" Subject: [U-Boot] [PATCH v2 4/4] db-88f6820-gp.h: Load data blobs into lower memory X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" By default on this platform, u-boot loads data into high memory in the range of 0x7Fxxxxxx, which generates a data abort when the kernel tries to read it. Config the u-boot environment to load the device tree and initrd image into lower memory to make them accessible to the kernel. Signed-off-by: Kevin Smith Acked-by: Stefan Roese --- include/configs/db-88f6820-gp.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/configs/db-88f6820-gp.h b/include/configs/db-88f6820-gp.h index 12a24ce..490d74e 100644 --- a/include/configs/db-88f6820-gp.h +++ b/include/configs/db-88f6820-gp.h @@ -63,6 +63,11 @@ #define CONFIG_SYS_CONSOLE_INFO_QUIET /* don't print console @ startup */ #define CONFIG_SYS_ALT_MEMTEST +/* Keep device tree and initrd in lower memory so the kernel can access them */ +#define CONFIG_EXTRA_ENV_SETTINGS \ + "fdt_high=0x10000000\0" \ + "initrd_high=0x10000000\0" + /* * mv-common.h should be defined after CMD configs since it used them * to enable certain macros