Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
2f5c2e9
Remove unused property parsing module and associated tests
ZR233 Feb 10, 2026
17ceab4
feat: Enhance FDT parsing and formatting utilities
ZR233 Feb 10, 2026
d522ce5
feat: Add path tracking to FDT nodes and iterators
ZR233 Feb 10, 2026
f3d6395
feat: Add batch address translation method to FDT parser
ZR233 Feb 10, 2026
9cfa001
feat: Refactor address translation methods for improved batch processing
ZR233 Feb 10, 2026
e0a2f83
feat: Add method to find direct children of a node by path and corres…
ZR233 Feb 10, 2026
4c8a8a0
feat: Add fdt-edit module with Node and Property structures for devic…
ZR233 Feb 10, 2026
4558d09
feat: Implement editable FDT structure with node iteration and testing
ZR233 Feb 10, 2026
988f4f1
feat: Refactor node iteration with new NodeRef and NodeRefMut structures
ZR233 Feb 10, 2026
fa4b742
feat: Update property formatting in NodeRef display implementation
ZR233 Feb 10, 2026
baeb699
feat: Refactor Node handling with NodeGeneric and update NodeRef/Node…
ZR233 Feb 10, 2026
5c11a70
feat: Refactor Node iteration and enhance NodeKind with NodeOp trait
ZR233 Feb 10, 2026
57992b4
feat: Enhance compatible property formatting in NodeGeneric display i…
ZR233 Feb 10, 2026
503d26c
feat: Add NodeMemory struct and enhance NodeKind with memory node sup…
ZR233 Feb 10, 2026
2aa1f93
feat: Enhance NodeIterMeta to support parent path tracking and update…
ZR233 Feb 10, 2026
c366cdd
feat: Add path retrieval method to NodeKind and implement exact path …
ZR233 Feb 10, 2026
208fe9c
Refactor device tree node iteration and viewing
ZR233 Feb 10, 2026
e57f345
feat: Add methods to NodeType for accessing node properties and enhan…
ZR233 Feb 10, 2026
aae3085
feat: Add enum_dispatch dependency and implement NodeView for safe ac…
ZR233 Feb 10, 2026
4a2413e
Implement specialized node views for device tree nodes
ZR233 Feb 10, 2026
e7c1793
fix: Adjust imports in memory and header modules for consistency
ZR233 Feb 10, 2026
2abdb11
feat: Enhance Fdt with alias resolution and path normalization methods
ZR233 Feb 10, 2026
764c8e7
feat: Implement address translation for memory regions and add tests
ZR233 Feb 10, 2026
eaf8e47
feat: Implement address translation for device tree node registers an…
ZR233 Feb 10, 2026
efa6aa8
fix: Remove unused set_regs method from IntcNodeViewMut and MemoryNod…
ZR233 Feb 10, 2026
e6c555b
fix: Refactor path_of method to use while let for cleaner code and ad…
ZR233 Feb 10, 2026
9a18886
feat: Add ViewMutOp trait and implement for NodeGenericMut; enhance c…
ZR233 Feb 10, 2026
658a182
feat: Enhance ViewMutOp trait with new implementations for IntcNodeVi…
ZR233 Feb 10, 2026
f114f63
feat: Add root_mut method to Fdt for mutable access to the root node
ZR233 Feb 10, 2026
93c0d2a
feat: Implement parent mapping in Fdt and update node structure for p…
ZR233 Feb 10, 2026
5fc9b37
feat: 添加 FDT 编码模块及相关测试用例,支持将 FDT 结构序列化为 DTB 格式
ZR233 Feb 10, 2026
c36b5a2
feat: 修改 find_children_by_path 方法以返回 ChildrenIter,优化路径处理逻辑
ZR233 Feb 11, 2026
32b0fc6
feat: 优化 find_children_by_path 方法,改进返回值处理和日志记录
ZR233 Feb 13, 2026
d3ce51d
feat: 添加 FDT 重建测试,验证解析和编码的正确性
ZR233 Feb 13, 2026
00c81fb
feat: 添加时钟和PCI节点视图模块及相关测试,增强设备树解析能力
ZR233 Feb 13, 2026
41ca1e9
feat: 优化代码格式,调整多个测试文件中的打印语句和属性设置的格式
ZR233 Feb 13, 2026
5c59d34
feat: 简化 Clippy 和构建命令,移除不必要的 manifest-path 和包参数
ZR233 Feb 13, 2026
7ae499e
feat: 优化 PciNodeView 中的地址和中断填充逻辑,使用更清晰的函数替代
ZR233 Feb 13, 2026
e67e88a
feat: 移除 CI 配置中的目标架构,简化构建和检查步骤
ZR233 Feb 13, 2026
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
7 changes: 6 additions & 1 deletion .claude/settings.local.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,12 @@
"WebFetch(domain:elinux.org)",
"mcp__web-search-prime__webSearchPrime",
"WebFetch(domain:www.devicetree.org)",
"Bash(RUST_BACKTRACE=1 cargo test -p fdt-parser -- test_pci2 --nocapture)"
"Bash(RUST_BACKTRACE=1 cargo test -p fdt-parser -- test_pci2 --nocapture)",
"Bash(cargo check:*)",
"Bash(cargo clippy:*)",
"mcp__zread__get_repo_structure",
"Bash(find:*)",
"mcp__zread__read_file"
],
"deny": [],
"ask": []
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,17 @@ jobs:
fail-fast: false
matrix:
rust-toolchain: [nightly]
targets: [x86_64-unknown-linux-gnu, x86_64-unknown-none, riscv64gc-unknown-none-elf, aarch64-unknown-none-softfloat]
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@nightly
with:
toolchain: ${{ matrix.rust-toolchain }}
components: rust-src, clippy, rustfmt
targets: ${{ matrix.targets }}
- name: Check rust version
run: rustc --version --verbose
- name: Check code format
run: cargo fmt --all -- --check
- name: Clippy
run: cargo clippy --manifest-path ./fdt-parser/Cargo.toml --target ${{ matrix.targets }} --all-features -- -A clippy::new_without_default
run: cargo clippy --all-features
- name: Build
run: cargo build -p fdt-parser --target ${{ matrix.targets }} --all-features
run: cargo build --all-features
83 changes: 0 additions & 83 deletions CLAUDE.md

This file was deleted.

7 changes: 5 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[workspace]
resolver = "2"
members = ["fdt-parser", "dtb-tool", "dtb-file", "fdt-raw", "fdt-edit"]
members = ["dtb-file", "fdt-edit", "fdt-raw"]
resolver = "3"

[workspace.dependencies]
dtb-file = {path = "dtb-file"}
Binary file removed demo_find_all.pdb
Binary file not shown.
18 changes: 0 additions & 18 deletions dtb-tool/Cargo.toml

This file was deleted.

61 changes: 0 additions & 61 deletions dtb-tool/src/main.rs

This file was deleted.

61 changes: 0 additions & 61 deletions example_all_nodes.rs

This file was deleted.

11 changes: 4 additions & 7 deletions fdt-edit/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,21 @@
authors = ["周睿 <zrufo747@outlook.com>"]
categories = ["embedded", "no-std", "hardware-support"]
description = "A high-level library for creating, editing, and encoding Flattened Device Tree (FDT) structures"
documentation = "https://docs.rs/fdt-edit"
edition = "2024"
exclude = [".git*", "*.md", "tests/"]
homepage = "https://github.com/drivercraft/fdt-parser"
keywords = ["device-tree", "dtb", "embedded", "no-std", "editor"]
license = "MIT OR Apache-2.0"
name = "fdt-edit"
readme = "README.md"
repository = "https://github.com/drivercraft/fdt-parser"
version = "0.1.7"
version = "0.2.0"

[dependencies]
enum_dispatch = "0.3.13"
fdt-raw = {version = "0.1.0", path = "../fdt-raw"}
fdt-raw = {version = "0.2", path = "../fdt-raw"}
log = "0.4"
enum_dispatch = "0.3"

[dev-dependencies]
dtb-file = {path = "../dtb-file"}
dtb-file.workspace = true
env_logger = "0.11"

[features]
Expand Down
Loading