Editing Flash-Main

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 66: Line 66:
= MBR Types =
= MBR Types =


<syntaxhighlight lang="C">
<source lang="C">
typedef struct {
typedef struct {
uint32_t start_lba;
uint32_t start_lba;
Line 96: Line 96:
partition_t partitions[16];
partition_t partitions[16];
} __attribute__((packed)) master_block_v4_t;
} __attribute__((packed)) master_block_v4_t;
</syntaxhighlight>
</source>
 
= MBR Contents (Example) (Internal) =
 
== MBR 1 and 2 ==
 
<pre>
Partition 0, off=0x2000, sz=0x60000, type=0x20(32), active?=0x0 (ina) (emc)
Partition 1, off=0x62000, sz=0x60000, type=0x20(32), active?=0x1 (act) (emc)
Partition 2, off=0xc2000, sz=0x80000, type=0x21(33), active?=0x1 (act) (eap)
Partition 3, off=0x142000, sz=0x80000, type=0x26(38), active?=0x1 (act) (wifi)
Partition 4, off=0x1c2000, sz=0xc000, type=0x22(34), active?=0x1 (act) (nvs)
</pre>
 
== MBR 3 and 4 ==
 
<pre>
Partition 0, off=0x2000, sz=0x3e000, type=0x2, active?=0x1 (act) (ipl)
Partition 1, off=0x40000, sz=0x3e000, type=0x2, active?=0x0 (ina) (ipl)
Partition 2, off=0x7e000, sz=0x80000, type=0x1, active?=0x1 (act) (idstorage)
Partition 3, off=0xfe000, sz=0x80000, type=0x27(39), active?=0x1 (act) (bd revoke)
Partition 4, off=0x17e000, sz=0x40000, type=0x6, active?=0x1 (act) (vtrm)
Partition 5, off=0x1be000, sz=0xcc0000, type=0x3, active?=0x1 (act) (coreos)
Partition 6, off=0xe7e000, sz=0xcc0000, type=0x3, active?=0x0 (ina) (coreos)
Partition 7, off=0x1b3e000, sz=0x2c0000, type=0x28(40), active?=0x1 (act) (unused)
</pre>


= MBR Contents (Example) =
= MBR Contents (Example) =
Line 128: Line 103:


<pre>
<pre>
Partition 0, off=0x2000, sz=0x60000, type=0x20, active?=0x1 (act)
Partition 0, off=0x2000, sz=0x60000, type=0x32, active?=0x1
Partition 1, off=0x62000, sz=0x60000, type=0x20, active?=0x0 (ina)
Partition 1, off=0x62000, sz=0x60000, type=0x32, active?=0x0
Partition 2, off=0xc2000, sz=0x80000, type=0x21, active?=0x1 (act)
Partition 2, off=0xc2000, sz=0x80000, type=0x33, active?=0x1
Partition 3, off=0x142000, sz=0x80000, type=0x26, active?=0x1 (act)
Partition 3, off=0x142000, sz=0x80000, type=0x38, active?=0x1
Partition 4, off=0x1c2000, sz=0xc000, type=0x22, active?=0x1 (act)
Partition 4, off=0x1c2000, sz=0xc000, type=0x34, active?=0x1
Partition 5, off=0x1ce000, sz=0x30000, type=0x0, active?=0x1 (act)
Partition 5, off=0x1ce000, sz=0x30000, type=0x0, active?=0x1
</pre>
</pre>


Line 279: Line 254:
=== 0x64200 ===
=== 0x64200 ===
==== DEADBEEF CAFEBEBE Magic ====
==== DEADBEEF CAFEBEBE Magic ====
  Offset(h) 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
  Offset(h) 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
  00064200  AA F9 8F D4 01 00 55 48 80 00 00 00 90 60 04 00  ªù.Ô..UH€....`..
  00064200  AA F9 8F D4 01 00 55 48 80 00 00 00 90 60 04 00  ªù.Ô..UH€....`..
Line 288: Line 262:
  00064250  CC 6F 6C 5C 8F C9 5C 30 38 F2 72 90 ED 82 C0 BB  Ìol\.É\08òr.í‚À»
  00064250  CC 6F 6C 5C 8F C9 5C 30 38 F2 72 90 ED 82 C0 BB  Ìol\.É\08òr.í‚À»
   [...]
   [...]
 
lots of strings in this huge section, no differences between consoles on same version until 001C4024
There are lots of strings in this huge section. There is no difference between consoles on the same version since this binary comes from the [[PUP]].


=== 0xC4000 ===
=== 0xC4000 ===
Line 450: Line 423:
   [...]
   [...]


==== 0x1C4021 MAC Addresses ====
==== 0x1C4021 MAC Address ====
 
MAC Address on offset 0x1C4021 6 bytes long.
* Ethernet MAC Address #1 on offset 0x1C4021 is 6 bytes long. Always present.
* Ethernet MAC Address #2 on offset 0x1C4027 is 6 bytes long. Present on DevKit DUH-D10xx.
 
  Offset(h) 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
  Offset(h) 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
  001C4020  01 70 9E 29 33 7A 1B FF FF FF FF FF FF FF FF FF  .pž).3zÿÿÿÿÿÿÿÿÿ      Ethernet MAC-Address #1 and FFed Ethernet MAC-Address #2
  001C4020  01 70 9E 29 33 7A 1B FF FF FF FF FF FF FF FF FF  .pž).3zÿÿÿÿÿÿÿÿÿ      MAC-Address
  001C4030  FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF  ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
  001C4030  FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF  ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
  001C4040  FF FF FF FF FF FF FF FF FF FF FF FF FF FF 26 E8  ÿÿÿÿÿÿÿÿÿÿÿÿÿÿ&è      0x26 0xE8 differs between consoles on same version
  001C4040  FF FF FF FF FF FF FF FF FF FF FF FF FF FF 26 E8  ÿÿÿÿÿÿÿÿÿÿÿÿÿÿ&è      0x26 0xE8 differs between consoles on same version
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)