void cmd_install(int argc, char** argv) { bufferPrintf("Installing Images...\r\n"); images_install(&_start, (uint32_t)&OpenIBootEnd - (uint32_t)&_start); bufferPrintf("Setting NVRAM version...\r\n"); nvram_setvar("opib-version", "0.1.1"); nvram_save(1); bufferPrintf("Images installed\r\n"); }
void cmd_install(int argc, char** argv) { bufferPrintf("Installing Images...\r\n"); images_install(&_start, (uint32_t)&OpenIBootEnd - (uint32_t)&_start); bufferPrintf("Setting version and defaulting menu-timeout to 10s\r\n"); nvram_setvar("opib-version", "0.1.1-zinnx"); nvram_setvar("opib-menu-timeout", "10000"); nvram_save(); bufferPrintf("Images installed\r\n"); }
void cmd_install(int argc, char** argv) { if((argc > 2 && argc < 4) || argc > 4) { bufferPrintf("Usage: %s <address> <len>\n", argv[0]); return; } if(argc == 4) { uint32_t offset = parseNumber(argv[1]); uint32_t len = parseNumber(argv[2]); bufferPrintf("Installing OIB from 0x%08x:%d.\n", offset, len); images_install((void*)offset, len, fourcc("ibot"), fourcc("ibox")); } else { bufferPrintf("Starting Install/Upgrade...\r\n"); images_install(&_start, (uint32_t)&OpenIBootEnd - (uint32_t)&_start, fourcc("ibot"), fourcc("ibox")); } }
void cmd_images_install(int argc, char** argv) { if(argc < 4) { bufferPrintf("Usage: %s <tag> <address> <len>\r\n", argv[0]); return; } uint32_t tag = fourcc(argv[1]); uint32_t address = parseNumber(argv[2]); uint32_t len = parseNumber(argv[3]); bufferPrintf("Installing image %s to 0x%08x:%d.\n", argv[1], address, len); images_install((void*)address, len, tag, tag); bufferPrintf("Done.\r\n"); }
void cmd_install(int argc, char** argv) { images_install(&_start, (uint32_t)&OpenIBootEnd - (uint32_t)&_start); }
void cmd_install(int argc, char** argv) { bufferPrintf("Installing Images...\r\n"); images_install(&_start, (uint32_t)&OpenIBootEnd - (uint32_t)&_start); bufferPrintf("Images installed\r\n"); }
void cmd_install(int argc, char** argv) { bufferPrintf("Starting Install/Upgrade...\r\n"); images_install(&_start, (uint32_t)&OpenIBootEnd - (uint32_t)&_start); }