Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rustsbi/serde-device-tree
Serialize & deserialize device tree binary using serde
https://github.com/rustsbi/serde-device-tree
cpu device-tree rust rustsbi serde
Last synced: 3 months ago
JSON representation
Serialize & deserialize device tree binary using serde
- Host: GitHub
- URL: https://github.com/rustsbi/serde-device-tree
- Owner: rustsbi
- License: other
- Created: 2021-12-10T15:23:38.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-05-28T04:17:29.000Z (5 months ago)
- Last Synced: 2024-06-19T16:14:18.107Z (5 months ago)
- Topics: cpu, device-tree, rust, rustsbi, serde
- Language: Rust
- Size: 83 KB
- Stars: 21
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# serde_device_tree
Use [serde](https://serde.rs) framework to deserialize Device Tree Blob binary files; no_std compatible.
## Use this library
Run example:
```
cargo run --example hifive-unmatched-a00
```You'll get following results:
```
Compiling serde_device_tree v0.1.0 (D:\RustSBI\serde_device_tree)
Finished dev [unoptimized + debuginfo] target(s) in 0.92s
Running `target\debug\examples\hifive-unmatched-a00.exe`
#address_cells = 2
#size_cells = 2
model = SiFive HiFive Unmatched A00
compatible = sifive,hifive-unmatched-a00sifive,fu740-c000sifive,fu740
stdout = serial0
cpu timebase frequency = 1000000
cpu u_boot_dm_spl = true
cpu cpu@0, compaible = sifive,bullet0riscv
cpu cpu@1, compaible = sifive,bullet0riscv
cpu cpu@2, compaible = sifive,bullet0riscv
cpu cpu@3, compaible = sifive,bullet0riscv
cpu cpu@4, compaible = sifive,bullet0riscv
```