Project Home
Project Home
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - USB problem: (8 Items)
   
USB problem  
Hi,

I am just testing an IPC Kontron K.I.S.S. 4U with the CPU board PCI-759.

When the USB stack (version 2.00J, 02 June 2011) is started in the QNX text mode, everything works fine.

The main parts of the start script are:
io-usb
sleep ...
Fsys.umass fsys -l -n Direct-Access=usb
sleep ...
mount -p /dev/usb0
sleep ...
Fatfsys u0=/dev/usb0t11

When I try the same thing under Photon, io-usb and Fsys.umass are started, Fsys.umass detects the USB device, but /dev/
usb0 is not mounted by Fsys.umass. So I have no access to the USB device.

io-usb seems to work; 'usb' shows the connected USB device.

I have attached a file with some output information of 'sin irq' and 'show_pci' (in text mode and in graphics mode).

Best regards
Hans-Peter Czybik
Attachment: Compressed file USB.TAR 133 KB
Re: USB problem  
Hi Hans-Peter,

Have you tried to increase "sleep" delays or start io-usb and Fsys.umass 
manually?
If not please try to do this and report about your results.

Also please provide "ls /dev" and "sin ar" output before and after you 
start your script in Photon.

Regards,
Pavel

> Hi,
>
> I am just testing an IPC Kontron K.I.S.S. 4U with the CPU board PCI-759.
>
> When the USB stack (version 2.00J, 02 June 2011) is started in the QNX text mode, everything works fine.
>
> The main parts of the start script are:
> io-usb
> sleep ...
> Fsys.umass fsys -l -n Direct-Access=usb
> sleep ...
> mount -p /dev/usb0
> sleep ...
> Fatfsys u0=/dev/usb0t11
>
> When I try the same thing under Photon, io-usb and Fsys.umass are started, Fsys.umass detects the USB device, but /dev
/usb0 is not mounted by Fsys.umass. So I have no access to the USB device.
>
> io-usb seems to work; 'usb' shows the connected USB device.
>
> I have attached a file with some output information of 'sin irq' and 'show_pci' (in text mode and in graphics mode).
>
> Best regards
> Hans-Peter Czybik
>
>
>
>
> _______________________________________________
>
> General
> http://community.qnx.com/sf/go/post86778

Re: USB problem  
Hi Pavel,

I started io-usb and Fsys.umass manually. Fsys.umass was started >60s after io-usb. Altough Fsys.umass is running /dev/
usb0 is not mounted.

Attached you will find the 'ls -1 /dev' and 'sin ar' output.

Best regards
Hans-Peter
Attachment: Compressed file USB_110623.tar 7.5 KB
Re: USB problem  
Hi Hans-Peter,

It's pretty strange because Photon shouldn't effect Fsys.umass or io-usb.

Please try to mount a USB device in text mode and then run Photon and 
copy file from/to the USB device. Will this work without problems?

Also you can try the following:
- try another USB port and another USB flash device.
- run io-usb with only one manually specified Host Controller e.g:
             #io-usb -d uhci pindex=3
- if it is possible enable in the BIOS USB 2.0 support (EHCI).
- try another version of the USB Stack.


Regards,
Pavel

> Hi Pavel,
>
> I started io-usb and Fsys.umass manually. Fsys.umass was started>60s after io-usb. Altough Fsys.umass is running /dev/
usb0 is not mounted.
>
> Attached you will find the 'ls -1 /dev' and 'sin ar' output.
>
> Best regards
> Hans-Peter
>
>
>
>
> _______________________________________________
>
> General
> http://community.qnx.com/sf/go/post86794

Re: USB problem  
Hi Pavel,

> It's pretty strange because Photon shouldn't effect Fsys.umass or io-usb.
> 
> Please try to mount a USB device in text mode and then run Photon and 
> copy file from/to the USB device. Will this work without problems?

When I mount an USB device in text mode I can read from/write to this device under Photon. But I cannot disconnect this 
device and connect another USB device when Photon is running. So it is no solution for my problem.

> 
> Also you can try the following:
> - try another USB port and another USB flash device.
> - run io-usb with only one manually specified Host Controller e.g:
>              #io-usb -d uhci pindex=3
> - if it is possible enable in the BIOS USB 2.0 support (EHCI).
> - try another version of the USB Stack.

I tried all the proposed things, but I still cannot work with an USB device when Photon is running.

Best regards
Hans-Peter
Re: USB problem  
Hi Hans-Peter,

Thanks for you report. It seems that it is not an USB issue.

Please try to collect trace info from the Fsys manager:
1. #tracelogger  -f /trace &
2. Run Photon and mount USB flash device
3. #traceinfo -M0x3 -e /etc/config/traceinfo /trace > /fsys.trace
4. Read collected trace vedit /fsys.trace. Does it contain some error 
messages?
5. slay tracelogger

Also try to remove ram disk option from the Fsys (or reduce ram disk 
size). For this you'll have to rebuild the boot image.

Regards,
Pavel

> Hi Pavel,
>
>> It's pretty strange because Photon shouldn't effect Fsys.umass or io-usb.
>>
>> Please try to mount a USB device in text mode and then run Photon and
>> copy file from/to the USB device. Will this work without problems?
> When I mount an USB device in text mode I can read from/write to this device under Photon. But I cannot disconnect 
this device and connect another USB device when Photon is running. So it is no solution for my problem.
>
>> Also you can try the following:
>> - try another USB port and another USB flash device.
>> - run io-usb with only one manually specified Host Controller e.g:
>>               #io-usb -d uhci pindex=3
>> - if it is possible enable in the BIOS USB 2.0 support (EHCI).
>> - try another version of the USB Stack.
> I tried all the proposed things, but I still cannot work with an USB device when Photon is running.
>
> Best regards
> Hans-Peter
>
>
>
>
> _______________________________________________
>
> General
> http://community.qnx.com/sf/go/post86819
>
>
Re: USB problem  
Hi Pavel,

the trace file does not contain any error messages concerning 'Fsys' or 'Fsys.umass'.

So I reduced the ramdisk size to 128MB (the Kontron PC has 2GB RAM, the ramdisk was originally 512MB). That is it - now 
I can use USB also under Photon.

Thank you for your support.

Best regards
Hans-Peter
Re: USB problem  
I'm running the latest USB stack, v2.00 "J"

Problem:  I can only run it one time, then cannot run it again.  Second attempt, I get a resource busy error.

My USB script is:
________________________________________
io-usb-ehci -vvv &
sleep 5

Fsys.umass -v fsys -l -n Direct-Access=usb &
sleep 3

mount -p /dev/usb0
sleep 10

Fatfsys
________________________________________
And this script file mounts the USB drive as /dos/c.

I have tried every combination from umounting and deleting the mount points to slaying things in reverse order.  The 
best I can do is when I try to re-run the above script, Fsys.umass gets a resource busy error.

What am I doing wrong?