devb-umass problem - SanDisk Cruzer 512Meg Thumbbdrive...

I am running into a problem using a USB SanDisk cruzer micro (512Meg)
thumbdrive under 6.3.0 and 6.3.0 service pack 1.
The problem is similar to ones posted during the Beta stage of 6.3.0 in that
the drive is obviously seen by io-usb (and the usb utility) an appears to be
compatible but does not create any entries in the /dev directory. after
about a minute it will generate a
Path=0 - QNX USB Storage - but nothing appears in /dev

The info shown below are from a service pack 1 upgrade machine, but the
results are the same on a different machine.
the problems seems to be on the line:

Jan 31 10:20:50 2 19 900 umass_bulk_csw_cbf: invalid residual
33000000

Of course, the thumb drive works fine on other machines under windows…

As a side note, the doc’s still refer to /dev/usb as the default “stack” -
which is the “old” usb stack. As noted below, I have tried to set the umass
path parameter to /dev/io-usb/io-usb and variants to try to get it to
work – to no avail. I would have thought that the docs would have been
cleaned in the service pack release what is the status on the stack
location - does the path need to be set…

Thanks,
Bill

here is the config and status infomation.

usb -vvv

USB 0 (UHCI) v1.10, v1.01 DDK, v1.01 HCD
Control, Interrupt, Bulk, Isoch, Low speed

Device Address : 1
Upstream Host Controller : 0
Upstream Device Address : 0
Upstream Port : 0
Upstream Port Speed : Full
Vendor : 0x0781 (SanDisk Corp.)
Product : 0x7114 (Cruzer Micro)
Device Release : r20.33
USB Spec Release : v2.00
Serial Number : 0000978792
Class : 0x00 (Independant per interface)
Max PacketSize0 : 64
Languages : 0x0409 (English)
Current Frame : 474 (1024 bytes)
Configurations : 1
Configuration : 1
Attributes : 0x80 (Bus-powered)
Max Power : 100 mA
Interfaces : 1
Interface : 0 / 0 (bulk)
Class : 0x08 (Mass Storage)
Subclass : 0x06 (SCSI)
Protocol : 0x50
Endpoints : Control + 2
Endpoint : 0
Attributes : Control
Max Packet Size: 64
Endpoint : 1
Attributes : Bulk/IN
Max Packet Size: 64
Endpoint : 2
Attributes : Bulk/OUT
Max Packet Size: 64

devb-umass cam pnp

(after a while…)
Path=0 - QNX USB Storage

– but nothing appears in /dev (i.e. hd1)

devb-umass cam verbose

[00] SIM="" HBA=“QNX USB Storage”

devb-umass cam verbose

[00] SIM="" HBA=“QNX USB Storage”

also tried starting All USB drivers…

io-usb -dehci -dohci -duhci

#no change

tried aiming dsvb-umass at real USB driver

devb-umass cam pnp,verbose umass path=/dev/io-usb/io-usb

here is the sloginfo with io-usb -vvvvvv and pindex=0,verbose set on the

drivers

Time Sev Major Minor Args
Jan 31 10:13:02 2 19 0 eide_identify_devices: Intel 82371AB vid
8086, did 7111, class 10180 rev 1, busno 0, dfunc 39
Jan 31 10:13:02 2 19 0 eide_identify_devices: cmd_addr 1f0,
cntl_addr 3f4, irq e, chnl 0, udma 2, mdma 2, sdma 0, pio 4
Jan 31 10:13:02 2 19 0 eide_parse_identify: IDENTIFY DRIVE CMD
cksum failure
Jan 31 10:13:02 2 19 0 eide_display_devices: WDC WD200BB-00DE tid
0, cable 80, max udma 5, cur udma 2, max mdma 2, cur mdma 0, max sdma -1,
cur sdma -1, pio 4, mblk 16
Jan 31 10:13:02 2 19 0 eide_init_devices: WDC WD200BB-00DE path 0,
tid 0, udma 2, mdma 2, sdma -1, pio 4, mblk 16
Jan 31 10:13:02 2 19 0 eide_identify_devices: Intel 82371AB vid
8086, did 7111, class 10180 rev 1, busno 0, dfunc 39
Jan 31 10:13:02 2 19 0 eide_identify_devices: cmd_addr 170,
cntl_addr 374, irq f, chnl 1, udma 2, mdma 2, sdma 0, pio 4
Jan 31 10:13:18 5 14 0 tcpip starting
Jan 31 10:13:18 3 14 0 Using pseudo random generator. See
“random” option
Jan 31 10:13:19 5 6 200 Installing /dev/par port 378
Jan 31 10:13:21 7 15 0 npm-qnet(L4): qnet_birth(): qnet_init() -
calling

Jan 31 10:13:21 7 15 0 npm-qnet(L4): en_ionet_rx_ctrl(): new
interface: en0: index 0 cell 1 endpt 0 iface 0 mac addr 00:04:BF:80:3D:D8

Jan 31 10:13:21 7 15 0 npm-qnet(QOS): nd_change_notify(): Node Up:
nd 0 Node3.direcway.com

Jan 31 10:13:21 7 15 0 npm-qnet(L4): qnet_birth(): qnet_init() -
complete: 0

Jan 31 10:13:22 7 15 0 npm-qnet(L4):
lr_verify_my_name_and_domain(): starting resolution of our hostname
Node3.direcway.com to ensure unique

Jan 31 10:13:22 7 15 0 npm-qnet(L4):
lr_verify_my_name_and_domain(): qnet going online

Jan 31 10:13:23 1 8 0 phfont_init
Jan 31 10:13:23 1 8 0 phfontXX started OK
Jan 31 10:13:24 5 8 0 Process fontsleuth initialized.
Jan 31 10:13:26 1 8 0 phfont_init
Jan 31 10:13:26 1 8 0 phfontXX started OK
Jan 31 10:13:26 6 8 0 Could not open config file “”: No such file
or directory

Jan 31 10:13:26 6 8 0 VGA primary : bus 0x1 dev/func 0x0
Jan 31 10:13:26 6 8 0 Found 1 PCI/AGP display devices
Jan 31 10:13:26 6 8 0 pci_init: found PCI device 102c:c30
Jan 31 10:13:26 5 8 0 Attached /dev/io-graphics/chips0, id = 0
Jan 31 10:13:27 5 9 0 Start: /usr/photon/bin/devi-hirun kbd
fd -d/dev/kbd msoft fd -d /dev/ser1

Jan 31 10:14:19 3 14 2000 netmanager error: dhcp.client: Could not
reach DHCP server on interface en0

Jan 31 10:14:19 3 14 2000 netmanager error: Could not configure DHCP
on interface en0

Jan 31 10:14:19 3 14 2000 netmanager error: Could not set route
(dest 0.0.0.0): Network is unreachable

Jan 31 10:14:40 7 15 0 npm-qnet(L4): lr_add_ndb(): adding L4 0
addr to ndb for nd 1 mobile_dev.direcway.com

Jan 31 10:14:40 7 15 0 npm-qnet(QOS): nd_change_notify(): Node Up:
nd 1 mobile_dev.direcway.com

Jan 31 10:20:42 2 19 900 umass_bulk_csw_cbf: invalid residual
33000000
Jan 31 10:20:42 2 19 900 umass_bulk_reset: path 0, devno 1
Jan 31 10:20:43 2 5 0 scsi_interpret_sense: path=0, target=0,
lun=0, cam_status=b, scsi_status=0
Jan 31 10:20:44 2 19 900 umass_bulk_csw_cbf: invalid residual
33000000
Jan 31 10:20:44 2 19 900 umass_bulk_reset: path 0, devno 1
Jan 31 10:20:44 2 5 0 scsi_interpret_sense: path=0, target=0,
lun=0, cam_status=b, scsi_status=0
Jan 31 10:20:45 2 19 900 umass_bulk_csw_cbf: invalid residual
33000000
Jan 31 10:20:45 2 19 900 umass_bulk_reset: path 0, devno 1
Jan 31 10:20:45 2 5 0 scsi_interpret_sense: path=0, target=0,
lun=0, cam_status=b, scsi_status=0
Jan 31 10:20:46 2 19 900 umass_bulk_csw_cbf: invalid residual
33000000
Jan 31 10:20:46 2 19 900 umass_bulk_reset: path 0, devno 1
Jan 31 10:20:47 2 5 0 scsi_interpret_sense: path=0, target=0,
lun=0, cam_status=b, scsi_status=0
Jan 31 10:20:48 2 19 900 umass_bulk_csw_cbf: invalid residual
33000000
Jan 31 10:20:48 2 19 900 umass_bulk_reset: path 0, devno 1
Jan 31 10:20:48 2 5 0 scsi_interpret_sense: path=0, target=0,
lun=0, cam_status=b, scsi_status=0
Jan 31 10:20:49 2 19 900 umass_bulk_csw_cbf: invalid residual
33000000
Jan 31 10:20:49 2 19 900 umass_bulk_reset: path 0, devno 1
Jan 31 10:20:49 2 5 0 scsi_interpret_sense: path=0, target=0,
lun=0, cam_status=b, scsi_status=0
Jan 31 10:20:50 2 19 900 umass_bulk_csw_cbf: invalid residual
33000000
Jan 31 10:20:50 2 19 900 umass_bulk_reset: path 0, devno 1
Jan 31 10:20:51 2 5 0 scsi_interpret_sense: path=0, target=0,
lun=0, cam_status=b, scsi_status=0
Jan 31 10:20:52 2 19 900 umass_bulk_csw_cbf: invalid residual
33000000
Jan 31 10:20:52 2 19 900 umass_bulk_reset: path 0, devno 1
Jan 31 10:20:52 2 5 0 scsi_interpret_sense: path=0, target=0,
lun=0, cam_status=b, scsi_status=0
Jan 31 10:20:53 2 19 900 umass_bulk_csw_cbf: invalid residual
33000000
Jan 31 10:20:53 2 19 900 umass_bulk_reset: path 0, devno 1
Jan 31 10:20:54 2 5 0 scsi_interpret_sense: path=0, target=0,
lun=0, cam_status=b, scsi_status=0
Jan 31 10:20:55 2 19 900 umass_bulk_csw_cbf: invalid residual
33000000
Jan 31 10:20:55 2 19 900 umass_bulk_reset: path 0, devno 1
Jan 31 10:20:55 2 5 0 scsi_interpret_sense: path=0, target=0,
lun=0, cam_status=b, scsi_status=0
Jan 31 10:20:56 2 5 0 Path=0 - QNX USB Storage
Jan 31 10:46:51 2 5 0 xpt_bus_deregister: path 0
Jan 31 10:46:52 2 12 0 CLASS_ExtractDevice: no parent
Jan 31 10:46:52 2 12 0 CLASS_EnumerateDevice: bus 0, parent 0,
port 0, speed 0
Jan 31 10:46:52 2 12 0 CLASS_EnumerateDevice: Get device
descriptor
Jan 31 10:46:52 2 12 0 CLASS_EnumerateDevice: Set address 1
Jan 31 10:46:52 2 12 0 CLASS_EnumerateDevice: Get full device
descriptor
Jan 31 10:46:53 2 12 0 CLASS_EnumerateDeviceConfiguration: Get
config descriptor
Jan 31 10:46:53 2 12 0 CLASS_EnumerateDeviceConfiguration: Get
full config descriptor
Jan 31 10:46:53 2 12 0 USB_SelectConfiguration: Set config devno
1, cfg 1
Jan 31 10:46:53 2 12 0 CLASS_EnumerateDevice: bus 0 dno 1, vid 781
Jan 31 10:46:53 2 19 900 umass_bulk_csw_cbf: invalid residual
33000000
Jan 31 10:46:53 2 19 900 umass_bulk_reset: path 0, devno 1
Jan 31 10:46:53 2 12 0 CLASS_ResetDevicePort: dno 1, vid 781
Jan 31 10:46:53 2 12 0 USB_SelectConfiguration: Set config devno
1, cfg 1
Jan 31 10:46:53 2 5 0 scsi_interpret_sense: path=0, target=0,
lun=0, cam_status=b, scsi_status=0
Jan 31 10:46:54 2 19 900 umass_bulk_csw_cbf: invalid residual
33000000
Jan 31 10:46:54 2 19 900 umass_bulk_reset: path 0, devno 1
Jan 31 10:46:54 2 12 0 CLASS_ResetDevicePort: dno 1, vid 781
Jan 31 10:46:54 2 12 0 USB_SelectConfiguration: Set config devno
1, cfg 1
Jan 31 10:46:54 2 5 0 scsi_interpret_sense: path=0, target=0,
lun=0, cam_status=b, scsi_status=0
Jan 31 10:46:55 2 19 900 umass_bulk_csw_cbf: invalid residual
33000000
Jan 31 10:46:55 2 19 900 umass_bulk_reset: path 0, devno 1
Jan 31 10:46:55 2 12 0 CLASS_ResetDevicePort: dno 1, vid 781
Jan 31 10:46:56 2 12 0 USB_SelectConfiguration: Set config devno
1, cfg 1
Jan 31 10:46:56 2 5 0 scsi_interpret_sense: path=0, target=0,
lun=0, cam_status=b, scsi_status=0
Jan 31 10:46:57 2 19 900 umass_bulk_csw_cbf: invalid residual
33000000
Jan 31 10:46:57 2 19 900 umass_bulk_reset: path 0, devno 1
Jan 31 10:46:57 2 12 0 CLASS_ResetDevicePort: dno 1, vid 781
Jan 31 10:46:57 2 12 0 USB_SelectConfiguration: Set config devno
1, cfg 1
Jan 31 10:46:57 2 5 0 scsi_interpret_sense: path=0, target=0,
lun=0, cam_status=b, scsi_status=0
Jan 31 10:46:58 2 19 900 umass_bulk_csw_cbf: invalid residual
33000000
Jan 31 10:46:58 2 19 900 umass_bulk_reset: path 0, devno 1
Jan 31 10:46:58 2 12 0 CLASS_ResetDevicePort: dno 1, vid 781
Jan 31 10:46:58 2 12 0 USB_SelectConfiguration: Set config devno
1, cfg 1
Jan 31 10:46:58 2 5 0 scsi_interpret_sense: path=0, target=0,
lun=0, cam_status=b, scsi_status=0
Jan 31 10:46:59 2 19 900 umass_bulk_csw_cbf: invalid residual
33000000
Jan 31 10:46:59 2 19 900 umass_bulk_reset: path 0, devno 1
Jan 31 10:46:59 2 12 0 CLASS_ResetDevicePort: dno 1, vid 781
Jan 31 10:47:00 2 12 0 USB_SelectConfiguration: Set config devno
1, cfg 1
Jan 31 10:47:00 2 5 0 scsi_interpret_sense: path=0, target=0,
lun=0, cam_status=b, scsi_status=0
Jan 31 10:47:01 2 19 900 umass_bulk_csw_cbf: invalid residual
33000000
Jan 31 10:47:01 2 19 900 umass_bulk_reset: path 0, devno 1
Jan 31 10:47:01 2 12 0 CLASS_ResetDevicePort: dno 1, vid 781
Jan 31 10:47:01 2 12 0 USB_SelectConfiguration: Set config devno
1, cfg 1
Jan 31 10:47:01 2 5 0 scsi_interpret_sense: path=0, target=0,
lun=0, cam_status=b, scsi_status=0
Jan 31 10:47:02 2 19 900 umass_bulk_csw_cbf: invalid residual
33000000
Jan 31 10:47:02 2 19 900 umass_bulk_reset: path 0, devno 1
Jan 31 10:47:02 2 12 0 CLASS_ResetDevicePort: dno 1, vid 781
Jan 31 10:47:02 2 12 0 USB_SelectConfiguration: Set config devno
1, cfg 1
Jan 31 10:47:02 2 5 0 scsi_interpret_sense: path=0, target=0,
lun=0, cam_status=b, scsi_status=0
Jan 31 10:47:03 2 19 900 umass_bulk_csw_cbf: invalid residual
33000000
Jan 31 10:47:03 2 19 900 umass_bulk_reset: path 0, devno 1
Jan 31 10:47:03 2 12 0 CLASS_ResetDevicePort: dno 1, vid 781
Jan 31 10:47:04 2 12 0 USB_SelectConfiguration: Set config devno
1, cfg 1
Jan 31 10:47:04 2 5 0 scsi_interpret_sense: path=0, target=0,
lun=0, cam_status=b, scsi_status=0
Jan 31 10:47:05 2 19 900 umass_bulk_csw_cbf: invalid residual
33000000
Jan 31 10:47:05 2 19 900 umass_bulk_reset: path 0, devno 1
Jan 31 10:47:05 2 12 0 CLASS_ResetDevicePort: dno 1, vid 781
Jan 31 10:47:05 2 12 0 USB_SelectConfiguration: Set config devno
1, cfg 1
Jan 31 10:47:05 2 5 0 scsi_interpret_sense: path=0, target=0,
lun=0, cam_status=b, scsi_status=0
Jan 31 10:47:06 2 5 0 [00] SIM="" HBA=“QNX USB Storage”

You may want to check out this thread to see if it helps with your
problem.

http://www.openqnx.com/PNphpBB2-viewtopic-t4922-.html

I posted a reply there on how I got my 1 Gig USB SanDisk Mini Cruzer
to work.

But you may need the experiments Devb-umass driver that the other
person had to eventually get to make it work for him.

Tim

Thanks Tim…

Look like your 1G drive just works!!! Gotta love that… I suppose it could
be differences in the
underlying USB hardware as well – Gives you a warm comfy feeling, doesn’t
it - telling your customers
“Sure we support USB drives, maybe, well it least THIS one --Umm, you’ll
just have to try a bunch”.

What IS the deal with QSS and USB? I've been waiting for solid "it just works" USB support from QNX for 6+ years now! In fact, it was the primary reason for me to move to Neutrino from 4.25 (of course, later lack of current hardware drivers would force the issue) - little did I know then I would be waiting this long... And of course, I have to keep upgrading, after all 6.3.0 was much better - in 2004, I could finally use an external keyboard on my laptop (welcome to 1998!) Whoops! only some keyboards - just don't try to use one of those ps2<->usb converter units.. I guess we need Cisco to put USB port on their router to make this a priority..or perhaps a dashboard port.... Sigh... <\rant over>

Unfortunately, it appears that my support plan silently expired about 2 days
ago and I now have no access to the
standard support group. I am awaiting a quote on a support package (with
great anticipation).
Does anyone out there have the “experimental” driver so I can see if it at
least solves the problem?

Thanks,
Bill




“Tim” <tim_sowden@bio-rad-dot-com.no-spam.invalid> wrote in message
news:ctm2ig$gs5$1@inn.qnx.com

You may want to check out this thread to see if it helps with your
problem.

http://www.openqnx.com/PNphpBB2-viewtopic-t4922-.html

I posted a reply there on how I got my 1 Gig USB SanDisk Mini Cruzer
to work.

But you may need the experiments Devb-umass driver that the other
person had to eventually get to make it work for him.

Tim

William M. Derby Jr. wrote:

Thanks Tim…

Look like your 1G drive just works!!! Gotta love that… I suppose it could
be differences in the
underlying USB hardware as well – Gives you a warm comfy feeling, doesn’t
it - telling your customers
“Sure we support USB drives, maybe, well it least THIS one --Umm, you’ll
just have to try a bunch”.

I believe most of them will also try to use a bunch of other embedded
real-time systems :slight_smile: But that’s an issue for QSSL …

rant
What IS the deal with QSS and USB? I’ve been waiting for solid “it just
works” USB support from QNX for 6+ years now! In fact, it was the primary
reason for me to move to Neutrino from 4.25 (of course, later lack of
current hardware drivers would force the issue) - little did I know then I
would be waiting this long… And of course, I have to keep upgrading, after
all 6.3.0 was much better - in 2004, I could finally use an external
keyboard on my laptop (welcome to 1998!) Whoops! only some keyboards - just
don’t try to use one of those ps2<->usb converter units… I guess we need
Cisco to put USB port on their router to make this a priority…or perhaps a
dashboard port… Sigh…
\rant over

That USB problem is probably too embedded for QSSL … or is it a
‘desktop’ specific issue??

Regards

Armin

Unfortunately, it appears that my support plan silently expired about 2 days
ago and I now have no access to the
standard support group. I am awaiting a quote on a support package (with
great anticipation).
Does anyone out there have the “experimental” driver so I can see if it at
least solves the problem?

Thanks,
Bill




“Tim” <> tim_sowden@bio-rad-dot-com.no-spam.invalid> > wrote in message
news:ctm2ig$gs5$> 1@inn.qnx.com> …

You may want to check out this thread to see if it helps with your
problem.

http://www.openqnx.com/PNphpBB2-viewtopic-t4922-.html

I posted a reply there on how I got my 1 Gig USB SanDisk Mini Cruzer
to work.

But you may need the experiments Devb-umass driver that the other
person had to eventually get to make it work for him.

Tim
\

Bill,

Sorry, I don’t have the experimental driver. I have to confess I
didn’t even understand the link that was posted on where to get it.
Despite having a legit 10K developer license here at work I have no
idea where to go for actual support or downloads of S/W updates. Back
in the days a few years ago when I worked under QNX 4.25 I always knew
where to find/register stuff on QUIC’s but now it seems really hard to
find/access/register stuff like that. I’d be grateful just for a link
to that area.

I suspect the problem is in the USB hardware port, not the flash in
particular since we both are using San Disk products. The only thing
I can say is my machine is a Dell desktop machine but I believe all
the USB ports are USB 1 (slow and cheap the way Dell likes it) not
USB 2 if that makes any difference.

I was also able to plug in a SanDisk Compact Flash Reader device and
place flash cards in the device and access them as well using the
same commands as I used for the thumb drive. This has been a godsend
for me at work since our product has flash disks in it and this has
made it SO much easier to read/write/create using this device.

Good luck and post back if the experimental driver solves your
problem.

Tim

William M. Derby Jr. <derbyw@direcway.com> wrote in message
news:ctm8np$l6m$1@inn.qnx.com

Thanks Tim…

Look like your 1G drive just works!!! Gotta love that… I suppose it
could
be differences in the
underlying USB hardware as well – Gives you a warm comfy feeling, doesn’t
it - telling your customers
“Sure we support USB drives, maybe, well it least THIS one --Umm, you’ll
just have to try a bunch”.

rant
What IS the deal with QSS and USB? I’ve been waiting for solid “it just
works” USB support from QNX for 6+ years now! In fact, it was the primary
reason for me to move to Neutrino from 4.25 (of course, later lack of
current hardware drivers would force the issue) - little did I know then I
would be waiting this long… And of course, I have to keep upgrading,
after
all 6.3.0 was much better - in 2004, I could finally use an external
keyboard on my laptop (welcome to 1998!) Whoops! only some keyboards -
just
don’t try to use one of those ps2<->usb converter units… I guess we need
Cisco to put USB port on their router to make this a priority…or perhaps
a
dashboard port… Sigh…
\rant over

Unfortunately, it appears that my support plan silently expired about 2
days
ago and I now have no access to the
standard support group. I am awaiting a quote on a support package (with
great anticipation).
Does anyone out there have the “experimental” driver so I can see if it at
least solves the problem?

Some of the Sandisk Mini/micro devices return invalid residual information.
I have the 128M cruzer micro here that exhibits this behaviour and have
added
an entry to the driver to Ignore the bad CSW information. I will add this
device
device as well, and have submitted a PR to track the change.

Contact sales/support for availablity of the modified version.

Henry

Thanks,
Bill




“Tim” <> tim_sowden@bio-rad-dot-com.no-spam.invalid> > wrote in message
news:ctm2ig$gs5$> 1@inn.qnx.com> …
You may want to check out this thread to see if it helps with your
problem.

http://www.openqnx.com/PNphpBB2-viewtopic-t4922-.html

I posted a reply there on how I got my 1 Gig USB SanDisk Mini Cruzer
to work.

But you may need the experiments Devb-umass driver that the other
person had to eventually get to make it work for him.

Tim