LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 03-18-2004, 07:54 AM   #1
stukennedyuk
LQ Newbie
 
Registered: Oct 2003
Location: Midlands, UK
Distribution: Knoppix/Debian
Posts: 5

Rep: Reputation: 0
PQI USB flash card (SM) reader/writer freezes Knoppix linux dead!


Executive summary!: Flash card reader/writer locks linux solid (mouse freezes, only way out is reset button) on my HD install of Knoppix BUT not when running from the Knoppix live CD! (and I cannot spot the difference!). I'm looking for pointers (please!).

The device causing the fuss is a PQI USB "travel flash" smartmedia flash card reader/writer - I checked first that this would work with the qbik.ch site..... I'm using a HD install (2.4.22) from the Knoppix Linux live CD, ver 3.3 - which I did a few months ago, the CD version I have is still ver 3.3 (but slightly newer).

So, If I plug the device in with the HD install running after a few seconds (I have the dmesg stuff below) it locks the PC. If I boot the same machine from the live CD and plug it in it works fine. So, same machine, same config.

What I've tried to look at is the dmesg from the boot and the irqs are the same, modules loaded the same (versions I'm not sure - don't know how to check) - it all looks fine to me. I've captured where the PC hangs on the HD install as compared to the CD no hang:

The contents of dmesg.

WORKING booted from knoppix live CD, plug in the PQI:

hub.c: new USB device 00:10.2-1, assigned address 2
usb.c: USB device 2 (vend/prod 0x58f/0x9350) is not claimed by any active driver.
Initializing USB Mass Storage driver...
usb.c: registered new driver usb-storage
usb-uhci.c: interrupt, status 2, frame# 672
scsi2 : SCSI emulation for USB Mass Storage devices
usb_control/bulk_msg: timeout
usb-uhci.c: interrupt, status 2, frame# 1454
usb-uhci.c: interrupt, status 3, frame# 1185
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 2
USB Mass Storage support registered.

NOT working on my HD setup, plug in the PQI:

hub.c: new USB device 00:10.2-1, assigned address 2
usb-uhci.c: interrupt, status 2, frame# 1232
usb_control/bulk_msg: timeout
scsi1 : SCSI emulation for USB Mass Storage devices
usb_control/bulk_msg: timeout
usb-uhci.c: interrupt, status 2, frame# 969

then it locks.....

Okay, so usb-storage is initialized on the first one so I rmmod usb-storage on the HD install, to force it to do this, but no change.

I have other dmesg stuff from the boot, but this is already quite a long post. Any suggestions? hotplug? versions of the modules? (how to check?)

Any pointers welcome. Thanks in advance.

Stoo.....
 
Old 03-18-2004, 08:45 AM   #2
stukennedyuk
LQ Newbie
 
Registered: Oct 2003
Location: Midlands, UK
Distribution: Knoppix/Debian
Posts: 5

Original Poster
Rep: Reputation: 0
I've just noticed something else that has been staring me in the face. This item is PQI and on www.qbik.ch this device should have a vendor/product ID of 0x3538:0x0001 but it doesn't, it has an ID of 058f/9350 which is listed as a PNY brand which does not work. We won't mention this to it and see why the Knoppix live CD does have it working! (Besides Alcor (the manufacturer) state it is USB bulk storage compatable)

Any ideas?
 
Old 03-19-2004, 05:04 AM   #3
stukennedyuk
LQ Newbie
 
Registered: Oct 2003
Location: Midlands, UK
Distribution: Knoppix/Debian
Posts: 5

Original Poster
Rep: Reputation: 0
The plot THICKENS and now I have a "work-around!" - someone MUST be able to help me with this!

As the ability to plug and unplug these things depends on 'hotplug', I thought I'd try and do some reading on the subject. As an experiment I disabled hotplug by using the 'stop' feature of 'SysV Init Editor' and sure enough plug in the flash R/W and it doesn't get recognised. So I then bring hotplug back into operation by using the 'start' feature...... check my USB scanner works again (yes), bring my USB network connection back up (yes).

AND NOW!!!..... I can plug and unplug the flash reader/writer without any problems!!!

What is hotplug doing during boot that is different from a manually restart? - HELP! (please!)

Stu.....

Below is the successful hotplug dmesg (proof!)

root@Home:/home/stuart# dmesg
hub.c: new USB device 00:10.2-1, assigned address 2
usb.c: USB device 2 (vend/prod 0x58f/0x9350) is not claimed by any active driver.
Initializing USB Mass Storage driver...
usb.c: registered new driver usb-storage
scsi1 : SCSI emulation for USB Mass Storage devices
Vendor: Generic Model: USB SMC Reader Rev: 1.00
Type: Direct-Access ANSI SCSI revision: 02
Attached scsi removable disk sda at scsi1, channel 0, id 0, lun 0
SCSI device sda: 64000 512-byte hdwr sectors (33 MB)
sda: Write Protect is off
sda: sda1
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 2
USB Mass Storage support registered.
 
Old 03-19-2004, 07:42 AM   #4
stukennedyuk
LQ Newbie
 
Registered: Oct 2003
Location: Midlands, UK
Distribution: Knoppix/Debian
Posts: 5

Original Poster
Rep: Reputation: 0
Okay, I looked at the difference between the USB bits in dmesg from the boot and what happens when hotplug is restarted. The difference is that during boot usb_uhci is used but restarting hotplug uses uhci - so it seems that uhci is the one that works with this device.

How do I change this to be the case at boot?
 
Old 03-19-2004, 07:58 AM   #5
stukennedyuk
LQ Newbie
 
Registered: Oct 2003
Location: Midlands, UK
Distribution: Knoppix/Debian
Posts: 5

Original Poster
Rep: Reputation: 0
FIXED! subject to some proper testing - yippee (steady on old boy! - not terribly English!)

I changed the entry in /etc/modules 'usb-uhci' to 'uhci' and it now works and so does my USB scanner and my USB network connection! - An awful lot of luck.

So the lesson is: "If your USB connected mass storage device gives problems with 'usb_uhci', try the 'uhci' alternative driver"

Cheers to all. Stu.....

Aw well, back to the job application letters!

www.stuartkennedy.org.uk
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
USB flash card reader in Mandrake 10.1 enrico14569 Linux - Hardware 4 10-02-2005 06:57 PM
USB card reader/writer troubles triona Linux - Hardware 8 12-21-2004 05:46 AM
Writing files to MultiMedia Card (MMC) using USB reader/writer sebyte Linux - General 6 12-02-2004 05:23 PM
Need a little help getting USB flash card reader to work Electrode Linux - Hardware 13 10-20-2003 04:04 PM
PCMCIA 4 in 1 flash card memory reader writer jjennings089 Linux - Laptop and Netbook 1 09-06-2003 06:25 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 06:09 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration