Editing Talk:Non Volatile Storage

Jump to navigation Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

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 3: Line 3:
From kernel of PS4 System Software version 1.76.
From kernel of PS4 System Software version 1.76.


<syntaxhighlight lang="C">
<source lang="C">
sceSblDevActVerifyCheckExpire:
sceSblDevActVerifyCheckExpire:
icc_nvs_read(0LL, 4uLL, 0x80LL, 0x68uLL, &data_ptr);
icc_nvs_read(0LL, 4uLL, 0x80LL, 0x68uLL, &data_ptr);
Line 56: Line 56:
sub_FFFFFFFF827D8E30:???
sub_FFFFFFFF827D8E30:???
icc_nvs_write(0LL, 4uLL, 0LL, 0x20uLL, &dipsw_FFFFFFFF836C0090);
icc_nvs_write(0LL, 4uLL, 0LL, 0x20uLL, &dipsw_FFFFFFFF836C0090);
</syntaxhighlight>
</source>


From kernel of PS4 System Software version 1.00 Tool (DevKit).
From kernel of PS4 System Software version 1.00 Tool (DevKit).


<syntaxhighlight lang="C">
<source lang="C">
sce_cam_error_put:
sce_cam_error_put:


Line 117: Line 117:
       if ( v3 != (_BYTE)a1 )
       if ( v3 != (_BYTE)a1 )
         return 5 * (unsigned int)((unsigned int)icc_nvs_write(0LL, 4LL, 0x322LL, 1LL, &v4) != 0);
         return 5 * (unsigned int)((unsigned int)icc_nvs_write(0LL, 4LL, 0x322LL, 1LL, &v4) != 0);
</syntaxhighlight>
</source>


= About EAP Hdd Key =
= About EAP Hdd Key =
Line 126: Line 126:
* unk_FFFFFFFF836BC010 (0x70) <- decrypted eap_hdd_key ?
* unk_FFFFFFFF836BC010 (0x70) <- decrypted eap_hdd_key ?


<syntaxhighlight lang="C">
<source lang="C">
   v7 = icc_nvs_read(0LL, 4uLL, 0x200LL, v2, &enc_eap_key_);
   v7 = icc_nvs_read(0LL, 4uLL, 0x200LL, v2, &enc_eap_key_);
   if ( v7 ) {
   if ( v7 ) {
Line 136: Line 136:
   v12 = &eap_key_;
   v12 = &eap_key_;
   if ( sceSblGetEAPInternalPartitionKey(&enc_eap_key_, &eap_key_) )
   if ( sceSblGetEAPInternalPartitionKey(&enc_eap_key_, &eap_key_) )
</syntaxhighlight>
</source>
 
= NVS Bank 2 =
 
Bank 2 is probably a backup bank. It is accessed by sub_FFFFFFFF827D2F50:qafutkn ??? icc_nvs_read(1LL, 4uLL, 0x0a00LL, 0x190uLL, &data_ptr);
 
The whole NVS is accesible via /dev/sflash0s0x34 and its size is probably 49152 bytes.


= From EMC =
= From EMC =


{| class="wikitable"
<pre>
|+ Serial Flash NVS Area accessed by PS4 EMC firmware around 1.76
storage_part0_desc struc_142370 <0, 0, 0x1C4000, 0x1000, 1, 0, 0, 0>
|-
storage_part1_desc struc_142370 <1, 0x1000, 0x1C5000, 0x1000, 1, 1, 0x1CE000, 0x1CF000>
! Index !! Offset in NVS !! Offset in sflash0 !! Size !! Unknown ?read? !! Has backup ?write? !! Backup address !! ?Backup address 2? !! Notes
storage_part2_desc struc_142370 <2, 0x2000, 0x1C6000, 0x1000, 1, 0, 0, 0>
|-
storage_part3_desc struc_142370 <3, 0x3000, 0x1C7000, 0x1000, 1, 0, 0, 0>
| 0 || 0 || 0x1C4000 || 0x1000 || 1 || 0 || 0 || 0 || Per-console fixed data
storage_part4_desc struc_142370 <4, 0x4000, 0x1C8000, 0x800, 1, 0, 0, 0>
|-
storage_part5_desc struc_142370 <5, 0x4800, 0x1C8800, 0x800, 1, 0, 0, 0>
| 1 || 0x1000 || 0x1C5000 || 0x1000 || 1 || 1 || 0x1CE000 || 0x1CF000 || Logs (including statistics)
storage_part6_desc struc_142370 <6, 0x5000, 0x1C9000, 0x3000, 1, 0, 0, 0>
|-
</pre>
| 2 || 0x2000 || 0x1C6000 || 0x1000 || 1 || 0 || 0 || 0 || Unknown area
 
|-
= Some samples =
| 3 || 0x3000 || 0x1C7000 || 0x1000 || 1 || 0 || 0 || 0 || pd region
 
|-
== hw_info ==
| 4 || 0x4000 || 0x1C8000 || 0x800 || 1 || 0 || 0 || 0 || ds region
 
|-
<pre>
| 5 || 0x4800 || 0x1C8800 || 0x800 || 1 || 0 || 0 || 0 || cs region
00TS4DB00K2180050
|-
</pre>
| 6 || 0x5000 || 0x1C9000 || 0x3000 || 1 || 0 || 0 || 0 || os region
 
|}
== hw_model ==
 
<pre>
DUT-DBW00JK-S0
</pre>
Please note that all contributions to PS4 Developer wiki are considered to be released under the GNU Free Documentation License 1.2 (see PS4 Developer wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To protect the wiki against automated edit spam, we kindly ask you to solve the following hCaptcha:

Cancel Editing help (opens in new window)