Please enable javascript, or click here to visit my ecommerce web site powered by Shopify.
Jump to: navigation, search

Rock3/dev/build-gasket-dkkms

< Rock3‎ | dev
Revision as of 02:26, 16 September 2021 by Stephen (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
    ROCK 3 >  Development >  Install the Coral PCIe driver and Edge TPU runtime packages

Description

This guide tells about how to install the Coral PCIe driver and Edge TPU runtime packages

Operations on ROCK 3A

Step 1.Install Debian image

Get system image from Downloads.

Here I use this one Debian image.

Step 2.Modify file /etc/apt/sources.list.d/apt-radxa-com.list like this (optional)

root@rock3a:~# cat /etc/apt/sources.list.d/apt-radxa-com.list 
deb http://apt.radxa.com/buster-stable/ buster main
deb http://apt.radxa.com/buster-testing/ buster main

Step 3.Update and install needed packages

root@rock3a:~# apt update
root@rock3a:~# apt install -y python libssl-dev make gcc curl

Step 4.Recompile dependent libraries

root@rock3a:~# cd /usr/src/linux-headers-$(uname -r)
root@rock3a:/usr/src/linux-headers-4.19.193-10-rockchip-g152e34a538b4#
root@rock3a:/usr/src/linux-headers-4.19.193-10-rockchip-g152e34a538b4# make scripts

Step 5.Set proxy to get apt-key, packages gasket-dkms libedgetpu1-std (optional)

root@rock3a:~# export http_proxy=http://192.168.2.114:7890
root@rock3a:~# export https_proxy=http://192.168.2.114:7890

Step 6.Install Coral PCIe driver and Edge TPU runtime packages

root@rock3a:~# echo "deb https://packages.cloud.google.com/apt coral-edgetpu-stable main" | sudo tee /etc/apt/sources.list.d/coral-edgetpu.list
curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -
root@rock3a:~# apt-get update
root@rock3a:~# apt-get install -y gasket-dkms libedgetpu1-std

Step 7.Check installed packages version

root@rock3a:~# dpkg -l gasket-dkms 
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name           Version      Architecture Description
+++-==============-============-============-=================================
ii  gasket-dkms    1.0-17       all          DKMS source for the gasket driver
root@rock3a:~# dpkg -l libedgetpu1-std
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                  Version      Architecture Description
+++-=====================-============-============-=================================
ii  libedgetpu1-std:arm64 16.0         arm64        Support library for Edge TPU

Now we see the Coral PCIe driver and Edge TPU runtime packages are installed successfully.

Troubleshooting

Check ROCK 3 FAQs first, if it doesn't help, start a new post on the forum https://forum.radxa.com/c/rock3.