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

Unified Diff: include/configs/chromeos/tegra2/normal.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/normal.h
diff --git a/include/configs/chromeos/tegra2/normal.h b/include/configs/chromeos/tegra2/normal.h
index ba9259ceaf0a748dc731dd30739edccd585bbe50..146837babffb6f27a7b2a3fcb01fa780d96c7313 100644
--- a/include/configs/chromeos/tegra2/normal.h
+++ b/include/configs/chromeos/tegra2/normal.h
@@ -10,4 +10,29 @@
#include <configs/chromeos/normal.h>
#include <configs/chromeos/tegra2/common.h>
+
+/*
+ * TODO(sjg): Copied from recovery.h for now. This should be cut back to only
+ * do the official boot
+ */
+#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_normal_h__

Powered by Google App Engine
This is Rietveld 408576698