-
Notifications
You must be signed in to change notification settings - Fork 2
/
samsung_pit.ksy
100 lines (100 loc) · 1.83 KB
/
samsung_pit.ksy
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
meta:
id: samsung_pit
title: Samsung PIT
license: CC0-1.0
file-extension: pit
endian: le
imports:
- samsung_signature
seq:
- id: magic
contents: [ 0x76, 0x98, 0x34, 0x12 ]
- id: entry_count
type: u4
- id: port
type: str
size: 4
encoding: ASCII
- id: format
type: str
size: 4
encoding: ASCII
- id: chip
type: str
size: 8
encoding: ASCII
- id: unknown4
type: u4
- id: partitions
type: partition
repeat: expr
repeat-expr: entry_count
- id: signature
type: samsung_signature
if: not _io.eof
types:
attributes:
seq:
- id: value
type: u4
instances:
read:
value: true
write:
value: (value & 1) == 0x1
stl:
value: (value & (1 << 1)) == 0x2
update_attributes:
seq:
- id: value
type: u4
instances:
fota:
value: (value & 1) == 0x1
secure:
value: (value & (1 << 1)) == 0x2
partition:
seq:
- id: binary_type
type: u4
enum: binary_type
- id: device_type
type: u4
enum: device_type
- id: identifier
type: u4
- id: attributes
type: attributes
- id: update_attributes
type: update_attributes
- id: block_size_or_offset
type: u4
- id: block_count
type: u4
- id: file_offset
type: u4
doc: Obsolete
- id: file_size
type: u4
doc: Obsolete
- id: partition_name
type: strz
size: 32
encoding: ASCII
- id: flash_filename
type: strz
size: 32
encoding: ASCII
- id: fota_filename
type: strz
size: 32
encoding: ASCII
enums:
binary_type:
0: ap
1: cp
device_type:
0: onenand
1: filefat
2: mmc
3: all