2005-01-14 15:00:04

by Jack Howarth

[permalink] [raw]
Subject: usb key oddities with 2.6.10-ac9

Is anyone else seeing problems with kernel 2.6.10 and usb keys
under the Gnome desktop? Fedora Core 2 and 3 has just had two kernel
updates to 2.6.10 (using the -ac8 and -ac9 patches respectively). In
each case, the updates seem to have broken the ability of the Gnome
desktop to present a Flash icon when a usb key is inserted. Oddly if
one boots the machine with the flash key inserted, the Flash icon
does appear in the Gnome desktop's Computer folder. However if one
removes and reinserts the key it disappears and doesn't come back.
I see the same kernel messages as I did under 2.6.7 when I insert
the memory key...

Jan 11 15:18:30 graphics kernel: Vendor: LEXAR Model: JUMPDRIVE SECURE Rev: 2000
Jan 11 15:18:30 graphics kernel: Type: Direct-Access ANSI SCSI revision: 00
Jan 11 15:18:30 graphics kernel: SCSI device sdd: 1010784 512-byte hdwr sectors
(518 MB)
Jan 11 15:18:30 graphics kernel: sdd: assuming drive cache: write through
Jan 11 15:18:30 graphics kernel: SCSI device sdd: 1010784 512-byte hdwr sectors
(518 MB)
Jan 11 15:18:30 graphics kernel: sdd: assuming drive cache: write through
Jan 11 15:18:31 graphics kernel: sdd: sdd1
Jan 11 15:18:31 graphics kernel: Attached scsi disk sdd at scsi3, channel 0, id
0, lun 0
Jan 11 15:18:31 graphics kernel: Attached scsi generic sg3 at scsi3, channel 0,
id 0, lun 0, type 0
Jan 11 15:18:31 graphics scsi.agent[5979]: disk at /devices/pci0000:00/0000:00:1d.7/usb1/1-5/1-5:1.0/host3/target3:0:0/3:0:0:0

and if I add a line to fstab such as...

/dev/sdd1 /mnt/lexar vfat noauto,rw,user 0 0

I can manually mount the usb key fine. Do you know if any other distros
are seeing this problem with 2.6.10 or if the breakage is likely specific
to Fedora's kernel builds?
Jack


2005-01-15 01:48:17

by Alan

[permalink] [raw]
Subject: Re: usb key oddities with 2.6.10-ac9

On Gwe, 2005-01-14 at 14:58, Jack Howarth wrote:
> does appear in the Gnome desktop's Computer folder. However if one
> removes and reinserts the key it disappears and doesn't come back.
> I see the same kernel messages as I did under 2.6.7 when I insert
> the memory key...

Make sure you have the hotplug notification stuff all enabled in the
kernel. Missing that can produce the symptoms you describe

2005-01-15 03:17:13

by Jack Howarth

[permalink] [raw]
Subject: Re: usb key oddities with 2.6.10-ac9

Alan,
I don't see any changes in how Fedora's 2.6.10 kernels are built
that should effect USB hotplugging. The previous kernel I was using
shows...

grep HOT config-2.6.7-1.494.2.2smp
CONFIG_HOTPLUG=y
CONFIG_HOTPLUG_PCI=y
# CONFIG_HOTPLUG_PCI_FAKE is not set
CONFIG_HOTPLUG_PCI_COMPAQ=m
# CONFIG_HOTPLUG_PCI_COMPAQ_NVRAM is not set
CONFIG_HOTPLUG_PCI_IBM=m
# CONFIG_HOTPLUG_PCI_ACPI is not set
# CONFIG_HOTPLUG_PCI_CPCI is not set
CONFIG_HOTPLUG_PCI_PCIE=m
CONFIG_HOTPLUG_PCI_PCIE_POLL_EVENT_MODE=y
CONFIG_HOTPLUG_PCI_SHPC=m
CONFIG_HOTPLUG_PCI_SHPC_POLL_EVENT_MODE=y
CONFIG_DM_SNAPSHOT=m
CONFIG_USB_STORAGE_JUMPSHOT=y

and their new 2.6.10 based kernels show...

grep HOT config-2.6.10-1.9_FC2smp
CONFIG_HOTPLUG=y
CONFIG_HOTPLUG_PCI=y
# CONFIG_HOTPLUG_PCI_FAKE is not set
CONFIG_HOTPLUG_PCI_COMPAQ=m
# CONFIG_HOTPLUG_PCI_COMPAQ_NVRAM is not set
CONFIG_HOTPLUG_PCI_IBM=m
CONFIG_HOTPLUG_PCI_ACPI=m
CONFIG_HOTPLUG_PCI_ACPI_IBM=m
# CONFIG_HOTPLUG_PCI_CPCI is not set
CONFIG_HOTPLUG_PCI_PCIE=m
# CONFIG_HOTPLUG_PCI_PCIE_POLL_EVENT_MODE is not set
CONFIG_HOTPLUG_PCI_SHPC=m
# CONFIG_HOTPLUG_PCI_SHPC_POLL_EVENT_MODE is not set
CONFIG_DM_SNAPSHOT=m
CONFIG_USB_STORAGE_JUMPSHOT=y

Is there anything I can modify (without rebuilding the kernel) that
will fire off dmsegs from the kernel for the calls it makes to
execute /sbin/hotplug? Perhaps I can see some difference in how or
when hotplug is called by the kernel for usb devices?
Jack
ps Fedora did switch with 2.6.10 from using usbdevfs to using usbfs
but they modified their initscripts package to handle that change.

2005-01-15 05:14:42

by Sami Farin

[permalink] [raw]
Subject: Re: usb key oddities with 2.6.10-ac9

On Fri, Jan 14, 2005 at 10:15:32PM -0500, Jack Howarth wrote:
> Alan,
> I don't see any changes in how Fedora's 2.6.10 kernels are built
> that should effect USB hotplugging. The previous kernel I was using
> shows...
...
> ps Fedora did switch with 2.6.10 from using usbdevfs to using usbfs
> but they modified their initscripts package to handle that change.

what about this initscripts change 8.01 --> 8.03?

- sysctl -w kernel.hotplug="/sbin/hotplug" >/dev/null 2>&1
+ sysctl -w kernel.hotplug="/sbin/udevsend" >/dev/null 2>&1

--

2005-01-15 16:55:00

by Jack Howarth

[permalink] [raw]
Subject: Re: usb key oddities with 2.6.10-ac9

Sami,
I don't believe that additional change to initscripts could be
the cause because Fedora Core 2 doesn't support udev. Only Fedora
Core 3 implements that feature and there are reports of the same
problem occuring under it with 6.5.10.

http://marc.theaimsgroup.com/?l=linux-usb-users&m=110564343717762&w=2

I did notice that FC3 seems to be using initscripts-7.93.5 which
still uses hotplug instead of udevsend. However it seems odd that
both forms (dev and udev) seemed to have gotten broken in the same
way. I assume one can't use udevsend if the kernel isn't using udev
right?
Jack