Replies: 30 comments 8 replies
-
|
目前搜集到的一些信息:https://shimo.im/docs/m4kMM20wzKC9DBkD/ 《CV系列处理器 TPU SDK 开发资料》,可复制链接后用石墨文档 App 打开 还有之前我在 os 比赛时开发的 cv1811h sd 卡驱动,当时时间比较紧,需要改改修复一下应该就能用:https://github.com/Byte-OS/cv1811-sd/tree/main 目前开发板买了一块 licheerv nano wifi 款的, |
Beta Was this translation helpful? Give feedback.
-
|
2026-01-13 讨论:
|
Beta Was this translation helpful? Give feedback.
-
|
算能微信群交流记录:
|
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
|
据悉李老师组,目前也在使用厂商配套的的 GC4653摄像头驱动源码,在AliOS和FreeRTOS中找到有完整驱动实现: |
Beta Was this translation helpful? Give feedback.
-
|
sg2002 的 pin 会被复用,Uart 或 IIC 可能会在同一个 Pin 上,且同一时刻只能用一个功能,所以需要设置复用来选择用哪一个功能。目前的资料: sipeed 中的资料:https://wiki.sipeed.com/hardware/zh/lichee/RV_Nano/5_peripheral.html 今天摄像头到了,开发板还没到(分开运输的)。 |
Beta Was this translation helpful? Give feedback.
-
|
使用Cursor GPT 5.2 Codex对之前比赛的rk3588 npu驱动进行分析: Rk3588 npu 驱动 c 到 rust 迁移仓库分析User 请帮我分析一下这个项目:将rk3588硬件板子的linux npu驱动:kernel/drivers/rknpu 将这个C语言的NPU驱动,改写成了Rust语言的无系统依赖的驱动npu-driver-qcl/drivers, 其中的rknpu文件夹中是NPU驱动npu-driver-qcl/drivers/rknpu Cursor 下面是对你描述的两个项目(C 版 Linux 内核驱动与 Rust 版无系统依赖驱动)的结构与对应关系分析,基于你给的路径与实际代码内容整理。 总体定位与目标
Rust 端核心结构与职责
C 版 Linux 驱动的主要职责(对照用)
核心差异与可见的“简化点”
大致模块映射关系(Rust -> C)
|
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
C906虚拟内存sg2002开发板使用了平头哥的C906的CPU。 根据Linux源码中的riscv架构相关代码部分,在构建虚拟内存页表项时,需要分别为
这些页表项的额外的flags属性位,可以通过查询C906芯片手册获知其定义信息,如下图,C906额外页面属性位于 根据其他CPU芯片手册,可知道这些平头哥CPU的拓展属性,不单在C906中存在,在C910 CPU中也同样存在。 平头哥CPU自定义的页表的额外的flags属性位,通过查找芯片手册,可以在拓展状态寄存器 默认在打开 更多的请见: 平头哥C910的页表项拓展属性位 |
Beta Was this translation helpful? Give feedback.
-
|
搜索了一下之前参加比赛的时候对 C906 的支持,想起来 C906 在读写内存之后需要进行 dcache 的刷新,否则会产生异常。可能在 Starry 的移植过程中遇到这个问题,https://gitlab.eduxiji.net/202310464101015/oskernel2023-byteos/-/blob/on-site-qemu/arch/src/riscv64/addr.rs#L195 |
Beta Was this translation helpful? Give feedback.
-
|
我梳理了一下linux tpu驱动,主要重写下 cvi_tpu_interface.c 和 tpu_platform.c 就行。 |
Beta Was this translation helpful? Give feedback.
-
|
在sg2002物理板子上,调通Cursor生成的BSP代码,发现还是有不少错误需要根据实际运行情况作修改。如地址,中断设置等 |
Beta Was this translation helpful? Give feedback.
-
|
尝试做了 sg2002 上的辅助核心支持,SG2002 一共有四个核心 (1GHz C906 和 1GHz A53 二选一) + 700MHz C906 辅助核心 + 8051。尝试启动了 700MHz 的辅助核心,但是和大核之间无硬件缓存一致性的支持,所以直接作为 AP 核心比较麻烦,也许可以在大小核上分别启动一个 Linux 和一个 ArceOS。 |
Beta Was this translation helpful? Give feedback.
-
|
尝试实现WiFi驱动模块,但目前还存在诸多问题,如:CMD53扩展IO指令超时,SDIO错误等,正在调试 |
Beta Was this translation helpful? Give feedback.
-
|
AIC8801芯片WiFi驱动开发日志:
|
Beta Was this translation helpful? Give feedback.
-
|
将捡网球的模型加载到starry上,可以正常运行。检测图片和linux输出一致 |
Beta Was this translation helpful? Give feedback.
-
|
https://github.com/milkv-duo/duo-buildroot-sdk-v2/tree/main/cvi_mpi/sample/sensor_test 调用摄像头的例子在这里。摄像头驱动完成后跑通这个例子应该就算成功了。 |
Beta Was this translation helpful? Give feedback.
-
|
为了试验自用模型小球识别模型能在sg2002上能使用,研究模型转换的的过程,,包括 前处理-模型推理-后处理 三个环节。
|
Beta Was this translation helpful? Give feedback.
-
|
合并当前在sg2002平台上的bsp和驱动代码: 对sg2002平台支持的代码,通过feature条件控制,页表项有拓展flag,拥有专有的刷cache指令,以及cvsd存储等,(tpu相关的部分还有待进一步沟通整理独立出来,)使得一个平台的改动量,尽量做到独立精简; 遇到的问题:
|
Beta Was this translation helpful? Give feedback.
-
|
WiFi功能模块基本都开发完成,但是还是有问题没有解决:
以上两个问题尝试了以下方法:
项目地址:https://github.com/Ticonderoga2017/sg2002-wifi-driver.git |
Beta Was this translation helpful? Give feedback.
-
|
sg2002平台FreeRTOS的代码仓库,并且看到也具备基本的驱动功能。 相关资料整理:
|
Beta Was this translation helpful? Give feedback.
-
|
|
Beta Was this translation helpful? Give feedback.
-
|
WiFi模块当前开发进展:已验证开放网络连接,加密网络四次握手AP拒绝M2帧问题暂时未解决 |
Beta Was this translation helpful? Give feedback.
-
2026-04-01 有关sg2002机器人手臂的交流纪要@李明 @xiaoxiao @御风 @泽辰 @stone-san 和@chyyuu 对2002机器人的工作进行了探讨,形成的初步分工。请@xiaoxiao@御风@泽辰@stone-san 在github discussion上进行工作进展的记录和技术方案的讨论。
初步分工YJB
SZH
XLY
|
Beta Was this translation helpful? Give feedback.
-
|
@yfblock 我看了你的aka0仓库,我觉得是不是可以添加抽象保留原来的摄像头的逻辑,兼容uart传输? |
Beta Was this translation helpful? Give feedback.
-
|
目前已经完成了 StarryOS 在 sg2002 上实现图像采集、识别到控制机器抓取的全流程,相关仓库如下: https://github.com/yfblock/StarryOS/tree/sg2002 esp32 固件如下: https://github.com/yfblock/esp32-cam-firmware esp32-cam 的 uart0 连接到 sg2002 的 uart3 上,电机连接 pwm 4 5 6 7 芯片上,舵机控制连接在 uart2 上。 由于 sg2002 的 uart0 被复用为 pwm 4 5,所以在使用的时候如果需要调试,需要将 https://github.com/yfblock/StarryOS/blob/646f5ba6e874a63138ba1238e593f116d4cbcd34/api/src/vfs/dev/robo_ctl.rs#L265-L272 注释掉。 esp32 firmware 中含有测试的 python 文件,如果有usb 转串口可以在电脑上尝试,但是经过 usbipd 或者虚拟化后在 1.5Mbps 下可能会有问题(Linux x86_64 也是如此)。 如果 Starry 的调试信息输出过多可能会导致接收数据异常(由于 log 的时候会关闭中断,而串口信息通过中断接收,如果串口大量快速发送消息那么超过缓冲区后就会丢失数据,在整合 dma 后会恢复正常) |
Beta Was this translation helpful? Give feedback.
-
|
yfblock/sg200x-bsp@e31bd95 已经加入了 dma 控制器代码并且在 Starry 上测试了 uart 的 dma 操作,在目前小数据量的时候可以正常发送。大数据量和接收正在尝试。 |
Beta Was this translation helpful? Give feedback.
-
|
esp32-cam wifi 固件:https://github.com/[pengzechen/esp32_camera_mjpeg_multiclient](https://github.com/pengzechen/esp32_camera_mjpeg_multiclient) |
Beta Was this translation helpful? Give feedback.
-
|
小车 “摄像头捕获 推理 控制” Loop 效率最值得优化的点是模型量化。 200ms -> 50ms 大概能快四倍 |
Beta Was this translation helpful? Give feedback.
-
|
对系列的sg2002硬件平台支持的组件库,进行了修改整合提交,方便其他大库进行同步过去。 涉及到的StarryOS 适配 SG2002 的所有组件修改的说明:https://github.com/elliott10/axplat-riscv64-sg2002/blob/main/doc/sg2002-porting-components.md |
Beta Was this translation helpful? Give feedback.



Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
预期目标:
开发启动时间:2026.01.13
参考信息:
Beta Was this translation helpful? Give feedback.
All reactions