Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
16 commits
Select commit Hold shift + click to select a range
860f64a
添加 fdt-raw 模块,包含 FDT 解析所需的结构和实现
ZR233 Dec 2, 2025
9272a6c
重构节点迭代器,添加回溯功能并优化节点处理逻辑
ZR233 Dec 2, 2025
2d1c91b
重构 FdtIter 和 NodeContext,添加节点栈支持,优化属性解析逻辑,增强错误处理
ZR233 Dec 2, 2025
5ed3acb
实现 Fdt 和 Node 的 Display trait,增强格式化输出功能,添加 FDT 显示测试
ZR233 Dec 2, 2025
de241e0
Refactor FdtIter and Node properties for improved context handling an…
ZR233 Dec 2, 2025
3ac4c3e
优化 Fdt 和 Node 的调试输出,移除冗余信息,简化属性解析逻辑
ZR233 Dec 2, 2025
b8793a6
移除 Fdt 属性中的冗余字段(ranges、interrupts、clocks),简化属性处理逻辑
ZR233 Dec 2, 2025
bfc561e
更新测试用例以验证 FDT 输出格式和属性解析,增强对节点和属性的检查
ZR233 Dec 2, 2025
2606738
添加 fdt-edit 模块,包含 Fdt、Node 和 Property 结构体及其实现,扩展 FDT 解析功能
ZR233 Dec 2, 2025
f12ae2b
重构 FDT 结构,添加内存保留和节点管理功能,更新属性处理逻辑,增加测试用例以验证新功能
ZR233 Dec 2, 2025
1d79913
添加 phandle 缓存和查找功能,优化节点查找逻辑,增加相关测试用例
ZR233 Dec 2, 2025
a674c20
添加别名解析功能,支持通过别名查找节点,更新相关测试用例
ZR233 Dec 2, 2025
d455ed5
添加设备树覆盖功能,支持 fragment 和简单格式的 overlay 应用,增加相关测试用例以验证功能
ZR233 Dec 2, 2025
d5ade72
更新 find_by_path 系列函数,返回节点引用和完整路径,增强路径解析功能
ZR233 Dec 2, 2025
9da745f
优化节点查找和属性处理逻辑,简化代码并提高可读性
ZR233 Dec 2, 2025
f61ba99
优化 Chosen 结构中的 stdout 方法,简化节点查找逻辑
ZR233 Dec 2, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
/.idea
/.project.toml
/.vscode
/Cargo.lock
/Cargo.lock
.spec-workflow
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[workspace]
resolver = "2"
members = ["fdt-parser", "dtb-tool", "dtb-file"]
members = ["fdt-parser", "dtb-tool", "dtb-file", "fdt-raw", "fdt-edit"]
10 changes: 10 additions & 0 deletions fdt-edit/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[package]
edition = "2021"
name = "fdt-edit"
version = "0.1.0"

[dependencies]
fdt-raw = {path = "../fdt-raw"}

[dev-dependencies]
dtb-file = {path = "../dtb-file"}
Loading