Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 42155 - hotplug 20040105 fails to notice CF card inserted into CF reader or the CF reader inserted on the fly...
Summary: hotplug 20040105 fails to notice CF card inserted into CF reader or the CF re...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-19 08:49 UTC by Jukka Palko
Modified: 2004-03-20 22:18 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jukka Palko 2004-02-19 08:49:59 UTC
hotplug would seem to work otherwise, except that it doesn't recognise CF cards in the Sandisk ImageMate otherwise than restarting it...

Reproducible: Always
Steps to Reproduce:
1. Install 2.6.3 ~x86 system with nptl support via linux-headers-2.6.1
2. Plug the sandisk imagemate into the machine and try to plug it into the system and access the cf card in it.
3. restart hotplug and try again and access it...

Actual Results:  
2. Didn't get access to the device nor the CF, output being:
Feb 19 18:42:01 gentoo usb 3-1: new high speed USB device using address 2
Feb 19 18:42:01 gentoo usb 3-1: device not accepting address 2, error -71
Feb 19 18:42:01 gentoo usb 3-1: new high speed USB device using address 3
Feb 19 18:42:01 gentoo Initializing USB Mass Storage driver...
Feb 19 18:42:01 gentoo drivers/usb/core/usb.c: registered new driver usb-storage
Feb 19 18:42:01 gentoo USB Mass Storage support registered.
Feb 19 18:42:02 gentoo scsi17 : SCSI emulation for USB Mass Storage devices
Feb 19 18:42:02 gentoo Vendor: SanDisk   Model: ImageMate 6 in 1  Rev: 0.0>
Feb 19 18:42:02 gentoo Type:   Direct-Access                      ANSI SCSI
revision: 02
Feb 19 18:42:02 gentoo scsi.agent[4242]: how to add device type= at
/devices/pci0000:00/0000:00:0c.2/usb3/3-1/3-1:1.0/host17/17:0:0:0 ??
Feb 19 18:42:02 gentoo SCSI device sda: 500736 512-byte hdwr sectors (256 MB)
Feb 19 18:42:02 gentoo sda: assuming Write Enabled
Feb 19 18:42:02 gentoo sda: assuming drive cache: write through
Feb 19 18:42:02 gentoo /dev/scsi/host17/bus0/target0/lun0: p1
Feb 19 18:42:02 gentoo Attached scsi removable disk sda at scsi17, channel 0, id
0, lun 0
Feb 19 18:42:02 gentoo WARNING: USB Mass Storage data integrity not assured
Feb 19 18:42:02 gentoo USB Mass Storage device found at 3
Feb 19 18:42:02 gentoo usb 3-1: USB disconnect, address 3
Feb 19 18:42:02 gentoo usb 3-1: new high speed USB device using address 4
Feb 19 18:42:03 gentoo scsi18 : SCSI emulation for USB Mass Storage devices
Feb 19 18:42:03 gentoo Vendor: SanDisk   Model: ImageMate 6 in 1  Rev: 0.0>
Feb 19 18:42:03 gentoo Type:   Direct-Access                      ANSI SCSI
revision: 02
Feb 19 18:42:03 gentoo scsi.agent[4382]: how to add device type= at
/devices/pci0000:00/0000:00:0c.2/usb3/3-1/3-1:1.0/host18/18:0:0:0 ??
Feb 19 18:42:03 gentoo SCSI device sda: 500736 512-byte hdwr sectors (256 MB)
Feb 19 18:42:03 gentoo sda: assuming Write Enabled
Feb 19 18:42:03 gentoo sda: assuming drive cache: write through
Feb 19 18:42:03 gentoo /dev/scsi/host18/bus0/target0/lun0:SCSI error : <18 0 0
0> return code = 0x70000
Feb 19 18:42:03 gentoo end_request: I/O error, dev sda, sector 0
Feb 19 18:42:03 gentoo Buffer I/O error on device sda, logical block 0
Feb 19 18:42:03 gentoo SCSI error : <18 0 0 0> return code = 0x70000
Feb 19 18:42:03 gentoo end_request: I/O error, dev sda, sector 0
Feb 19 18:42:03 gentoo Buffer I/O error on device sda, logical block 0
Feb 19 18:42:03 gentoo unable to read partition table
Feb 19 18:42:03 gentoo Attached scsi removable disk sda at scsi18, channel 0, id
0, lun 0
Feb 19 18:42:03 gentoo WARNING: USB Mass Storage data integrity not assured
Feb 19 18:42:03 gentoo USB Mass Storage device found at 4
Feb 19 18:42:03 gentoo usb 3-1: USB disconnect, address 4
# mount /dev/sda1 /mnt/flash/
mount: /dev/sda1 is not a valid block device

3. Got access to device and CF in it
# /etc/init.d/hotplug restart
Feb 19 18:46:48 gentoo ehci_hcd 0000:00:0c.2: remove, state 1
Feb 19 18:46:48 gentoo usb usb3: USB disconnect, address 1
Feb 19 18:46:48 gentoo usb 3-1: USB disconnect, address 2
Feb 19 18:46:48 gentoo ehci_hcd 0000:00:0c.2: USB bus 3 deregistered
Feb 19 18:46:48 gentoo ohci_hcd 0000:00:0c.0: remove, state 1
Feb 19 18:46:48 gentoo usb usb1: USB disconnect, address 1
Feb 19 18:46:48 gentoo ohci_hcd 0000:00:0c.0: USB bus 1 deregistered
Feb 19 18:46:48 gentoo ohci_hcd 0000:00:0c.1: remove, state 1
Feb 19 18:46:48 gentoo usb usb2: USB disconnect, address 1
Feb 19 18:46:48 gentoo ohci_hcd 0000:00:0c.1: USB bus 2 deregistered
Feb 19 18:46:48 gentoo drivers/usb/core/usb.c: deregistering driver usb-storage
Feb 19 18:46:48 gentoo drivers/usb/core/usb.c: deregistering driver usbfs
Feb 19 18:46:48 gentoo drivers/usb/core/usb.c: deregistering driver hub
Feb 19 18:46:50 gentoo drivers/usb/core/usb.c: registered new driver usbfs
Feb 19 18:46:50 gentoo drivers/usb/core/usb.c: registered new driver hub
Feb 19 18:46:50 gentoo ohci_hcd: 2004 Feb 02 USB 1.1 'Open' Host Controller
(OHCI) Driver (PCI)
Feb 19 18:46:50 gentoo ohci_hcd: block sizes: ed 64 td 64
Feb 19 18:46:50 gentoo ohci_hcd 0000:00:0c.0: OHCI Host Controller
Feb 19 18:46:50 gentoo ohci_hcd 0000:00:0c.0: irq 19, pci mem f1876000
Feb 19 18:46:50 gentoo ohci_hcd 0000:00:0c.0: new USB bus registered, assigned
bus number 1
Feb 19 18:46:50 gentoo hub 1-0:1.0: USB hub found
Feb 19 18:46:50 gentoo hub 1-0:1.0: 3 ports detected
Feb 19 18:46:51 gentoo usb 1-1: new full speed USB device using address 2
Feb 19 18:46:51 gentoo ohci_hcd 0000:00:0c.1: OHCI Host Controller
Feb 19 18:46:51 gentoo Initializing USB Mass Storage driver...
Feb 19 18:46:51 gentoo drivers/usb/core/usb.c: registered new driver usb-storage
Feb 19 18:46:51 gentoo USB Mass Storage support registered.
Feb 19 18:46:51 gentoo ohci_hcd 0000:00:0c.1: irq 27, pci mem f1878000
Feb 19 18:46:51 gentoo ohci_hcd 0000:00:0c.1: new USB bus registered, assigned
bus number 2
Feb 19 18:46:51 gentoo scsi22 : SCSI emulation for USB Mass Storage devices
Feb 19 18:46:51 gentoo Vendor: SanDisk   Model: ImageMate 6 in 1  Rev: 0.0>
Feb 19 18:46:51 gentoo Type:   Direct-Access                      ANSI SCSI
revision: 02
Feb 19 18:46:51 gentoo scsi.agent[13812]: how to add device type= at
/devices/pci0000:00/0000:00:0c.0/usb1/1-1/1-1:1.0/host22/22:0:0:0 ??
Feb 19 18:46:51 gentoo SCSI device sda: 500736 512-byte hdwr sectors (256 MB)
Feb 19 18:46:51 gentoo sda: assuming Write Enabled
Feb 19 18:46:51 gentoo sda: assuming drive cache: write through
Feb 19 18:46:51 gentoo /dev/scsi/host22/bus0/target0/lun0: p1
Feb 19 18:46:51 gentoo Attached scsi removable disk sda at scsi22, channel 0, id
0, lun 0
Feb 19 18:46:51 gentoo WARNING: USB Mass Storage data integrity not assured
Feb 19 18:46:51 gentoo USB Mass Storage device found at 2
Feb 19 18:46:52 gentoo hub 2-0:1.0: USB hub found
Feb 19 18:46:52 gentoo hub 2-0:1.0: 2 ports detected
Feb 19 18:46:52 gentoo ehci_hcd 0000:00:0c.2: EHCI Host Controller
Feb 19 18:46:52 gentoo ehci_hcd 0000:00:0c.2: irq 21, pci mem f187a000
Feb 19 18:46:52 gentoo ehci_hcd 0000:00:0c.2: new USB bus registered, assigned
bus number 3
Feb 19 18:46:52 gentoo ehci_hcd 0000:00:0c.2: USB 2.0 enabled, EHCI 0.95, driver
2003-Dec-29
Feb 19 18:46:52 gentoo usb 1-1: USB disconnect, address 2
Feb 19 18:46:52 gentoo hub 3-0:1.0: USB hub found
Feb 19 18:46:52 gentoo hub 3-0:1.0: 5 ports detected
Feb 19 18:46:53 gentoo usb 3-1: new high speed USB device using address 2
Feb 19 18:46:53 gentoo scsi23 : SCSI emulation for USB Mass Storage devices
Feb 19 18:46:53 gentoo Vendor: SanDisk   Model: ImageMate 6 in 1  Rev: 0.0>
Feb 19 18:46:53 gentoo Type:   Direct-Access                      ANSI SCSI
revision: 02
Feb 19 18:46:53 gentoo scsi.agent[14270]: how to add device type= at
/devices/pci0000:00/0000:00:0c.2/usb3/3-1/3-1:1.0/host23/23:0:0:0 ??
Feb 19 18:46:53 gentoo SCSI device sda: 500736 512-byte hdwr sectors (256 MB)
Feb 19 18:46:53 gentoo sda: assuming Write Enabled
Feb 19 18:46:53 gentoo sda: assuming drive cache: write through
Feb 19 18:46:53 gentoo /dev/scsi/host23/bus0/target0/lun0: p1
Feb 19 18:46:53 gentoo Attached scsi removable disk sda at scsi23, channel 0, id
0, lun 0
Feb 19 18:46:53 gentoo WARNING: USB Mass Storage data integrity not assured
Feb 19 18:46:53 gentoo USB Mass Storage device found at 2
Feb 19 18:46:54 gentoo drivers/usb/host/uhci-hcd.c: USB Universal Host
Controller Interface driver v2.1
# mount /dev/sda1 /mnt/flash/
# ls /mnt/flash/
dcim


Expected Results:  
Let me access the CF and notice the the changes of the contents of the CF
reader... Dunno whether this is kernel and hotplug related, but thought I could
tell of it anyhow... :)

Portage 2.0.50-r1 (default-x86-2004.0, gcc-3.3.3, glibc-2.3.3_pre20040207-r0, 2.6.3)
=================================================================
System uname: 2.6.3 i686 AMD Athlon(tm) XP 2400+
Gentoo Base System version 1.4.3.13
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-mcpu=athlon-xp -march=athlon-xp -msse -mmmx -m3dnow -O2
-fomit-frame-pointer -frerun-loop-opt -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O2 -mcpu=i686 -pipe"
DISTDIR="/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="ftp://trumpetti.atm.tut.fi/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/portage/packages"
PORTAGE_TMPDIR="/portage/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="3dnow X Xaw3d aalib alsa apm avi berkdb bonobo cdr crypt cups dga directfb
doc dvd dvdr encode esd fbcon foomaticdb freetype gdbm gif gnome gnutls gpm gtk
gtk2 imap imlib ipv6 jabber java joystick jpeg kde kerberos libg++ libwww mad
maildir mbox mikmod mmx motif mozcalendar mozilla mpeg mpeg4 ncurses nls nptl
nvidia oggvorbis opengl oss pam pdflib perl png python qt quicktime readline
sasl sdl slang spell sse ssl stroke svga tcltk tcpd tetex tiff truetype type1
unicode usb video_cards_nvidia vim-with-x x86 xchattext xine xml2 xmms xv zlib"
Comment 1 Greg Kroah-Hartman (RETIRED) gentoo-dev 2004-03-20 11:27:30 UTC
Not a hotplug issue.

You need to run 'eject' to tell the kernel that your device is gone.

Comment 2 Jukka Palko 2004-03-20 22:08:44 UTC
Okay, actually noticed that if I unplug the Imagemate from the cradle that came with it and reinsert it with the CF card into the cradle the CF card is noticed, but then again nothing happens if I just push a CF card into the Imagemate while it's attached to it's cradle.

And now at udev 021 + kernel 2.6.4.
Comment 3 Greg Kroah-Hartman (RETIRED) gentoo-dev 2004-03-20 22:18:39 UTC
Sorry, but there is nothing that udev or the kernel can do to detect this
type of action.

I recommend using the {all_partitions} option in udev for whatever
you name this device, that way the kernel will know to rescan the partition table
for new devices.