Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
binwalk
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fact-depend
binwalk
Commits
2e0ccfbf
Unverified
Commit
2e0ccfbf
authored
Jan 23, 2019
by
devttys0
Committed by
GitHub
Jan 23, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #381 from TobleMiner/add-flattened-device-tree
Add signature of flattened device trees
parents
23220bcc
f7e960fd
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
0 deletions
+26
-0
firmware
src/binwalk/magic/firmware
+26
-0
No files found.
src/binwalk/magic/firmware
View file @
2e0ccfbf
...
...
@@ -870,3 +870,29 @@
>0x24 ulelong 0
>0x28 ulelong 0
>0x2c ulelong 0
# Flattened device tree
# Device Tree specification v0.2
# https://github.com/devicetree-org/devicetree-specification/releases/download/v0.2/devicetree-specification-v0.2.pdf
# Device tree magic
0 ubelong 0xd00dfeed Flattened device tree,
# Device tree size, may not be less than header size (40)
>4 ubelong <40 {invalid}
>4 ubelong x size: %d bytes,
# Offset of structure block, may not be less than header size (40), must be aligned to 4 byte boundary
>8 ubelong <40 {invalid}
>8 ubelong&3 !0 {invalid}
>8 ubelong !0
# First node of structure block, must be either FDT_BEGIN_NODE (1), FDT_NOP (4) or FDT_END (9)
>>(8.L) ubelong !1
>>>(8.L) ubelong !4
>>>>(8.L) ubelong !9 {invalid}
>>>>(8.L) ubelong 9 empty device tree,
# Offset of strings block, may not be less than header size (40)
>12 ubelong <40 {invalid}
# Version
>20 ubelong x version: %d
# Size of strings block, must be greater than 0
>32 ubelong 0 {invalid}
# Size of structure block, must be greater than 0
>36 ubelong 0 {invalid}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment