Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
USB + Sandisk + 2.6 problems.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Caffeine
Guru
Guru


Joined: 17 Jul 2002
Posts: 401
Location: Melbourne, Australia

PostPosted: Thu Oct 23, 2003 7:09 pm    Post subject: USB + Sandisk + 2.6 problems. Reply with quote

Hi there,
Just got myself a SanDisk ImageMate CF ( Compact Flash ). The device seems to be recognised, but when I pop a CF Card in, it takes down my USB. In fact, if I haven't moved the mouse it stops working also, however if I've been using the mouse, just the SanDisk stops working. I'm running 2.6-test8-mm1. The kernel log shows the following:

Code:
Oct 24 00:38:10 espresso kernel: hub 1-0:1.0: new USB device on port 1, assigned address 3
Oct 24 00:38:10 espresso kernel: usb 1-1: Product: ImageMate CF
Oct 24 00:38:10 espresso kernel: usb 1-1: Manufacturer: SanDisk
Oct 24 00:38:10 espresso kernel: usb 1-1: SerialNumber: 0000173077
Oct 24 00:38:10 espresso kernel: scsi0 : SCSI emulation for USB Mass Storage devices
Oct 24 00:38:10 espresso kernel:   Vendor: Generic   Model: STORAGE DEVICE    Rev: 0119
Oct 24 00:38:10 espresso kernel:   Type:   Direct-Access                      ANSI SCSI revision: 02
Oct 24 00:38:10 espresso usb.agent[3462]: ... no modules for USB product 781/9191/119
Oct 24 00:38:10 espresso scsi.agent[3493]: how to add device type= at /devices/pci0000:00/0000:00:07.2/usb1/1-1/1-1:1.0/host0/0:0:0:0 ??
Oct 24 00:38:10 espresso kernel: Attached scsi removable disk sda at scsi0, channel 0, id 0, lun 0
Oct 24 00:38:11 espresso kernel: Attached scsi generic sg0 at scsi0, channel 0, id 0, lun 0,  type 0
Oct 24 00:38:16 espresso kernel: usb 1-1: USB disconnect, address 3
Oct 24 00:38:16 espresso kernel: releasing anticipatory io scheduler
Oct 24 00:38:16 espresso kernel:  printing eip:
Oct 24 00:38:16 espresso kernel: 00000001
Oct 24 00:38:16 espresso kernel: Oops: 0000 [#1]
Oct 24 00:38:16 espresso kernel: PREEMPT
Oct 24 00:38:16 espresso kernel: CPU:    0
Oct 24 00:38:16 espresso kernel: EIP:    0060:[<00000001>]    Tainted: PF  VLI
Oct 24 00:38:16 espresso kernel: EFLAGS: 00010202
Oct 24 00:38:16 espresso kernel: EIP is at 0x1
Oct 24 00:38:16 espresso kernel: eax: e78402c0   ebx: e4aeda00   ecx: 00000000   edx: e4aeda00
Oct 24 00:38:16 espresso kernel: esi: e4aeda10   edi: c03adfa0   ebp: efd61dfc   esp: efd61df0
Oct 24 00:38:16 espresso kernel: ds: 007b   es: 007b   ss: 0068
Oct 24 00:38:16 espresso kernel: Process khubd (pid: 5, threadinfo=efd60000 task=eff8e040)
Oct 24 00:38:16 espresso kernel: Stack: c02184d9 e4aeda00 e78402c0 efd61e10 c0219ef7 e4aeda00 e4bf9800 c03adf88
Oct 24 00:38:16 espresso kernel:        efd61e24 c0242dba e4aeda00 e4aedca0 c03adf88 efd61e34 c0243d6e e4bf9800
Oct 24 00:38:16 espresso kernel:        00000000 efd61e44 c02159ec e4bf9980 e4bf99a8 efd61e5c c01e4323 e4bf99a8
Oct 24 00:38:16 espresso kernel: Call Trace:
Oct 24 00:38:16 espresso kernel:  [<c02184d9>] elevator_exit+0x33/0x37
Oct 24 00:38:16 espresso kernel:  [<c0219ef7>] blk_cleanup_queue+0x24/0x68
Oct 24 00:38:16 espresso kernel:  [<c0242dba>] scsi_free_sdev+0x7a/0x11a
Oct 24 00:38:16 espresso kernel:  [<c0243d6e>] scsi_device_dev_release+0x15/0x22
Oct 24 00:38:16 espresso kernel:  [<c02159ec>] device_release+0x1a/0x5f
Oct 24 00:38:16 espresso kernel:  [<c01e4323>] kobject_cleanup+0x4c/0x6b
Oct 24 00:38:16 espresso kernel:  [<c0244267>] scsi_remove_device+0x93/0xa7
Oct 24 00:38:16 espresso kernel:  [<c0243b0c>] scsi_forget_host+0x16/0x26
Oct 24 00:38:16 espresso kernel:  [<c023ef16>] scsi_remove_host+0x1b/0x63
Oct 24 00:38:16 espresso kernel:  [<c026446c>] storage_disconnect+0x39/0x48
Oct 24 00:38:16 espresso kernel:  [<c024cfb7>] usb_unbind_interface+0x54/0x82
Oct 24 00:38:16 espresso kernel:  [<c02169aa>] device_release_driver+0x42/0x51
Oct 24 00:38:16 espresso kernel:  [<c0216ad1>] bus_remove_device+0x4e/0x93
Oct 24 00:38:16 espresso kernel:  [<c0215cfc>] device_del+0x67/0x94
Oct 24 00:38:16 espresso kernel:  [<c0252b44>] usb_disable_device+0xba/0xea
Oct 24 00:38:16 espresso kernel:  [<c024d9ef>] usb_disconnect+0xbe/0x112
Oct 24 00:38:16 espresso kernel:  [<c024fb1a>] hub_port_connect_change+0x8f/0x2d5
Oct 24 00:38:16 espresso kernel:  [<c024f72c>] hub_port_status+0x26/0x7e
Oct 24 00:38:16 espresso kernel:  [<c024fe99>] hub_events+0x139/0x369
Oct 24 00:38:16 espresso kernel:  [<c02500e8>] hub_thread+0x1f/0xe1
Oct 24 00:38:16 espresso kernel:  [<c0118097>] default_wake_function+0x0/0x18
Oct 24 00:38:16 espresso kernel:  [<c02500c9>] hub_thread+0x0/0xe1
Oct 24 00:38:16 espresso kernel:  [<c010a631>] kernel_thread_helper+0x5/0xb
Oct 24 00:38:16 espresso kernel:
Oct 24 00:38:16 espresso kernel: Code:  Bad EIP value.


Any ideas?
Back to top
View user's profile Send private message
NorthGoingZax
Apprentice
Apprentice


Joined: 03 Dec 2002
Posts: 189

PostPosted: Fri Oct 24, 2003 3:03 pm    Post subject: Reply with quote

That's scary: I just got 2.6.0-test8-mm1 up and running, but I haven't tried my SanDisk ImageMate SDDR-75 yet. Did you add in support for SanDisk stuff in the USB Mass Storage options ?
Back to top
View user's profile Send private message
needlern1
Guru
Guru


Joined: 16 Jul 2002
Posts: 376
Location: Marietta, Ga 30068

PostPosted: Fri Oct 24, 2003 5:34 pm    Post subject: Reply with quote

I'm running a 2.6-test6-mm4 kernel and have my SanDisk ImageMate 6 in 1 usb functioning. I compiled everything needed into the kernel, versus as modules. I have hotplugging enabled. Here is a snipet from my kernel log:
Code:
Initializing USB Mass Storage driver...
Oct 24 10:06:29 [kernel] scsi0 : SCSI emulation for USB Mass Storage devices
Oct 24 10:06:29 [kernel]   Vendor: SanDisk   Model: ImageMate 6 in 1  Rev: 0.0>
Oct 24 10:06:29 [kernel]   Type:   Direct-Access                      ANSI SCSI revision: 02
Oct 24 10:06:29 [kernel] Attached scsi generic sg0 at scsi0, channel 0, id 0, lun 0,  type 0
Oct 24 10:06:29 [kernel]   Vendor: SanDisk   Model: ImageMate 6 in 1  Rev: 0.0>
Oct 24 10:06:29 [kernel]   Type:   Direct-Access                      ANSI SCSI revision: 02
Oct 24 10:06:29 [kernel] Attached scsi generic sg1 at scsi0, channel 0, id 0, lun 1,  type 0
Oct 24 10:06:29 [kernel]   Vendor: SanDisk   Model: ImageMate 6 in 1  Rev: 0.0>
Oct 24 10:06:29 [kernel]   Type:   Direct-Access                      ANSI SCSI revision: 02
Oct 24 10:06:29 [kernel] Attached scsi generic sg2 at scsi0, channel 0, id 0, lun 2,  type 0
Oct 24 10:06:29 [kernel]   Vendor: SanDisk   Model: ImageMate 6 in 1  Rev: 0.0>
Oct 24 10:06:29 [kernel]   Type:   Direct-Access                      ANSI SCSI revision: 02
Oct 24 10:06:29 [kernel] Attached scsi generic sg3 at scsi0, channel 0, id 0, lun 3,  type 0
Oct 24 10:06:29 [kernel] WARNING: USB Mass Storage data integrity not assured
Oct 24 10:06:29 [kernel] USB Mass Storage device found at 2
Oct 24 10:06:29 [kernel] drivers/usb/core/usb.c: registered new driver usb-storage
Oct 24 10:06:29 [kernel] USB Mass Storage support registered.

I notice the second from the last line of mine registers the usb-storage driver and don't see anything similar in yours. In fact, yours indicates it does not find it
Code:
Oct 24 00:38:10 espresso usb.agent[3462]: ... no modules for USB product 781/9191/119
Oct 24 00:38:10 espresso scsi.agent[3493]: how to add device type= at /devices/pci0000:00/0000:00:07.2/usb1/1-1/1-1:1.0/host0/0:0:0:0 ??
Oct 24 00:38:10 espresso kernel: Attached scsi removable disk sda at scsi0, channel 0, id 0, lun 0
Oct 24 00:38:11 espresso kernel: Attached scsi generic sg0 at scsi0, channel 0, id 0, lun 0,  type 0
Oct 24 00:38:16 espresso kernel: usb 1-1: USB disconnect, address 3
Oct 24 00:38:16 espresso kernel: releasing anticipatory io scheduler

then releases the usb device. Do you have the 'CONFIG_USB_STORAGE' configured in your kernel(in the usb section), either compiled in or as a module? and if as a module did you load the module?

As for the instability of the mouse, I can't offer any help there. HTH, Bill
Back to top
View user's profile Send private message
Caffeine
Guru
Guru


Joined: 17 Jul 2002
Posts: 401
Location: Melbourne, Australia

PostPosted: Sun Oct 26, 2003 8:34 pm    Post subject: Reply with quote

OK, so I installed Hotplug and now I get...


Code:
Oct 26 22:23:47 espresso kernel: hub 1-0:1.0: new USB device on port 1, assigned address 4
Oct 26 22:23:47 espresso kernel: usb 1-1: Product: ImageMate CF
Oct 26 22:23:47 espresso kernel: usb 1-1: Manufacturer: SanDisk
Oct 26 22:23:47 espresso kernel: usb 1-1: SerialNumber: 0000173077
Oct 26 22:23:47 espresso kernel: Initializing USB Mass Storage driver...
Oct 26 22:23:47 espresso kernel: scsi0 : SCSI emulation for USB Mass Storage devices
Oct 26 22:23:47 espresso scsi.agent[3954]: how to add device type= at /devices/pci0000:00/0000:00:07.2/usb1/1-1/1-1:1.0/host0/0:0:0:0 ??
Oct 26 22:23:47 espresso kernel:   Vendor: Generic   Model: STORAGE DEVICE    Rev: 0119
Oct 26 22:23:47 espresso kernel:   Type:   Direct-Access                      ANSI SCSI revision: 02
Oct 26 22:23:47 espresso kernel: Attached scsi removable disk sda at scsi0, channel 0, id 0, lun 0
Oct 26 22:23:47 espresso kernel: Attached scsi generic sg0 at scsi0, channel 0, id 0, lun 0,  type 0
Oct 26 22:23:47 espresso kernel: drivers/usb/core/usb.c: registered new driver usb-storage
Oct 26 22:23:47 espresso kernel: USB Mass Storage support registered.


Which is better, however I still get the kernel oops. ( Well, it depends on which card I put in. )

I'll try compiling stuff into the kernel, rather than as modules. Is there any hotplug configuration required?

[edit]
Ok, so it seems to be sort of working. Must remember to first umount, then to eject /dev/sda
[/edit]
Back to top
View user's profile Send private message
jpalko
n00b
n00b


Joined: 12 Mar 2003
Posts: 65
Location: Piispanristi, Finland

PostPosted: Thu Feb 19, 2004 4:29 pm    Post subject: Reply with quote

Personally I have this effect with my 2.6.3 + udev(or devfsd, doesn't matter which is used) + nptl system.

This is when I have the CF card in the ImageMate attached to my USB 2 card when hotplug starts:
Code:
Feb 19 18:24:33 gentoo ohci_hcd: 2004 Feb 02 USB 1.1 'Open' Host Controller (OHCI) Driver (PCI)
Feb 19 18:24:33 gentoo ohci_hcd: block sizes: ed 64 td 64
Feb 19 18:24:33 gentoo ohci_hcd 0000:00:0c.0: OHCI Host Controller
Feb 19 18:24:33 gentoo ohci_hcd 0000:00:0c.0: irq 19, pci mem f1876000
Feb 19 18:24:33 gentoo ohci_hcd 0000:00:0c.0: new USB bus registered, assigned bus number 1
Feb 19 18:24:34 gentoo hub 1-0:1.0: USB hub found
Feb 19 18:24:34 gentoo hub 1-0:1.0: 3 ports detected
Feb 19 18:24:34 gentoo usb 1-1: new full speed USB device using address 2
Feb 19 18:24:34 gentoo ohci_hcd 0000:00:0c.1: OHCI Host Controller
Feb 19 18:24:34 gentoo ohci_hcd 0000:00:0c.1: irq 27, pci mem f1878000
Feb 19 18:24:34 gentoo ohci_hcd 0000:00:0c.1: new USB bus registered, assigned bus number 2
Feb 19 18:24:35 gentoo Initializing USB Mass Storage driver...
Feb 19 18:24:35 gentoo scsi11 : SCSI emulation for USB Mass Storage devices
Feb 19 18:24:35 gentoo Vendor: SanDisk   Model: ImageMate 6 in 1  Rev: 0.0>
Feb 19 18:24:35 gentoo Type:   Direct-Access                      ANSI SCSI revision: 02
Feb 19 18:24:35 gentoo scsi.agent[30341]: how to add device type= at /devices/pci0000:00/0000:00:0c.0/usb1/1-1/1-1:1.0/host11/11:0:0:0 ??
Feb 19 18:24:35 gentoo SCSI device sda: 500736 512-byte hdwr sectors (256 MB)
Feb 19 18:24:35 gentoo sda: assuming Write Enabled
Feb 19 18:24:35 gentoo sda: assuming drive cache: write through
Feb 19 18:24:35 gentoo /dev/scsi/host11/bus0/target0/lun0: p1
Feb 19 18:24:35 gentoo Attached scsi removable disk sda at scsi11, channel 0, id 0, lun 0
Feb 19 18:24:35 gentoo WARNING: USB Mass Storage data integrity not assured
Feb 19 18:24:35 gentoo USB Mass Storage device found at 2
Feb 19 18:24:35 gentoo drivers/usb/core/usb.c: registered new driver usb-storage
Feb 19 18:24:35 gentoo USB Mass Storage support registered.
Feb 19 18:24:35 gentoo hub 2-0:1.0: USB hub found
Feb 19 18:24:35 gentoo hub 2-0:1.0: 2 ports detected
Feb 19 18:24:36 gentoo ehci_hcd 0000:00:0c.2: EHCI Host Controller
Feb 19 18:24:36 gentoo ehci_hcd 0000:00:0c.2: irq 21, pci mem f187a000
Feb 19 18:24:36 gentoo ehci_hcd 0000:00:0c.2: new USB bus registered, assigned bus number 3
Feb 19 18:24:36 gentoo ehci_hcd 0000:00:0c.2: USB 2.0 enabled, EHCI 0.95, driver 2003-Dec-29
Feb 19 18:24:36 gentoo usb 1-1: USB disconnect, address 2
Feb 19 18:24:36 gentoo hub 3-0:1.0: USB hub found
Feb 19 18:24:36 gentoo hub 3-0:1.0: 5 ports detected
Feb 19 18:24:36 gentoo usb 3-1: new high speed USB device using address 2
Feb 19 18:24:37 gentoo scsi12 : SCSI emulation for USB Mass Storage devices
Feb 19 18:24:37 gentoo Vendor: SanDisk   Model: ImageMate 6 in 1  Rev: 0.0>
Feb 19 18:24:37 gentoo Type:   Direct-Access                      ANSI SCSI revision: 02
Feb 19 18:24:37 gentoo scsi.agent[30799]: how to add device type= at /devices/pci0000:00/0000:00:0c.2/usb3/3-1/3-1:1.0/host12/12:0:0:0 ??
Feb 19 18:24:37 gentoo SCSI device sda: 500736 512-byte hdwr sectors (256 MB)
Feb 19 18:24:37 gentoo sda: assuming Write Enabled
Feb 19 18:24:37 gentoo sda: assuming drive cache: write through
Feb 19 18:24:37 gentoo /dev/scsi/host12/bus0/target0/lun0: p1
Feb 19 18:24:37 gentoo Attached scsi removable disk sda at scsi12, channel 0, id 0, lun 0
Feb 19 18:24:37 gentoo WARNING: USB Mass Storage data integrity not assured
Feb 19 18:24:37 gentoo USB Mass Storage device found at 2
Feb 19 18:24:38 gentoo drivers/usb/host/uhci-hcd.c: USB Universal Host Controller Interface driver v2.1


This produces /dev/sda1 to be available and mountable.

But if I don't have the CF card in the ImageMate and I put it in when hotplug is already running, nothing happens in /var/log/messages nor regarding the device. But if I restart hotplug it recognises the CF card in the ImageMate... :?
_________________
Jukka Palko
Piispanristi, Finland
Linux Counter ID #219161
Back to top
View user's profile Send private message
snowpatch
n00b
n00b


Joined: 09 Mar 2003
Posts: 38
Location: Philadelphia

PostPosted: Tue Mar 09, 2004 9:25 pm    Post subject: hotplug not seeing compact flash Reply with quote

jpalko said
Quote:
But if I don't have the CF card in the ImageMate and I put it in when hotplug is already running, nothing happens in /var/log/messages nor regarding the device. But if I restart hotplug it recognises the CF card in the ImageMate...


I have been trying to get my SanDisk flashcard reader to work. I am using kernel-2.4.24-ck1, devfs, and hotplug is running.

I found that on the first hotplug (with the card in it), the cardreader is seen and theusb-storage module is loaded. If I unplug the reader, the usb-storage module is left loaded, and then if I re-plug it, the hotplug system doesn't see it. I tried unloading the usb-storage module upon unplugging of the reader. Next plug-in the reader was recognized again!

I have been playing around with a /etc/hotplug/usb/usb-storage script to get the partition to appear under devfs. I can get /dev/sda1 to appear if I do a fdisk -l /dev/sda in my usb-storage script.

No luck getting updfstab to work yet. I am going to give 2.6.3 and udev a try.

Travis
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum