| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2011 The Chromium OS Authors. All rights reserved. | 2 * Copyright (c) 2011 The Chromium OS Authors. All rights reserved. |
| 3 * Use of this source code is governed by a BSD-style license that can be | 3 * Use of this source code is governed by a BSD-style license that can be |
| 4 * found in the LICENSE file. | 4 * found in the LICENSE file. |
| 5 */ | 5 */ |
| 6 | 6 |
| 7 #ifndef __configs_chromeos_tegra2_recovery_h__ | 7 #ifndef __configs_chromeos_tegra2_recovery_h__ |
| 8 #define __configs_chromeos_tegra2_recovery_h__ | 8 #define __configs_chromeos_tegra2_recovery_h__ |
| 9 | 9 |
| 10 #include <configs/chromeos/recovery.h> | 10 #include <configs/chromeos/recovery.h> |
| 11 #include <configs/chromeos/tegra2/common.h> | 11 #include <configs/chromeos/tegra2/common.h> |
| 12 | 12 |
| 13 #include <configs/chromeos/tegra2/parts/usb.h> | 13 #include <configs/chromeos/tegra2/parts/usb.h> |
| 14 | 14 |
| 15 /* |
| 16 * Recovery mode tries to boot from all the sources in sequence. The boot |
| 17 * source has a U-Boot script in it which contains the appropriate boot |
| 18 * commands. |
| 19 */ |
| 20 #define CONFIG_EXTRA_ENV_SETTINGS_ARCH \ |
| 21 "scriptaddr=0x408000\0" \ |
| 22 "script_img=/u-boot/boot.scr.uimg\0" \ |
| 23 "mmc0_boot=setenv devnum 0; run mmc_boot;\0" \ |
| 24 "mmc1_boot=setenv devnum 1; run mmc_boot;\0" \ |
| 25 "usb0_boot=usb start 0; run usb_boot;\0" \ |
| 26 "usb1_boot=usb start 1; run usb_boot;\0" \ |
| 27 "scr_boot=fatload ${devtype} ${devnum}:c ${scriptaddr} ${script_img};"\ |
| 28 "source ${scriptaddr};" \ |
| 29 "read ${devtype} ${devnum}:${kernelpart} ${scriptaddr} 0 10;" \ |
| 30 "source ${scriptaddr};\0" \ |
| 31 "mmc_boot=mmc init ${devnum};" \ |
| 32 "setenv devtype mmc;" \ |
| 33 "setenv devname mmcblk${devnum}p;" \ |
| 34 "run scr_boot;\0" \ |
| 35 "usb_boot=setenv devtype usb;" \ |
| 36 "setenv devnum 0;" \ |
| 37 "setenv devname sda;" \ |
| 38 "run scr_boot;\0" |
| 39 |
| 15 #endif //__configs_chromeos_tegra2_recovery_h__ | 40 #endif //__configs_chromeos_tegra2_recovery_h__ |
| OLD | NEW |