Skip to content

Commit

Permalink
Add android's DTB/DTBO partitions format
Browse files Browse the repository at this point in the history
  • Loading branch information
evdenis committed Feb 9, 2021
1 parent 1eae514 commit 3526312
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions archive/dto.ksy
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
meta:
id: dto
title: DTB/DTBO
license: CC0-1.0
file-extension: img
endian: be
doc-ref: https://source.android.com/devices/architecture/dto/partitions
types:
header:
seq:
- id: magic
contents: [ 0xd7, 0xb7, 0xab, 0x1e ]
- id: total_size
type: u4
- id: header_size
type: u4
- id: dt_entry_size
type: u4
- id: dt_entry_count
type: u4
- id: dt_entries_offset
type: u4
- id: page_size
type: u4
- id: version
type: u4
entry:
seq:
- id: size
type: u4
- id: offset
type: u4
- id: id
type: u4
- id: rev
type: u4
- id: custom
type: u4
repeat: expr
repeat-expr: 4
instances:
body:
io: _root._io
pos: offset
size: size
seq:
- id: header
type: header
- id: entries
type: entry
repeat: expr
repeat-expr: header.dt_entry_count

0 comments on commit 3526312

Please sign in to comment.