Re: Welcome to the PLIN-LInux Beta Test

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.
Locked
aguan.zhang
Posts: 17
Joined: Thu 18. Jun 2020, 05:11

Re: Welcome to the PLIN-LInux Beta Test

Post by aguan.zhang » Mon 29. Jun 2020, 11:32

Hi Marvin,

There meet a install error:

Code: Select all

---------------------------------------------------------------------------------------------------
$sudo make install
make[1]: Entering directory '/home/zhangaguan/peak-lin-driver-1.0.0/driver'

Installing driver module plin.ko for linux 5.3.0-61-generic:

rmmod: ERROR: Module plin is not currently loaded
Makefile:185: recipe for target 'install_driver' failed
make[1]: [install_driver] Error 1 (ignored)
---------------------------------------------------------------------------------------------------------------
My Linux OS as follows:
gcc version 7.5.0 (Ubuntu 7.5.0-3ubuntu1~18.04)
GNU Make 4.1

BRs
Aguan

M.Heidemann
Sales & Support
Sales & Support
Posts: 410
Joined: Fri 20. Sep 2019, 13:31

Re: Welcome to the PLIN-LInux Beta Test

Post by M.Heidemann » Mon 29. Jun 2020, 11:56

Hello Aguan,

Can you please open a new topic regarding this and post your command history ("before sudo make install") there?


Best Regards

Marvin

aguan.zhang
Posts: 17
Joined: Thu 18. Jun 2020, 05:11

PLIN-LInux driver Beta Install Error

Post by aguan.zhang » Mon 29. Jun 2020, 12:15

Hi Marvin,

The history commands as below:

Code: Select all

zhangaguan@zhangaguan-ThinkPad-T480s:~/peak-lin-driver-1.0.0$ make
make[1]: Entering directory '/home/zhangaguan/peak-lin-driver-1.0.0/driver'

Building driver module plin.ko from /usr/src/linux-headers-5.3.0-61-generic,
with cc version 7, under Ubuntu 18.04:

make -C /usr/src/linux-headers-5.3.0-61-generic  EXTRA_CFLAGS="-D'DRV_NAME=\"plin\"'" M=/home/zhangaguan/peak-lin-driver-1.0.0/driver modules
make[2]: Entering directory '/usr/src/linux-headers-5.3.0-61-generic'
  CC [M]  /home/zhangaguan/peak-lin-driver-1.0.0/driver/plin_main.o
  CC [M]  /home/zhangaguan/peak-lin-driver-1.0.0/driver/plin_sysfs.o
  CC [M]  /home/zhangaguan/peak-lin-driver-1.0.0/driver/plin_chrdev.o
  CC [M]  /home/zhangaguan/peak-lin-driver-1.0.0/driver/plin_usb.o
  LD [M]  /home/zhangaguan/peak-lin-driver-1.0.0/driver/plin.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /home/zhangaguan/peak-lin-driver-1.0.0/driver/plin.mod.o
  LD [M]  /home/zhangaguan/peak-lin-driver-1.0.0/driver/plin.ko
make[2]: Leaving directory '/usr/src/linux-headers-5.3.0-61-generic'
make[1]: Leaving directory '/home/zhangaguan/peak-lin-driver-1.0.0/driver'
make[1]: Entering directory '/home/zhangaguan/peak-lin-driver-1.0.0/utils'

Building plin utilities:

make[1]: Leaving directory '/home/zhangaguan/peak-lin-driver-1.0.0/utils'

zhangaguan@zhangaguan-ThinkPad-T480s:~/peak-lin-driver-1.0.0$ ls
driver  LICENSE.gpl  LICENSE.lgpl  Makefile  utils

zhangaguan@zhangaguan-ThinkPad-T480s:~/peak-lin-driver-1.0.0$ sudo make install
[sudo] password for zhangaguan: 
make[1]: Entering directory '/home/zhangaguan/peak-lin-driver-1.0.0/driver'

Installing driver module plin.ko for linux 5.3.0-61-generic:

rmmod: ERROR: Module plin is not currently loaded
Makefile:185: recipe for target 'install_driver' failed
make[1]: [install_driver] Error 1 (ignored)
- Building dependencies...
- Installing driver API header file under /usr/include...
- Reloading Udev rules...
make[1]: Leaving directory '/home/zhangaguan/peak-lin-driver-1.0.0/driver'
make[1]: Entering directory '/home/zhangaguan/peak-lin-driver-1.0.0/utils'

Installing plin utilities under /usr/bin...

cp -f lin linwrite linread /usr/bin
make[1]: Leaving directory '/home/zhangaguan/peak-lin-driver-1.0.0/utils'
Last edited by M.Gerber on Mon 29. Jun 2020, 14:22, edited 1 time in total.
Reason: Inserted [code] tags for improved readability

M.Heidemann
Sales & Support
Sales & Support
Posts: 410
Joined: Fri 20. Sep 2019, 13:31

Re: Error on Install

Post by M.Heidemann » Mon 29. Jun 2020, 12:40

Hello aguan,

Please build the driver by just executing:

Code: Select all

make
I would recommend to follow the Quick-Start-Guide for now.

Is there any specific reason you want to build the driver like this?


Best Regards

Marvin

aguan.zhang
Posts: 17
Joined: Thu 18. Jun 2020, 05:11

Re: Error on Install

Post by aguan.zhang » Mon 29. Jun 2020, 13:33

Hi Marvin,


I build the driver by following the Quick-Start-Guide. and only excuting:
make
sudo make install


no other operation.

BRs
aguan

M.Heidemann
Sales & Support
Sales & Support
Posts: 410
Joined: Fri 20. Sep 2019, 13:31

Re: Error on Install

Post by M.Heidemann » Fri 3. Jul 2020, 08:05

Hello Aguan,

Please stick to one thread if possible, i'll close the redundant one.

can you share to output of:

Code: Select all

uname -a
with us?

Best Regards

marvin

aguan.zhang
Posts: 17
Joined: Thu 18. Jun 2020, 05:11

Re: Error on Install

Post by aguan.zhang » Fri 3. Jul 2020, 08:36

Hi Marvin,

Code: Select all

$ uname -a
Linux zhangaguan-ThinkPad-T480s 5.3.0-61-generic #55~18.04.1-Ubuntu SMP Mon Jun 22 16:40:20 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

Install commands:

Code: Select all

$ make
make[1]: Entering directory '/home/zhangaguan/PLIN-Linux-Beta-Package/peak-lin-driver-1.0.0/driver'

Building driver module plin.ko from /usr/src/linux-headers-5.3.0-61-generic,
with cc version 7, under Ubuntu 18.04:

make -C /usr/src/linux-headers-5.3.0-61-generic  EXTRA_CFLAGS="-D'DRV_NAME=\"plin\"'" M=/home/zhangaguan/PLIN-Linux-Beta-Package/peak-lin-driver-1.0.0/driver modules
make[2]: Entering directory '/usr/src/linux-headers-5.3.0-61-generic'
  CC [M]  /home/zhangaguan/PLIN-Linux-Beta-Package/peak-lin-driver-1.0.0/driver/plin_main.o
  CC [M]  /home/zhangaguan/PLIN-Linux-Beta-Package/peak-lin-driver-1.0.0/driver/plin_sysfs.o
  CC [M]  /home/zhangaguan/PLIN-Linux-Beta-Package/peak-lin-driver-1.0.0/driver/plin_chrdev.o
  CC [M]  /home/zhangaguan/PLIN-Linux-Beta-Package/peak-lin-driver-1.0.0/driver/plin_usb.o
  LD [M]  /home/zhangaguan/PLIN-Linux-Beta-Package/peak-lin-driver-1.0.0/driver/plin.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /home/zhangaguan/PLIN-Linux-Beta-Package/peak-lin-driver-1.0.0/driver/plin.mod.o
  LD [M]  /home/zhangaguan/PLIN-Linux-Beta-Package/peak-lin-driver-1.0.0/driver/plin.ko
make[2]: Leaving directory '/usr/src/linux-headers-5.3.0-61-generic'
make[1]: Leaving directory '/home/zhangaguan/PLIN-Linux-Beta-Package/peak-lin-driver-1.0.0/driver'
make[1]: Entering directory '/home/zhangaguan/PLIN-Linux-Beta-Package/peak-lin-driver-1.0.0/utils'

Building plin utilities:

gcc lin.c -c -I../driver -o lin.o
gcc   lin.o   -o lin
gcc linwrite.c -c -I../driver -o linwrite.o
gcc   linwrite.o   -o linwrite
gcc linread.c -c -I../driver -o linread.o
gcc   linread.o   -o linread
make[1]: Leaving directory '/home/zhangaguan/PLIN-Linux-Beta-Package/peak-lin-driver-1.0.0/utils'

$ sudo make install
make[1]: Entering directory '/home/zhangaguan/PLIN-Linux-Beta-Package/peak-lin-driver-1.0.0/driver'

Installing driver module plin.ko for linux 5.3.0-61-generic:

- Building dependencies...
- Installing driver API header file under /usr/include...
- Reloading Udev rules...
make[1]: Leaving directory '/home/zhangaguan/PLIN-Linux-Beta-Package/peak-lin-driver-1.0.0/driver'
make[1]: Entering directory '/home/zhangaguan/PLIN-Linux-Beta-Package/peak-lin-driver-1.0.0/utils'

Installing plin utilities under /usr/bin...

cp -f lin linwrite linread /usr/bin
make[1]: Leaving directory '/home/zhangaguan/PLIN-Linux-Beta-Package/peak-lin-driver-1.0.0/utils'

$ sudo modprobe plin
modprobe: ERROR: could not insert 'plin': Operation not permitted

M.Heidemann
Sales & Support
Sales & Support
Posts: 410
Joined: Fri 20. Sep 2019, 13:31

Re: Error on Install

Post by M.Heidemann » Fri 3. Jul 2020, 08:59

Hello Aguan,

Thanks for the Info.

Is secureboot enabled on this system?

This will prevent third-party-modules such as this driver from being loaded.

Please check your BIOS settings and check if secureboot is enabled.

Please report back to me if this was the cause for this.



Best Regards

Marvin

aguan.zhang
Posts: 17
Joined: Thu 18. Jun 2020, 05:11

Re: Error on Install

Post by aguan.zhang » Fri 3. Jul 2020, 09:32

Hi Marvin,

It can be loaded successfully after disable the secure boot on Ubuntu 18.

Thanks very much.

BRs
Aguan

M.Heidemann
Sales & Support
Sales & Support
Posts: 410
Joined: Fri 20. Sep 2019, 13:31

Re: Error on Install

Post by M.Heidemann » Fri 3. Jul 2020, 09:34

Hello Aguan,

You're welcome!

- Closed -

Locked