Closed Weyla closed 8 months ago
Looks like the same problem, described here: https://github.com/google/gasket-driver/issues/18
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
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
Uhhm maybe the package in the google repo has outdated code. Can you try building the driver from this repo instead using debuild
?
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.
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.
Okay, then use dpkg -i gasket-dkms_1.0-18_all.deb
to install the package.
Ohh gosh you are great! ls /dev/apex_0 returned the correct value after restrating it ! Thank you soo much for your help!
@robertzaage you saved another life :-)
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'
I'm sorry, it should be https://github.com/google/gasket-driver/issues/24 I'll try now
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:
And here is the content of /var/lib/dkms/gasket/1.0/build/make.log:
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?