Bug 152175

Summary: Can't mount RCA Lyra 1080 USB mp3 player
Product: [openSUSE] SUSE LINUX 10.0 Reporter: David Hamilton <niftimusmaximus>
Component: KernelAssignee: Greg Kroah-Hartman <gregkh>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: stern
Version: Final   
Target Milestone: ---   
Hardware: x86-64   
OS: SuSE Linux 10.0   
Whiteboard:
Found By: Customer Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: dmesg output when 1GB card is mounted using USB card reader
cat /proc/bus/usb/devices when card reader is plugged in with inserted SD card
cat /proc/bus/usb/devices when Lyra 1080 mp3 player is plugged in with inserted SD card
Verbose usb-storage dmesg output when Lyra 1080 is plugged in to USB port
Verbose usb-storage dmesg output after trying to mount connected Lyra 1080
Verbose usb-storage dmesg output after connecting USB card reader
Verbose usb-storage dmesg output after successfully mounting SD card in USB card reader
unusual_devs blacklist entry for the Lyra 1080 MP3 player

Description David Hamilton 2006-02-20 08:07:18 UTC
I'm having trouble mounting my RCA Lyra 1080 MP3 player (either its internal memory or SD card). I've compiled and am currently using kernel 2.6.15.4, but this identical problem occurs with the default kernel.

When I plug the device in dmesg reveals the following:

usb 1-1: new full speed USB device using ohci_hcd and address 6
scsi10 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 6
usb-storage: waiting for device to settle before scanning
Vendor: Thomson Model: RD1080 Player Rev: 0.01
Type: Direct-Access ANSI SCSI revision: 02
SCSI device sdb: 1993728 512-byte hdwr sectors (1021 MB)
sdb: Write Protect is off
sdb: Mode Sense: 3f 00 00 08
sdb: assuming drive cache: write through
SCSI device sdb: 1993728 512-byte hdwr sectors (1021 MB)
sdb: Write Protect is off
sdb: Mode Sense: 3f 00 00 08
sdb: assuming drive cache: write through
sdb: sdb1
sd 10:0:0:0: Attached scsi removable disk sdb
sd 10:0:0:0: Attached scsi generic sg1 type 0
usb-storage: device scan complete
end_request: I/O error, dev sdb, sector 1993727
Buffer I/O error on device sdb1, logical block 1993480
end_request: I/O error, dev sdb, sector 1993727
Buffer I/O error on device sdb1, logical block 1993480
end_request: I/O error, dev sdb, sector 1993727
Buffer I/O error on device sdb1, logical block 1993480
[... more of the same Buffer I/O errors]

Mounting as /dev/sdb1, dmesg gives:
end_request: I/O error, dev sdb, sector 247
FAT: unable to read boot sector

Mounting as /dev/sdb, dmesg gives:
end_request: I/O error, dev sdb, sector 0
FAT: unable to read boot sector

The command: fdisk /dev/sdb gives:
Unable to read /dev/sdb

I can successfully mount the Lyra's 1gb SD card in a separate USB 2 card reader using the same USB port. I can also use the player without problems in Windows XP and seem to recall getting it working in a version of Suse 9. I've got the latest firmware for the player installed.
Comment 1 Karsten Keil 2006-02-20 11:45:56 UTC
Please also post the logs of the successful atempt with the other card reader.
And please attach cat /proc/bus/usb/devices for both cases.
Comment 2 David Hamilton 2006-02-21 11:43:02 UTC
Created attachment 69537 [details]
dmesg output when 1GB card is mounted using USB card reader
Comment 3 David Hamilton 2006-02-21 11:45:47 UTC
Created attachment 69538 [details]
cat /proc/bus/usb/devices when card reader is plugged in with inserted SD card
Comment 4 David Hamilton 2006-02-21 11:47:55 UTC
Created attachment 69541 [details]
cat /proc/bus/usb/devices when Lyra 1080 mp3 player is plugged in with inserted SD card
Comment 5 Greg Kroah-Hartman 2006-02-21 22:56:51 UTC
Is there any way you can run a 2.6.15.4 kernel with CONFIG_USB_STORAGE_DEBUG enabled?  And if so, can you attach the kernel log output?  That will help
us try to figure out how to fix this device.
Comment 6 David Hamilton 2006-02-22 08:11:13 UTC
Created attachment 69697 [details]
Verbose usb-storage dmesg output when Lyra 1080 is plugged in to USB port
Comment 7 David Hamilton 2006-02-22 08:12:18 UTC
Created attachment 69699 [details]
Verbose usb-storage dmesg output after trying to mount connected Lyra 1080
Comment 8 David Hamilton 2006-02-22 08:13:09 UTC
Created attachment 69700 [details]
Verbose usb-storage dmesg output after connecting USB card reader
Comment 9 David Hamilton 2006-02-22 08:14:03 UTC
Created attachment 69701 [details]
Verbose usb-storage dmesg output after successfully mounting SD card in USB card reader
Comment 10 Alan Stern 2006-02-22 21:07:57 UTC
Created attachment 69871 [details]
unusual_devs blacklist entry for the Lyra 1080 MP3 player

Judging from your usb-storage debugging log, the player reports that the card has one more sector of storage than it really does.  This patch should fix the problem.
Comment 11 David Hamilton 2006-02-22 22:54:35 UTC
Awesome!  The patch worked -- the device mounts successfully and there are no problems reading or writing to it.

Many thanks to all involved!

I'm not sure what the process is to get this into future linux kernels (or if it's indeed appropriate to burden linux users with a few extra bytes in the kernel sources to allow for this device's weird behaviour).  In any case I'll hold tight to that patch.  Thanks again!



Comment 12 Greg Kroah-Hartman 2006-02-23 23:14:37 UTC
Alan has forwarded me the patch.  It was just added to our internal kernel
source tree and will show up in the next kernel update.

It's also been added to my development tree and will make it into the main
kernel source tree soon.

Thanks for helping out in fixing this problem.