X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?p=pandora-u-boot.git;a=blobdiff_plain;f=board%2Fpandora%2Fmenu.c;h=d167c2d1fc4997e9c903c887fa25517c65397497;hp=d14527ba52992d88020bc8bf4437cc4c02071142;hb=239abbf15f971b8971ab641ab5a4f7e44c431b88;hpb=71c557a40d25e99545278fa0a2e4801e09747f8a diff --git a/board/pandora/menu.c b/board/pandora/menu.c index d14527ba52..d167c2d1fc 100644 --- a/board/pandora/menu.c +++ b/board/pandora/menu.c @@ -197,10 +197,10 @@ static struct menu_item default_menu_items[] = { static void do_mmc(int dev_id) { - static const char *check_format1 = "%sload mmc1 %d:%d ${loadaddr} boot.scr 4"; - static const char *check_format2 = "%sload mmc1 %d:%d ${loadaddr} boot.txt 4"; - static const char *run_format1 = "%sload mmc1 %d:%d ${loadaddr} boot.scr;source ${loadaddr}"; - static const char *run_format2 = "%sload mmc1 %d:%d ${loadaddr} boot.txt;ssource ${loadaddr} ${filesize}"; + static const char *check_format1 = "%sload mmc %d:%d ${loadaddr} boot.scr 4"; + static const char *check_format2 = "%sload mmc %d:%d ${loadaddr} boot.txt 4"; + static const char *run_format1 = "%sload mmc %d:%d ${loadaddr} boot.scr;source ${loadaddr}"; + static const char *run_format2 = "%sload mmc %d:%d ${loadaddr} boot.txt;ssource ${loadaddr} ${filesize}"; disk_partition_t part_info; block_dev_desc_t *dev_desc; char tmp_name[32], tmp_cmd[128]; @@ -253,16 +253,22 @@ static void menu_init(void) menu_items[i] = &default_menu_items[i]; menu_item_count = i; - if (do_cmd("mmc rescan")) + if (do_cmd("mmc dev 0 && mmc rescan")) { /* kill stdout while we search for bootfiles */ setenv("stdout", "nulldev"); - do_mmc(0); + setenv("stdout", "serial"); + } + + if (do_cmd("mmc dev 1 && mmc rescan")) + { + setenv("stdout", "nulldev"); do_mmc(1); + setenv("stdout", "serial"); } - setenv("stdout", "serial"); + do_cmd("mmc dev 0"); if (do_cmd("ubi part boot && ubifsmount boot")) { ulong addr = getenv_ulong("loadaddr", 16, 0);