#dtb #fdt #parser #blob #tool

nightly devicetree

Devicetree parsing tool

2 releases

0.1.1 Nov 17, 2022
0.1.0 Nov 17, 2022

#8 in #dtb

Download history 203/week @ 2024-11-13 91/week @ 2024-11-20 57/week @ 2024-11-27 66/week @ 2024-12-04 198/week @ 2024-12-11 113/week @ 2024-12-18 80/week @ 2025-01-08 20/week @ 2025-01-22 47/week @ 2025-01-29 22/week @ 2025-02-05 42/week @ 2025-02-19 4/week @ 2025-02-26

70 downloads per month

Apache-2.0

34KB
908 lines

DeviceTree

The crate devicetree can be used for parsing Devicetree Blob (DTB), based on Devicetree Specification.

The crate devicetree is a #![no_std] crate written in Rust.

Example

use devicetree::DeviceTreeBlob;

fn main() {
    let mut dtb: &[u8] = include_bytes!("<path-to-*.dtb>");

    let tree = DeviceTree::from_bytes(&mut dtb).unwrap();

    println!("{}", tree);
}

Debug

devicetree uses Log Messages to log info, debug, or error messages to the console. More about Log Messages can be found here.

Set the RUST_LOG environment variable to print debug messages:

RUST_LOG=debug cargo run

Dependencies

~86KB