Page 1 of 1

Re: Welcome to the PLIN-LInux Beta Test

Posted: Mon 29. Jun 2020, 11:32
by aguan.zhang
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

Re: Welcome to the PLIN-LInux Beta Test

Posted: Mon 29. Jun 2020, 11:56
by M.Heidemann
Hello Aguan,

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


Best Regards

Marvin

PLIN-LInux driver Beta Install Error

Posted: Mon 29. Jun 2020, 12:15
by aguan.zhang
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'

Re: Error on Install

Posted: Mon 29. Jun 2020, 12:40
by M.Heidemann
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

Re: Error on Install

Posted: Mon 29. Jun 2020, 13:33
by aguan.zhang
Hi Marvin,


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


no other operation.

BRs
aguan

Re: Error on Install

Posted: Fri 3. Jul 2020, 08:05
by M.Heidemann
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

Re: Error on Install

Posted: Fri 3. Jul 2020, 08:36
by aguan.zhang
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

Re: Error on Install

Posted: Fri 3. Jul 2020, 08:59
by M.Heidemann
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

Re: Error on Install

Posted: Fri 3. Jul 2020, 09:32
by aguan.zhang
Hi Marvin,

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

Thanks very much.

BRs
Aguan

Re: Error on Install

Posted: Fri 3. Jul 2020, 09:34
by M.Heidemann
Hello Aguan,

You're welcome!

- Closed -