Changeset View
Changeset View
Standalone View
Standalone View
stand/uboot/common/main.c
Show First 20 Lines • Show All 469 Lines • ▼ Show 20 Lines | main(int argc, char **argv) | ||||
printf("\n%s", bootprog_info); | printf("\n%s", bootprog_info); | ||||
printf("\n"); | printf("\n"); | ||||
dump_sig(sig); | dump_sig(sig); | ||||
dump_addr_info(); | dump_addr_info(); | ||||
meminfo(); | meminfo(); | ||||
/* Set up currdev variable to have hooks in place. */ | |||||
env_setenv("currdev", EV_VOLATILE, "", uboot_setcurrdev, env_nounset); | |||||
/* | /* | ||||
* Enumerate U-Boot devices | * Enumerate U-Boot devices | ||||
*/ | */ | ||||
if ((devs_no = ub_dev_enum()) == 0) { | if ((devs_no = ub_dev_enum()) == 0) { | ||||
printf("no U-Boot devices found"); | printf("no U-Boot devices found"); | ||||
goto do_interact; | goto do_interact; | ||||
} | } | ||||
printf("Number of U-Boot devices: %d\n", devs_no); | printf("Number of U-Boot devices: %d\n", devs_no); | ||||
▲ Show 20 Lines • Show All 238 Lines • Show Last 20 Lines |