cd /news/ai-chips/installing-google-coral-tpu-gasket-d… · home topics ai-chips article
[ARTICLE · art-20333] src=grigio.org pub= topic=ai-chips verified=true sentiment=· neutral

Installing Google Coral TPU Gasket Driver on Debian with Kernel Linux 7.x

Google's official gasket-driver repository for Coral TPU support has been abandoned as of April 2026, breaking compatibility with Debian 13/Trixie running kernel 6.13+. A community-maintained fork now provides a pre-built DEB package and patched source code to fix the `MODULE_IMPORT_NS` macro change and `no_llseek` deprecation required for kernel 7.x compatibility.

read1 min publishedMay 11, 2026

Note: Google's official gasket-driver repo is now archived/abandoned as of April 2026. This guide uses the community-maintained fork.

Why This Guide?

The official gasket-driver

from Google is abandoned. On Debian 13/Trixie with kernel 6.13+, the MODULE_IMPORT_NS

macro changed and requires quotes: MODULE_IMPORT_NS("DMA_BUF")

instead of MODULE_IMPORT_NS(DMA_BUF)

.

This guide shows how to patch and build it yourself.

Prerequisites #

sudo apt update
sudo apt install -y git dkms build-essential linux-headers-$(uname -r)

Method 1: Pre-built DEB (easiest) #

Download the community-maintained package:

wget https://github.com/feranick/gasket-driver/releases/download/1.0-18.4/gasket-dkms_1.0-18.4_all.deb
sudo dpkg -i gasket-dkms_1.0-18.4_all.deb

If it fails, try Method 2. #

1. Clone the repository

git clone https://github.com/google/gasket-driver.git
cd gasket-driver/src

2. Apply patches for kernel 6.13+ / 7.x

sed -i 's/no_llseek/noop_llseek/g' gasket_core.c
sed -i 's/MODULE_IMPORT_NS(DMA_BUF)/MODULE_IMPORT_NS("DMA_BUF")/g' gasket_page_table.c

3. Build the package

cd ..
dpkg-buildpackage -us -uc -tc -b
cd ..
sudo dpkg -i gasket-dkms_1.0-*.deb

Verify Installation #

lsmod | grep -E 'gasket|apex'
ls /dev/apex_0
lspci -nn | grep -i apex

Expected output:

04:00.0 System peripheral [0880]: Global Unichip Corp. Coral Edge TPU [1ac1:089a]

Troubleshooting #

"DMA_BUF undeclared"

You need the MODULE_IMPORT_NS("DMA_BUF")

patch. The kernel API changed in 6.13.

"no_llseek undefined"

Apply the noop_llseek

patch or remove the .llseek = no_llseek

line.

Clean previous failed installs

sudo rm -rf /var/lib/dkms/gasket
sudo apt purge gasket-dkms
sudo dpkg --configure -a
── more in #ai-chips 4 stories · sorted by recency
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/installing-google-co…] indexed:0 read:1min 2026-05-11 ·