Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(157)

Unified Diff: include/configs/chromeos/tegra2/recovery.h

Issue 6480056: Add four main boot methods to developer build (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/u-boot-next.git@chromeos-v2010.09
Patch Set: Fixed # on end of serial Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: include/configs/chromeos/tegra2/recovery.h
diff --git a/include/configs/chromeos/tegra2/recovery.h b/include/configs/chromeos/tegra2/recovery.h
index 1cb577fa63f3ba9ccdb3770ae0e50f30dec06d9e..13120f2f0fd81fb25d3d62afb4d82246eed5cc2c 100644
--- a/include/configs/chromeos/tegra2/recovery.h
+++ b/include/configs/chromeos/tegra2/recovery.h
@@ -12,4 +12,29 @@
#include <configs/chromeos/tegra2/parts/usb.h>
+/*
+ * Recovery mode tries to boot from all the sources in sequence. The boot
+ * source has a U-Boot script in it which contains the appropriate boot
+ * commands.
+ */
+#define CONFIG_EXTRA_ENV_SETTINGS_ARCH \
+ "scriptaddr=0x408000\0" \
+ "script_img=/u-boot/boot.scr.uimg\0" \
+ "mmc0_boot=setenv devnum 0; run mmc_boot;\0" \
+ "mmc1_boot=setenv devnum 1; run mmc_boot;\0" \
+ "usb0_boot=usb start 0; run usb_boot;\0" \
+ "usb1_boot=usb start 1; run usb_boot;\0" \
+ "scr_boot=fatload ${devtype} ${devnum}:c ${scriptaddr} ${script_img};"\
+ "source ${scriptaddr};" \
+ "read ${devtype} ${devnum}:${kernelpart} ${scriptaddr} 0 10;" \
+ "source ${scriptaddr};\0" \
+ "mmc_boot=mmc init ${devnum};" \
+ "setenv devtype mmc;" \
+ "setenv devname mmcblk${devnum}p;" \
+ "run scr_boot;\0" \
+ "usb_boot=setenv devtype usb;" \
+ "setenv devnum 0;" \
+ "setenv devname sda;" \
+ "run scr_boot;\0"
+
#endif //__configs_chromeos_tegra2_recovery_h__

Powered by Google App Engine
This is Rietveld 408576698