All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] arm: Tegra2: Add a useful default boot env
@ 2012-04-20 19:50 Tom Warren
  2012-04-20 20:24 ` Allen Martin
  2012-04-20 21:40 ` Stephen Warren
  0 siblings, 2 replies; 10+ messages in thread
From: Tom Warren @ 2012-04-20 19:50 UTC (permalink / raw)
  To: u-boot

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

^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2012-04-23 17:47 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-20 19:50 [U-Boot] [PATCH] arm: Tegra2: Add a useful default boot env Tom Warren
2012-04-20 20:24 ` 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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.