<div class="gmail_extra"><div class="gmail_quote">On Fri, Dec 7, 2012 at 2:43 PM, sanchayan maity <span dir="ltr"><<a href="mailto:victorascroft@gmail.com" target="_blank">victorascroft@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="gmail_extra"><div class="gmail_quote"><div><div class="h5">On Fri, Dec 7, 2012 at 11:41 AM, Sannu K <span dir="ltr"><<a href="mailto:sannumail4foss@gmail.com" target="_blank">sannumail4foss@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div><div>On Fri, Dec 7, 2012 at 9:40 AM, sanchayan maity <<a href="mailto:victorascroft@gmail.com" target="_blank">victorascroft@gmail.com</a>> wrote:<br>
> Hello,<br>
><br>
> I wanted to use the usb-skeleton driver for transferring data to a pen<br>
> drive. I am using Ubuntu 12.04 with kernel version 3.2.0. I remove the<br>
> usb-storage driver with rmmod and then inserted the skeleton module. The<br>
> module is inserted successfully. On inserting the drive, usb-storage module<br>
> gets automatically loaded.<br>
><br>
> To avoid this, i tried blacklisting the module by including a blacklist<br>
> entry in blacklist.conf and rebooting. This didn't work either and<br>
> usb-storage gets automatically loaded again.<br>
><br>
> Can someone point out how i can use the usb-skeleton driver and also test<br>
> it.<br>
><br>
> I also have Arch linux set up, but, i have not tried the above on it yet.<br>
><br>
> Thanks & Regards,<br>
> Sanchayan.<br>
><br>
><br>
><br>
</div></div>> _______________________________________________<br>
> Kernelnewbies mailing list<br>
> <a href="mailto:Kernelnewbies@kernelnewbies.org" target="_blank">Kernelnewbies@kernelnewbies.org</a><br>
> <a href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" target="_blank">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br>
><br>
<br>
Try rmmoding usb-storage after it gets loaded.<br></blockquote></div></div><div><br><br><i>Try rmmoding usb-storage after it gets loaded</i>. << I had tried that. <br><br>Sorry, i didn't explain my problem clearly i guess with this sentence " Can someone point out how i can use the usb-skeleton driver and also test
it." But, i understand it i think, what i was doing wrong. <br><br>I read the USB Drivers chapter once more and i had missed this point somehow. <br><br>"If the USB driver is not associated with another type of subsystem that handles the user interaction with the device (such as input, tty, video, etc.), the driver can use the USB major number in order to use the traditional char driver interface with userspace. To do this, the USB driver must call the usb_register_dev function in the probe function when it wants to register a device with the USB core." <br>
<br>I have only worked with char drivers till now and after registering my driver, i was expecting it to show up in /proc/devices and then do a mknod. I missed the point of using the USB major number already available and then do a mknod with the major (already available)/ minor combination(available from dev_info) and then access it using the /dev interface from a user space application. <br>
<br>I haven't tried this yet as i am at work, but, gonna do this first thing after i reach home. Hopefully, it will work. <br><br>Thanks & Regards,<br>Sanchayan. <br></div></div><br><br></div></blockquote><div> </div>
</div>Hello,<br><br>I tried writing data by using the write and the fd of the driver and also echo.<br><br> After looking at the usb storage and usb transport code a bit, i
noticed scsi command set is being used. Am i correct in coming to the
conclusion that the usb skeleton driver cannot be used to transfer files
but to only read or set device configuration?. <br>
<br>Thanks & Regards,<br>Sanchayan.
<br></div>