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 

USB Redirector on OrangePi z e r o

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



Joined: 21 Aug 2019
Posts: 3

PostPosted: Wed Aug 21, 2019 7:09 am    Post subject: USB Redirector on OrangePi z e r o Reply with quote

I tried to install USB Redirector on a OrangePi z e r o 512MB with with Armbian Linux 4.19.62-sunxi.

I changed the installer.sh as follow:
Code:
# KERNELDIR=/lib/modules/`uname -r`/build
KERNELDIR=/usr/src/linux-source-4.19.62-sunxi


start the installer.sh
Code:
outdoorpi@ERASE:~/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...
***  Kernel module successfully compiled
***  Creating directories...
***  Preparing scripts...
***  Copying files...
***  Setting up init script...
***  Starting daemon...
***  Please allow incoming connections on 32032 port for USB Sever to be able to accept connections from remote clients.
***  INSTALLATION SUCCESSFUL! To uninstall, run /usr/local/usb-redirector/uninstall.sh
outdoorpi@ERASE:~/usb-redirector-linux-arm-gnueabihf$


tried to start usb-redirector:
Code:
outdoorpi@ERASE:/usr/local/usb-redirector/bin$ sudo ./usbsrv -l

******************** ERROR ***********************
Cannot connect to USB Redirector daemon.
Please make sure usbsrvd is loaded. If the module
is not loaded, please contact our support team.
Error log can be found at /var/log/usbsrvd.log
**************** **************** ****************
outdoorpi@ERASE:/usr/local/usb-redirector/bin$


/var/log/usbsrvd.log
Code:
Aug 19, 2019 07:03:36 Daemon startup
Aug 19, 2019 07:03:40 Daemon can not be started! Error 0 Module 0x0003 Line 24
Aug 19, 2019 07:03:40 Daemon shutdown


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


Joined: 01 Aug 2007
Posts: 557

PostPosted: Wed Aug 21, 2019 8:44 am    Post subject: Reply with quote

Hello Sveni,

Could you please post the output of `dmesg` and the contents of /proc/devices after installing? It appears like kernel module is not loaded.
Back to top
View user's profile Send private message
sveni_lee



Joined: 21 Aug 2019
Posts: 3

PostPosted: Wed Aug 21, 2019 9:20 am    Post subject: Reply with quote

sure...

Code:
outdoorpi@ERASE:~$ dmesg
[...CUT...]
[   21.773638] ieee80211 phy0: Interface ID:0 of type:2 added
[   21.779442] ieee80211 phy0: vif 0, configuring tx
[   21.779878] ieee80211 phy0: vif 0, configuring tx
[   21.780227] ieee80211 phy0: vif 0, configuring tx
[   21.787204] ieee80211 phy0: vif 0, configuring tx
[   21.787742] ieee80211 phy0: ignore IEEE80211_CONF_CHANGE_MONITOR (1)IEEE80211_CONF_CHANGE_IDLE (1)
[   21.788167] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[   22.201677] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[   24.769061] dwmac-sun8i 1c30000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
[   24.769117] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[81299.479239] tusbd: version magic '4.19.59-sunxi SMP mod_unload ARMv7 thumb2 p2v8 ' should be '4.19.62-sunxi SMP mod_unload ARMv7 thumb2 p2v8 '
[205199.956418] dwmac-sun8i 1c30000.ethernet eth0: Link is Down
[207236.725727] dwmac-sun8i 1c30000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx




Code:
Character devices:
  1 mem
  2 pty
  3 ttyp
  4 /dev/vc/0
  4 tty
  4 ttyS
  5 /dev/tty
  5 /dev/console
  5 /dev/ptmx
  7 vcs
 10 misc
 13 input
 21 sg
 29 fb
 81 video4linux
 89 i2c
 90 mtd
116 alsa
128 ptm
136 pts
180 usb
188 ttyUSB
189 usb_device
212 DVB
226 drm
241 iio
242 uio
243 ttyGS
244 hidraw
245 rpmb
246 bsg
247 watchdog
248 ptp
249 pps
250 cec
251 BaseRemoteCtl
252 media
253 rtc
254 gpiochip

Block devices:
  1 ramdisk
  7 loop
  8 sd
 65 sd
 66 sd
 67 sd
 68 sd
 69 sd
 70 sd
 71 sd
128 sd
129 sd
130 sd
131 sd
132 sd
133 sd
134 sd
135 sd
179 mmc
254 zram
259 blkext
Back to top
View user's profile Send private message
Peter
Site Admin


Joined: 01 Aug 2007
Posts: 557

PostPosted: Wed Aug 21, 2019 9:52 am    Post subject: Reply with quote

Thank you, sveni

Quote:
[81299.479239] tusbd: version magic '4.19.59-sunxi SMP mod_unload ARMv7 thumb2 p2v8 ' should be '4.19.62-sunxi SMP mod_unload ARMv7 thumb2 p2v8

This line shows that kernel module did not load because it was compiled with the help of kernel sources that do not correspond the running kernel (sources version is 4.19.59, but kernel version is 4.19.62).

On Debian, it is usually enough to install linux-headers package instead of the full kernel source, this package should be available from the official repository:
Code:
apt-get install linux-headers-`uname -r`


Please try to install linux-headers and revert the installer.sh back to its original state.
Back to top
View user's profile Send private message
sveni_lee



Joined: 21 Aug 2019
Posts: 3

PostPosted: Wed Aug 21, 2019 10:23 am    Post subject: Reply with quote

done

Code:
outdoorpi@ERASE:~$ sudo /usr/local/usb-redirector/uninstall.sh uninstall

*** Uninstalling USB Redirector...
***  Stopping daemon...
***  Stopping kernel module...
***  Removing files...
***  UNINSTALLATION SUCCESSFUL!
outdoorpi@ERASE:~$ mc

outdoorpi@ERASE:~$ cd usb-redirector-linux-arm-gnueabihf/
outdoorpi@ERASE:~/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...
***  Kernel module successfully compiled
***  Creating directories...
***  Preparing scripts...
***  Copying files...
***  Setting up init script...
***  Starting daemon...
***  Please allow incoming connections on 32032 port for USB Sever to be able to accept connections from remote clients.
***  INSTALLATION SUCCESSFUL! To uninstall, run /usr/local/usb-redirector/uninstall.sh
outdoorpi@ERASE:~/usb-redirector-linux-arm-gnueabihf$


seems to be work now...

Code:
outdoorpi@ERASE:~/usb-redirector-linux-arm-gnueabihf$ sudo /usr/local/usb-redirector/bin/usbsrv -list

================= USB SERVER OPERATION SUCCESSFUL ===============
List of local USB devices:

   1: USB2.0-Serial
      Vid: 1a86   Pid: 7523   Port: 6-1
      Status: plugged

===================== ======================= ===================

outdoorpi@ERASE:~/usb-redirector-linux-arm-gnueabihf$ ^C
outdoorpi@ERASE:~/usb-redirector-linux-arm-gnueabihf$ sudo /usr/local/usb-redirector/bin/usbsrv -share -vid 1a86 -pid 7523 -usbport 6-1

====================== OPERATION SUCCESSFUL =====================
USB device has been shared
===================== ======================= ===================

outdoorpi@ERASE:~/usb-redirector-linux-arm-gnueabihf$


thanks!
Back to top
View user's profile Send private message
Peter
Site Admin


Joined: 01 Aug 2007
Posts: 557

PostPosted: Wed Aug 21, 2019 11:08 am    Post subject: Reply with quote

Great! Thanks for updating us
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