From: Tom Warren <twarren.nvidia@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] arm: Tegra2: Add a useful default boot env
Date: Fri, 20 Apr 2012 12:50:58 -0700 [thread overview]
Message-ID: <1334951458-31987-1-git-send-email-twarren@nvidia.com> (raw)
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 <twarren@nvidia.com>
---
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 */
--
1.7.0.4
next reply other threads:[~2012-04-20 19:50 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-20 19:50 Tom Warren [this message]
2012-04-20 20:24 ` [U-Boot] [PATCH] arm: Tegra2: Add a useful default boot env Allen Martin
2012-04-20 20:46 ` Tom Rini
2012-04-20 21:40 ` Stephen Warren
2012-04-23 16:22 ` Tom Warren
2012-04-23 16:36 ` Stephen Warren
2012-04-23 17:17 ` Tom Rini
2012-04-23 17:14 ` Tom Rini
2012-04-23 17:39 ` Stephen Warren
2012-04-23 17:47 ` Tom Rini
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1334951458-31987-1-git-send-email-twarren@nvidia.com \
--to=twarren.nvidia@gmail.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox