IncentivesPro Forum Index IncentivesPro
Leading USB solutions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

install USB Redirector on a cubieboard2 Debian 4.19.62-sunxi

 
Post new topic   Reply to topic    IncentivesPro Forum Index -> USB Redirector for Linux
View previous topic :: View next topic  
Author Message
Pavel000



Joined: 11 Nov 2019
Posts: 3

PostPosted: Mon Nov 11, 2019 8:11 pm    Post subject: install USB Redirector on a cubieboard2 Debian 4.19.62-sunxi Reply with quote

I tried to install USB Redirector on a cubieboard2 Debian 4.19.62-sunxi
1. I install linux source and headers via armbian-config
2. Start the installer.sh
user@cubieboard2:~/usb-redirector-linux-arm-gnueabihf$ sudo ./installer.sh install-server

*** Installing USB Redirector for Linux v3.8
*** Destination dir: /usr/local/usb-redirector
*** Checking installation...
*** Detecting system...
*** distribution: debian
*** kernel: 4.19.62-sunxi
*** Compiling kernel module...
*** Cleaning up installation...
***
*** Installation failed!
??? Cannot compile kernel module. Installation terminated. See buildlog.txt file for more information.

user@cubieboard2:~/usb-redirector-linux-arm-gnueabihf$ cat buildlog.txt
make -C /lib/modules/4.19.62-sunxi/build M=/home/user/usb-redirector-linux-arm-gnueabihf/files/modules/src/tusbd modules
make[1]: Entering directory '/usr/src/linux-headers-4.19.62-sunxi'
CC [M] /home/user/usb-redirector-linux-arm-gnueabihf/files/modules/src/tusbd/driver.o
/bin/sh: 1: ./scripts/recordmcount: not found
scripts/Makefile.build:303: recipe for target '/home/user/usb-redirector-linux-arm-gnueabihf/files/modules/src/tusbd/driver.o' failed
make[2]: *** [/home/user/usb-redirector-linux-arm-gnueabihf/files/modules/src/tusbd/driver.o] Error 127
make[2]: *** Deleting file '/home/user/usb-redirector-linux-arm-gnueabihf/files/modules/src/tusbd/driver.o'
Makefile:1517: recipe for target '_module_/home/user/usb-redirector-linux-arm-gnueabihf/files/modules/src/tusbd' failed
make[1]: *** [_module_/home/user/usb-redirector-linux-arm-gnueabihf/files/modules/src/tusbd] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.19.62-sunxi'
Makefile:61: recipe for target 'default' failed
make: *** [default] Error 2

so what did I wron?
Back to top
View user's profile Send private message
Peter
Site Admin


Joined: 01 Aug 2007
Posts: 581

PostPosted: Tue Nov 12, 2019 8:55 am    Post subject: Reply with quote

It is something with your headers. Try this:

Code:
cd /usr/src/linux-headers-4.19.62-sunxi/scripts
sudo make recordmcount


From https://forum.armbian.com/topic/4849-missing-recordmcount-looks-like-solved/
Back to top
View user's profile Send private message
Pavel000



Joined: 11 Nov 2019
Posts: 3

PostPosted: Tue Nov 12, 2019 6:47 pm    Post subject: Reply with quote

Peter wrote:
It is something with your headers. Try this:

Code:
cd /usr/src/linux-headers-4.19.62-sunxi/scripts
sudo make recordmcount


From https://forum.armbian.com/topic/4849-missing-recordmcount-looks-like-solved/


I try this:
user@cubieboard2:~$ cd /usr/src/linux-headers-4.19.62-sunxi/scripts
user@cubieboard2:/usr/src/linux-headers-4.19.62-sunxi/scripts$ sudo make recordmcount
[sudo] password for user:
cc recordmcount.c -o recordmcount
user@cubieboard2:/usr/src/linux-headers-4.19.62-sunxi/scripts$ cd /home/user/usb-redirector-linux-arm-gnueabihf/
user@cubieboard2:~/usb-redirector-linux-arm-gnueabihf$ sudo ./installer.sh install-server

*** Installing USB Redirector for Linux v3.8
*** Destination dir: /usr/local/usb-redirector
*** Checking installation...
*** Detecting system...
*** distribution: debian
*** kernel: 4.19.62-sunxi
*** Compiling kernel module...
*** Cleaning up installation...
***
*** Installation failed!
??? Cannot compile kernel module. Installation terminated. See buildlog.txt file for more information.

but I have new error:

make -C /lib/modules/4.19.62-sunxi/build M=/home/hagen/usb-redirector-linux-arm-gnueabihf/files/modules/src/tusbd modules
make[1]: Entering directory '/usr/src/linux-headers-4.19.62-sunxi'
CC [M] /home/hagen/usb-redirector-linux-arm-gnueabihf/files/modules/src/tusbd/driver.o
CC [M] /home/hagen/usb-redirector-linux-arm-gnueabihf/files/modules/src/tusbd/cdev.o
/home/hagen/usb-redirector-linux-arm-gnueabihf/files/modules/src/tusbd/cdev.c: In function ‘lIIlIIIIl’:
/home/hagen/usb-redirector-linux-arm-gnueabihf/files/modules/src/tusbd/cdev.c:66:76: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation].....

Full error in file:
https://drive.google.com/open?id=1uGqXTxFdL8zWx6Gq-pkAqpJe8-0z47OM
Back to top
View user's profile Send private message
Peter
Site Admin


Joined: 01 Aug 2007
Posts: 581

PostPosted: Wed Nov 13, 2019 10:03 am    Post subject: Reply with quote

Is it a full kernel source code or just headers?

Plese try this:
Code:
cd /usr/src/linux-headers-4.19.62-sunxi
sudo make scripts

This should rebuild all the scripts
Back to top
View user's profile Send private message
Pavel000



Joined: 11 Nov 2019
Posts: 3

PostPosted: Thu Nov 14, 2019 8:18 pm    Post subject: Reply with quote

Peter wrote:
Is it a full kernel source code or just headers?

Plese try this:
Code:
cd /usr/src/linux-headers-4.19.62-sunxi
sudo make scripts

This should rebuild all the scripts


1. "sudo make scripts"
2. "sudo ./installer.sh install-server"
3. But I have a new error((
user@cubieboard2:~$ sudo /etc/init.d/rc.usbsrvd start
Starting USB Redirector: /sbin/insmod /usr/local/usb-redirector/bin/tusbd.ko
insmod: ERROR: could not insert module /usr/local/usb-redirector/bin/tusbd.ko: Invalid module format
Cannot load stub driver! Please reinstall the software.
Back to top
View user's profile Send private message
Peter
Site Admin


Joined: 01 Aug 2007
Posts: 581

PostPosted: Mon Nov 18, 2019 10:04 am    Post subject: Reply with quote

It usually means that your kernel headers do not correspond to the kernel version you are running. Did you update the kernel?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IncentivesPro Forum Index -> USB Redirector for Linux All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group