Skip to contentSkip to conversation

arm: Tegra2: Add a useful default boot env

PATCH New Tom Warren 1 participant 1 message Apr 23, 2012 Tegra architecture support

lore
Share & tools
lore

Tom Warren

author
#0 lore raw

PATCH v2 1/1 arm: Tegra2: Add a useful default boot env

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.

---
V2: Use /boot.scr instead of boot.scr.uimg

 include/configs/tegra2-common.h |   12 +++++++++---
 1 files changed, 9 insertions(+), 3 deletions(-)
include/configs/tegra2-common.h +9 -3
index 068ce88..a7f06d2 100644
@@ -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 */
Signature · 1 line
1.7.0.4