Package Details: gasket-dkms 1.0-1

Git Clone URL: https://aur.archlinux.org/gasket-dkms.git (read-only, click to copy)
Package Base: gasket-dkms
Description: Google Coral driver for PCIe-based Edge TPU devices, such as the M.2 and Mini PCIe Accelerator
Upstream URL: https://coral.withgoogle.com/
Licenses: GPL2
Submitter: benalexau
Maintainer: None
Last Packager: benalexau
Votes: 2
Popularity: 0.000032
First Submitted: 2021-08-20 07:47 (UTC)
Last Updated: 2022-03-02 22:01 (UTC)

Dependencies (3)

Required by (0)

Sources (2)

Latest Comments

mjc506 commented on 2023-09-30 20:06 (UTC)

Just pushed a -git package: https://aur.archlinux.org/packages/gasket-dkms-git

My first package, and rather concerningly it all seemed to work first time... so any comments etc more than welcome!

calebmckay commented on 2023-09-18 05:13 (UTC) (edited on 2023-09-18 05:14 (UTC) by calebmckay)

This package is NOT out of date. This pkgbuild is for the latest RELEASE, which at the moment 1.0-18. Yes, you will probably have issues with the latest kernels - it is built, and only built, for Debian and related distros. If you want to use the released package, then use an LTS kernel. This package really should be renamed with a -bin to avoid confusion. If you want to incorporate the latest changes from the source tree, a new -git package should be created. Issues with the program itself should be reported upstream.

hcgonzalezpr commented on 2023-09-17 15:33 (UTC)

There a new updated source tree from google located at : https://github.com/google/gasket-driver

kexis commented on 2023-07-04 19:55 (UTC)

Kernel 6.4 changed class_create which causes this to fail. I made these changes to fix it which seem to work.

class_create.patch

diff --git a/src/gasket_core.c b/src/gasket_core.c
index 139616b..978c5ce 100644
--- a/src/gasket_core.c
+++ b/src/gasket_core.c
@@ -1837,8 +1837,7 @@ int gasket_register_device(const struct gasket_driver_desc *driver_desc)
        internal = &g_descs[desc_idx];
        mutex_init(&internal->mutex);
        memset(internal->devs, 0, sizeof(struct gasket_dev *) * GASKET_DEV_MAX);
-       internal->class =
-               class_create(driver_desc->module, driver_desc->name);
+       internal->class = class_create(driver_desc->name);

        if (IS_ERR(internal->class)) {
                pr_err("Cannot register %s class [ret=%ld]\n",

PKGBUILD

diff --git a/PKGBUILD b/../../PKGBUILD
index 378c258..73387be 100644
--- a/PKGBUILD
+++ b/../../PKGBUILD
@@ -3,7 +3,7 @@
 pkgname=gasket-dkms
 _pkgname=gasket
 pkgver=1.0
-pkgrel=2
+pkgrel=3
 pkgdesc='Google Coral driver for PCIe-based Edge TPU devices, such as the M.2 and Mini PCIe Accelerator'
 arch=('x86_64' 'armv7h' 'aarch64')
 url='https://coral.withgoogle.com/'
@@ -22,9 +22,12 @@ source_armv7h=(
 source_aarch64=(
   'gasket-dkms_1.0-18.deb::https://packages.cloud.google.com/apt/pool/gasket-dkms_1.0-18_all_00606bc20aed9a7d2a9da7a6d51a87dbc7f275be392fb3e1131ef6f627a49168.deb'
 )
+source=('class_create.patch')
+
 sha256sums_x86_64=('00606bc20aed9a7d2a9da7a6d51a87dbc7f275be392fb3e1131ef6f627a49168')
 sha256sums_armv7h=('00606bc20aed9a7d2a9da7a6d51a87dbc7f275be392fb3e1131ef6f627a49168')
 sha256sums_aarch64=('00606bc20aed9a7d2a9da7a6d51a87dbc7f275be392fb3e1131ef6f627a49168')
+sha256sums=('83045b9df018e2c42b698f5723c4faefd48a273c7461bda56dd42f6ddacc9ccf')

 noextract=(
     'gasket-dkms_1.0-18.deb'
@@ -34,6 +37,10 @@ build() {
   mkdir -p ${srcdir}/gasket-dkms/
   ar x ${srcdir}/gasket-dkms_1.0-18.deb
   tar -xJf data.tar.xz -C ${srcdir}/gasket-dkms/
+  ls ${srcdir}/gasket-dkms/usr/src/${_pkgname}-${pkgver}/
+  pushd ${srcdir}/gasket-dkms/usr/src/${_pkgname}-${pkgver}/
+  patch -p2 < ${srcdir}/class_create.patch
+  popd
 }

 package() {

benalexau commented on 2022-03-04 22:57 (UTC)

@elgorrovich, I don't think that error is related to this package. The PKGBUILD depends on the dkms package, and that in turn depends on linux-headers. As such try a full package update (pacman -Syu) and reboot before trying to build gasket-dkms.

elgorrovich commented on 2022-03-03 08:08 (UTC)

ERROR: Missing 5.15.24-3-rpi-ARCH kernel headers for module gasket/1.0.

https://pkgs.org/download/linux-rpi is 5.15.25(...) Is it a typo or am I missing something?