clearlinux / distribution

Placeholder repository to allow filing of general bugs/issues/etc against the Clear Linux OS for Intel Architecture linux distribution
522 stars 29 forks source link

Movidius VPU support not complete for dldt package #975

Open ngaloppo opened 5 years ago

ngaloppo commented 5 years ago

The computer-vision-basic package was recently updated to support dldt 2019.R1.1 with support for Movidius VPUs. However, the Clear Linux integration did not work out of the box. Following were the steps I needed to complete to make it working on my system:

swupd bundle-add computer-vision-basic
pushd /tmp
wget https://download.01.org/opencv/2019/openvinotoolkit/R1/inference_engine/firmware_ma2480_mdk_R7_9.zip
unzip firmware_ma2480_mdk_R7_9.zip
# this probably needs to be added to install_append in the clearlinux-pkgs/dldt since the build scripts already pull down the above archive
sudo mv mvnc/MvNCAPI-ma2480.mvcmd /usr/lib64
rm -rf firmware* mvnc*
popd

# looks like udev needs a user to be in the users group for it to be able to have access to udev devices?
sudo usermod -a -G users "$(whoami)"

# not sure if I need this, but did this before the command above
sudo udevadm control --reload-rules
sudo udevadm trigger
sudo ldconfig
ahkok commented 5 years ago

related, perhaps? https://github.com/opencv/dldt/issues/170

ahkok commented 5 years ago

Seems upstream issues...

ngaloppo commented 5 years ago

Possibly, but not sure. You see, the Clear Linux package has a patch that removes the "download" of the firmware, and puts it into a different (temporary) location. Which means that the vpu_copy_firmware custom target in dldt/CmakeLists.txt probably will fail?