From patchwork Fri Jan 13 09:49:24 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dirk Behme X-Patchwork-Id: 135759 X-Patchwork-Delegate: sbabic@denx.de 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 20ABFB6EFE for ; Fri, 13 Jan 2012 20:50:20 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 05B59280EC; Fri, 13 Jan 2012 10:50:12 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at theia.denx.de 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 w98GPjB3vOWP; Fri, 13 Jan 2012 10:50:11 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 1168428785; Fri, 13 Jan 2012 10:50:01 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 59A75283E1 for ; Fri, 13 Jan 2012 10:49:55 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at theia.denx.de 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 f4AZ0hDEihIh for ; Fri, 13 Jan 2012 10:49:54 +0100 (CET) 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 smtp2-v.fe.bosch.de (smtp2-v.fe.bosch.de [139.15.237.6]) by theia.denx.de (Postfix) with ESMTPS id 6F27A28347 for ; Fri, 13 Jan 2012 10:49:54 +0100 (CET) Received: from vsmta14.fe.internet.bosch.com (unknown [10.4.98.30]) by imta24.fe.bosch.de (Postfix) with ESMTP id 447E9B3B881E for ; Fri, 13 Jan 2012 10:49:32 +0100 (CET) Received: from localhost (vsgw2.fe.internet.bosch.com [10.4.98.13]) by vsmta14.fe.internet.bosch.com (Postfix) with SMTP id 059A132B0043 for ; Fri, 13 Jan 2012 10:49:54 +0100 (CET) Received: from SI-MBX1000.de.bosch.com (10.3.144.121) by fe-hub03.de.bosch.com (10.3.153.62) with Microsoft SMTP Server (TLS) id 8.3.213.0; Fri, 13 Jan 2012 10:49:43 +0100 Received: from SI-HUB1001.de.bosch.com (10.4.103.108) by SI-MBX1000.de.bosch.com (10.3.144.121) with Microsoft SMTP Server (TLS) id 14.1.355.2; Fri, 13 Jan 2012 10:49:42 +0100 Received: from hi-z5661.hi.de.bosch.com (10.34.217.179) by SI-HUB1001.de.bosch.com (10.4.103.108) with Microsoft SMTP Server id 14.1.355.2; Fri, 13 Jan 2012 10:49:41 +0100 Received: from localhost.localdomain (localhost [127.0.0.1]) by hi-z5661.hi.de.bosch.com (Postfix) with ESMTP id DB5264003C; Fri, 13 Jan 2012 10:49:41 +0100 (CET) From: Dirk Behme To: Date: Fri, 13 Jan 2012 10:49:24 +0100 Message-ID: <1326448165-24041-2-git-send-email-dirk.behme@de.bosch.com> X-Mailer: git-send-email 1.7.0.4 In-Reply-To: <1326448165-24041-1-git-send-email-dirk.behme@de.bosch.com> References: <1326448165-24041-1-git-send-email-dirk.behme@de.bosch.com> MIME-Version: 1.0 Cc: Dirk Behme , Jason Liu Subject: [U-Boot] [PATCH] i.mx6q: configs: Add fdt_high and initrd_high variables X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de To be able to load the device tree and initrd correctly, set the fdt_high and initrd_high environment variables. Using 0xffffffff implies that the device tree and the initrd are initially copied to working addresses. This will avoid an additional copy. Loading the device tree to 0x30000000 and the initrd to 0x3c000000 should work for both boards, the ARM2 and SabreLite. Example (SabreLite): fatload mmc 0:2 0x10000000 uImage fatload mmc 0:2 0x3c000000 uInitrd fatload mmc 0:2 0x30000000 board.dtb bootm 0x10000000 0x3c000000 0x30000000 Note: This requires that the kernel has CONFIG_HIGHMEM enabled. Signed-off-by: Dirk Behme CC: Jason Liu CC: Stefano Babic Acked-by: Jason Liu --- Note: This patch is against the recent head of u-boot-imx.git including the SabreLite support: 5b894e4d00ff94a221f8cc23d54d08b889f54190 i.mx: i.mx6q: add the initial support for i.mx6q Sabre Lite board Note: tools/checkpatch.pl reports 0 errors, 0 warnings include/configs/mx6qarm2.h | 2 ++ include/configs/mx6qsabrelite.h | 2 ++ 2 files changed, 4 insertions(+), 0 deletions(-) diff --git a/include/configs/mx6qarm2.h b/include/configs/mx6qarm2.h index 124a7a6..0962d3c 100644 --- a/include/configs/mx6qarm2.h +++ b/include/configs/mx6qarm2.h @@ -86,6 +86,8 @@ "script=boot.scr\0" \ "uimage=uImage\0" \ "console=ttymxc3\0" \ + "fdt_high=0xffffffff\0" \ + "initrd_high=0xffffffff\0" \ "mmcdev=1\0" \ "mmcpart=2\0" \ "mmcroot=/dev/mmcblk0p3 rootwait rw\0" \ diff --git a/include/configs/mx6qsabrelite.h b/include/configs/mx6qsabrelite.h index 464f0ec..ba09f15 100644 --- a/include/configs/mx6qsabrelite.h +++ b/include/configs/mx6qsabrelite.h @@ -78,6 +78,8 @@ "script=boot.scr\0" \ "uimage=uImage\0" \ "console=ttymxc3\0" \ + "fdt_high=0xffffffff\0" \ + "initrd_high=0xffffffff\0" \ "mmcdev=0\0" \ "mmcpart=2\0" \ "mmcroot=/dev/mmcblk0p3 rootwait rw\0" \