Notes to Self

Alex Sokolsky's Notes on Computers and Programming

Coral Edge TPU

M.2 Accelerator B+M key, datasheet.

After installing, presents itself as a PCI device

03:00.0 System peripheral: Global Unichip Corp. Coral Edge TPU

Checkl secure boot status:

> mokutil --sb-state
SecureBoot disabled

Instruction for driver installation are broken for kernel 6.5.

Had to build the driver locally:

git clone https://github.com/google/gasket-driver.git
cd gasket-driver/
debuild -us -uc -tc -b

Ignore the lint error message.

cd ..
sudo dpkg -i gasket-dkms_1.0-18_all.deb

Reboot, verify success:

> lspci -nnkq
...
04:00.0 System peripheral [0880]: Global Unichip Corp. Coral Edge TPU [1ac1:089a]
	Subsystem: Global Unichip Corp. Coral Edge TPU [1ac1:089a]
	Kernel driver in use: apex
	Kernel modules: apex

Verify the device presence:

# ls -al /dev/apex*
crw-rw---- 1 root root 120, 0 Jan  2 13:52 /dev/apex_0