Tiny Core Linux
Tiny Core Base => TCB Q&A Forum => Topic started by: bergtwvd on April 10, 2015, 06:02:02 PM
-
I am running TCL inside VirtualBox (VB) from docker.com, on Windows 7.
I have installed a (Java) application in TCL that requires a USB dongle in order to run.
VB sees the dongle and I have configured VB to filter on this dongle.
Now, the problem is:
The key activator of the application in TCL does not see the dongle. Get the following error:
Hardware verification failed: The correct hardware for this license could not be detected: No USB Dongle of the correct type detected.(Error Code: 401, Extended Error Code: 0)
Running the command dmesg I see:
on plugging in the USB dongle:
usb 2-1: new full-speed USB device number 10 using ohci-pci
usbhid 2-1:1.0: couldn't find an input interrupt endpoint
on remove of the USB dongle:
usb 2-1: USB disconnect, device number 10
Does TCL support USB dongles in combination with VB?
Basically, how can this be resolved?
Thanks!
TB.
-
Version:
docker@boot2docker:~$ uname -a
Linux boot2docker 3.18.5-tinycore64 #1 SMP Sun Feb 1 06:02:30 UTC 2015 x86_64 GNU/Linux
-
Neither VB nor your java application are are Core issues.
You should take it up with VB.
-
I could go to VB, but most likely they point me back to TCL.
Still, I would like to explore and understand the problem more clearly. Anyone seen something like this before?
I see that VB picks up the USB dongle, and I see that the USB dongle is visible inTCL.
E.g. when I go to /sys/bus/usb/devices I see:
(before USB dongle is plugged in):
[ root@5b98944bf55f:/sys/bus/usb/devices ]$ ls
1-0:1.0 2-0:1.0 usb1 usb2
(after plugin):
[ root@5b98944bf55f:/sys/bus/usb/devices/2-1 ]$ dmesg | tail -2
usb 2-1: new full-speed USB device number 17 using ohci-pci
usbhid 2-1:1.0: couldn't find an input interrupt endpoint
[ root@5b98944bf55f:/sys/bus/usb/devices ]$ ls
1-0:1.0 2-0:1.0 2-1 2-1:1.0 usb1 usb2
(next):
[ root@5b98944bf55f:/sys/bus/usb/devices ]$ cd 2-1
[ root@5b98944bf55f:/sys/bus/usb/devices/2-1 ]$ ls
2-1:1.0/ bMaxPower dev manufacturer serial
authorized bNumConfigurations devnum maxchild speed
avoid_reset_quirk bNumInterfaces devpath port subsystem
bConfigurationValue bcdDevice driver power/ uevent
bDeviceClass bmAttributes ep_00/ product urbnum
bDeviceProtocol busnum idProduct quirks version
bDeviceSubClass configuration idVendor removable
bMaxPacketSize0 descriptors ltm_capable remove
[ root@5b98944bf55f:/sys/bus/usb/devices/2-1 ]$ cat product
HID Dongle
So I wonder what the the dmesg message "usbhid 2-1:1.0: couldn't find an input interrupt endpoint" means,
and if it effects / relates to the problem reading the dongle.
-
Try TC on real hw, compare the kernel messages and device nodes.
-
Try TC on real hw, compare the kernel messages and device nodes.
Yes, sure, I thought of that already. Only, I do not have a Linux box at all.
-
A dedicated box is not needed, you can run live from a cd or an USB stick.
-
As I am a newby, please point me to a place where I can get this from, and I'll check it out.
-
On the top of the page click Downloads, download CorePlus. You can then burn this to a cd, or use it to install to an usb stick.
-
Thanks. As soon as I have checked it out I'll report back.
-
On the end it turned out to be a permission problem: the Docker container had not sufficient rights to access the host USB devices.
See http://stackoverflow.com/questions/24225647/docker-any-way-to-give-access-to-host-usb-or-serial-device
-- TB