From: "Nicolas de Pesloüan" <nicolas.2p.debian@gmail.com>
To: "Vladimir 'φ-coder/phcoder' Serbinenko" <phcoder@gmail.com>
Cc: The development of GNU GRUB <grub-devel@gnu.org>
Subject: Re: USB bulk transfert from GRUB ?
Date: Tue, 28 Dec 2010 09:01:17 +0100 [thread overview]
Message-ID: <4D19994D.1040404@gmail.com> (raw)
In-Reply-To: <4D176FBB.4060103@gmail.com>
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.
<snip>
> 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.+
prev parent reply other threads:[~2010-12-28 8:01 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-20 20:12 USB bulk transfert from GRUB ? Nicolas de Pesloüan
2010-12-25 12:38 ` Vladimir 'φ-coder/phcoder' Serbinenko
2010-12-25 19:57 ` Nicolas de Pesloüan
2010-12-25 20:13 ` Vladimir 'φ-coder/phcoder' Serbinenko
2010-12-25 22:32 ` Nicolas de Pesloüan
2010-12-25 23:25 ` Vladimir 'φ-coder/phcoder' Serbinenko
2010-12-26 10:26 ` Nicolas de Pesloüan
2010-12-26 10:47 ` Vladimir 'φ-coder/phcoder' Serbinenko
2010-12-26 11:46 ` Nicolas de Pesloüan
2010-12-26 12:05 ` Vladimir 'φ-coder/phcoder' Serbinenko
2010-12-26 16:39 ` Nicolas de Pesloüan
2010-12-28 8:01 ` Nicolas de Pesloüan [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4D19994D.1040404@gmail.com \
--to=nicolas.2p.debian@gmail.com \
--cc=grub-devel@gnu.org \
--cc=phcoder@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).