From patchwork Fri Apr 20 19:50:58 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Warren X-Patchwork-Id: 154122 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 92573B6FBC for ; Sat, 21 Apr 2012 05:51:26 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 769D0280C5; Fri, 20 Apr 2012 21:51:22 +0200 (CEST) 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 UvF+pHDSvuml; Fri, 20 Apr 2012 21:51:22 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 57E48280BE; Fri, 20 Apr 2012 21:51:20 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 6F7C8280BE for ; Fri, 20 Apr 2012 21:51:16 +0200 (CEST) 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 LCqgxYc3dzg3 for ; Fri, 20 Apr 2012 21:51:15 +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 mail-yw0-f44.google.com (mail-yw0-f44.google.com [209.85.213.44]) by theia.denx.de (Postfix) with ESMTPS id 35B6B280B8 for ; Fri, 20 Apr 2012 21:51:13 +0200 (CEST) Received: by yhkk25 with SMTP id k25so5170039yhk.3 for ; Fri, 20 Apr 2012 12:51:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:x-nvconfidentiality; bh=JB8/iLoqXj44bFI0ig2+V5YfAdtIFma+KKTt/6pM2gA=; b=bijt/NbQBkS4jewWgn26LqcfwkYN2KR0IYMpK/ZmUdMdxn2Lp2pPO734ezfV2uA/CC 0TNqqRDf3lvsxD3AzySoNYoFpdM82aNJlcPp7NNn0YnTu6KJjZxVmE/N25igcyOEx0kI VtTOgJItBGZo/pM5o6ZAf7HXe+sOlLKfnJMTYcR96c3juDhdjftQeDcHo/Pv7dejbcol rbWNBowetzPjVzeZjWfdrTCJ74oKGwVk85IaX1MHoGSwQ+h/Mqowbd05Oi+WSJz0C2SF kY1F1pS2ks5MfvjOuy00vXQO6MRnBb6aPs2uDEgtvnsZw7ngIKv/l9DCWtpzwVlsCWBy ZL8A== Received: by 10.60.21.103 with SMTP id u7mr10503924oee.11.1334951471725; Fri, 20 Apr 2012 12:51:11 -0700 (PDT) Received: from localhost.localdomain (ip68-106-253-43.ph.ph.cox.net. [68.106.253.43]) by mx.google.com with ESMTPS id qa9sm1593572obc.17.2012.04.20.12.51.09 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 20 Apr 2012 12:51:10 -0700 (PDT) From: Tom Warren To: u-boot@lists.denx.de Date: Fri, 20 Apr 2012 12:50:58 -0700 Message-Id: <1334951458-31987-1-git-send-email-twarren@nvidia.com> X-Mailer: git-send-email 1.7.0.4 X-NVConfidentiality: public Cc: twarren.nvidia@gmail.com, Tom Warren Subject: [U-Boot] [PATCH] arm: Tegra2: Add a useful default boot env 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 This set of boot cmds from Stephen Warren provides a simple default for booting a linux kernel and DT from mmc (eMMC or SD-Card, in that order). Tested on Seaboard w/an SD card. Signed-off-by: Tom Warren --- include/configs/tegra2-common.h | 12 +++++++++--- 1 files changed, 9 insertions(+), 3 deletions(-) diff --git a/include/configs/tegra2-common.h b/include/configs/tegra2-common.h index 068ce88..b8c08ef 100644 --- a/include/configs/tegra2-common.h +++ b/include/configs/tegra2-common.h @@ -140,9 +140,15 @@ "stderr=serial\0" #define CONFIG_EXTRA_ENV_SETTINGS \ - "console=ttyS0,115200n8\0" \ - "mem=" TEGRA2_SYSMEM "\0" \ - "smpflag=smp\0" \ + "bootdelay=2\0" \ + "bootcmd=run mmc1_boot ; run mmc0_boot\0" \ + "mmc0_boot=setenv devnum 0; run mmc_boot;\0" \ + "mmc1_boot=setenv devnum 1; run mmc_boot;\0" \ + "mmc_boot=setenv devtype mmc;mmc dev ${devnum};run scr_boot;\0" \ + "scriptaddr=0x400000\0" \ + "script=/boot.scr.uimg\0" \ + "scr_boot=ext2load ${devtype} ${devnum}:1 ${scriptaddr} ${script};" \ + "source ${scriptaddr};\0" \ TEGRA2_DEVICE_SETTINGS #define CONFIG_LOADADDR 0x408000 /* def. location for kernel */