Hello Matthias,

On Friday, September 30, 2011 9:46:42 AM UTC+2, Matthias Kaehlcke wrote:
>
> Hi,
>
> By default the Android mass storage driver (v2.6.32) only creates one
> lun. The g_file_storage gadget allows to specify the number of luns
> with the parameter 'luns', but it isn't clear to me how to specify
> parameters for a USB composite device (or if this is possible at
> all). I tried g_file_storage.luns, android_usb.luns and others, but
> without success
>
 I had a look at the android source code. the "composite.c" driver is really 
only an utility file. There are multiple "composite" implementations. 

the android one (doing adb and mass storage) can be found here 
drivers/usb/gadget/android.c (that is selected by USB_ANDROID) it uses 
platform_data to determine the number of luns add

include/linux/usb/android_composite.h usb_mass_storage_platform_data (or 
grep that in the arch directory)


http://lwn.net/Articles/395712/ goes into the composite framework and about 
passing parameters but I can't find references to that in the code :p

Good luck

Greetings

-- 
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting

Reply via email to