Skip to content
This repository was archived by the owner on Apr 18, 2026. It is now read-only.
This repository was archived by the owner on Apr 18, 2026. It is now read-only.

Building on Armbian #45

Description

@oneofthemany

I have had to create the following shebang which allows me to build on Armbian using debian 12 Boookworm:

#!/bin/bash

if [[ $EUID -ne 0 ]]; then
  echo "YOU MUST BE ROOT TO RUN THIS SCRIPT."
  exit 1
fi

set -e

# Add the Coral repo
echo "deb https://packages.cloud.google.com/apt coral-edgetpu-stable main" | sudo tee /etc/apt/sources.list.d/coral-edgetpu.list

# Download the key and place it in the trusted keyring directory
curl -fsSL https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo gpg --dearmor -o /usr/share/keyrings/coral-edgetpu.gpg

# Updaterepo list to use the new key location
echo "deb [signed-by=/usr/share/keyrings/coral-edgetpu.gpg] https://packages.cloud.google.com/apt coral-edgetpu-stable main" | sudo tee /etc/apt/sources.list.d/coral-edgetpu.list

# Update package lists
sudo apt update


# Move to opt and clone repo
cd /opt || exit
git clone https://github.com/google/gasket-driver.git
cd gasket-driver || exit

# Fetch Kernel 6 Patch
git fetch origin pull/26/head:fix-kernel-6
git checkout fix-kernel-6

# Edit the Patch source for basket_core.c
sed -i 's/\.llseek = no_llseek,/\.llseek = noop_llseek,/' src/gasket_core.c

# Write dkms.conf
cat <<EOF > dkms.conf
PACKAGE_NAME="gasket"
PACKAGE_VERSION="1.0"
CLEAN="make -C src clean"
MAKE="make -C /var/lib/dkms/gasket/1.0/build/src KERNELRELEASE=\${kernelver} -f /var/lib/dkms/gasket/1.0/build/src/Makefile"
BUILT_MODULE_NAME[0]="gasket"
BUILT_MODULE_NAME[1]="apex"
DEST_MODULE_LOCATION[0]="/updates/dkms"
DEST_MODULE_LOCATION[1]="/updates/dkms"
AUTOINSTALL="yes"
EOF

# Copy necessary file to build dir
cp src/* "$PWD"/.

# Copy the entire driver directory (with dkms.conf + Makefile at root)
sudo rsync -a --exclude='.git' ./ /usr/src/gasket-1.0/

# DKMS steps
dkms remove gasket/1.0 --all || true
dkms add -m gasket -v 1.0
dkms build -m gasket -v 1.0
dkms install -m gasket -v 1.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions