Editing Non Volatile Storage
Jump to navigation
Jump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
Same as PS3's NVS, used for storing tokens and flags. You can access it by using the function icc_nvs_read (or by ftp'ing the respective regions with root flags server).<br> | |||
Seems that a total of 7 regions(blocks) exist in 2 banks, main bank and backup bank <br> | |||
The kernel accesses only the 5th and the 2nd region, however it's possible to read the other 5 (also the entirety of it by reading /dev/sflash0s0x34 with BUF_SIZE 0x200 from ftp ).<br> | |||
Most, if not all, of the NVS regions can be accessed also in sflash, starting with offset 0x1C4000. | |||
= Mapping of the area (NVS service) = | |||
= | |||
{| class="wikitable sortable" | {| class="wikitable sortable" | ||
Line 25: | Line 10: | ||
! Bank # !! Block # !! Start Offset in /dev/sflash0s0x34 !! Start Offset in Sflash !! Size !! Notes | ! Bank # !! Block # !! Start Offset in /dev/sflash0s0x34 !! Start Offset in Sflash !! Size !! Notes | ||
|- | |- | ||
| 0 || 0 || 0 || 0x1C4000 || 0x3000 || | | 0 || 0 || 0 || 0x1C4000 || 0x3000 || does not match, probably one (sflash or nvs, likely sflash) updates data | ||
|- | |- | ||
| 0 || 1 || 0x3000 || 0x1C7000 || 0x1000 || | | 0 || 1 || 0x3000 || 0x1C7000 || 0x1000 || match | ||
|- | |- | ||
| 0 || 2 || 0x4000 || 0x1C8000 || 0x800 || | | 0 || 2 || 0x4000 || 0x1C8000 || 0x800 || match | ||
|- | |- | ||
| 0 || 3 || 0x4800 || 0x1C8800 || 0x800 || | | 0 || 3 || 0x4800 || 0x1C8800 || 0x800 || match | ||
|- | |- | ||
| 0 || 4 || 0x5000 || 0x1C9000 || 0x3000 || | | 0 || 4 || 0x5000 || 0x1C9000 || 0x3000 || match | ||
|- | |- | ||
| 1 || 0 || 0x8000 || 0x1CC000 || 0x3000 || | | 1 || 0 || 0x8000 || 0x1CC000 || 0x3000 || match | ||
|- | |- | ||
| 1 || 1 || 0xB000 || 0x1CF000 || 0x1000 || | | 1 || 1 || 0xB000 || 0x1CF000 || 0x1000 || match | ||
|} | |} | ||
= | = Mapping of the detailed area (NVS service) = | ||
{| class="wikitable sortable" | {| class="wikitable sortable" | ||
|- | |- | ||
! Bank # !! Block # !! Start Offset | ! Bank # !! Block # !! Start Offset !! Start Offset in Sflash !! Size !! Notes | ||
|- | |- | ||
| 0 || 0 || | | 0 || 0 || 0 || 0x1C4000 || 0x8 || | ||
|- | |- | ||
| 0 || 0 || | | 0 || 0 || 0x20 || 0x1C4020 || 0x6 || | ||
|- | |- | ||
| 0 || 0 || 0x50 || 0x1C4050 || | | 0 || 0 || 0x50 || 0x1C4050 || 0x1 || | ||
|- | |- | ||
| 0 || 0 || 0x60 || 0x1C4060 || 0x5 || | | 0 || 0 || 0x60 || 0x1C4060 || 0x5 || | ||
|- | |- | ||
| 0 || 0 || | | 0 || 0 || 0x76 || 0x1C4076 || 0x1 || | ||
|- | |- | ||
| 0 || 0 || | | 0 || 0 || 0x7A || 0x1C407A || 0x6 || | ||
|- | |- | ||
| 0 || 0 || 0x80 || 0x1C4080 || 0x1 || | |||
| 0 || 0 || 0x80 || 0x1C4080 || 0x1 || | |||
|- | |- | ||
| 0 || 0 || 0x96 || 0x1C4096 || 0x3 || | | 0 || 0 || 0x96 || 0x1C4096 || 0x3 || | ||
|- | |- | ||
| 0 || 0 || 0x9A || 0x1C409A || 0x2 || | | 0 || 0 || 0x9A || 0x1C409A || 0x2 || | ||
|- | |- | ||
| 0 || 0 || 0xAC || 0x1C40AC || 0x4 || | | 0 || 0 || 0xAC || 0x1C40AC || 0x4 || | ||
|- | |- | ||
| 0 || 0 || 0x7FE || 0x1C47FE || 0x2 || | |||
| 0 || 0 || 0x7FE || 0x1C47FE || 0x2 || | |||
|- | |- | ||
| 0 || 0 || 0x801 || 0x1C4801 || 0x1 || | | 0 || 0 || 0x801 || 0x1C4801 || 0x1 || | ||
Line 104: | Line 67: | ||
| 0 || 0 || 0xFFE || 0x1C4FFE || 0x2 || | | 0 || 0 || 0xFFE || 0x1C4FFE || 0x2 || | ||
|- | |- | ||
| 0 || 0 || 0x1000 || 0x1C5000 || | | 0 || 0 || 0x1000 || 0x1C5000 || 0x64 || | ||
|- | |- | ||
| 0 || 0 || 0x1220 || 0x1C5220 || 0x18 || | | 0 || 0 || 0x1220 || 0x1C5220 || 0x18 || | ||
Line 192: | Line 131: | ||
| 0 || 0 || 0x2000 || 0x1C6000 || 0x8 || | | 0 || 0 || 0x2000 || 0x1C6000 || 0x8 || | ||
|- | |- | ||
| 0 || 1 || | | 0 || 1 || 0 || 0x1C7000 || 0x50 || | ||
|- | |- | ||
| 0 || 2 || | | 0 || 2 || 0 || 0x1C8000 || 0x4C || Serial Number + model Type (CUH-XXXXX) | ||
|- | |- | ||
| 0 || 2 || | | 0 || 2 || 0x60 || 0x1C8060 || 0x58 || | ||
|- | |- | ||
| 0 || 2 || | | 0 || 2 || 0xC0 || 0x1C80C0 || 0xD || | ||
|- | |- | ||
| 0 || 2 || | | 0 || 2 || 0x100 || 0x1C8100 || 0x20 || | ||
|- | |- | ||
| 0 || | | 0 || 2 || 0x7D0 || 0x1C87D0 || 0x10 || | ||
|- | |- | ||
| 0 || | | 0 || 2 || 0x7F0 || 0x1C87F0 || 0x1 || | ||
|- | |- | ||
| 0 || 4 || | | 0 || 4 || 0 || 0x1C9000 || 0x1 || | ||
|- | |- | ||
| 0 || 4 || | | 0 || 4 || 0x20 || 0x1C9020 || 0x1 || init_safe_mode flag | ||
|- | |- | ||
| 0 || 4 || | | 0 || 4 || 0x80 || 0x1C9070 || varies (0x68-0x6C) || acf token <- checked by sceSblDevActVerifyCheckExpire | ||
|- | |- | ||
| 0 || 4 || | | 0 || 4 || 0x100 || 0x1C9100 || 0x100 || | ||
|- | |- | ||
| 0 || 4 || | | 0 || 4 || 0x200 || 0x1C9200 || varies (0x40-0x60) || scrambled/obfuscated eap hdd key <- checked by g_crypt_deferred_init | ||
|- | |- | ||
| 0 || 4 || | | 0 || 4 || 0x900 || 0x1C9900 || 0x100 || acf signature | ||
|- | |- | ||
| 0 || 4 || | | 0 || 4 || 0xC00 || 0x1C9C00 || 0x170 || | ||
|- | |- | ||
| 0 || 4 || | | 0 || 4 || 0x1000 || 0x1CA000 || 0x300 || | ||
|- | |- | ||
| 0 || 4 || | | 0 || 4 || 0x1300 || 0x1CA300 || 0x300 || | ||
|- | |- | ||
| 0 || 4 || | | 0 || 4 || 0x1600 || 0x1CA600 || 0x20 || checked by regMgrNvsSpInit | ||
|- | |- | ||
| 0 || 4 || 0x2C00 || 0x1CBC00 || 0x20 || | |||
| 0 || 4 || 0x2C00 || 0x1CBC00 || 0x20 || | |||
|- | |- | ||
| 0 || 4 || 0x2C40 || 0x1CBC40 || 0x20 || | | 0 || 4 || 0x2C40 || 0x1CBC40 || 0x20 || | ||
|- | |- | ||
|} | |} |