×

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
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.

  • Posts: 79
  • Thank you received: 23
I installed vitrual machine to test. Should be fine now see the screen shot...
and kernel is 4.8 :)
7 years 4 days ago #16674
Attachments:

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

  • Posts: 15
  • Thank you received: 1
:(

on README it's that on /dev/ should be dir fliusbi
maybe thats wrong with "me"
7 years 4 days ago #16675
Attachments:

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

Time to create page: 1.186 seconds