Skip to content

Commit

Permalink
Check FIRM location in FCRAM
Browse files Browse the repository at this point in the history
  • Loading branch information
d0k3 committed Feb 22, 2018
1 parent 858c552 commit 78469db
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions source/main.c
Expand Up @@ -327,6 +327,10 @@ int main () {
return 0;
}
printf("[x] firm@%08lX\n", (u32) firmBuf + ARM9_PAYLOAD_OFFSET);
if ((u32) firmBuf != 0x14000000) { // must be at the start of FCRAM
printf("[!] Bad firm location\n");
return 0;
}

s32 res = recv_arm9_payload();
if (res > 0) APT_HardwareResetAsync(); // reboot
Expand Down

0 comments on commit 78469db

Please sign in to comment.