[oe] [oe-commits] org.oe.dev usb-gadget-mode: Add usb-gadget mode: An initscript to load the configured USB gadget module on boot
pmiscml at gmail.com
Wed Jun 6 22:22:06 UTC 2007
Thursday, June 7, 2007, 1:13:08 AM, you wrote:
> Am Mittwoch, den 06.06.2007, 14:02 +0200 schrieb Matthias Hentges:
>> Am Mittwoch, den 06.06.2007, 13:30 +0200 schrieb Marcin Juszkiewicz:
>> > Dnia sroda, 6 czerwca 2007, Koen Kooi napisal:
>> > > > Hello coredump2,
>> > > >> usb-gadget-mode: Add usb-gadget mode: An initscript to load the
>> > > >> configured USB gadget module on boot
>> > > What about using o-hands usbinit?
>> > I had same idea when saw that commit. OpenedHand usbinit is in use on few
>> > machines and do that work done properly. But it supports only 2.6
>> > machines which use g-ether kernel module.
>> This package was previously unknown to me :\
>> The idea behind usb-gadget-mode was that - eventually - the user can
>> select the "mode" via a shiny GUI app and does not need to mess
>> w/ /etc/modutils manually.
>> If usbinit matches that description I'll happily remove gadget-mode.
>> With >4600 .bb files one can lose the overview easily, thanks for the
>> headsup ;)
> I've checked the script and found it to be less than stellar. If
> Angstrom indeed wants a hard-wired modprobe of g_ether on every boot
> ( w/o an easy way for 3rd-party apps to change that behavior) then it
> should be implemented properly via /etc/modutils/ or ( when encountering
> timing problems ) via a "pre-up" statement in /etc/network/interfaces as
> demonstrated by a user on one of the angstrom lists.
> Using a dedicated initscript for a simple modprobe is overkill and
> ignores existing OS functions that were designed to do this job.
> Comments? Suggestions?
... Please move /etc/usb-gadget.conf to
/etc/default/usb-gadget and continue hacking GPE's USB config applet to
use this infrastructure ;-).
Paul mailto:pmiscml at gmail.com
More information about the Openembedded-devel