×

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: 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.
7 years 6 days 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
7 years 6 days 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
7 years 6 days 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...
7 years 6 days 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
7 years 6 days ago #16634

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

  • Posts: 79
  • Thank you received: 23
Great :)
Thanks for the tests!
I hope tomorrow's build will have the fix... it did not make it today...
Meanwhile you can use this kernel object.

Rumen
The following user(s) said Thank You: Jasem Mutlaq, Jaroslaw
7 years 6 days ago #16636

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

  • Posts: 15
  • Thank you received: 1
Sorry but I can only once click Thank You ;)

now I must find now how to get it connected/working in Kstars - Indi
7 years 6 days ago #16642

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

  • Posts: 79
  • Thank you received: 23
cd fliusb-1.3
sudo insmod ./fliusb.ko

Please note loading the kernel module this way will not survive reboot. So this should be done after every reboot.
To have it automatically loaded wait for the deb and install it :)

then start then start indi with drivers you need with sudo otherwise fli devices will not work:
sudo indiserver ...
The following user(s) said Thank You: Jaroslaw
7 years 6 days ago #16647

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

  • Posts: 15
  • Thank you received: 1
many Thanks - will try it home after work and report ..
7 years 5 days ago #16654

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

  • Posts: 15
  • Thank you received: 1
first attempt

vontadeo@vonTadeooooe:~$ cd /usr/src/
vontadeo@vonTadeooooe:/usr/src$ cd fliusb-1.3
vontadeo@vonTadeooooe:/usr/src/fliusb-1.3$ sudo insmod ./fliusb.ko
insmod: ERROR: could not insert module ./fliusb.ko: File exists
vontadeo@vonTadeooooe:/usr/src/fliusb-1.3$ sudo indiserver -v indi_fli_wheel
2017-05-09T22:29:14: startup: indiserver -v indi_fli_wheel
2017-05-09T22:29:14: Driver indi_fli_wheel: pid=2293 rfd=3 wfd=6 efd=7
2017-05-09T22:29:14: listening to port 7624 on fd 4

then once again

vontadeo@vonTadeooooe:/usr/src/fliusb-1.3$ sudo rmmod ./fliusb.ko
vontadeo@vonTadeooooe:/usr/src/fliusb-1.3$ sudo insmod ./fliusb.ko
vontadeo@vonTadeooooe:/usr/src/fliusb-1.3$ sudo indiserver -v indi_fli_wheel
2017-05-09T22:37:19: startup: indiserver -v indi_fli_wheel
2017-05-09T22:37:19: Driver indi_fli_wheel: pid=2501 rfd=3 wfd=6 efd=7
2017-05-09T22:37:19: listening to port 7624 on fd 4

and start Kstars - Indi - start & connect - not matter what I'm choose - shutdown server indi instance (this launched from command line) or not

no fli cfw detected
7 years 5 days ago #16663

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

  • Posts: 79
  • Thank you received: 23
Third attempt to fix it for linux 4.8 :)
Can you try the provided tgz.
If this does not work then it is not the KO. This is the last option I have with the KO to fix it....

sudo rmmod fliusb
cd fliusb-1.3
make
sudo insmod ./fliusb.ko
The following user(s) said Thank You: Jaroslaw
7 years 4 days ago #16665
Attachments:

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

  • Posts: 15
  • Thank you received: 1
Thanks -
will report ASAP
The following user(s) said Thank You: rumen
7 years 4 days ago #16667

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

Time to create page: 1.891 seconds