grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: USB bulk transfert from GRUB ?


From: Nicolas de Pesloüan
Subject: Re: USB bulk transfert from GRUB ?
Date: Tue, 28 Dec 2010 09:01:17 +0100
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.15) Gecko/20101030 Icedove/3.0.10

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.+



reply via email to

[Prev in Thread] Current Thread [Next in Thread]