Rock3/dev/install-coral-pcie-driver-and edge tpu-runtime-packages
ROCK 3 > Development > Install the Coral PCIe driver and Edge TPU runtime packages
Contents
- 1 Description
- 2 Operations on ROCK 3A
- 2.1 Step 1.Install Debian image
- 2.2 Step 2.Modify file /etc/apt/sources.list.d/apt-radxa-com.list like this (optional)
- 2.3 Step 3.Update and install needed packages
- 2.4 Step 4.Recompile dependent libraries
- 2.5 Step 5.Set proxy to get apt-key, packages gasket-dkms libedgetpu1-std (optional)
- 2.6 Step 6.Install Coral PCIe driver and Edge TPU runtime packages
- 2.7 Step 7.Check installed packages version
- 3 Troubleshooting
Description
This guide tells about how to install the Coral PCIe driver and Edge TPU runtime packages.
photo credits augmntLABS inc.
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.