View Single Post
Old 03-09-2012   #53
bitsbubba
 
Join Date: Aug 2011
Posts: 110
Likes: 198
Liked 55 Times in 35 Posts
Mentioned: 29 Post(s)
Tagged: 0 Thread(s)
Originally Posted by deank View Post
Good work, @condorstrike !

FWIW, a simple call which you or other devs can use to get to the "recovery/Firmware menu" safely for all firmware versions would be something like:

[in psl1ght] Lv2Syscall3(838, (u64)"/dev_flash", 0, 1); exit(0);

or as in mM 2+

Code:
static uint64_t syscall_838(const char *device)
{
	system_call_3(838, (u64)device, 0, 1);
	return_to_user_prog(uint64_t);
}
...
syscall_838("/dev_flash"); exit(0); //exit from main


D
Awesome Dean, will this work for Nand (damn the phats, lol) too
bitsbubba is offline   Reply With Quote