Problems with connecting some USB-hardware

Hi @all

My problem is the following:
I just want to plug in an USB-Logitech-Mouse to my QNX-x86-System
…but it doesn’t work :cry:

Ok, step by step:

I strictly follow the instructions from the QNX-Momentic-Help
(Connecting new Hardware under the User’s Guide for QNX-Neutrino RTOS
6.3)

  1. after loged in as root

  2. i type “usb” to test whether there is any usb-device

  3. this msg returns:
    “usb: unable to connect to USB - No such file or directory”
    → SURE: I have no device plugged in

  4. Identify your controller:
    → pci -vvv returns the following

Class = Serial Bus (Universal Serial Bus)
Vendor ID = 8086h, Intel Corporation
Device ID = 7112h, 82371AB/EB/MB PIIX4/4E/4M USB Interface
PCI index = 0h
Class Codes = 0c0300h
Revision ID = 1h
Bus number = 0
Device number = 7
Function num = 2
Status Reg = 280h
Command Reg = 5h
I/O space access enabled
Memory space access disabled
Bus Master enabled
Special Cycle operations ignored
Memory Write and Invalidate disabled
Palette Snooping disabled
Parity Checking disabled
Data/Address stepping disabled
SERR# driver disabled
Fast back-to-back transactions to different agents disabled
Header type = 0h Single-function
BIST = 0h Build-in-self-test not supported
Latency Timer = 40h
Cache Line Size= 0h
PCI IO Address = e000h length 32 enabled
Max Lat = 0ns
Min Gnt = 0ns
PCI Int Pin = INT D
Interrupt line = no connection
Device Dependent Registers:
0x40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x60: 10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0xA0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0xB0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0xC0: 00 20 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0xD0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0xE0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0xF0: 00 00 00 00 00 00 00 00 30 0f 00 00 00 00 00 00

→ so I have an UHCI-Controller

  1. start the stack with the appropriate module
    → io-usb -d uhci verbose=4 &
    → the following was returned: “[1] 569373”

  2. I try again usb -vvv
    → # usb -vvv
    [1] + Done io-usb -d uhci verbose=4
    and /dev/io-usb/io-usb has been created
    and devu-uhci.so is in /dev/io-usb

  3. start the device driver as described below → keyboards and
    mice
    → io-hid -d usb &
    → returns: [1] 655392
    → entry /dev/io-hid/io-hid created and devh-usb.so in /dev/io-hid

  4. I don’t want to start Photon, I just want to have the mouse
    connected, so I plug in

  5. nothing!!! I can do anything anymore!!! totally crashed down, so
    that I have to switch off power and restart the system!!!

I don’t know what the problem is, but it happens everytime I plug in
my mouse!!! Doesn’t matter if it is plugged in bevor turning on the
system or while it is running → crash
The mouse isn’t even powered…

I have really no idea. The only thing that astonished me is:

Class = Serial Bus (Universal Serial Bus)
Vendor ID = 8086h, Intel Corporation
Device ID = 7112h, 82371AB/EB/MB PIIX4/4E/4M USB Interface
PCI index = 0h
Class Codes = 0c0300h
Revision ID = 1h
Bus number = 0
Device number = 7
Function num = 2
Status Reg = 280h
Command Reg = 5h
I/O space access enabled
Memory space access disabled <— LOOK
HERE
Bus Master enabled
Special Cycle operations ignored
Memory Write and Invalidate disabled
Palette Snooping disabled
Parity Checking disabled
Data/Address stepping disabled
SERR# driver disabled
Fast back-to-back transactions to different agents disabled

Does that mean anything??? If that is my problem: How can I enable the
Memory space access??? It is enabled for the network-devices and
display-devices, with those I don’t have any problems. And it is
disabled also for mass-storage-device there the same problems
occured!!!


So please help me!!!
How can I enable Memory space access


Thanks a lot

/– UPDATE –/

today I managed to get the keyboard working!!!
… but it is not absolutly correct, yet:

the thing why my systems crashed down, when plugging in some
USB-device, was:
in BIOS under PNP/PCI Configuration the option Assign IRQ For USB was
dissabled!!! so I enabled it for sure!!!
Now usb -vvv showed me every device I plugged in (mouse, keyboard,
usb-stick) AFTER starting the stack (io-usb -d uhci &)
and AFTER io-hid -d usb kbd:kbddev & hidview showed me the
hid-devices
…so far so good!!!

@keyboard
Then I had two cases:

  1. Option BIOS->Integrated Peripherals->USB-Keyboard-Support
    dissabled:
    the USB-kbd is not working after start-up, but after doing the
    connecting hardware-points from the User’s Guide (io-usb -d uhci
    &; io-hid -d usb kbd:kbddev &; starting photon; devi-hid -vvv
    kbd) the keyboard works under photon. when I return to the textmode
    the keyboard doesn’t work anymore…
  2. The Option BIOS->Integrated Peripherals->USB-Keyboard-Support
    enabled:
    the USB-kbd IS working after start-up, then doesn’t work anymore after
    io-usb -d uhci &, the devices are shown under usb -vvv
    when I complete the points (io-hid -d usb kbd:kbddev &; starting
    photon; devi-hid -vvv kbd) it works again. back to textmode →
    nothing working…
    …so far its ok, cause it WORKS!!!

@mouse:
I was not able to make the USB-mouse work
it is powered, it is listed in usb -vvv (after io-usb -d uhci &)
and is listed in hidview (after io-hid -d usb mouse:mousedev), but is
still not working after starting photon and typing devi-hid -vvv
mouse
whats the problem??? is mouse:mousedev actually the correct expression
after io-hid -d usb … ??? because there is a kbd-directory in /dev
but there is no directory /dev/mouse. is that related to the
problem???
Or is it because I have a ps2mouse plugged in at the same time; do the
ps2mouse compete with the USB-mouse (but I also tried it only with the
USB-mouse → no success)

so how can i get my keyboard and my mouse (for just reading out some
data) working WITHOUT running photon (because my system will have no
display in its later use!!!)???


Thank you so far

oh dear, my head is humming…
I searched the whole forum for a solution, but there are THOUSANDS of
solutions!!!
that’s very confusing!!!
I tried several thing and mixed it alltogether =) but nothing
works…
but I got another idea:
which path must be created for the usb mouse (/dev/???)
and how do I get it???
and all those solutions that include adding lines in
what-ever-files…
I’ll get crazy if I go on for today…
So I will hook here again on monday…

have a nice weekend!!!

ok, here is what I found out during my research and endless tries…

It won’t never ever work!!!
I mean running USB-Devices under QNX-text-mode…

→ this is from the QNX-Momentics-Help → User’s Guide →
Connecting Hardware:
" Currently, there’s no support for USB keyboards in text mode, but
Intel machines can use BIOS emulation to support them. Photon
supports USB mice and keyboards; for more information, see “USB
devices” later in this chapter. "
" The devi-* set of drivers handles input under Photon. "
→ and you use the devi-hid for the USB-Devices!!!

So I’m quite relieved, that it’s not me, who is too stupid to get it
working… =)

But there is the other problem with USB-Devices under Photon:
I yet can’t manage that for the USB-Mouse!!!

What am I doing wrong???
Any answers???

Moin,

I won’t give up, posting into the Forum 'till I got my stuff
working…
So why is my mouse still not working after everything I tried???

Maybe the dissabled memory space access is the reason…
(shown after typing pci -vvv, look at my first post)
Does anybody know how to enable this??? Why is it disabled only for
USB and Mass-Storage???

The other thing is, that there is no new entry in /dev after
connecting my keyboard. Needn’t there to be one??? For every new
device, a new device file is created, isn’t it??? What would the name
be??? Is the dissabled memory space access the reason, why the driver
isn’t able to create a device file, and thus the device ils not
working???

Lot’s of questions, I know, but it’s important for me to get some
answers…
So please…