From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1PXUUo-0007a5-EZ for mharc-grub-devel@gnu.org; Tue, 28 Dec 2010 03:01:26 -0500 Received: from [140.186.70.92] (port=51484 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PXUUl-0007Zu-4o for grub-devel@gnu.org; Tue, 28 Dec 2010 03:01:25 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PXUUj-0008Mn-TQ for grub-devel@gnu.org; Tue, 28 Dec 2010 03:01:22 -0500 Received: from mail-wy0-f169.google.com ([74.125.82.169]:47434) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PXUUj-0008MI-OU for grub-devel@gnu.org; Tue, 28 Dec 2010 03:01:21 -0500 Received: by wyj26 with SMTP id 26so9427933wyj.0 for ; Tue, 28 Dec 2010 00:01:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=XK4mc64rseyLsQ+FqHdg8mrePsHJ833aQn2NKMvpq1s=; b=M1iCRLPNvxw3a//vo5XyUqxpIaVwBLvB4OZlpqK2AWzznHrrhxq8sJPb0We13KKFLx q56t8IFTlwzFrMTUJROv2Ptb7YknFJ/c/65p2Iyy81oJihiOI4Ark5U3M8SwBAVi67bX VGUvpsaPx4e2FOvy7knt4lKsfYsqlxTWi4cVM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=DZqoUK7IgXZoqz95tYYdMdmOKFl+P5zaXAhd0tDm/dZnbHBn1zCNXMkGRLhGDQa29g FV8FjFCYComEvH5pIYfRUCdxhyJaHZrgzGfJLDEV5hgHSIM3DLW14yr3o7O9+XwcrB6v 2Us9OFfBh62nNBUhC1xinHM9AuV5eDjm4LB7s= Received: by 10.227.179.141 with SMTP id bq13mr7953670wbb.149.1293523280215; Tue, 28 Dec 2010 00:01:20 -0800 (PST) Received: from [192.168.1.13] (AReims-156-1-48-106.w86-192.abo.wanadoo.fr [86.192.223.106]) by mx.google.com with ESMTPS id m10sm9063458wbc.4.2010.12.28.00.01.18 (version=SSLv3 cipher=RC4-MD5); Tue, 28 Dec 2010 00:01:19 -0800 (PST) Message-ID: <4D19994D.1040404@gmail.com> Date: Tue, 28 Dec 2010 09:01:17 +0100 From: =?UTF-8?B?Tmljb2xhcyBkZSBQZXNsb8O8YW4=?= User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.15) Gecko/20101030 Icedove/3.0.10 MIME-Version: 1.0 To: =?UTF-8?B?VmxhZGltaXIgJ8+GLWNvZGVyL3BoY29kZXInIFNlcmJpbmVua28=?= References: <4D0FB8A2.5060407@gmail.com> <4D15E5C9.8000501@gmail.com> <4D164CC5.1090105@gmail.com> <4D16505E.3050209@gmail.com> <4D1670F1.7080701@gmail.com> <4D167D77.3000303@gmail.com> <4D171873.2060108@gmail.com> <4D171D34.80406@gmail.com> <4D172B19.3040509@gmail.com> <4D172F7D.1090909@gmail.com> <4D176FBB.4060103@gmail.com> In-Reply-To: <4D176FBB.4060103@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) Cc: The development of GNU GRUB Subject: Re: USB bulk transfert from GRUB ? 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: Tue, 28 Dec 2010 08:01:25 -0000 Le 26/12/2010 17:39, Nicolas de Pesloüan a écrit : > Le 26/12/2010 13:05, Vladimir 'φ-coder/phcoder' Serbinenko a écrit : > >>> I think we can reasonably discover the particular switchable and >>> bootable device a grub-mkconfig time and put the single (vendor-id, >>> device-id, end-point-number, switch-string) in grub.cfg : >>> >>> usb_bulk_write --vendor 0x0af0 --device 0x7501 --endpoint 0 \ >>> --string >>> 0x55534243785634120100000080000601000000000000000000000000000000 >>> >>> (example from /etc/usb_modeswitch.d/0af0:7501) >>> >> How exactly do we do it on mkconfig time? What prevents doing it on >> runtime? > > Thinking about it for long, I don't really know which of mkconfig time > or runtime is the best. > May be I walk the wrong way. It might be enough to add "usb_modeswitch" > to GRUB_PRELOAD_MODULES in /etc/default/grub if one plan to boot from a > switchable device, and let the "usb_modeswitch" module switch all known > devices at runtime. This assume people able to build such a boot > environment are not in trouble with installing the Windows driver by > hand if they use Windows... Thinking about it again and talking with the author of usb_modeswitch: Let's switch all known switchable devices at runtime, through an "usb_modeswitch" module, as proposed just above. If the device is required, to boot, it will be switched and that's the expected effect. And for the very limited case where we would unnecessary switch some devices, the user still have the option not to plug them at boot time. We talk about removable device, after all... So, I will try and develop an usb_modeswitch module. By the way, is it possible and advisable to provide external module to GRUB ? I mean, the usb_modeswitch GRUB module should probably be part of usb_modeswitch, not part of GRUB2... Nicolas.+