Skip to content

A version of fdtdump written in rust. An example use case for fdt-rs.

License

Notifications You must be signed in to change notification settings

rs-embedded/fdtdump

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fdtdump

crates.io downloads docs.rs master coveralls.io

A rust version of fdtdump - a tool for printing flattened device trees.

Installation

Simply run the following to build and install:

cargo install fdtdump

Usage

USAGE:
    fdtdump <dtb-file>

FLAGS:
    -h, --help       Prints help information
    -V, --version    Prints version information

ARGS:
    <dtb-file>    Path to dtb file

Example

$ echo '/dts-v1/; / { prop = "hello"; };' | dtc > dtb-file
$ cargo run dtb-file
/dts-v1/;
// magic:		0xd00dfeed
// totalsize:		0x61 (97)
// off_dt_struct:	0x38
// off_dt_strings:	0x5c
// version:		0x11
// boot_cpuid_phys:	0x0
// last_comp_version:	16
// boot_cpuid_phys:	0x0
// size_dt_strings:	0x5
// size_dt_struct:	0x24

/ {
    prop = "hello";
};

About

A version of fdtdump written in rust. An example use case for fdt-rs.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages