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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
04-27-2003, 03:18 PM
|
#1
|
LQ Newbie
Registered: Nov 2002
Distribution: Slackware
Posts: 10
Rep:
|
Soyo Bay One CF Reader
Hey Everyone,
Here's the deal, I've been fighting with this USB Flash Card reader for a while and It just may be I'm missing something simple.
First of all here's my configuration.
Linux 2.4.20
SCSI Emulation - Installed
SCSI Generic Support - Installed
SCSI CDROM Support - Installed ( For my Writer and CD ROM )
USB Mass Storage - Installed
Preliminary USB Devise File System - Installed
UHCI (Intel PIIX4, VIA, ...) support - Installed
Basically if I try to the mount the devices with the following command
mount -t usbdevfs usbdevfs /proc/bus/usb
I can see the devices file and the drivers file and there are 4 other files 001, 002, 003, and 004.
Also there is a directory usb_storage0 in /proc/scsi
When I run a sg_scan -i or just a cdrecord -scanbus, I don't see anything but my CD-Rom Drives. I checked dmesg and here's what the output was.
Manufacturer: SOYO Technologies Corp.
Product: SOYO USB Storage Device
SerialNumber: 0AEC501000001A002
scsi1 : SCSI emulation for USB Mass Storage devices
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 2
usb.c: usb-storage driver claimed interface dfe12980
usb.c: kusbd: /sbin/hotplug add 2
usb.c: kusbd policy returned 0xfffffffe
hub.c: port 1, portstatus 100, change 2, 12 Mb/s
hub.c: port 1 enable change, status 100
hub.c: port 2, portstatus 103, change 0, 12 Mb/s
So it's finding it, it's just not registering as a SCSI device, when I try to mount /dev/sda1 to a mount point, it tells me:
"Not a valid block device"
Any suggestions on how to get this thing to register as a SCSI device?
Any help would be appreciated.
Thanks
-KLuE
|
|
|
04-27-2003, 11:27 PM
|
#2
|
Senior Member
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590
Rep:
|
Have you checked your setup against the instructions?
Also, a search on the usb devices web site may add some clues.
|
|
|
04-28-2003, 12:18 AM
|
#3
|
LQ Newbie
Registered: Nov 2002
Distribution: Slackware
Posts: 10
Original Poster
Rep:
|
Thanks for the Info.
It seems as if I've got everything setup correctly, when I cat /proc/scsi/usb-storage0/1 Here's what I get:
Host scsi1: usb-storage
Vendor: SOYO Technologies Corp.
Product: SOYO USB Storage Device
Serial Number: 0AEC501000001A002
Protocol: Transparent SCSI
Transport: Bulk
GUID: 0aec5010aec501000001a002
Attached: Yes
Thats great and wonderful and all but when I cat /proc/scsi/scsi it just lists my 2 cd-roms, as below:
Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
Vendor: BCD Model: F520D CD-ROM Rev: 2.21
Type: CD-ROM ANSI SCSI revision: 02
Host: scsi0 Channel: 00 Id: 01 Lun: 00
Vendor: LITE-ON Model: LTR-52246S Rev: 6S0A
Type: CD-ROM ANSI SCSI revision: 02
I went ahead and recompiled the kernel but this time setting USB-STORAGE as a module. When I rebooted, I ran insmod on usb-storage. Here's what a tail -f message came back with:
Apr 27 22:08:18 anemia kernel: Initializing USB Mass Storage driver...
Apr 27 22:08:18 anemia kernel: usb.c: registered new driver usb-storage
Apr 27 22:08:18 anemia kernel: scsi1 : SCSI emulation for USB Mass Storage devices
Apr 27 22:08:18 anemia kernel: USB Mass Storage support registered.
Grrr.. I just can't figure out why the SCSI emulation is not working correctly.
I still get an invalid block device when trying to mount it.
root@anemia:/proc/scsi# mount -t vfat /dev/sda1 /mnt/flash
mount: /dev/sda1 is not a valid block device
Any help or suggestions would be appreciated!
Thank You
KLuE
|
|
|
04-28-2003, 12:39 AM
|
#4
|
Senior Member
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590
Rep:
|
Check the permissions on /dev/sda, and try mounting /dev/sda2 etc..
|
|
|
04-28-2003, 08:26 AM
|
#5
|
LQ Newbie
Registered: Nov 2002
Distribution: Slackware
Posts: 10
Original Poster
Rep:
|
Hey There,
Permissions are correct, I've even tried mounting as root, still nothing.
For some reason I just don't think the device is linking up on the SCSI layer.
I'm posting this from work so I can't list out my permissions on those devices, but I can assure you that the permissions are correct. At the same time I did try to mount sda1 - sda7 with no success.
Thanks
KLuE
|
|
|
04-28-2003, 08:40 AM
|
#6
|
Senior Member
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590
Rep:
|
What version of slackware and what kernel are you running? an updated kernel module may help if it's available.
You may just have a device that just dosn't meet the specs, like some usb modems. This document may provide some hints about that, I like it's title,
Quote:
Observed USB Mass Storage Target Deviations from the Published Specification
|
|
|
|
04-28-2003, 09:43 AM
|
#7
|
LQ Newbie
Registered: Nov 2002
Distribution: Slackware
Posts: 10
Original Poster
Rep:
|
Thanks for the link, I'll take a look at it.
I'm running 2.4.20 and Slack 8.1
I'm thinking about enabling DevFS, Not sure if that will do anything, but at this point it's worth a shot.
Thanks for the help, I'll hack at it some more when I get home tonight.
-KLuE
|
|
|
All times are GMT -5. The time now is 06:00 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|