LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   USB Stopped working with 2.6.26 kernel? (https://www.linuxquestions.org/questions/linux-hardware-18/usb-stopped-working-with-2-6-26-kernel-659951/)

Yerp 08-02-2008 10:38 AM

USB Stopped working with 2.6.26 kernel?
 
I have a Kingston 2GB MicroSD that can be accessed via a usb port.

The usb has an ext2 filesystem on in with an MBR installed for booting.

Prior to the 2.6.26 kernel (the 2.25 series), I have had no trouble mounting, booting, or otherwise accessing the MicroSD system.

With the release of the 2.6.26 and now the 2.6.26.1 kernel, the kernel fails to properly recognize the MicroSD.

Has anybody else seen this and know of a solution or can point out a particular kernel git patch that may have caused this?

fdisk will not read the usb and gparted thinks it is a 512b disk and not a 2048MB disk.

Below is my dmesg log:

usb 1-1: new high speed USB device using ehci_hcd and address 4
usb 1-1: configuration #1 chosen from 1 choice
scsi7 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 4
usb-storage: waiting for device to settle before scanning
usb-storage: device scan complete
scsi 7:0:0:0: Direct-Access Generic 6000 PQ: 0 ANSI: 0 CCS
sd 7:0:0:0: [sdb] Sector size 0 reported, assuming 512.
sd 7:0:0:0: [sdb] 1 512-byte hardware sectors (0 MB)
sd 7:0:0:0: [sdb] Write Protect is off
sd 7:0:0:0: [sdb] Mode Sense: 4b 00 00 08
sd 7:0:0:0: [sdb] Assuming drive cache: write through
sd 7:0:0:0: [sdb] Sector size 0 reported, assuming 512.
sd 7:0:0:0: [sdb] 1 512-byte hardware sectors (0 MB)
sd 7:0:0:0: [sdb] Write Protect is off
sd 7:0:0:0: [sdb] Mode Sense: 4b 00 00 08
sd 7:0:0:0: [sdb] Assuming drive cache: write through
sdb: sdb1
sdb: p1 exceeds device capacity
sd 7:0:0:0: [sdb] Attached SCSI removable disk
sd 7:0:0:0: Attached scsi generic sg2 type 0
attempt to access beyond end of device
sdb: rw=0, want=3932032, limit=1
Buffer I/O error on device sdb1, logical block 3931776
attempt to access beyond end of device
sdb: rw=0, want=3932033, limit=1
Buffer I/O error on device sdb1, logical block 3931777
attempt to access beyond end of device
sdb: rw=0, want=3932034, limit=1
Buffer I/O error on device sdb1, logical block 3931778
attempt to access beyond end of device
sdb: rw=0, want=3932035, limit=1
Buffer I/O error on device sdb1, logical block 3931779
attempt to access beyond end of device
sdb: rw=0, want=3932036, limit=1
Buffer I/O error on device sdb1, logical block 3931780
attempt to access beyond end of device
sdb: rw=0, want=3932037, limit=1
Buffer I/O error on device sdb1, logical block 3931781
attempt to access beyond end of device
sdb: rw=0, want=3932038, limit=1
Buffer I/O error on device sdb1, logical block 3931782
attempt to access beyond end of device
sdb: rw=0, want=3932039, limit=1
Buffer I/O error on device sdb1, logical block 3931783
attempt to access beyond end of device
sdb: rw=0, want=3932032, limit=1
Buffer I/O error on device sdb1, logical block 3931776
attempt to access beyond end of device
sdb: rw=0, want=3932033, limit=1
Buffer I/O error on device sdb1, logical block 3931777
attempt to access beyond end of device
sdb: rw=0, want=3932034, limit=1
attempt to access beyond end of device
sdb: rw=0, want=3932035, limit=1
attempt to access beyond end of device
sdb: rw=0, want=3932036, limit=1
attempt to access beyond end of device
sdb: rw=0, want=3932037, limit=1
attempt to access beyond end of device
sdb: rw=0, want=3932038, limit=1
attempt to access beyond end of device
sdb: rw=0, want=3932039, limit=1
attempt to access beyond end of device
sdb: rw=0, want=256, limit=1
attempt to access beyond end of device
sdb: rw=0, want=257, limit=1
attempt to access beyond end of device
sdb: rw=0, want=258, limit=1
attempt to access beyond end of device
sdb: rw=0, want=259, limit=1
attempt to access beyond end of device
sdb: rw=0, want=260, limit=1
attempt to access beyond end of device
sdb: rw=0, want=261, limit=1
attempt to access beyond end of device

EDIT: Possible Solutions Found:
http://www.gossamer-threads.com/list.../kernel/953404
http://marc.info/?l=linux-usb&m=121734710306509&w=2

x-alien 08-18-2008 06:32 PM

This sounds similar to my problem.

I have a card reader 4in1 (Alcor Micro Corp.) integrated into the PC and another card reader 4in1 integrated into the USB printer (HP Photosmart 7260); both card readers are USB 1.x.
With kernel 2.6.24.x both card readers work perfectly; if I insert a memory card, HAL can mount and unmount it automatically.

After an upgrade to the kernel 2.6.25.x or 2.6.26.x, only the PC card reader works; the printer card reader has stopped working.
Inserting a memory card I get these messages:
Code:

Aug 18 23:28:00 darkstar kernel: sd 10:0:0:0: [sdh] Attached SCSI removable disk
Aug 18 23:28:00 darkstar kernel: sd 10:0:0:0: Attached scsi generic sg1 type 0
Aug 18 23:29:50 darkstar kernel: sd 10:0:0:0: [sdh] 250880 512-byte hardware sectors (128 MB)
Aug 18 23:29:50 darkstar kernel: sd 10:0:0:0: [sdh] Write Protect is off
Aug 18 23:29:50 darkstar kernel: sd 10:0:0:0: [sdh] 250880 512-byte hardware sectors (128 MB)
Aug 18 23:29:50 darkstar kernel: sd 10:0:0:0: [sdh] Write Protect is off
Aug 18 23:29:50 darkstar kernel:  sdh:<3>Buffer I/O error on device sdh, logical block 0
Aug 18 23:29:50 darkstar kernel: sd 10:0:0:0: [sdh] 250880 512-byte hardware sectors (128 MB)
Aug 18 23:29:50 darkstar kernel: sd 10:0:0:0: [sdh] Write Protect is off
Aug 18 23:29:50 darkstar kernel: sd 10:0:0:0: [sdh] 250880 512-byte hardware sectors (128 MB)
Aug 18 23:29:50 darkstar kernel: sd 10:0:0:0: [sdh] Write Protect is off
Aug 18 23:29:50 darkstar kernel:  sdh:
Aug 18 23:29:50 darkstar kernel: sd 10:0:0:0: [sdh] Result: hostbyte=0x00 driverbyte=0x08
Aug 18 23:29:50 darkstar kernel: sd 10:0:0:0: [sdh] Sense Key : 0x3 [current]
Aug 18 23:29:50 darkstar kernel: sd 10:0:0:0: [sdh] ASC=0x11 ASCQ=0x11
Aug 18 23:29:50 darkstar kernel: sd 10:0:0:0: [sdh] Result: hostbyte=0x00 driverbyte=0x08
Aug 18 23:29:50 darkstar kernel: sd 10:0:0:0: [sdh] Sense Key : 0x3 [current]
Aug 18 23:29:50 darkstar kernel: sd 10:0:0:0: [sdh] ASC=0x11 ASCQ=0x11
Aug 18 23:29:50 darkstar kernel: sd 10:0:0:0: [sdh] Result: hostbyte=0x00 driverbyte=0x08
Aug 18 23:29:50 darkstar kernel: sd 10:0:0:0: [sdh] Sense Key : 0x3 [current]
Aug 18 23:29:50 darkstar kernel: sd 10:0:0:0: [sdh] ASC=0x11 ASCQ=0x11

And, at this point, nothing happens!

I have reproduced this problem on different PCs with different distributions (Slackware 12.0, Slackware 12.1 and Ubuntu 8.04).

In my case, patches do not work; the only solution is to reboot with kernel 2.6.24.x!

I never understood the Linux world; if a piece of code works perfectly, why rewrite it?


All times are GMT -5. The time now is 08:26 AM.