Skip to content

Commit

Permalink
Fix a8 nvram unlock
Browse files Browse the repository at this point in the history
  • Loading branch information
Cryptiiiic committed May 29, 2024
1 parent 023d77b commit 0049260
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ibootpatchfinder64_base.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -706,11 +706,11 @@ std::vector<patch> ibootpatchfinder64_base::get_unlock_nvram_patch(){

loc_t setenv_whitelist = debug_uarts_ref;

if(_chipid == 7001 || _chipid == 8000 || _chipid == 8003) {
debug("chipid == a8x/a9\n");
if(_chipid == 7000 || _chipid == 7001 || _chipid == 8000 || _chipid == 8003) {
debug("chipid == a8/a8x/a9\n");
setenv_whitelist-=16;
} else {
debug("chipid != a8x/a9\n");
debug("chipid != a8/a8x/a9\n");
while (_vmem->deref(setenv_whitelist-=8));
setenv_whitelist+=8;
}
Expand Down

0 comments on commit 0049260

Please # to comment.