Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1OK8tt-0005tf-UM for mharc-grub-devel@gnu.org; Thu, 03 Jun 2010 07:47:53 -0400 Received: from [140.186.70.92] (port=60238 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OK8tn-0005ht-QX for grub-devel@gnu.org; Thu, 03 Jun 2010 07:47:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OK8tm-00010L-67 for grub-devel@gnu.org; Thu, 03 Jun 2010 07:47:47 -0400 Received: from smtp-out4.iol.cz ([194.228.2.92]:45556) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OK8tl-0000zt-Rj for grub-devel@gnu.org; Thu, 03 Jun 2010 07:47:46 -0400 Received: from antivir6.iol.cz (unknown [192.168.30.215]) by smtp-out4.iol.cz (Postfix) with ESMTP id BC06ECE4FC2 for ; Thu, 3 Jun 2010 11:47:43 +0000 (UTC) Received: from localhost (antivir6.iol.cz [127.0.0.1]) by antivir6.iol.cz (Postfix) with ESMTP id 8F943720055 for ; Thu, 3 Jun 2010 13:47:43 +0200 (CEST) X-Virus-Scanned: amavisd-new at iol.cz Received: from antivir6.iol.cz ([127.0.0.1]) by localhost (antivir6.iol.cz [127.0.0.1]) (amavisd-new, port 10224) with LMTP id ufPBTafMTiGy for ; Thu, 3 Jun 2010 13:47:43 +0200 (CEST) Received: from port4.iol.cz (unknown [192.168.30.94]) by antivir6.iol.cz (Postfix) with ESMTP id 651E1720058 for ; Thu, 3 Jun 2010 13:47:43 +0200 (CEST) X-SBRS: None X-SBRS-none: None X-RECVLIST: MTA-OUT-IOL X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArEBAE8zB0xVRnXk/2dsb2JhbAAHhBPZaoUWBA Received: from 228.117.broadband3.iol.cz (HELO [192.168.6.160]) ([85.70.117.228]) by port4.iol.cz with ESMTP; 03 Jun 2010 13:47:43 +0200 From: =?UTF-8?Q?Ale=C5=A1?= Nesrsta To: The development of GNU GRUB In-Reply-To: <4C06BB8D.3040300@gmail.com> References: <1268605383.2839.26.camel@homenes1> <4BB657BB.60801@gmail.com> <1270669741.2732.129.camel@homenes1> <4BBCED68.3080900@gmail.com> <1270762038.2730.37.camel@homenes1> <4BC892C3.3090507@gmail.com> <1271794445.4221.93.camel@pracovna> <1274485618.18038.56.camel@pracovna> <4BF86523.4090509@gmail.com> <1274610426.5231.67.camel@pracovna> <4BF93F58.3080307@gmail.com> <1274634978.6742.13.camel@pracovna> <4BF9839A.2030704@gmail.com> <1274813892.18826.36.camel@pracovna> <1275238274.6704.21.camel@pracovna> <4C02E60A.3060407@gmail.com> <4C03AA29.2020807@gmail.com> <1275342853.4170.133.camel@pracovna> <4C0451C4.90409@gmail.com> <1275426853.4968.64.camel@pracovna> <4C05A579.7080106@gmail.com> <4C05C9AB.4010209@gmail.com> <1275507597.4401.71.camel@pracovna> <4C06BB8D.3040300@gmail.com> Content-Type: text/plain Date: Thu, 03 Jun 2010 13:47:41 +0200 Message-Id: <1275565661.14150.20.camel@pracovna> Mime-Version: 1.0 X-Mailer: Evolution 2.22.3.1 Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) Subject: Re: [RFT] Re: [Patch] [bug #26237] multiple problems with usb devices X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Jun 2010 11:47:53 -0000 Hello Vladimir, only shortly: > > Oh, I find probably the mistake right now - there is missing my older > > small patch in usbms.c - there is fast "hand made" "patch", I have no > > more time, sorry: > > usbms.c, line 240: > > - cbw.lun = scsi->lun << GRUB_SCSI_LUN_SHIFT; > > + cbw.lun = scsi->lun; /* In USB MS CBW are LUN bits on another place > > than in SCSI CDB, both should be set correctly. */ > > > > > Perhaps (scsi->lun << GRUB_SCSI_LUN_SHIFT) | scsi->lun ? I think no, simply in this way: cbw.lun = scsi->lun; Look in http://www.usb.org/developers/devclass_docs/usbmassbulk_10.pdf ("Universal Serial Bus Mass Storage Class Bulk-Only Transport, Revision 1.0, September 31, 1999"), chapter 5.1 Command Block Wrapper (CBW). Field bCBWLUN is in 13-th byte in low four bytes, i.e. it should be directly GRUB cbw.lun. This small patch was included in my some previous patch (I think usb_patch_100523_0) and it worked. But if somebody have multi-LUN device, please test it (usually some "X in one" card readers are multi-LUN, I tested it on "Trust CR-1200 16-in-1" with SD and CF cards inserted in). Best regards Ales