Re: usb2 external disk not recognized if connected during boot, but recognized if not connected during boot

From: Frank van Maarseveen
Date: Wed Jan 24 2007 - 12:00:40 EST


On Tue, Jan 23, 2007 at 11:13:03AM +0200, Yakov Lerner wrote:
> On a small Celeron-based appliance, Usb2 disk is not recognized *if*
> it is connected during kernel boot.
> But if not connected during boot, and I connect it later, it is
> recognized and works ok.
> I tried various 2.6.16, 17 and 18 kernels, both modular, and
> all-static, with the same result.
> What can this be.
> This is ehci controller. Can it be problematic Irq assignments on the
> motherboard ?
> Btw, during boot, access lights go on forever on the Usb drive. Couple
> of kernels are stuck
> at this point. Most kernels go through, but disk is still not
> recognized. If I disconnect and re-connect usb drive later, then it is
> never recognized (if it was connected earlier during boot). Again, if
> the disk was not connected during boot, all kernels recognize it and
> work with it.

Try making EHCI a module and modprobe it after booting the kernel. I
have a mainboard/USB stick combo which refuses to work when plugged in
during cold boot with EHCI driver in kernel. The driver repeatedly tried
to reset USB hardware and then gave up. Replugging did work however.

I worked around the issue by booting without EHCI driver in kernel. A more
modern USB stick fixed it too. After some investigation consensus was that
the hardware combination was broken and the EHCI driver was not at fault.

Maybe this is a similar hardware problem. Does the USB disk has its
own power? then replugging USB may not be enough and you might also
need to toggle USB disk power in order to make it work again.

--
Frank
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/