The iPhone Wiki is no longer updated. Visit this article on The Apple Wiki for current information. |
Difference between revisions of "Bootx (iBoot command)"
m |
m (Updating) |
||
Line 3: | Line 3: | ||
==Decompliation== |
==Decompliation== |
||
− | ===[[ |
+ | ===[[N88AP|iPhone 3GS]] S5L8920x from [[iBoot-636.66]]=== |
#define kLoadAddress 0x41000000 |
#define kLoadAddress 0x41000000 |
||
#define kKernelMaxSize 0xF00000 |
#define kKernelMaxSize 0xF00000 |
Latest revision as of 08:37, 13 October 2015
Description
A command found in iBEC, iBoot, and iBSS that verifies and boots a kernelcache image which has been uploaded.
Decompliation
iPhone 3GS S5L8920x from iBoot-636.66
#define kLoadAddress 0x41000000 #define kKernelMaxSize 0xF00000 char** gBootArgs; int cmd_bootx(int argc, CmdArg* argv) { void* address = NULL; if(argc > 1 && !strcmp("help", argv[1].string)) { printf("usage:\n\t%s [<address>]\n", argv[0].string); return -1; } if(range_check(kLoadAddress, kKernelMaxSize) < 0) { printf("Permission Denied\n"); return -1; } printf("Attempting to validate kernelcache @ 0x%08x\n", kLoadAddress); int err = load_macho_image(kLoadAddress, kKernelMaxSize, &address) if(err >= 0) { printf("kernelcache prepped at address 0x%08x\n", address); jump_to(3, address, gBootArgs); } else { printf("error loading kernelcache\n"); } return err; }