嵌入式技术论坛
直播中

卿小小_9e6

7年用户 2121经验值
擅长:可编程逻辑
私信 关注

【米尔百度大脑EdgeBoard边缘AI计算盒试用连载】IV. FZ5-DPU@2020.2(ZMJ)

本帖最后由 卿小小_9e6 于 2021-4-16 17:08 编辑

【米尔百度大脑EdgeBoard边缘AI计算盒试用连载】IV. FZ5-DPU@2020.2(ZMJ)
1.        简介

参考Vitis-AI(v1.2)在EdgeBoard-FZ5C上部署B4096DPU,完成DPU自检。

//------Vitis-AI(v1.2)相关教程

https://china.xilinx.com/html_docs/vitis_ai/1_2/index.html

//------DPU参考手册

《pg338-dpu.pdf》

2.        Vivado工程

尝试了两个版本B4096和B3136,综合考虑程序扩展性,B3136是最优解。如果无需扩展其他功能模块,直接使用B4096使DPU达到最大性能。

在配置DPU时,需要配置URAM使用数量,否则BRAM资源会溢出并报错。URAM的使用数量根据实际情况自行调节。

  1. //------使用URAM数量为0时,资源直接溢出。
  2. [DRC UTLZ-1] Resource utilization: LUT as Distributed RAM over-utilized in Top Level Design (This design requires more LUT as Distributed RAM cells than are available in the target device. This design requires 74502 of such cell types but only 57600 compatible sites are available in the target device. Please analyze your synthesis results and constraints to ensure the design is mapped to Xilinx primitives as expected. If so, please consider targeting a larger device. Please set tcl parameter "drc.disableLUTOverUtilError" to 1 to change this error to warning.)
3.        Petalinux工程

本节主要说明Petalinux中与DPU相关的操作。

3.1        Petalinux操作

参考附件FZ5C_Petalinux_readme.txt。

3.2.        设备树system-user.dtsi

参考附件system-user.dtsi。


4.        上板验证
4.1        部分指令及DPU验证
  1. //------查看系统已挂载模块
  2. lsmod
  3. //------安装DPU驱动
  4. insmod /lib/modules/5.4.0-xilinx-v2020.2/extra/dpu.ko
  5. //------解压DNNDK软件安装包并安装
  6. tar -zxvpf vitis-ai_v1.2_dnndk.tar.gz
  7. source ./install.sh
  8. //------DNNDK指令:DPU自检
  9. dexplorer -w
4.2        尚存问题

对网口的设备树配置有问题,导致网络不通,无法通过SSH连接,该问题暂未解决。

(后续使用原厂BSP做一个DPU工程测试一下,理论上可以解决网络问题)

  • IV-5_Error-eth0.png
  • IV-4_DPU-test.png
  • IV-3_dpu.ko.png
  • IV-2_IP-DPU-set.png
  • IV-1_Vivado-DPU.png

回帖(1)

卿小小_9e6

2021-4-19 20:27:46
摸个鱼,把网口Ping不通的问题解决了,是设备树里关于gem3的描述有问题,修正后OK。
//------设备树文件system-user.dtsi
使用的时候注意设备树文件的名字是“system-user.dtsi”
举报
  • IV-6_OK-eth0-ssh.png

更多回帖

发帖
×
20
完善资料,
赚取积分