Files
Docs/DevLogs/Day07.md
2026-01-05 18:06:08 +08:00

26 lines
1.2 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Day 7 工作记录2025-12-03
## 今日进展
- 重构 `src/Makefile` 的交叉编译配置,经过服务器实际验证,确认使用 SDK 中已解压的 **glibc 工具链**(位于 `out/toolchain/nds32le-linux-glibc-v5d`)。
- 编译器前缀统一为 `riscv32-unknown-linux-`(符号链接指向 `riscv32-linux-`)。
- 更正了所有 Makefile 和构建脚本的工具链路径配置。
- 发现 README.md 提到的 `riscv32-linux-musl` 工具链仍为压缩包形式(`prebuilt/rootfsbuilt/riscv/nds32le-linux-musl-v5d.tar.xz`),未解压,当前使用已可用的 glibc 版本。
## 工具链配置(最终确认)
```makefile
SDK_ROOT := /home/rongye/ProgramFiles/AvaotaF1/avaota_sdk/tina-v821-release
TOOLCHAIN_DIR := $(SDK_ROOT)/out/toolchain/nds32le-linux-glibc-v5d/bin
CROSS_COMPILE := riscv32-unknown-linux-
```
**实际编译器**
- `riscv32-unknown-linux-g++``riscv32-linux-g++` (符号链接)
- C库glibc
- 架构RISC-V 32位
## 明日计划
1) 在服务器上执行整体交叉编译 `./build_main.sh`
2) 验证所有模块音频、IMU、摄像头、网络能否正常链接
3) 部署到板端进行功能测试