aboutsummaryrefslogtreecommitdiffstats
path: root/devices/TOC/README.txt
blob: dc5c58debf8d54d227aee02e88cacc6ccc90e1b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
== Description ==
The TOC is a partition table found inside the modem firmware of various Samsung
Smartphones and tablets running Android.

That partition table has information like the name of the partition and its
size. Thanks to a blog post by by Tony Garnock-Jones[1], we now know the
name of that partition table as in the Galaxy S7 (herolte), there is an entry
for the modem partition table itself in the modem partition table:
    00000000: 544f 4300 0000 0000 0000 0000 0000 0000  TOC.............
              ----------------------------- ---------
                 name                         offset
    00000010: 0000 0000 0002 0000 0000 0000 0100 0000  ................
              --------- --------- --------- ---------
               loadadr   size      crc        count/entryid

    00000020: 424f 4f54 0000 0000 0000 0000 0002 0000  BOOT............
    00000030: 0000 0040 6425 0000 0888 f1a2 0000 0000  ...@d%..........

    00000040: 4d41 494e 0000 0000 0000 0000 8027 0000  MAIN.........'..
    00000050: 0000 0140 6cc4 6202 51b1 c353 0200 0000  ...@l.b.Q..S....

    00000060: 4e56 0000 0000 0000 0000 0000 0000 0000  NV..............
    00000070: 0000 ee47 0000 1000 0000 0000 0300 0000  ...G............

    00000080: 4f46 4653 4554 0000 0000 0000 00aa 0700  OFFSET..........
    00000090: 0000 0000 0056 0800 0000 0000 0400 0000  .....V..........
Here we can clearly see here that the first partition ia named TOC. This dump
comes from Tony's blog post.

More information seem to be added over time:
- On devices like the Galaxy Nexus (GT-I9250) or the Galaxy SII (GT-I9100),
  the TOC partition table doesn't seem to exist as the first partition starts
  at the offset 0.
- On devices like the Galaxy SIII (GT-I9100), the TOC partition table doesn't
  have an entry for itself.

References:
-----------
[1]https://eighty-twenty.org/2020/09/10/booting-samsung-galaxy-s7-modem

== Devices without a partition table ==
The following devices don't seem to have a partition table as the first
partition starts at the offset 0:
- Galaxy S (GT-I9000)
- Galaxy SII (GT-I9100)
- Galaxy Note (GT-N7000)
- Galaxy Nexus (GT-I9250)
- Nexus S (GT-I9020, GT-I9020A, GT-I9023)

== Thanks ==
Before Tony Garnock-Jones's blog post, we had much more partial information on
this partition table.