PLIN Module problem

This is a forum for the communication between the beta testers and our developers. It is only visible for PEAK-System employees and authorized testers.
Post Reply
jbawol@innovation
Posts: 1
Joined: Tue 2. Aug 2022, 11:53

PLIN Module problem

Post by jbawol@innovation » Tue 2. Aug 2022, 12:08

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.

F.Vergnaud
Software Development
Software Development
Posts: 305
Joined: Mon 9. Sep 2013, 12:21

Re: PLIN Module problem

Post by F.Vergnaud » Tue 2. Aug 2022, 14:46

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.
Best regards,
Fabrice

Gabriel Guilbert
Posts: 6
Joined: Fri 5. Aug 2022, 15:08

Re: PLIN Module problem

Post by Gabriel Guilbert » Fri 5. Aug 2022, 15:14

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

Post Reply