[U-Boot] [PATCH] usb: Add support for multiple-LUN mass storage devices

Ludovic Courtès ludo at gnu.org
Tue Oct 5 00:11:38 CEST 2010


Hi,

ludo at gnu.org (Ludovic Courtès) writes:

> The request sense KCQ can be interpreted as ‘Not Ready - Medium Not
> Present’, according to
> <https://secure.wikimedia.org/wikipedia/en/wiki/KCQ>, despite the fact
> that the SD card is actually in (and Linux can successfully read from
> it.)
>
> The card reader has USB IDs 05e3:0726 (Genesys Logic).

The problem was that this card reader exposes two SCSI logical units
(LUNs), whereas the code in ‘usb_storage.c’ assumed single-LUN devices
(which is typically the case with USB keys and disks.)

The patch below adds support for multiple-LUN devices like this one.
Tested on the GuruPlug.

The net effect for the GuruPlug is that it makes it possible to boot a
kernel stored on a microSD card, something long overdue [0, 1].

Can you please review and apply?

Thanks,
Ludo’.

[0] http://plugcomputer.org/plugforum/index.php?topic=1642

[1] It really feels like I’m doing GlobalScale’s or Marvell’s job here.
    It looks like GlobalScale is steadily strengthening its reputation
    of being incompetent.  Keep up the bad work!

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-usb-Add-support-for-multiple-LUN-mass-storage-device.patch
Type: text/x-patch
Size: 4166 bytes
Desc: the patch
Url : http://lists.denx.de/pipermail/u-boot/attachments/20101005/96e83f44/attachment.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
Url : http://lists.denx.de/pipermail/u-boot/attachments/20101005/96e83f44/attachment.pgp 


More information about the U-Boot mailing list