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: Sun, 26 Dec 2010 12:46:33 +0100 [thread overview]
Message-ID: <4D172B19.3040509@gmail.com> (raw)
In-Reply-To: <4D171D34.80406@gmail.com>
Le 26/12/2010 11:47, Vladimir 'φ-coder/phcoder' Serbinenko a écrit :
>> If I don't want the device to be switched, I need to remove the udev rule for the device.
> That's what I wanted to know. So you modify udev rules to control the behaviour of switching. Not
> really applicable to GRUB. Perhaps one would use a reduced database with only the devices one
> wants to switch?
This is the reason why I suggested to give the vendor/device id, end-point number and string as
arguments. Because only few users will have several different switchable devices and probably fewer
will have several they plan to boot from.
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)
>> The only point is that I need to "burn" an new ISO if I want to upgrade GRUB or change de
>> grub.cfg file.
>>
> you can even have grub.cfg on microSD using configfile directive.
You mean, by using configfile by hand from the grub prompt? Or by having a small grub.cfg in the
ISO, that only switch the device, then use configfile to load grub.cfg from the micro-SD?
Nicolas.
next prev parent reply other threads:[~2010-12-26 11:46 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 [this message]
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
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=4D172B19.3040509@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).