Installing on Open WRT

12 posts / 0 new
Last post
kully
Installing on Open WRT

can you please help me with the installation of VirtualHere server on OpenWrt?

Michael
1. Compile the openwrt kernel

1. Compile the openwrt kernel with pthreads,usb host, openssl and avahi client support
2. download the appropriate virutalhere server binary
3. make executable via chmod and run it..

kully
I am new at this, it is

I am new at this, it is possible to install the necessary things using opkg packages?

Michael
OK, just try to run it and

OK, just try to run it and see what it says. If libraries are missing it will complain and tell you the library. I think you can also use opkg...rather than compiling directly via make menuconfig

kully
I copied the file

I copied the file vhusbdoar7x9xa to /etc/init.d folder and when I try to run the file, i receive the following error:
vhusbdoar7x9xa: can't load library 'libpthread.so.0'

kully
I installed another openwrt,

I installed another openwrt, which contains multiple packages. Missed Avahi, so I installed it and ran virtualhere server. Computer see server, but I do not see any connected device

Michael
You need to take a look at

You need to take a look at the syslog in openwrt (read via logread). That will show any errors, perhaps the usb subsystem in openwrt was not complied in?

kully
I started from the beginning,

I started from the beginning, I have installed openwrt and these packages:

libpthread 0.9.33.2-1 POSIX thread library
kmod-usbip-server 3.10.49-1 USB-over-IP host driver
libopenssl 1.0.1i-1 The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols as well as a full-strength general purpose cryptography library. This package contains the OpenSSL shared libraries, needed by other programs.
avahi-daemon 0.6.31-6 Avahi is an mDNS/DNS-SD (aka RendezVous/Bonjour/ZeroConf) implementation (library). It facilitates service discovery on a local network -- this means that you can plug your laptop or computer into a network and instantly be able to view other people who you can chat with, find printers to print to or find files being shared. This kind of technology is already found in MacOS X (branded 'Rendezvous', 'Bonjour' and sometimes 'ZeroConf') and is very convenient. . This package contains an mDNS/DNS-SD daemon.

And there is system log:

Wed Sep 10 06:54:39 2014 daemon.warn dnsmasq-dhcp[1016]: no address range available for DHCP request via wlan0
Wed Sep 10 06:54:47 2014 daemon.warn dnsmasq-dhcp[1016]: no address range available for DHCP request via wlan0
Wed Sep 10 06:56:37 2014 kern.err kernel: [ 170.040000] hub 1-0:1.0: connect-debounce failed, port 1 disabled
Wed Sep 10 06:56:41 2014 kern.err kernel: [ 173.240000] hub 1-0:1.0: connect-debounce failed, port 1 disabled
Wed Sep 10 06:56:44 2014 kern.err kernel: [ 176.590000] hub 1-0:1.0: connect-debounce failed, port 1 disabled
Wed Sep 10 06:56:44 2014 user.info vhusbdoar7x9xa: >>> Starting v1.8.7 (Built: Aug 27 2014, 13:49:14)<<<
Wed Sep 10 06:56:44 2014 user.info vhusbdoar7x9xa: Using default configuration /etc/init.d/config.ini
Wed Sep 10 06:56:44 2014 daemon.info avahi-daemon[1315]: Found user 'nobody' (UID 65534) and group 'nogroup' (GID 65534).
Wed Sep 10 06:56:44 2014 daemon.info avahi-daemon[1315]: Successfully dropped root privileges.
Wed Sep 10 06:56:44 2014 daemon.info avahi-daemon[1315]: avahi-daemon 0.6.31 starting up.
Wed Sep 10 06:56:44 2014 daemon.warn avahi-daemon[1315]: WARNING: No NSS support for mDNS detected, consider installing nss-mdns!
Wed Sep 10 06:56:44 2014 daemon.err avahi-daemon[1315]: dbus_bus_get_private(): Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
Wed Sep 10 06:56:44 2014 daemon.warn avahi-daemon[1315]: WARNING: Failed to contact D-Bus daemon.
Wed Sep 10 06:56:44 2014 user.info vhusbdoar7x9xa: Serial:xxxxxxxxxxxx
Wed Sep 10 06:56:44 2014 daemon.info avahi-daemon[1315]: avahi-daemon 0.6.31 exiting.
Wed Sep 10 06:56:45 2014 user.info vhusbdoar7x9xa: Server licensed to=unlicensed max_devices=1
Wed Sep 10 06:56:45 2014 user.info vhusbdoar7x9xa: Using large URB's
Wed Sep 10 06:56:45 2014 user.debug vhusbdoar7x9xa: TCPServer starting...
Wed Sep 10 06:56:45 2014 user.info vhusbdoar7x9xa: TCPServer bound to port 7575
Wed Sep 10 06:56:45 2014 user.debug vhusbdoar7x9xa: TCPServer (7575) started
Wed Sep 10 06:56:45 2014 user.err vhusbdoar7x9xa: Failed to create AVAHI client: Daemon not running
Wed Sep 10 06:56:46 2014 user.debug vhusbdoar7x9xa: 192.168.2.22 connected
Wed Sep 10 06:56:47 2014 kern.err kernel: [ 179.790000] hub 1-0:1.0: connect-debounce failed, port 1 disabled
Wed Sep 10 06:56:50 2014 kern.err kernel: [ 182.990000] hub 1-0:1.0: connect-debounce failed, port 1 disabled
Wed Sep 10 06:56:54 2014 kern.err kernel: [ 186.190000] hub 1-0:1.0: connect-debounce failed, port 1 disabled
Wed Sep 10 06:56:57 2014 kern.err kernel: [ 189.390000] hub 1-0:1.0: connect-debounce failed, port 1 disabled
Wed Sep 10 06:57:00 2014 kern.err kernel: [ 192.590000] hub 1-0:1.0: connect-debounce failed, port 1 disabled
Wed Sep 10 06:57:03 2014 kern.err kernel: [ 195.790000] hub 1-0:1.0: connect-debounce failed, port 1 disabled
Wed Sep 10 06:57:06 2014 kern.err kernel: [ 198.990000] hub 1-0:1.0: connect-debounce failed, port 1 disabled
Wed Sep 10 06:57:10 2014 kern.err kernel: [ 202.190000] hub 1-0:1.0: connect-debounce failed, port 1 disabled
Wed Sep 10 06:57:13 2014 kern.err kernel: [ 205.390000] hub 1-0:1.0: connect-debounce failed, port 1 disabled
Wed Sep 10 06:57:16 2014 kern.err kernel: [ 208.590000] hub 1-0:1.0: connect-debounce failed, port 1 disabled
Wed Sep 10 06:57:19 2014 kern.err kernel: [ 211.790000] hub 1-0:1.0: connect-debounce failed, port 1 disabled
Wed Sep 10 06:57:22 2014 kern.err kernel: [ 214.990000] hub 1-0:1.0: connect-debounce failed, port 1 disabled
Wed Sep 10 06:57:26 2014 kern.err kernel: [ 218.190000] hub 1-0:1.0: connect-debounce failed, port 1 disabled
Wed Sep 10 06:57:29 2014 kern.err kernel: [ 221.390000] hub 1-0:1.0: connect-debounce failed, port 1 disabled
Wed Sep 10 06:57:32 2014 kern.err kernel: [ 224.590000] hub 1-0:1.0: connect-debounce failed, port 1 disabled
Wed Sep 10 06:57:38 2014 daemon.warn dnsmasq-dhcp[1016]: no address range available for DHCP request via wlan0
Wed Sep 10 06:57:38 2014 daemon.warn dnsmasq-dhcp[1016]: no address range available for DHCP request via wlan0
Wed Sep 10 06:57:55 2014 user.info vhusbdoar7x9xa: >>> Starting v1.8.7 (Built: Aug 27 2014, 13:49:14)<<<
Wed Sep 10 06:57:55 2014 user.info vhusbdoar7x9xa: Using default configuration /etc/init.d/config.ini
Wed Sep 10 06:57:55 2014 daemon.info avahi-daemon[1440]: Found user 'nobody' (UID 65534) and group 'nogroup' (GID 65534).
Wed Sep 10 06:57:55 2014 daemon.info avahi-daemon[1440]: Successfully dropped root privileges.
Wed Sep 10 06:57:55 2014 daemon.info avahi-daemon[1440]: avahi-daemon 0.6.31 starting up.
Wed Sep 10 06:57:55 2014 daemon.warn avahi-daemon[1440]: WARNING: No NSS support for mDNS detected, consider installing nss-mdns!
Wed Sep 10 06:57:55 2014 daemon.err avahi-daemon[1440]: dbus_bus_get_private(): Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
Wed Sep 10 06:57:55 2014 daemon.warn avahi-daemon[1440]: WARNING: Failed to contact D-Bus daemon.
Wed Sep 10 06:57:55 2014 user.info vhusbdoar7x9xa: Serial:xxxxxxxxxxxx
Wed Sep 10 06:57:55 2014 daemon.info avahi-daemon[1440]: avahi-daemon 0.6.31 exiting.
Wed Sep 10 06:57:55 2014 user.info vhusbdoar7x9xa: Server licensed to=unlicensed max_devices=1
Wed Sep 10 06:57:55 2014 user.info vhusbdoar7x9xa: Using large URB's
Wed Sep 10 06:57:55 2014 user.debug vhusbdoar7x9xa: TCPServer starting...
Wed Sep 10 06:57:55 2014 user.err vhusbdoar7x9xa: Trying to bind the socket to a listening address, Address already in use
Wed Sep 10 06:57:55 2014 user.err vhusbdoar7x9xa: Failed to start server
Wed Sep 10 06:57:55 2014 user.debug vhusbdoar7x9xa: TCPServer shutdown
Wed Sep 10 06:57:55 2014 user.info vhusbdoar7x9xa: >>> Shutdown <<<
Wed Sep 10 06:58:07 2014 user.info vhusbdoar7x9xa: >>> Starting v1.8.7 (Built: Aug 27 2014, 13:49:14)<<<
Wed Sep 10 06:58:07 2014 user.info vhusbdoar7x9xa: Using default configuration /etc/init.d/config.ini
Wed Sep 10 06:58:07 2014 daemon.info avahi-daemon[1560]: Found user 'nobody' (UID 65534) and group 'nogroup' (GID 65534).
Wed Sep 10 06:58:07 2014 daemon.info avahi-daemon[1560]: Successfully dropped root privileges.
Wed Sep 10 06:58:07 2014 daemon.info avahi-daemon[1560]: avahi-daemon 0.6.31 starting up.
Wed Sep 10 06:58:07 2014 daemon.warn avahi-daemon[1560]: WARNING: No NSS support for mDNS detected, consider installing nss-mdns!
Wed Sep 10 06:58:07 2014 daemon.err avahi-daemon[1560]: dbus_bus_get_private(): Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
Wed Sep 10 06:58:07 2014 daemon.warn avahi-daemon[1560]: WARNING: Failed to contact D-Bus daemon.
Wed Sep 10 06:58:07 2014 user.info vhusbdoar7x9xa: Serial:xxxxxxxxxxxx
Wed Sep 10 06:58:07 2014 daemon.info avahi-daemon[1560]: avahi-daemon 0.6.31 exiting.
Wed Sep 10 06:58:07 2014 user.info vhusbdoar7x9xa: Server licensed to=unlicensed max_devices=1
Wed Sep 10 06:58:07 2014 user.info vhusbdoar7x9xa: Using large URB's
Wed Sep 10 06:58:07 2014 user.debug vhusbdoar7x9xa: TCPServer starting...
Wed Sep 10 06:58:07 2014 user.err vhusbdoar7x9xa: Trying to bind the socket to a listening address, Address already in use
Wed Sep 10 06:58:07 2014 user.err vhusbdoar7x9xa: Failed to start server
Wed Sep 10 06:58:07 2014 user.debug vhusbdoar7x9xa: TCPServer shutdown
Wed Sep 10 06:58:07 2014 user.info vhusbdoar7x9xa: >>> Shutdown <<<
Wed Sep 10 06:58:13 2014 user.info vhusbdoar7x9xa: >>> Starting v1.8.7 (Built: Aug 27 2014, 13:49:14)<<<
Wed Sep 10 06:58:13 2014 user.info vhusbdoar7x9xa: Using default configuration /etc/init.d/config.ini
Wed Sep 10 06:58:13 2014 daemon.info avahi-daemon[1687]: Found user 'nobody' (UID 65534) and group 'nogroup' (GID 65534).
Wed Sep 10 06:58:13 2014 daemon.info avahi-daemon[1687]: Successfully dropped root privileges.
Wed Sep 10 06:58:13 2014 daemon.info avahi-daemon[1687]: avahi-daemon 0.6.31 starting up.
Wed Sep 10 06:58:13 2014 daemon.warn avahi-daemon[1687]: WARNING: No NSS support for mDNS detected, consider installing nss-mdns!
Wed Sep 10 06:58:13 2014 daemon.info avahi-daemon[1687]: Loading service file /etc/avahi/services/http.service.
Wed Sep 10 06:58:13 2014 daemon.info avahi-daemon[1687]: Loading service file /etc/avahi/services/ssh.service.
Wed Sep 10 06:58:13 2014 daemon.info avahi-daemon[1687]: Joining mDNS multicast group on interface wlan0.IPv4 with address 192.168.2.24.
Wed Sep 10 06:58:13 2014 daemon.info avahi-daemon[1687]: New relevant interface wlan0.IPv4 for mDNS.
Wed Sep 10 06:58:13 2014 daemon.info avahi-daemon[1687]: Joining mDNS multicast group on interface eth1.IPv4 with address 192.168.1.1.
Wed Sep 10 06:58:13 2014 daemon.info avahi-daemon[1687]: New relevant interface eth1.IPv4 for mDNS.
Wed Sep 10 06:58:13 2014 daemon.info avahi-daemon[1687]: Network interface enumeration completed.
Wed Sep 10 06:58:13 2014 daemon.info avahi-daemon[1687]: Registering new address record for fe80::c24a:ff:fe8d:596 on wlan0.*.
Wed Sep 10 06:58:13 2014 daemon.info avahi-daemon[1687]: Registering new address record for 192.168.2.24 on wlan0.IPv4.
Wed Sep 10 06:58:13 2014 daemon.info avahi-daemon[1687]: Registering new address record for fd60:cec:c38c::1 on eth1.*.
Wed Sep 10 06:58:13 2014 daemon.info avahi-daemon[1687]: Registering new address record for 192.168.1.1 on eth1.IPv4.
Wed Sep 10 06:58:13 2014 daemon.info avahi-daemon[1687]: Registering HINFO record with values 'MIPS'/'LINUX'.
Wed Sep 10 06:58:13 2014 user.info vhusbdoar7x9xa: Serial:xxxxxxxxxxxx
Wed Sep 10 06:58:13 2014 user.info vhusbdoar7x9xa: Server licensed to=unlicensed max_devices=1
Wed Sep 10 06:58:13 2014 user.info vhusbdoar7x9xa: Using large URB's
Wed Sep 10 06:58:13 2014 user.debug vhusbdoar7x9xa: TCPServer starting...
Wed Sep 10 06:58:13 2014 user.err vhusbdoar7x9xa: Trying to bind the socket to a listening address, Address already in use
Wed Sep 10 06:58:13 2014 user.err vhusbdoar7x9xa: Failed to start server
Wed Sep 10 06:58:13 2014 user.debug vhusbdoar7x9xa: TCPServer shutdown
Wed Sep 10 06:58:13 2014 user.info vhusbdoar7x9xa: >>> Shutdown <<<
Wed Sep 10 06:58:13 2014 user.info vhusbdoar7x9xa: >>> Starting v1.8.7 (Built: Aug 27 2014, 13:49:14)<<<
Wed Sep 10 06:58:13 2014 user.info vhusbdoar7x9xa: Using default configuration /etc/init.d/config.ini
Wed Sep 10 06:58:13 2014 user.info vhusbdoar7x9xa: Serial:xxxxxxxxxxxx
Wed Sep 10 06:58:13 2014 user.info vhusbdoar7x9xa: Server licensed to=unlicensed max_devices=1
Wed Sep 10 06:58:13 2014 user.info vhusbdoar7x9xa: Using large URB's
Wed Sep 10 06:58:13 2014 user.debug vhusbdoar7x9xa: TCPServer starting...
Wed Sep 10 06:58:13 2014 user.err vhusbdoar7x9xa: Trying to bind the socket to a listening address, Address already in use
Wed Sep 10 06:58:13 2014 user.err vhusbdoar7x9xa: Failed to start server
Wed Sep 10 06:58:13 2014 user.debug vhusbdoar7x9xa: TCPServer shutdown
Wed Sep 10 06:58:13 2014 user.info vhusbdoar7x9xa: >>> Shutdown <<<
Wed Sep 10 06:58:14 2014 daemon.info avahi-daemon[1687]: Server startup complete. Host name is OpenWrt.local. Local service cookie is 3672871806.
Wed Sep 10 06:58:15 2014 daemon.info avahi-daemon[1687]: Service "Secure Shell on OpenWrt" (/etc/avahi/services/ssh.service) successfully established.
Wed Sep 10 06:58:15 2014 daemon.info avahi-daemon[1687]: Service "Web Server on OpenWrt" (/etc/avahi/services/http.service) successfully established.
Wed Sep 10 06:58:41 2014 daemon.warn dnsmasq-dhcp[1016]: no address range available for DHCP request via wlan0
Wed Sep 10 06:58:58 2014 daemon.warn dnsmasq-dhcp[1016]: no address range available for DHCP request via wlan0
Wed Sep 10 06:59:32 2014 kern.err kernel: [ 344.630000] hub 1-0:1.0: connect-debounce failed, port 1 disabled
Wed Sep 10 06:59:35 2014 kern.err kernel: [ 347.830000] hub 1-0:1.0: connect-debounce failed, port 1 disabled
Wed Sep 10 06:59:38 2014 kern.err kernel: [ 351.030000] hub 1-0:1.0: connect-debounce failed, port 1 disabled
Wed Sep 10 06:59:42 2014 kern.err kernel: [ 354.230000] hub 1-0:1.0: connect-debounce failed, port 1 disabled
Wed Sep 10 06:59:45 2014 kern.err kernel: [ 357.430000] hub 1-0:1.0: connect-debounce failed, port 1 disabled
Wed Sep 10 06:59:48 2014 kern.err kernel: [ 360.630000] hub 1-0:1.0: connect-debounce failed, port 1 disabled
Wed Sep 10 06:59:51 2014 kern.err kernel: [ 363.830000] hub 1-0:1.0: connect-debounce failed, port 1 disabled
Wed Sep 10 06:59:54 2014 kern.err kernel: [ 367.030000] hub 1-0:1.0: connect-debounce failed, port 1 disabled
Wed Sep 10 06:59:58 2014 kern.err kernel: [ 370.230000] hub 1-0:1.0: connect-debounce failed, port 1 disabled
Wed Sep 10 07:00:01 2014 kern.err kernel: [ 373.430000] hub 1-0:1.0: connect-debounce failed, port 1 disabled

Michael
OK thanks for the log. You

OK thanks for the log. You dont need the kmod-usbip-server 3.10.49-1 as virtualhere does that . It looks like your avahi-daemon is not working because you dont have a dbus. I created a build of virtualhere without the avahi requirement and we'll see if that works better for you.... It is available on my website under the embedded section

kully
I have dbus, but looks like

I have dbus, but looks like it does not work or does not start automatically. So I try virtualhere without the avahi and works.

Directly attached low speed usb device are not detected an producing the following error "connect-debounce failed" in the error log.
If the same device is connected through a usb hub, everything works fine.

the last thing that does not work
client can not find the server automatically, I must manually enter the IP address of the server

kully
I'm sorry, I read what was

I'm sorry, I read what was doing avahi and now I get virtualhere with avahi, enable automatically start for dbus and everything works.

Michael
OK good, also I think that

OK good, also I think that "connect-debounce failed" is a bug in your openwrt kernel. I think you should try to compile openwrt from scratch to get the latest stuff

Log in or register to post comments