Cant install due to USB woes

I have a USB keyboard and mouse, both of which are on the supported hardware
page. WHen booting from CD, i get the keyboard while in the shell, but as
soon as the GUI starts, I loose it. I have yet to see a working mouse
although I do see the pointer in the upper left of the screen.

Will I be able to configure these devices if I borrow legacy ps2 devices to
use during the install ?

John

“John Love” <john@tolltex.com> wrote in message
news:9ij0fe$a15$1@inn.qnx.com

I have a USB keyboard and mouse, both of which are on the supported
hardware
page. WHen booting from CD, i get the keyboard while in the shell, but as
soon as the GUI starts, I loose it.

Sounds like you have “Legacy USB support” in BIOS enabled. You will have to
disable it after you done configuring the support for QNX. I suspect that
will mean keyboard won’t work at all in text mode, but not sure since I have
no USB keyboard.

I have yet to see a working mouse
although I do see the pointer in the upper left of the screen.

Will I be able to configure these devices if I borrow legacy ps2 devices
to
use during the install ?

Yes. Automatic detection and configuration is promiced to be with next
update but so far you’ll have to do it manually.

You need:

  1. Start USB controller driver (devu-ohci or devu-uhci, depending on
    hardware).
  2. Start devu-kbd and devu-mouse

That could be done in /etc/rc.d/rc.local (create it and make it executable).

  1. Create config file for devi-hirun so it will use /dev/usbmouse0 and
    /dev/usbkbd0.

Read devi-hirun docs for details. I don’t think anything will work before
you disable “Legacy USB”.

  • Igor

Version 6.1 does not have full support of USB devices. You don’t have
enumeration service for them. To use these devices with USB drivers, you
have modify your trap file in /etc/system/trap directory and start low level
USB drivers for example from rc.local script. Now it works like that:

devu-*hci → devu-mouse | devu-kbd → devi-hirun that uses fd input
module on device level.

This architecture will be changed in the next release.


“John Love” <john@tolltex.com> wrote in message
news:9ij0fe$a15$1@inn.qnx.com

I have a USB keyboard and mouse, both of which are on the supported
hardware
page. WHen booting from CD, i get the keyboard while in the shell, but as
soon as the GUI starts, I loose it. I have yet to see a working mouse
although I do see the pointer in the upper left of the screen.

Will I be able to configure these devices if I borrow legacy ps2 devices
to
use during the install ?

John

I have tried the following with no sucsess…

  1. disabling USB legacy devices in the BIOS. This kills my keyboard before
    I can log in at the command line.
  2. starting devu-ohci -v &. I get a message “controller not found”.
  3. devu-uhci -v &. kills my keyboard and turns off the LED on my optical
    mouse.
  4. ran the following script

devu-uhci -v &

devu-kbd -v &
devu-mouse -v &
dev-hirun -v &
<<<<<<<<<<<<<<<

So short of tossing my USB input devices, what are my options here ?

Thanks for the input (pun intended) :slight_smile:

John

Alex Chapiro <achapiro@qnx.com> wrote in message
news:9ikdno$dq9$1@nntp.qnx.com

Version 6.1 does not have full support of USB devices. You don’t have
enumeration service for them. To use these devices with USB drivers, you
have modify your trap file in /etc/system/trap directory and start low
level
USB drivers for example from rc.local script. Now it works like that:

devu-*hci → devu-mouse | devu-kbd → devi-hirun that uses fd input
module on device level.

This architecture will be changed in the next release.


“John Love” <> john@tolltex.com> > wrote in message
news:9ij0fe$a15$> 1@inn.qnx.com> …
I have a USB keyboard and mouse, both of which are on the supported
hardware
page. WHen booting from CD, i get the keyboard while in the shell, but
as
soon as the GUI starts, I loose it. I have yet to see a working mouse
although I do see the pointer in the upper left of the screen.

Will I be able to configure these devices if I borrow legacy ps2 devices
to
use during the install ?

John
\

I guess you are pretty close to solution of your problem. I hope,the last
thing you have to do is to set correct parameters for devi-hirun driver:

devi-hirun ps2 fd -d/dev/usbmouse0 kbd fd -d/dev/usbkbd0

To be sure that device name are correct, you can type (or insert into your
script) command

ls /dev/usb*

Of course, you have to start this driver when Photon is running.


“John Love” <john@tolltex.com.no.spam> wrote in message
news:9j06hi$acp$1@inn.qnx.com

I have tried the following with no sucsess…

  1. disabling USB legacy devices in the BIOS. This kills my keyboard
    before
    I can log in at the command line.
  2. starting devu-ohci -v &. I get a message “controller not found”.
  3. devu-uhci -v &. kills my keyboard and turns off the LED on my optical
    mouse.
  4. ran the following script

devu-uhci -v &
devu-kbd -v &
devu-mouse -v &
dev-hirun -v &


So short of tossing my USB input devices, what are my options here ?

Thanks for the input (pun intended) > :slight_smile:

John

Alex Chapiro <> achapiro@qnx.com> > wrote in message
news:9ikdno$dq9$> 1@nntp.qnx.com> …
Version 6.1 does not have full support of USB devices. You don’t have
enumeration service for them. To use these devices with USB drivers, you
have modify your trap file in /etc/system/trap directory and start low
level
USB drivers for example from rc.local script. Now it works like that:

devu-*hci → devu-mouse | devu-kbd → devi-hirun that uses fd
input
module on device level.

This architecture will be changed in the next release.


“John Love” <> john@tolltex.com> > wrote in message
news:9ij0fe$a15$> 1@inn.qnx.com> …
I have a USB keyboard and mouse, both of which are on the supported
hardware
page. WHen booting from CD, i get the keyboard while in the shell,
but
as
soon as the GUI starts, I loose it. I have yet to see a working mouse
although I do see the pointer in the upper left of the screen.

Will I be able to configure these devices if I borrow legacy ps2
devices
to
use during the install ?

John


\

Alex,
Thanks for your guidance.

my script file now looks like…

<<<<<<<<<<<
devu-uhci -v &
devu-kbd -v &
devu-mouse -v &
sleep 15
ls /dev/*
devi-hirun ps2 fd -d/dev/usbmouse0 kbd fd -d/dev/usbkbd0 &

This doesn’t do the job I still get no keyboard. I would expect to see

output from the ls command but get none. The following is my understanding
of the issue along with some questions. If I am incorrect please correct me
or point me to a place where I can get some information.

My BIOS does some sort of ps2 emulation for my USB keyboard, as it is
available at boot time for changing the BIOS as well as for the command line
of the RTOS.
When starting devu-uhci, the USB bus is reset. This has the expected result
of disabling this BIOS emulation and breaking dev-con’s input fd.
Should I be starting the USB drivers before dev-con in the build file to
account for this ?
Is there a way to signal dev-con to attempt to connect to /dev/usbkbd after
the USB bus is reset ?
Could the breaking of dev-con’s input fd be putting it into a blocked state
so that my ls command is not displayed ?
Can you give me more detail on manually changing the trap file to account
for the lack of enumeration ?

Thanks again
John

“Alex Chapiro” <achapiro@qnx.com> wrote in message
news:9j17bd$ftm$1@nntp.qnx.com

I guess you are pretty close to solution of your problem. I hope,the last
thing you have to do is to set correct parameters for devi-hirun driver:

devi-hirun ps2 fd -d/dev/usbmouse0 kbd fd -d/dev/usbkbd0

To be sure that device name are correct, you can type (or insert into your
script) command

ls /dev/usb*

Of course, you have to start this driver when Photon is running.


“John Love” <> john@tolltex.com.no.spam> > wrote in message
news:9j06hi$acp$> 1@inn.qnx.com> …
I have tried the following with no sucsess…

  1. disabling USB legacy devices in the BIOS. This kills my keyboard
    before
    I can log in at the command line.
  2. starting devu-ohci -v &. I get a message “controller not found”.
  3. devu-uhci -v &. kills my keyboard and turns off the LED on my
    optical
    mouse.
  4. ran the following script

devu-uhci -v &
devu-kbd -v &
devu-mouse -v &
dev-hirun -v &


So short of tossing my USB input devices, what are my options here ?

Thanks for the input (pun intended) > :slight_smile:

John

Alex Chapiro <> achapiro@qnx.com> > wrote in message
news:9ikdno$dq9$> 1@nntp.qnx.com> …
Version 6.1 does not have full support of USB devices. You don’t have
enumeration service for them. To use these devices with USB drivers,
you
have modify your trap file in /etc/system/trap directory and start low
level
USB drivers for example from rc.local script. Now it works like that:

devu-*hci → devu-mouse | devu-kbd → devi-hirun that uses fd
input
module on device level.

This architecture will be changed in the next release.


“John Love” <> john@tolltex.com> > wrote in message
news:9ij0fe$a15$> 1@inn.qnx.com> …
I have a USB keyboard and mouse, both of which are on the supported
hardware
page. WHen booting from CD, i get the keyboard while in the shell,
but
as
soon as the GUI starts, I loose it. I have yet to see a working
mouse
although I do see the pointer in the upper left of the screen.

Will I be able to configure these devices if I borrow legacy ps2
devices
to
use during the install ?

John




\

PUNT

“John” <john_nospam@tolltex.com> wrote in message
news:9j6r1g$gvc$1@inn.qnx.com

Alex,
Thanks for your guidance.

my script file now looks like…


devu-uhci -v &
devu-kbd -v &
devu-mouse -v &
sleep 15
ls /dev/*
devi-hirun ps2 fd -d/dev/usbmouse0 kbd fd -d/dev/usbkbd0 &

This doesn’t do the job I still get no keyboard. I would expect to see
output from the ls command but get none. The following is my
understanding
of the issue along with some questions. If I am incorrect please correct
me
or point me to a place where I can get some information.

My BIOS does some sort of ps2 emulation for my USB keyboard, as it is
available at boot time for changing the BIOS as well as for the command
line
of the RTOS.
When starting devu-uhci, the USB bus is reset. This has the expected
result
of disabling this BIOS emulation and breaking dev-con’s input fd.
Should I be starting the USB drivers before dev-con in the build file to
account for this ?
Is there a way to signal dev-con to attempt to connect to /dev/usbkbd
after
the USB bus is reset ?
Could the breaking of dev-con’s input fd be putting it into a blocked
state
so that my ls command is not displayed ?
Can you give me more detail on manually changing the trap file to account
for the lack of enumeration ?

Thanks again
John

“Alex Chapiro” <> achapiro@qnx.com> > wrote in message
news:9j17bd$ftm$> 1@nntp.qnx.com> …
I guess you are pretty close to solution of your problem. I hope,the
last
thing you have to do is to set correct parameters for devi-hirun driver:

devi-hirun ps2 fd -d/dev/usbmouse0 kbd fd -d/dev/usbkbd0

To be sure that device name are correct, you can type (or insert into
your
script) command

ls /dev/usb*

Of course, you have to start this driver when Photon is running.


“John Love” <> john@tolltex.com.no.spam> > wrote in message
news:9j06hi$acp$> 1@inn.qnx.com> …
I have tried the following with no sucsess…

  1. disabling USB legacy devices in the BIOS. This kills my keyboard
    before
    I can log in at the command line.
  2. starting devu-ohci -v &. I get a message “controller not found”.
  3. devu-uhci -v &. kills my keyboard and turns off the LED on my
    optical
    mouse.
  4. ran the following script

devu-uhci -v &
devu-kbd -v &
devu-mouse -v &
dev-hirun -v &


So short of tossing my USB input devices, what are my options here ?

Thanks for the input (pun intended) > :slight_smile:

John

Alex Chapiro <> achapiro@qnx.com> > wrote in message
news:9ikdno$dq9$> 1@nntp.qnx.com> …
Version 6.1 does not have full support of USB devices. You don’t
have
enumeration service for them. To use these devices with USB drivers,
you
have modify your trap file in /etc/system/trap directory and start
low
level
USB drivers for example from rc.local script. Now it works like
that:

devu-*hci → devu-mouse | devu-kbd → devi-hirun that uses fd
input
module on device level.

This architecture will be changed in the next release.


“John Love” <> john@tolltex.com> > wrote in message
news:9ij0fe$a15$> 1@inn.qnx.com> …
I have a USB keyboard and mouse, both of which are on the
supported
hardware
page. WHen booting from CD, i get the keyboard while in the
shell,
but
as
soon as the GUI starts, I loose it. I have yet to see a working
mouse
although I do see the pointer in the upper left of the screen.

Will I be able to configure these devices if I borrow legacy ps2
devices
to
use during the install ?

John






\