Received: from list by lists.gnu.org with archive (Exim 4.71) id 1VqWeM-0002vv-37 for mharc-grub-devel@gnu.org; Tue, 10 Dec 2013 18:23:34 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58510) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VqWeA-0002oE-Qq for grub-devel@gnu.org; Tue, 10 Dec 2013 18:23:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VqWe4-0005WG-QZ for grub-devel@gnu.org; Tue, 10 Dec 2013 18:23:22 -0500 Received: from gmmr1.centrum.cz ([46.255.225.252]:38488) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VqWe4-0005Ve-FY for grub-devel@gnu.org; Tue, 10 Dec 2013 18:23:16 -0500 Received: from gm-as1.cent (unknown [10.32.3.102]) by gmmr1.centrum.cz (Postfix) with ESMTP id 3E6418081742 for ; Wed, 11 Dec 2013 00:23:11 +0100 (CET) Received: by gm-as1.cent (Postfix, from userid 65534) id 37B2E18604E45; Wed, 11 Dec 2013 00:23:11 +0100 (CET) X-Original-From: starous@volny.cz X-Envelope-To: grub-devel@gnu.org X-Original-IP: 193.86.90.90 Received: from [192.168.6.11] (unknown [193.86.90.90]) by gm-smtp2.centrum.cz (Postfix) with ESMTPX id B009BA4024 for ; Wed, 11 Dec 2013 00:23:09 +0100 (CET) Message-ID: <52A7A25C.3080807@volny.cz> Date: Wed, 11 Dec 2013 00:23:08 +0100 From: =?windows-1252?Q?Ale=9A_Nesrsta?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.1.1 MIME-Version: 1.0 To: The development of GNU GRUB Subject: Re: flash drive timing out, can't boot vmlinuz/initrd (coreboot payload) References: <52A76D6C.6070608@gluglug.org.uk> In-Reply-To: <52A76D6C.6070608@gluglug.org.uk> X-Enigmail-Version: 1.6 OpenPGP: id=9AEF08D1 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="D3B9gielEewKkBEP0Rx1CLGgSN1dlhG0o" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 46.255.225.252 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 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: Tue, 10 Dec 2013 23:23:32 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --D3B9gielEewKkBEP0Rx1CLGgSN1dlhG0o Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable > Premise: me and phcoder think its a bad/slow USB drive. Of course, the USB device could be "bad" - I met some devices which have not good implementation of USB mass storage class (or SCSI) specification= =2E What is surprising, most of these devices were able to work correctly in Linux or Windows (at least for the first look) - and I was not able to find why. I expect there are many workarounds (or "quirks") in Linux or Windows drivers related to these situations. But it could be also some mistake in GRUB USB controller/USBMS/SCSI modules - they are not perfect, unfortunately... :-( =2E.. > This changed nothing, so then this fix was attempted (after reverting > the patches above): > http://paste.debian.net/70174/ >=20 > After this change, USB booting worked successfully 3 times, but then > started failing again with these errors: > error: USB Mass Storage stalled I think it is not good idea to use Clear Feature HALT in another situations than specified in USB mass storage specification(s). It usually leads to definitive stall or some another unexpected behavior of whole USB device or similar wrong situations - according to my experiences/experiments. Thus, similar solutions should not be used generally, they should be used only if some specific device is detected (some known bad Vendors/Product IDs etc.). >=20 > Then this fix was attempted (after reverting the above): > http://paste.debian.net/70186/ >=20 > This also changed nothing. >=20 >=20 > What other approaches could be taken to resolve this issue? It is hard to say if the main reason of the problem is not known. Timeout should never occur - mostly it does not mean that the device is slow: timeout happens when something went wrong, usually when something unexpected was sent to the device or something expected was not read from device etc. - and, additionally, if timeout happens, the whole USB device very often goes to permanent frozen state (e.g. there is no answer to any command) and finally only reset of related USB port can help in such situation. (Note: It is not possible to perform port (device) reset in GRUB from "higher" level, e.g. from USBMS driver etc. Additionally, port reset possibly changes USB device address and identification in GRUB etc.) One reason of bad behavior could be that the drive is not able to read longer block of data, e.g. more than one sector / 512 bytes in one SCSI read command etc. Does the USB flash drive work normally in Linux/Windows on the same PC/po= rt? (E.g. on some older PCs I met problem of bad contacts on too often used USB connectors.) Did you try with GRUB any other flash drive with the same result? Which GRUB USB module driver is used - UHCI, OHCI or EHCI? In case you are using EHCI, did you try also UHCI/OHCI without EHCI loaded? And vice versa... - i.e., is it the same behavior of flash drive on both USB controllers (USB 1.1 / USB 2.0)? Which USB flash drive is it (USB ID, vendor and product name etc.)? Could you send output of following Linux command sudo lsusb -vvv when the problematic USB flash drive is connected? Additionally, I cannot easily found which USB controllers are inside Lenovo Thinkpad X60 - could you send also output of sudo lspci -vvv to know which exact USB controller(s) are installed in PC? BR, Ales --D3B9gielEewKkBEP0Rx1CLGgSN1dlhG0o Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iF4EAREIAAYFAlKnol0ACgkQT72HYprvCNFwoQD9FZTRCpCcduH5xGRVF4RSzWpY 6juSa3D/4i2PW8UMEYsA/Rpgl3lYQqo4WiYIHwAPF3Ngdw2RwbK+qCRXcWshHvmX =iSyt -----END PGP SIGNATURE----- --D3B9gielEewKkBEP0Rx1CLGgSN1dlhG0o--