LattePanda 安装ubuntu 20.04 和 openvino

本文详述了在LattePanda Delta上安装Ubuntu 20.04和OpenVINO 2020.4的过程,包括Ubuntu系统的安装、分区配置、硬件驱动验证,以及解决OpenVINO依赖问题和手动编译安装的步骤。最后成功运行并测试了神经网络模型。
摘要由CSDN通过智能技术生成

LattePanda 安装ubuntu 20.04 和 openvino 2020.4

硬件:

  • LattePanda Delta
  • M.2 SSD
  • Intel Neural Computer Stick 2
  • USB stick 8G

软件:

  • ubuntu 20.04
  • openvino

第一部分,ubuntu 20.04 系统安装

首先,下载 ubuntu 20.04 iso 文件,然后制作USB 启动盘;Mac 下可以用Disk Utility 工具,将 U盘分区抹去,选择 MS FAT 格式,GUID分区方案
usb partition
然后用 etcher刻录
etcher 界面
刻录完成后,插入 LattePanda,再接入鼠标和键盘,显示器。
启动LattePanda Delta 后,多按几次 Del 键,会进入 bios 设置界面。
将U盘设置为第一启动盘,保存退出。
出现ubuntu grub安装界面,选择安装即可,我这里选择了 oem 方式玩玩。
在这里插入图片描述

系统会显示 LattePanda 的 logo
在这里插入图片描述
选择分区方案时,我采用了自定义,以免破坏原来的windows 10 系统;ubuntu 17 开始,不再使用 swap 分区,将所有空闲空间都划分为 ext4 格式,挂载为 root 。
在这里插入图片描述
然后就是耐心等待了。
在这里插入图片描述
如果你的网络不是特别好,最好跳过所有的在线更新,等后面更改了apt源镜像后,再安装不迟。
安装完成后,拔出U盘,重启,这里无需额外bios设置,启动盘会是ubuntu,进入桌面后,因为我是OEM安装,再运行一下 oem-config ,来创建最终用户。
在这里插入图片描述
重启进入桌面后,主要硬件看起来都工作正常。
显卡 ok, 可以驱动4K 显示器。
蓝牙 ok
wifi ok , 可以连上热点。
声卡 ok,可以听到启动音乐。
在这里插入图片描述
更改apt源镜像,更新系统
在这里插入图片描述

通过 Visual Studio Code Insider,安装 PlatformIO 后,刷写 Arduino 也正常,简单跑了个 Python 程序刷新 oled 屏幕也正常。
看起来一切正常,无需我额外关注硬件驱动。

第二部分,openvino 及 intel neural computer stick2 驱动

因为在linux 下安装 openvino 许多次了,习惯性下载了最新的 2020.4 安装包,开始执行依赖安装脚本。
出错了,许多包文件找不到。

E: Unable to locate package gudev-1.0
E: Unable to locate package libusb-1.0.0-dev
E: Package 'libfluidsynth1' has no installation candidate
E: Unable to locate package libnettle6
E: Unable to locate package libopenexr22
E: Unable to locate package python3.6
E: Unable to locate package libpython3.6

于是手动修改依赖安装脚本,将出错的包名更换为 逗号后面的新包名,再删除 python3.6 的依赖。

$ vi ./install_openvino_dependencies.sh

E: Unable to locate package gudev-1.0 ,libgudev-1.0-dev
E: Unable to locate package libusb-1.0.0-dev, libusb-1.0-0-dev
E: Package 'libfluidsynth1' has no installation candidate, libfluidsynth2
E: Unable to locate package libnettle6, libnettle7
E: Unable to locate package libopenexr22, libopenexr24

这次安装成功了。

panda@Panda:~/git/l_openvino_toolkit_p_2020.4.287$ sudo -E ./install_openvino_dependencies.sh

This script installs the following OpenVINO 3rd-party dependencies:
  1. GTK+, FFmpeg and GStreamer libraries used by OpenCV
  2. libusb library required for Myriad plugin for Inference Engine
  3. build dependencies for OpenVINO samples
  4. build dependencies for GStreamer Plugins

Hit:1 https://mirrors.tuna.tsinghua.edu.cn/ubuntu focal InRelease
Get:2 https://mirrors.tuna.tsinghua.edu.cn/ubuntu focal-updates InRelease [111 kB]
Get:3 https://mirrors.tuna.tsinghua.edu.cn/ubuntu focal-backports InRelease [98.3 kB]

然后是 openvino 库安装,自检时依然抱怨不满足先决条件,查看详细信息,发现OS最高支持到 ubuntu 18.04。

Prerequisites > Missing Prerequisite
--------------------------------------------------------------------------------
Detected operating system is not supported. Supported operating systems for this
release are: 
    - CentOS* 7 (Intel(R) 64);
    - Ubuntu* 16.04 (Intel(R) 64), 18.04 (Intel(R) 64);
    - Yocto  (Intel(R) 64);

--------------------------------------------------------------------------------

   1. See next issue [ default ]
   2. Back to Prerequisite summary dialog

   h. Help
   b. Back
   q. Quit installation

忽视警告强行安装后,很多关键库文件都没有安装。

--------------------------------------------------------------------------------
Install location:
    /opt/intel


The following components will be installed:
    Model Optimizer                                                          4MB
        Model Optimizer Tool                                                 4MB

    Deep Learning Workbench                                                 10MB
        Deep Learning Workbench                                             10MB

    Open Model Zoo                                                          58MB
        Open Model Zoo                                                      58MB

    Intel(R) Media SDK                                                     128MB
        Intel(R) Media SDK                                                 128MB

   Install space required:  292MB

Installation
--------------------------------------------------------------------------------
Each component will be installed individually. If you cancel the installation,
some components might remain on your system. This installation may take several 
minutes, depending on your system and the options you selected.
--------------------------------------------------------------------------------
Installing Model Optimizer Tool component... done
--------------------------------------------------------------------------------
Installing Deep Learning Workbench component... done
--------------------------------------------------------------------------------
Installing Open Model Zoo component... done
--------------------------------------------------------------------------------
Installing Intel(R) Media SDK component... done
--------------------------------------------------------------------------------
Finalizing product configuration...
--------------------------------------------------------------------------------








First Part of Installation is Complete
--------------------------------------------------------------------------------
The first part of Intel® Distribution of OpenVINO™ toolkit 2020.4 for Linux*
has been successfully installed in 
/opt/intel/openvino_2020.4.287.

于是决定自行编译安装。

首先从 这里 https://github.com/openvinotoolkit/openvino 下载源代码。
再更新子模块

git submodule update --init --recursive

这里就不编译 opencv 了,太耗时间,用现成的 4.2 ,

sudo apt install  libopencv-dev python3-opencv
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  autoconf aut
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值