Hi Alek,

On Wed, Dec 05, 2007, Rhoads, Rob wrote:
> USB Client Drivers
> ==================
> Alek Du is working on a full USB Client solution for Moblin.org.
> Specifically 
> he's working on these tasks:
> * moblin-image-creator will be modified to allow configuring a
> per-platform 
>   vfat partition.  Eventually mic will support per-device type
> configuration,
>   but for now we are just working with per-platform.  

 This means MIC would "gain knowledge" of the USB Client idea,
 dependencies on vfat stuff, and generally become hairy over time.  My
 current understanding is that MIC was a tool to assemble images based
 on packages / rootstraps + boot script.
   Did you consider implementing USB Client setup as a separate program
 which we could package?

 Certainly you can imagine that we had a "moblin-vfat-share" package, we
 could make it create a loopback mounted vfat partition on installation
 ("postinst") of the package, and hence not add code in the middle of
 MIC which is specific to one use of the devices.  Instead of adding
 config options in MIC for "vfat partition share: yes / no", we would
 simply decide to install "moblin-vfat-share" in the FSET.

 It also strikes me that this:

> * Alek will add a hotplug script to crown-beach-config that will:
>     - Broadcast a DBus message to notify applications
>     - Attempt to unmount the vfat partition, and if that fails then wait
> a 
>       configurable period of time, kill all processes with open file 
>       descriptors on the partition, and then unmount the partion
>     - After the device is disconnected, then mount the vfat partition
> and 
>       then broadcast a DBus message to let applications know that it is
> Ok
>       to read data off the partition again.

 pushes for kludges in *-config packages, while with a package for the
 new app, e.g. moblin-vfat-share, you could ship that script and all
 necessary hooks in the package cleanly.  Keeping related stuff
 together.


 I'd be happy to discuss the structure of such a package if you're
 interested.

   Bye,
-- 
Loïc Minier

-- 
Ubuntu-mobile mailing list
Ubuntu-mobile@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-mobile

Reply via email to