From patchwork Tue Feb 12 17:15:37 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Koen Kooi X-Patchwork-Id: 219924 X-Patchwork-Delegate: trini@ti.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 F01B22C0079 for ; Wed, 13 Feb 2013 04:46:09 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 6962D4A0A6; Tue, 12 Feb 2013 18:46:08 +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 ioblCi1b-amm; Tue, 12 Feb 2013 18:46:08 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 28E0D4A0A8; Tue, 12 Feb 2013 18:46:06 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 25A774A0A8 for ; Tue, 12 Feb 2013 18:46:04 +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 w3tSKUvDYaaB for ; Tue, 12 Feb 2013 18:46:03 +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 mail-oa0-f41.google.com (mail-oa0-f41.google.com [209.85.219.41]) by theia.denx.de (Postfix) with ESMTPS id 11C6A4A0A6 for ; Tue, 12 Feb 2013 18:46:01 +0100 (CET) Received: by mail-oa0-f41.google.com with SMTP id i10so361412oag.28 for ; Tue, 12 Feb 2013 09:45:58 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references:x-gm-message-state; bh=P6ECgF79D0W2EVUWlNFADbZma4c474MLoJPx+X5qAqo=; b=SB7bov8ThrSWCawiw78vi2teRrEQTmJTJ1916pNP/rpdY1e2+06rg+1bW8iCyVudi1 LIDe1wcqu9Tg1j2KOWuYlddaH+GQ+5dedGkL2RNcCpjV3dHgGWxGq3f4cSs7gyAhbgMr Kk6Qul9n2mLI4sdhgj+jnd71bTIQKVl+pxGWmSQtqAfvF9wn+WUYzS8XRagoPRVh3UJo uhVdFPsvArztiLVL6DpYxu4c3ltI5VHySTpEXw+zR4j0M4Sqp+l89Hv82zxqxhzglJnG Pug9HRLpiiUvPwr4a41Xhme9MTRsqZTsttowsmc9OAl8Rh6Rw0cWugHZQmE2iIBYDnA7 m+uQ== X-Received: by 10.182.8.70 with SMTP id p6mr13875117oba.90.1360689358763; Tue, 12 Feb 2013 09:15:58 -0800 (PST) Received: from localhost.localdomain (adsl-68-88-66-177.dsl.rcsntx.swbell.net. [68.88.66.177]) by mx.google.com with ESMTPS id v8sm53598833obj.1.2013.02.12.09.15.57 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 12 Feb 2013 09:15:58 -0800 (PST) From: Koen Kooi To: Tom Rini Date: Tue, 12 Feb 2013 18:15:37 +0100 Message-Id: <1360689337-20947-3-git-send-email-koen@dominion.thruhere.net> X-Mailer: git-send-email 1.8.1.2 In-Reply-To: <1360689337-20947-1-git-send-email-koen@dominion.thruhere.net> References: <1360689337-20947-1-git-send-email-koen@dominion.thruhere.net> X-Gm-Message-State: ALoCoQn6Nh3u76rT+og9vCSmfWdbEM3Cu/6itAPJT+7WFTCjL5j8SXYaqNAfnabAJHyNnbRU6e2X Cc: u-boot@lists.denx.de, Koen Kooi Subject: [U-Boot] [PATCH v2 3/3] am335x-evm: switch to DT boot 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: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de The findfdt method is being used to locate the right .dtb for the board and load it from /boot. Signed-off-by: Koen Kooi Acked-by: Peter Korsgaard --- include/configs/am335x_evm.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/configs/am335x_evm.h b/include/configs/am335x_evm.h index 951422c..67f04c4 100644 --- a/include/configs/am335x_evm.h +++ b/include/configs/am335x_evm.h @@ -79,7 +79,7 @@ "loaduimage=ext2load mmc ${mmcdev}:2 ${loadaddr} ${bootfile}\0" \ "mmcboot=echo Booting from mmc ...; " \ "run mmcargs; " \ - "bootm ${loadaddr}\0" \ + "bootm ${loadaddr} - ${fdtaddr}\0" \ "ramboot=echo Booting from ramdisk ...; " \ "run ramargs; " \ "bootm ${loadaddr}\0" \ @@ -93,7 +93,9 @@ "if test $board_name = A335X_SK; then " \ "setenv fdtfile am335x-evmsk.dtb; fi\0" \ + #define CONFIG_BOOTCOMMAND \ + "run findfdt; " \ "mmc dev ${mmcdev}; if mmc rescan; then " \ "echo SD/MMC found on device ${mmcdev};" \ "if run loadbootenv; then " \ @@ -105,6 +107,7 @@ "run uenvcmd;" \ "fi;" \ "if run loaduimage; then " \ + "ext2load mmc ${mmcdev}:2 ${fdtaddr} /boot/${fdtfile}; " \ "run mmcboot;" \ "fi;" \ "fi;" \