Page 1 of 1

PLIN Module problem

Posted: Tue 2. Aug 2022, 12:08
by jbawol@innovation
Hello,
We are using Ubuntu 20.04 with kernel 5.13.0-52-generic and PLIN driver 1.0.0-rc9.
When running make we have a problem in plin_usc.c

Code: Select all

/home/kuba/plin_linux/peak-lin-driver-1.0.0-rc9/driver/plin_usb.c:54:25: error: expected declaration specifiers or ‘...’ before string constant
   54 | MODULE_SUPPORTED_DEVICE("PEAK PCAN-USB Pro");
      |                         ^~~~~~~~~~~~~~~~~~~
/home/kuba/plin_linux/peak-lin-driver-1.0.0-rc9/driver/plin_usb.c:85:25: error: expected declaration specifiers or ‘...’ before string constant
   85 | MODULE_SUPPORTED_DEVICE("PEAK PCAN-USB Pro FD");
      |                         ^~~~~~~~~~~~~~~~~~~~~~
/home/kuba/plin_linux/peak-lin-driver-1.0.0-rc9/driver/plin_usb.c:88:25: error: expected declaration specifiers or ‘...’ before string constant
   88 | MODULE_SUPPORTED_DEVICE("PEAK PLIN-USB");
      |    
In the new kernels (5.12 and above for sure) the MODULE_SUPPORTED_DEVICE macro is removed. We tried to comment out those three lines and then we were able to build and install the module but when We want to load it the modprobe return exec format error.

Thank You in advance for all help.

Re: PLIN Module problem

Posted: Tue 2. Aug 2022, 14:46
by F.Vergnaud
Hello,

Indeed this is a indeed known issue with the beta package. Hopefully it has already been fixed internally.

We can share an release candicate for you:
Please contact our support by email (support[at]peak-system.com) stating you'd like to test the latest plin package (v1.0.0-6).
Thank you.

Re: PLIN Module problem

Posted: Fri 5. Aug 2022, 15:14
by Gabriel Guilbert
From what I understand, the macro MODULE_SUPPORTED_DEVICE has always been unused in Linux [1]. I got it to work (on ArchLinux) by redefining an empty one rather than deleting its usage.

Code: Select all

[1] https://github.com/torvalds/linux/commit/6417f03132a6952cd17ddd8eaddbac92b61b17e0

Edit by ADMIN - please, do not use any active links to external pages. See Forum rules - Changed URL Link to Code part