| 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__
|
|
|