×

INDI Library v2.0.7 is Released (01 Apr 2024)

Bi-monthly release with minor bug fixes and improvements

Error Building fliusb module with DKMS

  • Posts: 79
  • Thank you received: 23
Why are you updating to 4.10? The idea was to make it work with 4.8 :)
Last edit: 6 years 11 months ago by rumen.
6 years 11 months ago #16570

Please Log in or Create an account to join the conversation.

  • Posts: 15
  • Thank you received: 1
no problem
few clicks and there be back fresh ubuntu
6 years 11 months ago #16580

Please Log in or Create an account to join the conversation.

  • Posts: 79
  • Thank you received: 23
Just a reboot and on glub screen select 4.8 :)
6 years 11 months ago #16581

Please Log in or Create an account to join the conversation.

  • Posts: 15
  • Thank you received: 1
vontadeo@vonTadeooooe:~$ sudo dkms build -m fliusb -v 1.3

Kernel preparation unnecessary for this kernel. Skipping...

Building module:
cleaning build area....
make KERNELRELEASE=4.8.0-51-lowlatency KVER=4.8.0-51-lowlatency....(bad exit status: 2)
ERROR (dkms apport): binary package for fliusb: 1.3 not found
Error! Bad return status for module build on kernel: 4.8.0-51-lowlatency (x86_64)
Consult /var/lib/dkms/fliusb/1.3/build/make.log for more information.
6 years 11 months ago #16588
Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 79
  • Thank you received: 23
Created new pull request, I did not pay attention that API changed twice once in 4.6 and once in 4.9... not it should work.

Please let me know if it works or not for 4.8, once jasem merges the change.

Rumen
6 years 11 months ago #16601

Please Log in or Create an account to join the conversation.

  • Posts: 15
  • Thank you received: 1
Red 5 standing by...
will report ASAP..
6 years 11 months ago #16617

Please Log in or Create an account to join the conversation.

  • Posts: 79
  • Thank you received: 23
Should be in the daily build already...
6 years 11 months ago #16621

Please Log in or Create an account to join the conversation.

  • Posts: 15
  • Thank you received: 1
1.
sudo apt-get install indi-fli
[sudo] password for vontadeo:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following package was automatically installed and is no longer required:
snap-confine
Use 'sudo apt autoremove' to remove it.
The following packages will be upgraded:
indi-fli
1 upgraded, 0 newly installed, 0 to remove and 34 not upgraded.
Need to get 27,8 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 ppa.launchpad.net/mutlaqja/ppa/ubuntu xenial/main amd64 indi-fli amd64 1.0.0ubuntu3+r3066~201705080649~ubuntu16.04.1 [27,8 kB]
Fetched 27,8 kB in 13s (2067 B/s)
(Reading database ... 254357 files and directories currently installed.)
Preparing to unpack .../indi-fli_1.0.0ubuntu3+r3066~201705080649~ubuntu16.04.1_amd64.deb ...
Unpacking indi-fli (1.0.0ubuntu3+r3066~201705080649~ubuntu16.04.1) over (1.0.0ubuntu3+r3063~201705070648~ubuntu16.04.1) ...
Setting up indi-fli (1.0.0ubuntu3+r3066~201705080649~ubuntu16.04.1) ...


2. found today files
vontadeo@vonTadeooooe:/var/lib/dkms/fliusb/1.3/build$ ll
total 56
drwxr-xr-x 3 root root 4096 maj 8 17:53 ./
drwxr-xr-x 3 root root 4096 maj 8 17:53 ../
-rw-r--r-- 1 root root 194 maj 8 17:53 dkms.conf
-rw-r--r-- 1 root root 23661 maj 8 17:53 fliusb.c
-rw-r--r-- 1 root root 3985 maj 8 17:53 fliusb.h
-rw-r--r-- 1 root root 3231 maj 8 17:53 fliusb_ioctl.h
-rw-r--r-- 1 root root 704 maj 8 17:53 Makefile
-rw-r--r-- 1 root root 3765 maj 8 17:53 make.log
drwxr-xr-x 2 root root 4096 maj 8 17:53 .tmp_versions/

3.
vontadeo@vonTadeooooe:/var/lib/dkms/fliusb/1.3/build$ sudo cp -R . /usr/src/fliusb-1.3

4.
vontadeo@vonTadeooooe:/var/lib/dkms/fliusb/1.3/build$ sudo dkms add -m fliusb -v 1.3
Error! DKMS tree already contains: fliusb-1.3
You cannot add the same module/version combo more than once.

5.
vontadeo@vonTadeooooe:/var/lib/dkms/fliusb/1.3/build$ sudo dkms build -m fliusb -v 1.3
Kernel preparation unnecessary for this kernel. Skipping...
Building module:
cleaning build area....
make KERNELRELEASE=4.8.0-51-lowlatency KVER=4.8.0-51-lowlatency....(bad exit status: 2)
ERROR (dkms apport): binary package for fliusb: 1.3 not found
Error! Bad return status for module build on kernel: 4.8.0-51-lowlatency (x86_64)
Consult /var/lib/dkms/fliusb/1.3/build/make.log for more information.
6 years 11 months ago #16629

Please Log in or Create an account to join the conversation.

  • Posts: 79
  • Thank you received: 23
can you just go in fliusb-1.3 and type make there?
This will make the fliusb.ko
6 years 11 months ago #16631

Please Log in or Create an account to join the conversation.

  • Posts: 15
  • Thank you received: 1
vontadeo@vonTadeooooe:/usr/src/fliusb-1.3$ make
make -C /lib/modules/4.8.0-51-lowlatency/build M="$(pwd)" modules
make[1]: Entering directory '/usr/src/linux-headers-4.8.0-51-lowlatency'
arch/x86/Makefile:140: CONFIG_X86_X32 enabled but no binutils support
CC [M] /usr/src/fliusb-1.3/fliusb.o
Assembler messages:
Fatal error: can't create /usr/src/fliusb-1.3/.tmp_fliusb.o: Permission denied
In file included from ./include/linux/kobject.h:21:0,
from ./include/linux/module.h:17,
from /usr/src/fliusb-1.3/fliusb.c:46:
./include/linux/sysfs.h: In function ‘sysfs_get_dirent’:
./include/linux/sysfs.h:517:37: warning: pointer targets in passing argument 2 of ‘kernfs_find_and_get’ differ in signedness [-Wpointer-sign]
return kernfs_find_and_get(parent, name);
^
In file included from ./include/linux/sysfs.h:15:0,
from ./include/linux/kobject.h:21,
from ./include/linux/module.h:17,
from /usr/src/fliusb-1.3/fliusb.c:46:
./include/linux/kernfs.h:440:1: note: expected ‘const char *’ but argument is of type ‘const unsigned char *’
kernfs_find_and_get(struct kernfs_node *kn, const char *name)
^
/usr/src/fliusb-1.3/fliusb.c: In function ‘fliusb_sg_bulk_read’:
/usr/src/fliusb-1.3/fliusb.c:332:39: warning: passing argument 4 of ‘get_user_pages’ makes integer from pointer without a cast [-Wint-conversion]
numpg = get_user_pages(numpg, 1, 0, dev->usbsg.userpg, NULL);
^
In file included from /usr/src/fliusb-1.3/fliusb.c:57:0:
./include/linux/mm.h:1315:6: note: expected ‘int’ but argument is of type ‘struct page **’
long get_user_pages(unsigned long start, unsigned long nr_pages,
^
/usr/src/fliusb-1.3/fliusb.c:332:11: error: too few arguments to function ‘get_user_pages’
numpg = get_user_pages(numpg, 1, 0, dev->usbsg.userpg, NULL);
^
In file included from /usr/src/fliusb-1.3/fliusb.c:57:0:
./include/linux/mm.h:1315:6: note: declared here
long get_user_pages(unsigned long start, unsigned long nr_pages,
^
scripts/Makefile.build:295: recipe for target '/usr/src/fliusb-1.3/fliusb.o' failed
make[2]: *** [/usr/src/fliusb-1.3/fliusb.o] Error 2
Makefile:1491: recipe for target '_module_/usr/src/fliusb-1.3' failed
make[1]: *** [_module_/usr/src/fliusb-1.3] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.8.0-51-lowlatency'
Makefile:15: recipe for target 'default' failed
make: *** [default] Error 2
6 years 11 months ago #16632

Please Log in or Create an account to join the conversation.

  • Posts: 79
  • Thank you received: 23
Maybe the changes are not in yet.
Can you try this tgz?

tar -zxf fiusb-1.3.tgz
cd fliusb-1.3
make

there should be fliusb.ko which is what you need...
6 years 11 months ago #16633
Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 15
  • Thank you received: 1
make without problem

dkms build - flawless
Module fliusb/1.3 already built for kernel 4.8.0-51-lowlatency/4
6 years 11 months ago #16634

Please Log in or Create an account to join the conversation.

Time to create page: 1.178 seconds