oreboot icon indicating copy to clipboard operation
oreboot copied to clipboard

DTB (FDT) parsing & patching, choosing device tree libraries

Open orangecms opened this issue 3 years ago • 5 comments

For dtb based platforms, we need the ability to pass memory configuration (DRAM size, notably), which is determined at runtime.

We do have a small library around device trees already for layoutflash, our internal library for the DTFS (device tree file system), currently depending on repnop/fdt.

RustSBI has another library, supporting serde: https://github.com/rustsbi/serde-device-tree

orangecms avatar Aug 08 '22 09:08 orangecms

related: #498

orangecms avatar Aug 16 '22 16:08 orangecms

FWIW my vote is for https://github.com/repnop/fdt, no dependencies, does the job.

rmsyn avatar Jan 07 '23 22:01 rmsyn

https://github.com/rivosinc/salus/tree/main/device-tree/src

also for reference - based on https://github.com/rs-embedded/fdt-rs

orangecms avatar Jan 21 '23 21:01 orangecms