Project Home
Project Home
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - QNX 4.25 2015 Experimental USB : Page 1 of 2 (33 Items)
   
QNX 4.25 2015 Experimental USB  
Hello. I have a miniPC Jetway FHP792x , which has only USB ports. I manage to install the experimental product suite 
2015, the usb keyboard works in the installer just fine. After that i manage to make the usb keyboard work  with the " 
Input kbd -R fd -d / dev / usbkbd0" in sysinit. But if i want to start the io-usb the PC freezes.
Is there a bypass or a  fix for this?
Thank you very much! 
Re: QNX 4.25 2015 Experimental USB  
I think, it might cause by usb 3.0 stack.
You should enter BIOS > CPU config > South Bridge . And, disable USB 3.0 or XHCI. Then check again.
Re: QNX 4.25 2015 Experimental USB  
Hello Voicu,

Have you enabled USB support in boot menu while installing from experimental CD? Or have you used USB legacy?

Respectfully,
Oleg

> Hello. I have a miniPC Jetway FHP792x , which has only USB ports. I manage to 
> install the experimental product suite 2015, the usb keyboard works in the 
> installer just fine. After that i manage to make the usb keyboard work  with 
> the " Input kbd -R fd -d / dev / usbkbd0" in sysinit. But if i want to start 
> the io-usb the PC freezes.
> Is there a bypass or a  fix for this?
> Thank you very much! 


Re: QNX 4.25 2015 Experimental USB  
Hello , and thanks for the replies.
USB Legacy its ENABLED in BIOS , and i activated the USB Stack from the Experimental CD (because i am installing from an
 USB DVD RW). 
If i take out the io-usb from sysinit the keyboard works fine.
If i run the io-usb from command line, it recognizes the USB DVDRW, and after that the keyboard freeezes.
Re: QNX 4.25 2015 Experimental USB  
Hello Voicu,

Sorry for the delay with my answer. USB keyboard is not supported in console mode. You have to launch Photon to use USB 
keyboard. If you need console to work properly, then you can launch io-usb-ehci instead of io-usb to work with EHCI 
controllers (mostly mass storage devices).

Respectfully,
Oleg

> Hello , and thanks for the replies.
> USB Legacy its ENABLED in BIOS , and i activated the USB Stack from the 
> Experimental CD (because i am installing from an USB DVD RW). 
> If i take out the io-usb from sysinit the keyboard works fine.
> If i run the io-usb from command line, it recognizes the USB DVDRW, and after 
> that the keyboard freeezes.


Re: QNX 4.25 2015 Experimental USB  
Hi,

  Maybe it is different in combination with Photon, but for our QNX Windows based system USB keyboard works in console 
mode as well. We start it using these commands:

io-usb
devu-kbd
Dev32.ansi -Q -n 6 -d/dev/usbkbd0

/Christian
Re: QNX 4.25 2015 Experimental USB  
I will try and let you know. Thanks for the replies.
Re: QNX 4.25 2015 Experimental USB  
Here is my sysinit

#image: /boot/sys/boot -v
#image:/boot/sys/Proce32 -E0 -| 2
#image:/boot/sys/Slib32
#image:/boot/sys/Slib16
#image:/bin/Fsys -Hdisk160
#image:/bin/Fsys.ahci fsys -Ndsk1 -n0=hd1. -n5=cd1.
#image:/bin/mount -p /dev/hd1.0 /dev/hd1.0t77 /
#image:/bin/sinit TERM=qnxm
#export NODE=2
export KBD=en_CA_101.kbd
export ABLANG=en
export CON_KBD=USA
export TZ=est05edt04,M4.1.0/2,M10.5.0/2
/bin/rtc -| hw
Dev &
emu87 &
Pipe &
/bin/Dev.ser -N/dev/ser1 3f8,4 &
/bin/Dev.ser -N/dev/ser1 2f8,3 &
Dev.ansi -Q -n6 &
reopen /dev/con1
kbd $CON_KBD
prefix -A/dev/console=/dev/con1
Dev.pty &
Dev.pty -n16 &
io-usb
/bin/Fsys.umass fsys -Ndsk2 -n0=hd2. -n5=cd2.
Iso9660fsys /cd2.0=/dev/cd2.0 &
#Define the default CD Rom
/bin/prefix -A /cd=//0/cd2.0
nameloc &
chkfsys /
if test -f /etc/config/bin/tcpip.$NODE
then
  /etc/config/bin/ph.$NODE
else
tinit -t/dev/con1 &
tinit -T/dev/con2[2-6] &
fi
Re: QNX 4.25 2015 Experimental USB  
> Here is my sysinit
> 
> #image: /boot/sys/boot -v
> #image:/boot/sys/Proce32 -E0 -| 2
> #image:/boot/sys/Slib32
> #image:/boot/sys/Slib16
> #image:/bin/Fsys -Hdisk160
> #image:/bin/Fsys.ahci fsys -Ndsk1 -n0=hd1. -n5=cd1.
> #image:/bin/mount -p /dev/hd1.0 /dev/hd1.0t77 /
> #image:/bin/sinit TERM=qnxm
> #export NODE=2
> export KBD=en_CA_101.kbd
> export ABLANG=en
> export CON_KBD=USA
> export TZ=est05edt04,M4.1.0/2,M10.5.0/2
> /bin/rtc -| hw
> Dev &
> emu87 &
> Pipe &
> /bin/Dev.ser -N/dev/ser1 3f8,4 &
> /bin/Dev.ser -N/dev/ser1 2f8,3 &
> Dev.ansi -Q -n6 &
> reopen /dev/
con1
> kbd $CON_KBD
> prefix -A/dev/console=/dev/con1
> Dev.pty &
> Dev.pty -n16 &
> io-usb
> /bin/Fsys.umass fsys -Ndsk2 -n0=hd2. -n5=cd2.
> Iso9660fsys /cd2.0=/dev/cd2.0 &
> #Define the default CD Rom
> /bin/prefix -A /cd=//0/cd2.0
> nameloc &
> chkfsys /
> if test -f /etc/config/bin/tcpip.$NODE
> then
>   /etc/config/bin/ph.$NODE
> else
> tinit -t/dev/con1 &
> tinit -T/dev/con2[2-6] &
> fi

If i take out the io-usb the keyboard works , else it freezes.
Re: QNX 4.25 2015 Experimental USB  
Hi Voicu,

Dev.ansi should have -d option to support USB keyboard. Please check use Dev.ansi for that. To use native (not in USB 
legacy mode) USB keyboard in console you have to add (or replace existing ones) lines in specified order (usually add io
-usb and devu-kbd just before the Dev.ansi) to you /etc/config/sysinit.N file:

io-usb
devu-kbd
Dev.ansi -Q -n6 -d /dev/usbkbd0 &

Additionally adding sleep 1, sleep 2 or so on may be required to be sure that io-usb and devu-kbd are both started and initialized before the launching of Dev.ansi.

The -d option is significant here. Also if you launch io-usb and devu-kbd after the Dev.ansi without -d option then the keyboard will leave the USB legacy mode and stop to working. 

Respectfully,
Oleg

> > Here is my sysinit
> > 
> > #image: /boot/sys/boot -v
> > #image:/boot/sys/Proce32 -E0 -| 2
> > #image:/boot/sys/Slib32
> > #image:/boot/sys/Slib16
> > #image:/bin/Fsys -Hdisk160
> > #image:/bin/Fsys.ahci fsys -Ndsk1 -n0=hd1. -n5=cd1.
> > #image:/bin/mount -p /dev/hd1.0 /dev/hd1.0t77 /
> > #image:/bin/sinit TERM=qnxm
> > #export NODE=2
> > export KBD=en_CA_101.kbd
> > export ABLANG=en
> > export CON_KBD=USA
> > export TZ=est05edt04,M4.1.0/2,M10.5.0/2
> > /bin/rtc -| hw
> > Dev &
> > emu87 &
> > Pipe &
> > /bin/Dev.ser -N/dev/ser1 3f8,4 &
> > /bin/Dev.ser -N/dev/ser1 2f8,3 &
> > Dev.ansi -Q -n6 &
> >
 reopen /dev/con1
> > kbd $CON_KBD
> > prefix -A/dev/console=/dev/con1
> > Dev.pty &
> > Dev.pty -n16 &
> > io-usb
> > /bin/Fsys.umass fsys -Ndsk2 -n0=hd2. -n5=cd2.
> > Iso9660fsys /cd2.0=/dev/cd2.0 &
> > #Define the default CD Rom
> > /bin/prefix -A /cd=//0/cd2.0
> > nameloc &
> > chkfsys /
> > if test -f /etc/config/bin/tcpip.$NODE
> > then
> >   /etc/config/bin/ph.$NODE
> > else
> > tinit -t/dev/con1 &
> > tinit -T/dev/con2[2-6] &
> > fi
> 
> If i take out the io-usb the keyboard works , else it freezes.


Re: QNX 4.25 2015 Experimental USB  
You mean that my sysinit should look like this ?

#image: /boot/sys/boot -v
#image:/boot/sys/Proce32 -E0 -| 2
#image:/boot/sys/Slib32
#image:/boot/sys/Slib16
#image:/bin/Fsys -Hdisk160
#image:/bin/Fsys.ahci fsys -Ndsk1 -n0=hd1. -n5=cd1.
#image:/bin/mount -p /dev/hd1.0 /dev/hd1.0t77 /
#image:/bin/sinit TERM=qnxm
#export NODE=2
export KBD=en_CA_101.kbd
export ABLANG=en
export CON_KBD=USA
export TZ=est05edt04,M4.1.0/2,M10.5.0/2
/bin/rtc -| hw
Dev &
emu87 &
Pipe &
/bin/Dev.ser -N/dev/ser1 3f8,4 &
/bin/Dev.ser -N/dev/ser1 2f8,3 &
io-usb
devu-kbd
Dev.ansi -Q -n6 -d /dev/usbkbd0 &
 reopen /dev/con1
kbd $CON_KBD
prefix -A/dev/console=/dev/con1
Dev.pty &
Dev.pty -n16 &
io-usb
/bin/Fsys.umass fsys -Ndsk2 -n0=hd2. -n5=cd2.
Iso9660fsys /cd2.0=/dev/cd2.0 &
#Define the default CD Rom
/bin/prefix -A /cd=//0/cd2.0
nameloc &
chkfsys /
if test -f /etc/config/bin/tcpip.$NODE
then
/etc/config/bin/ph.$NODE
else
tinit -t/dev/con1 &
tinit -T/dev/con2[2-6] &
fi
Re: QNX 4.25 2015 Experimental USB  
Hi Voicu,

Yes, I meant something like this.

I see that you launch io-usb twice. Remove second io-usb (before Fsys.umass).

Respectfully,
Oleg

> You mean that my sysinit should look like this ?
> 
> #image: /boot/sys/boot -v
> #image:/boot/sys/Proce32 -E0 -| 2
> #image:/boot/sys/Slib32
> #image:/boot/sys/Slib16
> #image:/bin/Fsys -Hdisk160
> #image:/bin/Fsys.ahci fsys -Ndsk1 -n0=hd1. -n5=cd1.
> #image:/bin/mount -p /dev/hd1.0 /dev/hd1.0t77 /
> #image:/bin/sinit TERM=qnxm
> #export NODE=2
> export KBD=en_CA_101.kbd
> export ABLANG=en
> export CON_KBD=USA
> export TZ=est05edt04,M4.1.0/2,M10.5.0/2
> /bin/rtc -| hw
> Dev &
> emu87 &
> Pipe &
> /bin/Dev.ser -N/dev/ser1 3f8,4 &
> /bin/Dev.ser -N/dev/ser1 2f8,3 &
> io-usb
> devu-kbd
> Dev.ansi -Q -n6 -d /dev/usbkbd0 &
>  reopen /dev/con1
> kbd $CON_KBD
> prefix -A/dev/console=/dev/con1
> Dev.pty &
> Dev.pty -n16 &
> io-usb
> /bin/Fsys.umass fsys -Ndsk2 -n0=hd2. -n5=cd2.
> Iso9660fsys /cd2.0=/dev/cd2.0 &
> #Define the default CD Rom
> /bin/prefix -A /cd=//0/cd2.0
> nameloc &
> chkfsys /
> if test -f /etc/config/bin/tcpip.$NODE
> then
> /etc/config/bin/ph.$NODE
> else
> tinit -t/dev/con1 &
> tinit -T/dev/con2[2-6] &
> fi


Re: QNX 4.25 2015 Experimental USB  
Hey thanks for the solution, it worked. I have one more question .
If i want to attach an USB - Floppy Disk what do i have to write in the sysinit ?
Thanks!!!!
Re: QNX 4.25 2015 Experimental USB  
Hi Voicu,

Fsys.umass should support USB floppy devices.

Respectfully,
Oleg

> Hey thanks for the solution, it worked. I have one more question .
> If i want to attach an USB - Floppy Disk what do i have to write in the 
> sysinit ?
> Thanks!!!!
Re: QNX 4.25 2015 Experimental USB  
Hello dear Oleg!
I have another issue.
I need to create a ramdisk /dev/ram but when i try it the system boots and hangs.
i write 
/BIN/FSYS
$ Fsys -Hdisk160 -r 

and it doesnt work. 
On the old hardware that doesnt work anymore the line was 
/BIN/FSYS
$ Fsys  -r 500
dinit /dev/ram /ram

and it worked. (The old hardware had IDE HDD)
This one has a CF.
What should i do ?



Re: QNX 4.25 2015 Experimental USB  
Hi Voicu,

It looks like you have forgotten to specify argument for -r option.

Respectfully,
Oleg


> Hello dear Oleg!
> I have another issue.
> I need to create a ramdisk /dev/ram but when i try it the system boots and 
> hangs.
> i write 
> /BIN/FSYS
> $ Fsys -Hdisk160 -r 
> 
> and it doesnt work. 
> On the old hardware that doesnt work anymore the line was 
> /BIN/FSYS
> $ Fsys  -r 500
> dinit /dev/ram /ram
> 
> and it worked. (The old hardware had IDE HDD)
> This one has a CF.
> What should i do ?
> 
> 
> 


Re: QNX 4.25 2015 Experimental USB  
I forgot to mention in the post that i wrote -r 500 like it was on the old hardware. (on the old hardware it created the
 /dev/ram /ram  and it worked)
Should i use another value? 
Re: QNX 4.25 2015 Experimental USB  
Long story short is i need to make a ramdisk called /ram. 
What lines and where do i have to write to make it work ?
Re: QNX 4.25 2015 Experimental USB  
Hi Voicu,

You can use Fsys's -r option to create RAM-disk. If it doesn't work then post here the output of command.

Also you can use Efsys.ram to create embedded filesystem on ram disk.

Respectfully,
Oleg

> Long story short is i need to make a ramdisk called /ram. 
> What lines and where do i have to write to make it work ?
Re: QNX 4.25 2015 Experimental USB  
I understand , but where do i have to write the Fsys -r command?
I tried like this.
i edited the install.2 of the pc, and added the line

/bin/Fsys
$ Fsys -r 500

then i compiled the file with make b=install.2
i copied the install.2 as .altboot , so it wouldnt mess with the original boot
And i get the error that Fsys resource busy
Re: QNX 4.25 2015 Experimental USB  
Fsys failed to attach name: resource busy.

And this is  the content of my install.2

/boot/sys/boot
$ /boot/sys/boot -v

/boot/sys/Proc32
$ /boot/sys/Proc32 -E0 - l 2

/boot/sys/Slib32
$ /boot/sys/Slib32

/boot/sys/Slib16
$ /boot/sys/Slib16

/bin/Fsys
$ /bin/Fsys -r 500

/bin/Fsys
$ /bin/Fsys -Hdisk160

/bin/Fsys.ahci
$ /bin/Fsys.ahci fsys -Ndsk1 -n0=hd1. -n5=cd1.

/bin/mount
$ /bin/mount -p /dev/hd1.0 /dev/hd1.0t77 /

/bin/sinit
$ /bin/sinit TERM=qnxm

Re: QNX 4.25 2015 Experimental USB  
It should be:

/bin/Fsys
$ /bin/Fsys -Hdisk160 -r500

Respectfully,
Oleg

> Fsys failed to attach name: resource busy.
> 
> And this is  the content of my install.2
> 
> /boot/sys/boot
> $ /boot/sys/boot -v
> 
> /boot/sys/Proc32
> $ /boot/sys/Proc32 -E0 - l 2
> 
> /boot/sys/Slib32
> $ /boot/sys/Slib32
> 
> /boot/sys/Slib16
> $ /boot/sys/Slib16
> 
> /bin/Fsys
> $ /bin/Fsys -r 500
> 
> /bin/Fsys
> $ /bin/Fsys -Hdisk160
> 
> /bin/Fsys.ahci
> $ /bin/Fsys.ahci fsys -Ndsk1 -n0=hd1. -n5=cd1.
> 
> /bin/mount
> $ /bin/mount -p /dev/hd1.0 /dev/hd1.0t77 /
> 
> /bin/sinit
> $ /bin/sinit TERM=qnxm
> 


Re: QNX 4.25 2015 Experimental USB  
Voicu,

Do not launch Fsys twice. You have to add desired options to the single Fsys line.

Respectfully,
Oleg

> I understand , but where do i have to write the Fsys -r command?
> I tried like this.
> i edited the install.2 of the pc, and added the line
> 
> /bin/Fsys
> $ Fsys -r 500
> 
> then i compiled the file with make b=install.2
> i copied the install.2 as .altboot , so it wouldnt mess with the original boot
> 
> And i get the error that Fsys resource busy


Re: QNX 4.25 2015 Experimental USB  
/bin/Fsys
$ /bin/Fsys -Hdisk160 -r500

I made a mistake then , cause i wrote it like that but i put a space between -r and 500
So the correct form is $ /bin/Fsys -Hdisk160 -r500 or $ /bin/Fsys -Hdisk160 -r 500 ?
Re: QNX 4.25 2015 Experimental USB  
If i write on the same line with -Hdisk160 -r500 the system hangs