Git Product home page Git Product logo

dttool's Introduction

dttool

A tool for viewing and manipulating DeviceTree files.

To compile and run, run make, then move or execute ./dttool.

The view implementation is not perfect, as some values may appear as strings, whereas other strings are cut off due to NULL bytes. Use --hex to view the hex representation.

Feel free to submit issues or pull requests.

Tested on an extracted DeviceTree.n56ap.im4p from iOS 12 beta 1.

dttool - a tool for viewing and manipulating iOS DeviceTree files (https://github.com/ninjaprawn/dttool)
Created by @theninjaprawn. Based on xnu-4570.41.2/pexpert/gen/device_tree.c

Usage: dttool <operation> [modifiers] <file_name>

Operations (modifiers are prefixed by --):
	-view	Present the DeviceTree file in a readable format
	--hex	Force outputs all values as hex values
	--list-children	Only view a list of children of a node
	--no-children	Only view the properties of a node
	--path=<path>	Only view a specific node of the device tree

	-fix-sizes	Fixes the property size fields that have their upper bit set

	-qemu	Patches the device tree for QEMU emulation

Thanks to Jonathan Levin whose code was used briefly as a reference (http://www.newosxbook.com/src.jl?tree=listings&file=6-bonus.c)

dttool's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.