From patchwork Mon Apr 23 16:51:50 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Warren X-Patchwork-Id: 154485 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 53848B6FD8 for ; Tue, 24 Apr 2012 02:54:23 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 0F6A528244; Mon, 23 Apr 2012 18:54:20 +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 e2ZEMNUFlIMd; Mon, 23 Apr 2012 18:54:19 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 14C4628220; Mon, 23 Apr 2012 18:54:17 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id E7E1D28220 for ; Mon, 23 Apr 2012 18:54:13 +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 oQy5lirPM-eH for ; Mon, 23 Apr 2012 18:54:13 +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-gy0-f172.google.com (mail-gy0-f172.google.com [209.85.160.172]) by theia.denx.de (Postfix) with ESMTPS id A4C5C28210 for ; Mon, 23 Apr 2012 18:54:10 +0200 (CEST) Received: by ghbg16 with SMTP id g16so6015532ghb.3 for ; Mon, 23 Apr 2012 09:54:08 -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=+N5ehX19j2T84J0R0EvN7X18olztvslGBmf9MDnlDVo=; b=ivz57Xg6lDgXK4kAoMHVdfNQSSNYJPriuD2qDsvDM1IUkMhF/GAFaGQwecLBg67fHY aWDYVSoM07CUby3zM5oCJnbVZWSv+rCzhm4/FsJXzH9AdWqi3FRnxZmYinn96cqzni9x rb11NHRQGnMknuRI2n19fHwlkKijnAxrUzXBFIcgtQRSBIDC1Rg4HDU9J7CBhLhIZBz5 Y65jW5Od2UIqYqk4feIIbIvkcPu4VYa1r6ZSYQS32qnUQtQ9GbnLdLXKpkogS4kYsVZh mQy0Xf4F5UArRP705IGxabBXoyUH9vaTNERpx4kTTB32JQ7VzGEk/3PcwizO8LAPtLHD N2ZQ== Received: by 10.60.4.170 with SMTP id l10mr23526042oel.67.1335200048084; Mon, 23 Apr 2012 09:54:08 -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 t5sm13406949oef.10.2012.04.23.09.54.06 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 23 Apr 2012 09:54:07 -0700 (PDT) From: Tom Warren To: u-boot@lists.denx.de Date: Mon, 23 Apr 2012 09:51:50 -0700 Message-Id: <1335199910-1963-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 V2] 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 --- V2: Use /boot.scr instead of boot.scr.uimg 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..a7f06d2 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\0" \ + "scr_boot=ext2load ${devtype} ${devnum}:1 ${scriptaddr} ${script};" \ + "source ${scriptaddr};\0" \ TEGRA2_DEVICE_SETTINGS #define CONFIG_LOADADDR 0x408000 /* def. location for kernel */