#serde #serialization #devices #tree #blob #file #binary

nightly no-std serde-device-tree

设备树二进制文件序列化文件格式

1个不稳定版本

0.0.1 2021年12月16日

#83#blob

MulanPSL-2.0

33KB
913 代码行

serde_device_tree

使用 serde 框架反序列化设备树二进制文件;与 no_std 兼容。

使用此库

运行示例

cargo run --example hifive-unmatched-a00

您将获得以下结果

   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

依赖项

~110–345KB