grub-devel.gnu.org archive mirror
 help / color / mirror / Atom feed
* USB bulk transfert from GRUB ?
@ 2010-12-20 20:12 Nicolas de Pesloüan
  2010-12-25 12:38 ` Vladimir 'φ-coder/phcoder' Serbinenko
  0 siblings, 1 reply; 12+ messages in thread
From: Nicolas de Pesloüan @ 2010-12-20 20:12 UTC (permalink / raw)
  To: grub-devel

Hi,

Some USB devices require a specific command to be sent (using USB bulk transfer) before they switch
to "storage mode". Such devices are switched by USBmodeSwitch
(http://www.draisberghof.de/usb_modeswitch/), after the operating system start. USBmodeSwitch use
libusb to send the right command to the right USB endpoint, depending on the ID of the USB device.

In order to be able to boot from such devices, one needs to switch the device early, before the 
operating system is started. I think GRUB2 should be the right place for this.

For as far as I understand, libusb is available from inside GRUB2, so it shouldn't be really 
difficult to add a command to initiate a given bulk transfert to a given USB endpoint. (My 
understanding is that no such command already exists).

Contrary to USBModeSwitch that use a database at runtime to decide how to switch the device, it is 
probably easier to decide this at grub-mkconfig time, using the same database.

Of course, I perfectly understand that the first part of GRUB2 cannot be located from this kind of 
USB devices, because it needs to be loaded before GRUB2 start, and we would face a chicken and egg 
problem.

Any comments ?

	Nicolas.


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2010-12-28  8:01 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 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).