Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - USB & Fsys.umass problem getting access to device under 4.25: (8 Items)
   
USB & Fsys.umass problem getting access to device under 4.25  
Trying to get USB memory stick to work.
Using QNX 4.25 with USB 2.0 package installed.
Using Ampro motherboard (82801 DBM I/O hub) with both USB v2.0 EHCI and UHCI v1.1.
Using
   #io-usb
I get the 'usb' entry under /dev (this is the stack/driver?)
Using 
   #usb
I can see either a full speed USB memory stick under the UHCI interface, or a high speed under the EHCI interface. 
Then trying the 
   #Fsys.umass
it seems to recognize the device and there are no errors, but no new device like 'usb0' shows up.
Is there a trick to this final step to get the device available?

Process list seems fine (have io-usb and Fsys.umass).
I have tried numerous combinations, but nothing changes.  Always get the usb stack, but nothing more.
Re: USB & Fsys.umass problem getting access to device under 4.25  
Using the syntax:
   Fsys.umass fsys -l -n Direct-Access=usb
I can get a usb0 to show up in /dev.

However, I can seem to do anything with it.  A mount like:
   mount /dev/usb0 /fs/usb
justs hangs.
The USB memory stick's light is on.
Re: USB & Fsys.umass problem getting access to device under 4.25  
Had lots of issues with this stuff as well

try Fsys.umass......
sleep 2
mount -p /dev/usb0
sleep 3
mount -t dos /dev/usb0t12 /dos/e

This assumes that your USB has partitions

Re: USB & Fsys.umass problem getting access to device under 4.25  
I also have this problem. but My question is when I use 'Fsys.umass... ', the return is 'no Adaptors fount!'.what  can I
 do for the case?  thanks very much!  
RE: USB & Fsys.umass problem getting access to device under 4.25  
Please post the output from 'show_pci -v' so that we can see what USB
adapters you have.


-----Original Message-----
From: zhang shilei [mailto:community-noreply@qnx.com] 
Sent: Wednesday, August 19, 2009 11:06 PM
To: qnx4-community
Subject: Re: USB & Fsys.umass problem getting access to device under
4.25

I also have this problem. but My question is when I use 'Fsys.umass...
', the return is 'no Adaptors fount!'.what  can I do for the case?
thanks very much!  



_______________________________________________

QNX4 Community Support
http://community.qnx.com/sf/go/post36351
Re: RE: USB & Fsys.umass problem getting access to device under 4.25  
I have also this problom.
run "shoe_pci -v", get:
...... 
Vendor ID = 8086h, INTEL CORPORATION 
Device ID = 7112h, 
PCI index = 0h 
Class Code = 0c0300h Serial Bus (Universal Serial Bus) ProgIF=0 
Revision ID = 0h 
Bus number = 0 
Device number = 7 
Function num = 2 
Status Reg = 280h 
Command Reg = 5h 
Header type = 0h Single-function 
BIST = 0h Build-in-self-test not supported 
Latency Timer = 40h 
Cache Line Size= 0h 
IO@1060h length 32 bytes 
Subsystem Vendor ID = 15adh 
Subsystem ID = 1976h 
Max Lat = 0ns 
Min Gnt = 0ns 
PCI Int Pin = 4 
PCI Int Pin = INT D 
Interrupt line = 9 
......

what can I do for this?
Thank you!
Re: RE: USB & Fsys.umass problem getting access to device under 4.25  
Hi wang,

Do you use the latest version from the QNX4 Project?

http://community.qnx.com/sf/wiki/do/viewPage/projects.qnx4/wiki/SoftwareUpdates2010

Respectfully,
Oleg


> I have also this problom.
> run "shoe_pci -v", get:
> ...... 
> Vendor ID = 8086h, INTEL CORPORATION 
> Device ID = 7112h, 
> PCI index = 0h 
> Class Code = 0c0300h Serial Bus (Universal Serial Bus) ProgIF=0 
> Revision ID = 0h 
> Bus number = 0 
> Device number = 7 
> Function num = 2 
> Status Reg = 280h 
> Command Reg = 5h 
> Header type = 0h Single-function 
> BIST = 0h Build-in-self-test not supported 
> Latency Timer = 40h 
> Cache Line Size= 0h 
> IO@1060h length 32 bytes 
> Subsystem Vendor ID = 15adh 
> Subsystem ID = 1976h 
> Max Lat = 0ns 
> Min Gnt = 0ns 
> PCI Int Pin = 4 
> PCI Int Pin = INT D 
> Interrupt line = 9 
> ......
> 
> what can I do for this?
> Thank you!
Re: USB & Fsys.umass problem getting access to device under 4.25  
I had lots of trouble with this. Here is a script I have devised to open different USB sticks. I have several sticks 
with specific items on them. Each manufacturer seems to have a different device name.

  use vedit and put this into a file I call it "loadusb" then put it in the /usr/local/bin directory. Use chmod +x to 
make it executable. 



#! /bin/ksh

# Use this file to mount a usb memory stick may be run using ./memstick then
# finishing command manually depending on the type partition on the device
io-usb &
Fsys.umass -v fsys -Nusb -nusb0. & 
mount -p /dev/usb0.0             	 # check /dev/to see partiton type
sleep 2

slay -fQ Dosfsys                     	 # needed before running Fatfsys.
slay -fQ Fatfsys                     	 # needed if Fatfsys is running from sysinit.

Fatfsys e=`ls /dev/usb0.0t*` 

sleep 1

echo ""

echo "    USB device loaded as /dos/e"
 
echo ""



 Use this script to unmount it so if you want to install another disk you can do it without rebooting; Make sure you put
 it in the same directory as above and make it executable.

#! /bin/sh

# makes it safe to remove a usb stick and allows reinstall without reboot
sync
umount /dos/e
umount /dev/usb0.0
rm /dev/usb0.0
slay -f io-usb
sleep 2
echo ""
echo "    Safe to remove USB device"
echo ""


I can post a tar file with both files later if you need them

Brad