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: Sun, 26 Dec 2010 12:46:33 +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 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.



reply via email to

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