switch (get_boot_device()) {
case SD2_BOOT:
env_set_ulong("mmcdev", 1);
- if (!strcmp(env_get("boot_targets"), env_get_default("boot_targets")))
+ if (!env_get("boot_targets"))
env_set("boot_targets", "mmc1 mmc2 ethernet");
break;
case MMC3_BOOT:
switch (get_boot_device()) {
case SD2_BOOT:
env_set_ulong("mmcdev", 1);
+ if (!env_get("boot_targets"))
+ env_set("boot_targets", "mmc1 mmc2 ethernet");
break;
case MMC3_BOOT:
env_set_ulong("mmcdev", 2);
switch (get_boot_device()) {
case SD2_BOOT:
env_set_ulong("mmcdev", 1);
+ if (!env_get("boot_targets"))
+ env_set("boot_targets", "mmc1 mmc2 usb ethernet");
break;
case MMC3_BOOT:
env_set_ulong("mmcdev", 2);
break;
case USB_BOOT:
printf("Detect USB boot. Will enter fastboot mode!\n");
- env_set_ulong("dofastboot", 1);
+ if (!strcmp(env_get("bootcmd"), env_get_default("bootcmd")))
+ env_set("bootcmd", "fastboot 0; bootflow scan -lb;");
break;
default:
break;
-bootcmd=
- if test ${dofastboot} = 1; then
- fastboot 0;
- fi;
- bootflow scan -lb;
boot_script_dhcp=net_boot_fit.scr.uimg
console=ttymxc0,115200
-dofastboot=0
emmc_dev=2 /* This is needed by built-in uuu flash scripts */
fastboot_raw_partition_all=0 4194304
fastboot_raw_partition_bootloader=64 8128
CONFIG_OF_BOARD_SETUP=y
CONFIG_OF_SYSTEM_SETUP=y
CONFIG_FDT_FIXUP_PARTITIONS=y
-# CONFIG_USE_BOOTCOMMAND is not set
CONFIG_DEFAULT_FDT_FILE="oftree"
CONFIG_SYS_CBSIZE=2048
CONFIG_SYS_PBSIZE=2074