google / gasket-driver

GNU General Public License v2.0
47 stars 29 forks source link

Failed to install gasket-driver #21

Closed Weyla closed 8 months ago

Weyla commented 8 months ago

Hi!

I am trying to set up a pcie tpu based on the coral docs: https://coral.ai/docs/m2/get-started/#2-install-the-pcie-driver-and-edge-tpu-runtime

I am running a freshly installed proxmox, downloaded the pve headers for my kernel(6.5.11-4-pve), but it seems to return this exit status 10 every time and I cant get ls /dev/apex_0 to output anything. I tried to install various older versions of proxmox to test it with older kernels, but non of them helped. I tried running an Ubunutu 22.04.03 VM and that fails aswell.

Here is the output from installing the packages on a freshly built proxmox with the pve header downloaded:

root@sagemcom:~# apt-get install gasket-dkms libedgetpu1-std Reading package lists... Done Building dependency tree... Done Reading state information... Done The following additional packages will be installed: build-essential cpp cpp-12 dkms dpkg-dev fakeroot g++ g++-12 gcc gcc-12 libabsl20220623 libalgorithm-diff-perl libalgorithm-diff-xs-perl libalgorithm-merge-perl libaom3 libasan8 libatomic1 libavif15 libc-dev-bin libc-devtools libc6-dev libcc1-0 libcrypt-dev libdav1d6 libde265-0 libdeflate0 libdpkg-perl libfakeroot libfile-fcntllock-perl libgav1-1 libgcc-12-dev libgd3 libgomp1 libheif1 libisl23 libitm1 libjbig0 liblerc4 liblsan0 libmpc3 libmpfr6 libnsl-dev libquadmath0 librav1e0 libstdc++-12-dev libsvtav1enc1 libtiff6 libtirpc-dev libtsan2 libubsan1 libwebp7 libx265-199 libxpm4 libyuv0 linux-libc-dev lsb-release make manpages-dev patch pve-headers-6.1 pve-headers-6.1.10-1-pve rpcsvc-proto sudo Suggested packages: cpp-doc gcc-12-locales cpp-12-doc menu debian-keyring g++-multilib g++-12-multilib gcc-12-doc gcc-multilib autoconf automake libtool flex bison gdb gcc-doc gcc-12-multilib glibc-doc git bzr libgd-tools libstdc++-12-doc make-doc ed diffutils-doc The following NEW packages will be installed: build-essential cpp cpp-12 dkms dpkg-dev fakeroot g++ g++-12 gasket-dkms gcc gcc-12 libabsl20220623 libalgorithm-diff-perl libalgorithm-diff-xs-perl libalgorithm-merge-perl libaom3 libasan8 libatomic1 libavif15 libc-dev-bin libc-devtools libc6-dev libcc1-0 libcrypt-dev libdav1d6 libde265-0 libdeflate0 libdpkg-perl libedgetpu1-std libfakeroot libfile-fcntllock-perl libgav1-1 libgcc-12-dev libgd3 libgomp1 libheif1 libisl23 libitm1 libjbig0 liblerc4 liblsan0 libmpc3 libmpfr6 libnsl-dev libquadmath0 librav1e0 libstdc++-12-dev libsvtav1enc1 libtiff6 libtirpc-dev libtsan2 libubsan1 libwebp7 libx265-199 libxpm4 libyuv0 linux-libc-dev lsb-release make manpages-dev patch pve-headers-6.1 pve-headers-6.1.10-1-pve rpcsvc-proto sudo 0 upgraded, 65 newly installed, 0 to remove and 0 not upgraded. Need to get 85.8 MB of archives. After this operation, 374 MB of additional disk space will be used. Do you want to continue? [Y/n] Get:1 http://download.proxmox.com/debian/pve bookworm/pve-no-subscription amd64 pve-headers-6.1.10-1-pve amd64 6.1.10-1 [13.4 MB] Get:2 http://ftp.debian.org/debian bookworm/main amd64 lsb-release all 12.0-1 [6,416 B]
Get:3 http://security.debian.org/debian-security bookworm-security/main amd64 libc-dev-bin amd64 2.36-9+deb12u3 [45.2 kB]
Get:4 https://packages.cloud.google.com/apt coral-edgetpu-stable/main amd64 gasket-dkms all 1.0-18 [48.0 kB]
Get:5 http://ftp.debian.org/debian bookworm/main amd64 libisl23 amd64 0.25-1 [690 kB]
Get:6 https://packages.cloud.google.com/apt coral-edgetpu-stable/main amd64 libedgetpu1-std amd64 16.0 [387 kB]
Get:7 http://security.debian.org/debian-security bookworm-security/main amd64 libc6-dev amd64 2.36-9+deb12u3 [1,898 kB]
Get:8 http://download.proxmox.com/debian/pve bookworm/pve-no-subscription amd64 pve-headers-6.1 all 7.3-4 [4,320 B]
Get:9 http://ftp.debian.org/debian bookworm/main amd64 libmpfr6 amd64 4.2.0-1 [701 kB]
Get:10 http://ftp.debian.org/debian bookworm/main amd64 libmpc3 amd64 1.3.1-1 [51.5 kB] Get:11 http://ftp.debian.org/debian bookworm/main amd64 cpp-12 amd64 12.2.0-14 [9,764 kB] Get:12 http://security.debian.org/debian-security bookworm-security/main amd64 libtiff6 amd64 4.5.0-6+deb12u1 [316 kB] Get:13 http://security.debian.org/debian-security bookworm-security/main amd64 libxpm4 amd64 1:3.5.12-1.1+deb12u1 [48.6 kB]
Get:14 http://security.debian.org/debian-security bookworm-security/main amd64 libc-devtools amd64 2.36-9+deb12u3 [52.9 kB]
Get:15 http://ftp.debian.org/debian bookworm/main amd64 cpp amd64 4:12.2.0-3 [6,836 B]
Get:16 http://ftp.debian.org/debian bookworm/main amd64 libcc1-0 amd64 12.2.0-14 [41.7 kB]
Get:17 http://ftp.debian.org/debian bookworm/main amd64 libgomp1 amd64 12.2.0-14 [116 kB]
Get:18 http://ftp.debian.org/debian bookworm/main amd64 libitm1 amd64 12.2.0-14 [26.1 kB]
Get:19 http://ftp.debian.org/debian bookworm/main amd64 libatomic1 amd64 12.2.0-14 [9,328 B]
Get:20 http://ftp.debian.org/debian bookworm/main amd64 libasan8 amd64 12.2.0-14 [2,195 kB]
Get:21 http://ftp.debian.org/debian bookworm/main amd64 liblsan0 amd64 12.2.0-14 [969 kB]
Get:22 http://ftp.debian.org/debian bookworm/main amd64 libtsan2 amd64 12.2.0-14 [2,196 kB]
Get:23 http://ftp.debian.org/debian bookworm/main amd64 libubsan1 amd64 12.2.0-14 [883 kB]
Get:24 http://ftp.debian.org/debian bookworm/main amd64 libquadmath0 amd64 12.2.0-14 [144 kB]
Get:25 http://ftp.debian.org/debian bookworm/main amd64 libgcc-12-dev amd64 12.2.0-14 [2,437 kB]
Get:26 http://ftp.debian.org/debian bookworm/main amd64 gcc-12 amd64 12.2.0-14 [19.3 MB]
Get:27 http://ftp.debian.org/debian bookworm/main amd64 gcc amd64 4:12.2.0-3 [5,216 B]
Get:28 http://ftp.debian.org/debian bookworm/main amd64 libdpkg-perl all 1.21.22 [603 kB]
Get:29 http://ftp.debian.org/debian bookworm/main amd64 patch amd64 2.7.6-7 [128 kB]
Get:30 http://ftp.debian.org/debian bookworm/main amd64 make amd64 4.3-4.1 [396 kB]
Get:31 http://ftp.debian.org/debian bookworm/main amd64 dpkg-dev all 1.21.22 [1,353 kB]
Get:32 http://ftp.debian.org/debian bookworm/main amd64 linux-libc-dev amd64 6.1.55-1 [1,870 kB]
Get:33 http://ftp.debian.org/debian bookworm/main amd64 libcrypt-dev amd64 1:4.4.33-2 [118 kB]
Get:34 http://ftp.debian.org/debian bookworm/main amd64 libtirpc-dev amd64 1.3.3+ds-1 [191 kB]
Get:35 http://ftp.debian.org/debian bookworm/main amd64 libnsl-dev amd64 1.3.0-2 [66.4 kB]
Get:36 http://ftp.debian.org/debian bookworm/main amd64 rpcsvc-proto amd64 1.4.3-1 [63.3 kB]
Get:37 http://ftp.debian.org/debian bookworm/main amd64 libstdc++-12-dev amd64 12.2.0-14 [2,046 kB]
Get:38 http://ftp.debian.org/debian bookworm/main amd64 g++-12 amd64 12.2.0-14 [10.7 MB]
Get:39 http://ftp.debian.org/debian bookworm/main amd64 g++ amd64 4:12.2.0-3 [1,356 B]
Get:40 http://ftp.debian.org/debian bookworm/main amd64 build-essential amd64 12.9 [7,704 B]
Get:41 http://ftp.debian.org/debian bookworm/main amd64 dkms all 3.0.10-8+deb12u1 [48.7 kB]
Get:42 http://ftp.debian.org/debian bookworm/main amd64 sudo amd64 1.9.13p3-1+deb12u1 [1,889 kB]
Get:43 http://ftp.debian.org/debian bookworm/main amd64 libfakeroot amd64 1.31-1.2 [28.3 kB]
Get:44 http://ftp.debian.org/debian bookworm/main amd64 fakeroot amd64 1.31-1.2 [66.9 kB]
Get:45 http://ftp.debian.org/debian bookworm/main amd64 libabsl20220623 amd64 20220623.1-1 [391 kB]
Get:46 http://ftp.debian.org/debian bookworm/main amd64 libalgorithm-diff-perl all 1.201-1 [43.3 kB]
Get:47 http://ftp.debian.org/debian bookworm/main amd64 libalgorithm-diff-xs-perl amd64 0.04-8+b1 [11.4 kB]
Get:48 http://ftp.debian.org/debian bookworm/main amd64 libalgorithm-merge-perl all 0.08-5 [11.8 kB]
Get:49 http://ftp.debian.org/debian bookworm/main amd64 libaom3 amd64 3.6.0-1 [1,851 kB]
Get:50 http://ftp.debian.org/debian bookworm/main amd64 libdav1d6 amd64 1.0.0-2 [495 kB]
Get:51 http://ftp.debian.org/debian bookworm/main amd64 libgav1-1 amd64 0.18.0-1+b1 [332 kB]
Get:52 http://ftp.debian.org/debian bookworm/main amd64 librav1e0 amd64 0.5.1-6 [763 kB]
Get:53 http://ftp.debian.org/debian bookworm/main amd64 libsvtav1enc1 amd64 1.4.1+dfsg-1 [2,121 kB]
Get:54 http://ftp.debian.org/debian bookworm/main amd64 libyuv0 amd64 0.0~git20230123.b2528b0-1 [168 kB]
Get:55 http://ftp.debian.org/debian bookworm/main amd64 libavif15 amd64 0.11.1-1 [93.8 kB]
Get:56 http://ftp.debian.org/debian bookworm/main amd64 libde265-0 amd64 1.0.11-1 [185 kB]
Get:57 http://ftp.debian.org/debian bookworm/main amd64 libx265-199 amd64 3.5-2+b1 [1,150 kB]
Get:58 http://ftp.debian.org/debian bookworm/main amd64 libheif1 amd64 1.15.1-1 [215 kB]
Get:59 http://ftp.debian.org/debian bookworm/main amd64 libdeflate0 amd64 1.14-1 [61.4 kB]
Get:60 http://ftp.debian.org/debian bookworm/main amd64 libjbig0 amd64 2.1-6.1 [31.7 kB]
Get:61 http://ftp.debian.org/debian bookworm/main amd64 liblerc4 amd64 4.0.0+ds-2 [170 kB]
Get:62 http://ftp.debian.org/debian bookworm/main amd64 libwebp7 amd64 1.2.4-0.2+deb12u1 [286 kB]
Get:63 http://ftp.debian.org/debian bookworm/main amd64 libgd3 amd64 2.3.3-9 [124 kB]
Get:64 http://ftp.debian.org/debian bookworm/main amd64 libfile-fcntllock-perl amd64 0.22-4+b1 [34.8 kB]
Get:65 http://ftp.debian.org/debian bookworm/main amd64 manpages-dev all 6.03-2 [2,030 kB]
Fetched 85.8 MB in 3min 38s (394 kB/s)
Extracting templates from packages: 100% Selecting previously unselected package lsb-release. (Reading database ... 78509 files and directories currently installed.) Preparing to unpack .../00-lsb-release_12.0-1_all.deb ... Unpacking lsb-release (12.0-1) ... Selecting previously unselected package libisl23:amd64. Preparing to unpack .../01-libisl23_0.25-1_amd64.deb ... Unpacking libisl23:amd64 (0.25-1) ... Selecting previously unselected package libmpfr6:amd64. Preparing to unpack .../02-libmpfr6_4.2.0-1_amd64.deb ... Unpacking libmpfr6:amd64 (4.2.0-1) ... Selecting previously unselected package libmpc3:amd64. Preparing to unpack .../03-libmpc3_1.3.1-1_amd64.deb ... Unpacking libmpc3:amd64 (1.3.1-1) ... Selecting previously unselected package cpp-12. Preparing to unpack .../04-cpp-12_12.2.0-14_amd64.deb ... Unpacking cpp-12 (12.2.0-14) ... Selecting previously unselected package cpp. Preparing to unpack .../05-cpp_4%3a12.2.0-3_amd64.deb ... Unpacking cpp (4:12.2.0-3) ... Selecting previously unselected package libcc1-0:amd64. Preparing to unpack .../06-libcc1-0_12.2.0-14_amd64.deb ... Unpacking libcc1-0:amd64 (12.2.0-14) ... Selecting previously unselected package libgomp1:amd64. Preparing to unpack .../07-libgomp1_12.2.0-14_amd64.deb ... Unpacking libgomp1:amd64 (12.2.0-14) ... Selecting previously unselected package libitm1:amd64. Preparing to unpack .../08-libitm1_12.2.0-14_amd64.deb ... Unpacking libitm1:amd64 (12.2.0-14) ... Selecting previously unselected package libatomic1:amd64. Preparing to unpack .../09-libatomic1_12.2.0-14_amd64.deb ... Unpacking libatomic1:amd64 (12.2.0-14) ... Selecting previously unselected package libasan8:amd64. Preparing to unpack .../10-libasan8_12.2.0-14_amd64.deb ... Unpacking libasan8:amd64 (12.2.0-14) ... Selecting previously unselected package liblsan0:amd64. Preparing to unpack .../11-liblsan0_12.2.0-14_amd64.deb ... Unpacking liblsan0:amd64 (12.2.0-14) ... Selecting previously unselected package libtsan2:amd64. Preparing to unpack .../12-libtsan2_12.2.0-14_amd64.deb ... Unpacking libtsan2:amd64 (12.2.0-14) ... Selecting previously unselected package libubsan1:amd64. Preparing to unpack .../13-libubsan1_12.2.0-14_amd64.deb ... Unpacking libubsan1:amd64 (12.2.0-14) ... Selecting previously unselected package libquadmath0:amd64. Preparing to unpack .../14-libquadmath0_12.2.0-14_amd64.deb ... Unpacking libquadmath0:amd64 (12.2.0-14) ... Selecting previously unselected package libgcc-12-dev:amd64. Preparing to unpack .../15-libgcc-12-dev_12.2.0-14_amd64.deb ... Unpacking libgcc-12-dev:amd64 (12.2.0-14) ... Selecting previously unselected package gcc-12. Preparing to unpack .../16-gcc-12_12.2.0-14_amd64.deb ... Unpacking gcc-12 (12.2.0-14) ... Selecting previously unselected package gcc. Preparing to unpack .../17-gcc_4%3a12.2.0-3_amd64.deb ... Unpacking gcc (4:12.2.0-3) ... Selecting previously unselected package libdpkg-perl. Preparing to unpack .../18-libdpkg-perl_1.21.22_all.deb ... Unpacking libdpkg-perl (1.21.22) ... Selecting previously unselected package patch. Preparing to unpack .../19-patch_2.7.6-7_amd64.deb ... Unpacking patch (2.7.6-7) ... Selecting previously unselected package make. Preparing to unpack .../20-make_4.3-4.1_amd64.deb ... Unpacking make (4.3-4.1) ... Selecting previously unselected package dpkg-dev. Preparing to unpack .../21-dpkg-dev_1.21.22_all.deb ... Unpacking dpkg-dev (1.21.22) ... Selecting previously unselected package libc-dev-bin. Preparing to unpack .../22-libc-dev-bin_2.36-9+deb12u3_amd64.deb ... Unpacking libc-dev-bin (2.36-9+deb12u3) ... Selecting previously unselected package linux-libc-dev:amd64. Preparing to unpack .../23-linux-libc-dev_6.1.55-1_amd64.deb ... Unpacking linux-libc-dev:amd64 (6.1.55-1) ... Selecting previously unselected package libcrypt-dev:amd64. Preparing to unpack .../24-libcrypt-dev_1%3a4.4.33-2_amd64.deb ... Unpacking libcrypt-dev:amd64 (1:4.4.33-2) ... Selecting previously unselected package libtirpc-dev:amd64. Preparing to unpack .../25-libtirpc-dev_1.3.3+ds-1_amd64.deb ... Unpacking libtirpc-dev:amd64 (1.3.3+ds-1) ... Selecting previously unselected package libnsl-dev:amd64. Preparing to unpack .../26-libnsl-dev_1.3.0-2_amd64.deb ... Unpacking libnsl-dev:amd64 (1.3.0-2) ... Selecting previously unselected package rpcsvc-proto. Preparing to unpack .../27-rpcsvc-proto_1.4.3-1_amd64.deb ... Unpacking rpcsvc-proto (1.4.3-1) ... Selecting previously unselected package libc6-dev:amd64. Preparing to unpack .../28-libc6-dev_2.36-9+deb12u3_amd64.deb ... Unpacking libc6-dev:amd64 (2.36-9+deb12u3) ... Selecting previously unselected package libstdc++-12-dev:amd64. Preparing to unpack .../29-libstdc++-12-dev_12.2.0-14_amd64.deb ... Unpacking libstdc++-12-dev:amd64 (12.2.0-14) ... Selecting previously unselected package g++-12. Preparing to unpack .../30-g++-12_12.2.0-14_amd64.deb ... Unpacking g++-12 (12.2.0-14) ... Selecting previously unselected package g++. Preparing to unpack .../31-g++_4%3a12.2.0-3_amd64.deb ... Unpacking g++ (4:12.2.0-3) ... Selecting previously unselected package build-essential. Preparing to unpack .../32-build-essential_12.9_amd64.deb ... Unpacking build-essential (12.9) ... Setting up lsb-release (12.0-1) ... Selecting previously unselected package dkms. (Reading database ... 81921 files and directories currently installed.) Preparing to unpack .../00-dkms_3.0.10-8+deb12u1_all.deb ... Unpacking dkms (3.0.10-8+deb12u1) ... Selecting previously unselected package sudo. Preparing to unpack .../01-sudo_1.9.13p3-1+deb12u1_amd64.deb ... Unpacking sudo (1.9.13p3-1+deb12u1) ... Selecting previously unselected package libfakeroot:amd64. Preparing to unpack .../02-libfakeroot_1.31-1.2_amd64.deb ... Unpacking libfakeroot:amd64 (1.31-1.2) ... Selecting previously unselected package fakeroot. Preparing to unpack .../03-fakeroot_1.31-1.2_amd64.deb ... Unpacking fakeroot (1.31-1.2) ... Selecting previously unselected package pve-headers-6.1.10-1-pve. Preparing to unpack .../04-pve-headers-6.1.10-1-pve_6.1.10-1_amd64.deb ... Unpacking pve-headers-6.1.10-1-pve (6.1.10-1) ... Selecting previously unselected package pve-headers-6.1. Preparing to unpack .../05-pve-headers-6.1_7.3-4_all.deb ... Unpacking pve-headers-6.1 (7.3-4) ... Selecting previously unselected package gasket-dkms. Preparing to unpack .../06-gasket-dkms_1.0-18_all.deb ... Unpacking gasket-dkms (1.0-18) ... Selecting previously unselected package libabsl20220623:amd64. Preparing to unpack .../07-libabsl20220623_20220623.1-1_amd64.deb ... Unpacking libabsl20220623:amd64 (20220623.1-1) ... Selecting previously unselected package libalgorithm-diff-perl. Preparing to unpack .../08-libalgorithm-diff-perl_1.201-1_all.deb ... Unpacking libalgorithm-diff-perl (1.201-1) ... Selecting previously unselected package libalgorithm-diff-xs-perl:amd64. Preparing to unpack .../09-libalgorithm-diff-xs-perl_0.04-8+b1_amd64.deb ... Unpacking libalgorithm-diff-xs-perl:amd64 (0.04-8+b1) ... Selecting previously unselected package libalgorithm-merge-perl. Preparing to unpack .../10-libalgorithm-merge-perl_0.08-5_all.deb ... Unpacking libalgorithm-merge-perl (0.08-5) ... Selecting previously unselected package libaom3:amd64. Preparing to unpack .../11-libaom3_3.6.0-1_amd64.deb ... Unpacking libaom3:amd64 (3.6.0-1) ... Selecting previously unselected package libdav1d6:amd64. Preparing to unpack .../12-libdav1d6_1.0.0-2_amd64.deb ... Unpacking libdav1d6:amd64 (1.0.0-2) ... Selecting previously unselected package libgav1-1:amd64. Preparing to unpack .../13-libgav1-1_0.18.0-1+b1_amd64.deb ... Unpacking libgav1-1:amd64 (0.18.0-1+b1) ... Selecting previously unselected package librav1e0:amd64. Preparing to unpack .../14-librav1e0_0.5.1-6_amd64.deb ... Unpacking librav1e0:amd64 (0.5.1-6) ... Selecting previously unselected package libsvtav1enc1:amd64. Preparing to unpack .../15-libsvtav1enc1_1.4.1+dfsg-1_amd64.deb ... Unpacking libsvtav1enc1:amd64 (1.4.1+dfsg-1) ... Selecting previously unselected package libyuv0:amd64. Preparing to unpack .../16-libyuv0_0.0~git20230123.b2528b0-1_amd64.deb ... Unpacking libyuv0:amd64 (0.0~git20230123.b2528b0-1) ... Selecting previously unselected package libavif15:amd64. Preparing to unpack .../17-libavif15_0.11.1-1_amd64.deb ... Unpacking libavif15:amd64 (0.11.1-1) ... Selecting previously unselected package libde265-0:amd64. Preparing to unpack .../18-libde265-0_1.0.11-1_amd64.deb ... Unpacking libde265-0:amd64 (1.0.11-1) ... Selecting previously unselected package libx265-199:amd64. Preparing to unpack .../19-libx265-199_3.5-2+b1_amd64.deb ... Unpacking libx265-199:amd64 (3.5-2+b1) ... Selecting previously unselected package libheif1:amd64. Preparing to unpack .../20-libheif1_1.15.1-1_amd64.deb ... Unpacking libheif1:amd64 (1.15.1-1) ... Selecting previously unselected package libdeflate0:amd64. Preparing to unpack .../21-libdeflate0_1.14-1_amd64.deb ... Unpacking libdeflate0:amd64 (1.14-1) ... Selecting previously unselected package libjbig0:amd64. Preparing to unpack .../22-libjbig0_2.1-6.1_amd64.deb ... Unpacking libjbig0:amd64 (2.1-6.1) ... Selecting previously unselected package liblerc4:amd64. Preparing to unpack .../23-liblerc4_4.0.0+ds-2_amd64.deb ... Unpacking liblerc4:amd64 (4.0.0+ds-2) ... Selecting previously unselected package libwebp7:amd64. Preparing to unpack .../24-libwebp7_1.2.4-0.2+deb12u1_amd64.deb ... Unpacking libwebp7:amd64 (1.2.4-0.2+deb12u1) ... Selecting previously unselected package libtiff6:amd64. Preparing to unpack .../25-libtiff6_4.5.0-6+deb12u1_amd64.deb ... Unpacking libtiff6:amd64 (4.5.0-6+deb12u1) ... Selecting previously unselected package libxpm4:amd64. Preparing to unpack .../26-libxpm4_1%3a3.5.12-1.1+deb12u1_amd64.deb ... Unpacking libxpm4:amd64 (1:3.5.12-1.1+deb12u1) ... Selecting previously unselected package libgd3:amd64. Preparing to unpack .../27-libgd3_2.3.3-9_amd64.deb ... Unpacking libgd3:amd64 (2.3.3-9) ... Selecting previously unselected package libc-devtools. Preparing to unpack .../28-libc-devtools_2.36-9+deb12u3_amd64.deb ... Unpacking libc-devtools (2.36-9+deb12u3) ... Selecting previously unselected package libedgetpu1-std:amd64. Preparing to unpack .../29-libedgetpu1-std_16.0_amd64.deb ... Unpacking libedgetpu1-std:amd64 (16.0) ... Selecting previously unselected package libfile-fcntllock-perl. Preparing to unpack .../30-libfile-fcntllock-perl_0.22-4+b1_amd64.deb ... Unpacking libfile-fcntllock-perl (0.22-4+b1) ... Selecting previously unselected package manpages-dev. Preparing to unpack .../31-manpages-dev_6.03-2_all.deb ... Unpacking manpages-dev (6.03-2) ... Setting up libaom3:amd64 (3.6.0-1) ... Setting up manpages-dev (6.03-2) ... Setting up libabsl20220623:amd64 (20220623.1-1) ... Setting up liblerc4:amd64 (4.0.0+ds-2) ... Setting up libxpm4:amd64 (1:3.5.12-1.1+deb12u1) ... Setting up libfile-fcntllock-perl (0.22-4+b1) ... Setting up libalgorithm-diff-perl (1.201-1) ... Setting up libedgetpu1-std:amd64 (16.0) ... Setting up libdeflate0:amd64 (1.14-1) ... Setting up linux-libc-dev:amd64 (6.1.55-1) ... Setting up libsvtav1enc1:amd64 (1.4.1+dfsg-1) ... Setting up libgomp1:amd64 (12.2.0-14) ... Setting up libjbig0:amd64 (2.1-6.1) ... Setting up librav1e0:amd64 (0.5.1-6) ... Setting up libfakeroot:amd64 (1.31-1.2) ... Setting up pve-headers-6.1.10-1-pve (6.1.10-1) ... Setting up fakeroot (1.31-1.2) ... update-alternatives: using /usr/bin/fakeroot-sysv to provide /usr/bin/fakeroot (fakeroot) in auto mode Setting up libtirpc-dev:amd64 (1.3.3+ds-1) ... Setting up rpcsvc-proto (1.4.3-1) ... Setting up make (4.3-4.1) ... Setting up libmpfr6:amd64 (4.2.0-1) ... Setting up pve-headers-6.1 (7.3-4) ... Setting up libquadmath0:amd64 (12.2.0-14) ... Setting up libmpc3:amd64 (1.3.1-1) ... Setting up libatomic1:amd64 (12.2.0-14) ... Setting up patch (2.7.6-7) ... Setting up sudo (1.9.13p3-1+deb12u1) ... Setting up libgav1-1:amd64 (0.18.0-1+b1) ... Setting up libdav1d6:amd64 (1.0.0-2) ... Setting up libdpkg-perl (1.21.22) ... Setting up libx265-199:amd64 (3.5-2+b1) ... Setting up libwebp7:amd64 (1.2.4-0.2+deb12u1) ... Setting up libubsan1:amd64 (12.2.0-14) ... Setting up libnsl-dev:amd64 (1.3.0-2) ... Setting up libcrypt-dev:amd64 (1:4.4.33-2) ... Setting up libtiff6:amd64 (4.5.0-6+deb12u1) ... Setting up libasan8:amd64 (12.2.0-14) ... Setting up libtsan2:amd64 (12.2.0-14) ... Setting up libisl23:amd64 (0.25-1) ... Setting up libde265-0:amd64 (1.0.11-1) ... Setting up libc-dev-bin (2.36-9+deb12u3) ... Setting up libyuv0:amd64 (0.0~git20230123.b2528b0-1) ... Setting up libalgorithm-diff-xs-perl:amd64 (0.04-8+b1) ... Setting up libcc1-0:amd64 (12.2.0-14) ... Setting up liblsan0:amd64 (12.2.0-14) ... Setting up libitm1:amd64 (12.2.0-14) ... Setting up libalgorithm-merge-perl (0.08-5) ... Setting up cpp-12 (12.2.0-14) ... Setting up libavif15:amd64 (0.11.1-1) ... Setting up libheif1:amd64 (1.15.1-1) ... Setting up dpkg-dev (1.21.22) ... Setting up libgcc-12-dev:amd64 (12.2.0-14) ... Setting up libgd3:amd64 (2.3.3-9) ... Setting up cpp (4:12.2.0-3) ... Setting up libc6-dev:amd64 (2.36-9+deb12u3) ... Setting up libc-devtools (2.36-9+deb12u3) ... Setting up libstdc++-12-dev:amd64 (12.2.0-14) ... Setting up gcc-12 (12.2.0-14) ... Setting up g++-12 (12.2.0-14) ... Setting up gcc (4:12.2.0-3) ... Setting up dkms (3.0.10-8+deb12u1) ... Setting up gasket-dkms (1.0-18) ... Loading new gasket-1.0 DKMS files... Deprecated feature: REMAKE_INITRD (/usr/src/gasket-1.0/dkms.conf) Building for 6.5.11-4-pve 6.5.11-6-pve Building initial module for 6.5.11-4-pve Deprecated feature: REMAKE_INITRD (/var/lib/dkms/gasket/1.0/source/dkms.conf) Error! Bad return status for module build on kernel: 6.5.11-4-pve (x86_64) Consult /var/lib/dkms/gasket/1.0/build/make.log for more information. dpkg: error processing package gasket-dkms (--configure): installed gasket-dkms package post-installation script subprocess returned error exit status 10 Setting up g++ (4:12.2.0-3) ... update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode Setting up build-essential (12.9) ... Processing triggers for man-db (2.11.2-2) ... Processing triggers for libc-bin (2.36-9+deb12u3) ... Errors were encountered while processing: gasket-dkms E: Sub-process /usr/bin/dpkg returned an error code (1) root@sagemcom:~#

And here is the content of /var/lib/dkms/gasket/1.0/build/make.log:

DKMS make.log for gasket-1.0 for kernel 6.5.11-4-pve (x86_64) Sun Dec 3 10:36:40 AM CET 2023 make: Entering directory '/usr/src/linux-headers-6.5.11-4-pve' CC [M] /var/lib/dkms/gasket/1.0/build/gasket_core.o CC [M] /var/lib/dkms/gasket/1.0/build/gasket_ioctl.o CC [M] /var/lib/dkms/gasket/1.0/build/gasket_interrupt.o CC [M] /var/lib/dkms/gasket/1.0/build/gasket_page_table.o CC [M] /var/lib/dkms/gasket/1.0/build/gasket_sysfs.o CC [M] /var/lib/dkms/gasket/1.0/build/apex_driver.o /var/lib/dkms/gasket/1.0/build/gasket_core.c: In function ‘gasket_register_device’: /var/lib/dkms/gasket/1.0/build/gasket_core.c:1841:41: error: passing argument 1 of ‘class_create’ from incompatible pointer type [-Werror=incompatible-pointe> 1841 class_create(driver_desc->module, driver_desc->name); ~~~^~~~
struct module *

In file included from ./include/linux/device.h:31, from ./include/linux/cdev.h:8, from /var/lib/dkms/gasket/1.0/build/gasket_core.h:11, from /var/lib/dkms/gasket/1.0/build/gasket_core.c:12: ./include/linux/device/class.h:230:54: note: expected ‘const char ’ but argument is of type ‘struct module ’ 230 | struct class __must_check class_create(const char name); | ~~^~ /var/lib/dkms/gasket/1.0/build/gasket_core.c:1841:17: error: too many arguments to function ‘class_create’ 1841 | class_create(driver_desc->module, driver_desc->name); | ^~~~ ./include/linux/device/class.h:230:29: note: declared here 230 | struct class __must_check class_create(const char name); | ^~~~ cc1: some warnings being treated as errors make[2]: [scripts/Makefile.build:251: /var/lib/dkms/gasket/1.0/build/gasket_core.o] Error 1 make[2]: Waiting for unfinished jobs.... make[1]: [/usr/src/linux-headers-6.5.11-4-pve/Makefile:2039: /var/lib/dkms/gasket/1.0/build] Error 2 make: [Makefile:234: __sub-make] Error 2 make: Leaving directory '/usr/src/linux-headers-6.5.11-4-pve'

I tried various options I have found on forums, but nothing seemed to work. Secure boot is disabled aswell. Is there any solution to this?

robertzaage commented 8 months ago

Looks like the same problem, described here: https://github.com/google/gasket-driver/issues/18

robertzaage commented 8 months ago

You may patch your code to circumvent this.

#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 4, 0)
    internal->class = class_create(driver_desc->module, driver_desc->name);
#else
    internal->class = class_create(driver_desc->name);
#endif

to only

internal->class = class_create(driver_desc->name);

in gasket_core.c

Weyla commented 8 months ago

Unfortunately I cannot find that block of code in my file at this location: /var/lib/dkms/gasket/1.0/build/gasket_core.c I pasted the files content to pastebin: https://pastebin.com/LN9WHgeK

robertzaage commented 8 months ago

Uhhm maybe the package in the google repo has outdated code. Can you try building the driver from this repo instead using debuild?

Weyla commented 8 months ago

I am not sure about how this works exactly. I did the following:

installed git cloned this git repo installed devscripts , build-essential:native, debhelper, dh-dkms to be able to use the debuild command then I could use debuild -us -uc -tc -b, but the file still does not contain that block of code.

robertzaage commented 8 months ago

Are you sure? Look here: https://github.com/google/gasket-driver/blob/09385d485812088e04a98a6e1227bf92663e0b59/src/gasket_core.c#L1845

Weyla commented 8 months ago

Its kind of confusing what am I doing exactly. To be honest I thought this process is a bit more straight forward. If I understand correctly I need to download the git repo, I found the gasket_core.c file in the scr directory and that has the block of code you mentioned. I changed it then I run the debuild command from the top folder. This created these files in my home folder:

gasket-dkms_1.0-18_all.deb gasket-dkms_1.0-18_amd64.build gasket-dkms_1.0-18_amd64.buildinfo gasket-dkms_1.0-18_amd64.changes

I suppose I should install the driver using these files, but I am not sure how to do that exactly.

robertzaage commented 8 months ago

Okay, then use dpkg -i gasket-dkms_1.0-18_all.deb to install the package.

Weyla commented 8 months ago

Ohh gosh you are great! ls /dev/apex_0 returned the correct value after restrating it ! Thank you soo much for your help!

Claudio1L commented 5 months ago

@robertzaage you saved another life :-)

Claudio1L commented 3 months ago

HI @robertzaage

I did the procedure again after upgrade to kernel 6.8.4.2 and failed with the following: Any advice?

root@server:~# dpkg -i gasket-dkms_1.0-18_all.deb (Reading database ... 185262 files and directories currently installed.) Preparing to unpack gasket-dkms_1.0-18_all.deb ... Deprecated feature: REMAKE_INITRD (/var/lib/dkms/gasket/1.0/source/dkms.conf) Deprecated feature: REMAKE_INITRD (/var/lib/dkms/gasket/1.0/source/dkms.conf) Deprecated feature: REMAKE_INITRD (/var/lib/dkms/gasket/1.0/source/dkms.conf) Module gasket-1.0 for kernel 6.5.13-5-pve (x86_64). Before uninstall, this module version was ACTIVE on this kernel.

gasket.ko:

apex.ko:

root@server:~# more /var/lib/dkms/gasket/1.0/build/make.log DKMS make.log for gasket-1.0 for kernel 6.8.4-2-pve (x86_64) Thu Apr 25 12:40:56 PM CEST 2024 make: Entering directory '/usr/src/linux-headers-6.8.4-2-pve' CC [M] /var/lib/dkms/gasket/1.0/build/gasket_core.o CC [M] /var/lib/dkms/gasket/1.0/build/gasket_ioctl.o CC [M] /var/lib/dkms/gasket/1.0/build/gasket_interrupt.o CC [M] /var/lib/dkms/gasket/1.0/build/gasket_page_table.o CC [M] /var/lib/dkms/gasket/1.0/build/gasket_sysfs.o CC [M] /var/lib/dkms/gasket/1.0/build/apex_driver.o /var/lib/dkms/gasket/1.0/build/gasket_interrupt.c: In function ‘gasket_handle_interrupt’: /var/lib/dkms/gasket/1.0/build/gasket_interrupt.c:161:17: error: too many arguments to function ‘eventfd_signal’ 161 | eventfd_signal(ctx, 1); | ^~~~~~ In file included from /var/lib/dkms/gasket/1.0/build/gasket_interrupt.h:11, from /var/lib/dkms/gasket/1.0/build/gasket_interrupt.c:4: ./include/linux/eventfd.h:87:20: note: declared here 87 | static inline void eventfd_signal(struct eventfd_ctx *ctx) | ^~~~~~ make[2]: [scripts/Makefile.build:243: /var/lib/dkms/gasket/1.0/build/gasket_interrupt.o] Error 1 make[2]: Waiting for unfinished jobs.... make[1]: [/usr/src/linux-headers-6.8.4-2-pve/Makefile:1926: /var/lib/dkms/gasket/1.0/build] Error 2 make: [Makefile:240: __sub-make] Error 2 make: Leaving directory '/usr/src/linux-headers-6.8.4-2-pve'

Claudio1L commented 3 months ago

I'm sorry, it should be https://github.com/google/gasket-driver/issues/24 I'll try now