wutianze / dnndk-pynqz2

First lesson for you to use DNNDK, also it can be helpful for your AI learning
64 stars 26 forks source link

[DNNDK] fail to open DPU device and exit ... #12

Closed ghost closed 3 years ago

ghost commented 3 years ago

请问在Running Applications on PYNQ-Z2的步骤下,2和3步骤具体如何执行呀? 这个rootfs.tar.gz在哪里呀?

  1. Copy <PROJ ROOT>/pynq-z2-dpu/images/linux/image.ub, BOOT.BIN and rootfs.tar.gz to the sdcard directory.
cp ./images/linux/BOOT.BIN /media/$(whoami)/BOOT/
cp ./images/linux/image.ub /media/$(whoami)/BOOT/
  1. Extract rootfs.tar.gz to rootfs ext4 partition

    tar xzf ./images/linux/rootfs.tar.gz -C /media/$(whoami)/rootfs/
  2. Copy yolo and dnndk to the sdcard and sync.

    
    cp -r ../sdcard/* /media/$(whoami)/rootfs/home/root/
    sync
wutianze commented 3 years ago

请问在Running Applications on PYNQ-Z2的步骤下,2和3步骤具体如何执行呀? 这个rootfs.tar.gz在哪里呀?

  1. Copy <PROJ ROOT>/pynq-z2-dpu/images/linux/image.ub, BOOT.BIN and rootfs.tar.gz to the sdcard directory.
cp ./images/linux/BOOT.BIN /media/$(whoami)/BOOT/
cp ./images/linux/image.ub /media/$(whoami)/BOOT/
  1. Extract rootfs.tar.gz to rootfs ext4 partition
tar xzf ./images/linux/rootfs.tar.gz -C /media/$(whoami)/rootfs/
  1. Copy yolo and dnndk to the sdcard and sync.
cp -r ../sdcard/* /media/$(whoami)/rootfs/home/root/
sync

https://github.com/wutianze/dnndk-pynqz2/blob/master/build-pynqz2-system.md这里有提供相关文件的百度网盘下载链接,里面有

ghost commented 3 years ago

这个里面就只是一个镜像文件,我已经下载并烧录到sd卡了,能留个qq交流下吗?

ghost commented 3 years ago

烧录到sd卡后,根据你的Running Applications on PYNQ-Z2,我就不太明白你的Copy /pynq-z2-dpu/images/linux/image.ub, BOOT.BIN and rootfs.tar.gz to the sdcard directory.这是怎么执行的?是你的上位机里操作,还是在z2的系统里?

wutianze commented 3 years ago

烧录到sd卡后,根据你的Running Applications on PYNQ-Z2,我就不太明白你的Copy /pynq-z2-dpu/images/linux/image.ub, BOOT.BIN and rootfs.tar.gz to the sdcard directory.这是怎么执行的?是你的上位机里操作,还是在z2的系统里?

你直接下载镜像的话镜像里应该都已经拷贝好了,你只要最后检查一下sd卡里有没有这些文件即可。

ghost commented 3 years ago

sd卡里应该没有rootfs.tar.gz,而且也无法cd到/home/root,管理员权限也不行,提示没有这个目录

------------------ 原始邮件 ------------------ 发件人: "sauron"<notifications@github.com>; 发送时间: 2020年10月21日(星期三) 下午2:19 收件人: "wutianze/dnndk-pynqz2"<dnndk-pynqz2@noreply.github.com>; 抄送: "3099160167"<3099160167@qq.com>; "Author"<author@noreply.github.com>; 主题: Re: [wutianze/dnndk-pynqz2] [DNNDK] fail to open DPU device and exit ... (#12)

烧录到sd卡后,根据你的Running Applications on PYNQ-Z2,我就不太明白你的Copy /pynq-z2-dpu/images/linux/image.ub, BOOT.BIN and rootfs.tar.gz to the sdcard directory.这是怎么执行的?是你的上位机里操作,还是在z2的系统里?

你直接下载镜像的话镜像里应该都已经拷贝好了,你只要最后检查一下sd卡里有没有这些文件即可。

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

ghost commented 3 years ago

我电脑上看sd卡里就boot.bin和image.ub

ghost commented 3 years ago

会不会是提供的镜像有点问题呀?😂

wutianze commented 3 years ago

sd卡里应该没有rootfs.tar.gz,而且也无法cd到/home/root,管理员权限也不行,提示没有这个目录 ------------------ 原始邮件 ------------------ 发件人: "sauron"<notifications@github.com>; 发送时间: 2020年10月21日(星期三) 下午2:19 收件人: "wutianze/dnndk-pynqz2"<dnndk-pynqz2@noreply.github.com>; 抄送: "3099160167"<3099160167@qq.com>; "Author"<author@noreply.github.com>; 主题: Re: [wutianze/dnndk-pynqz2] [DNNDK] fail to open DPU device and exit ... (#12) 烧录到sd卡后,根据你的Running Applications on PYNQ-Z2,我就不太明白你的Copy /pynq-z2-dpu/images/linux/image.ub, BOOT.BIN and rootfs.tar.gz to the sdcard directory.这是怎么执行的?是你的上位机里操作,还是在z2的系统里? 你直接下载镜像的话镜像里应该都已经拷贝好了,你只要最后检查一下sd卡里有没有这些文件即可。 — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

那照着前面的流程做下来有生成rootfs.tar.gz吗

wutianze commented 3 years ago

会不会是提供的镜像有点问题呀?😂

我在项目首页提供了已经配置完的镜像,所以后来很少会有人从头build一遍,不知道你是否有拿到如图的这些文件。 image

ghost commented 3 years ago

会不会是提供的镜像有点问题呀?😂

我在项目首页提供了已经配置完的镜像,所以后来很少会有人从头build一遍,不知道你是否有拿到如图的这些文件。 image

我拿到的文件只有镜像以及github你上传的dnndk-pynqz2-master,没有图上大部分文件,图中的文件,boot.bin,image.ub和sdcard下的有,其他没有。

wutianze commented 3 years ago

会不会是提供的镜像有点问题呀?😂

我在项目首页提供了已经配置完的镜像,所以后来很少会有人从头build一遍,不知道你是否有拿到如图的这些文件。 image

我拿到的文件只有镜像以及github你上传的dnndk-pynqz2-master,没有图上大部分文件,图中的文件,boot.bin,image.ub和sdcard下的有,其他没有。

你按照步骤用vivado做了吗?我感觉你前面的那些步骤是不是都没有做?其实如果你不是需要自己去定制dpu里的内容,可以直接下README里提供的镜像