Patchwork [U-Boot,V2] arm: Tegra2: Add a useful default boot env

login
register
mail settings
Submitter Tom Warren
Date April 23, 2012, 4:51 p.m.
Message ID <1335199910-1963-1-git-send-email-twarren@nvidia.com>
Download mbox | patch
Permalink /patch/154485/
State Superseded
Headers show

Comments

Tom Warren - April 23, 2012, 4:51 p.m.
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>
---
V2: Use /boot.scr instead of boot.scr.uimg

 include/configs/tegra2-common.h |   12 +++++++++---
 1 files changed, 9 insertions(+), 3 deletions(-)

Patch

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 */