LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   Linux USB Host controller driver (http://www.linuxquestions.org/questions/linux-software-2/linux-usb-host-controller-driver-691131/)

cmrnaidu 12-17-2008 02:23 AM

Linux USB Host controller driver
 
hi all,

I have finished my USB host controller(OEM) driver, and when i test the driver using the memory stick, each time the device(stick) need to mount on the sequential special devices (sda1,sdb1...sdp1),i don't know whether its normal or not.

I want to know how can i make my device(mass storage stick) to be mount in one specific special device( for ex: sda1 or myown).

Please help me regarding this,

WR,cmrnaidu.

unSpawn 12-17-2008 05:46 PM

Not sure what needs to pass to have a previously unplugged device end up on the same devicename but I'm sure it's covered in the USB standard specs. Then again I'm pretty sure having a device driver mounting an USB device on one specific and rigid address would be a violation of common sense and specs. You can however create a "static" /dev/somemountpoint using an udev rule.

Drakeo 12-17-2008 05:58 PM

make sure that user has disk permission and scsi permission. if not you will need to do the old mount stuff. what distro please.

cmrnaidu 12-17-2008 07:40 PM

Thanks alot for your immediate response
 
Quote:

Originally Posted by unSpawn (Post 3379167)
Not sure what needs to pass to have a previously unplugged device end up on the same devicename but I'm sure it's covered in the USB standard specs. Then again I'm pretty sure having a device driver mounting an USB device on one specific and rigid address would be a violation of common sense and specs. You can however create a "static" /dev/somemountpoint using an udev rule.

I will try it by following your suggestion.

Drakeo 12-18-2008 01:09 AM

well in slackware 12.1 and down you have to type umount /dev/sda1 then the kernel knows that slot is open. if you don't it will keep giving it a new device up to 72 times.
make sure you unmount either through gui or terminal. if the user unmounts it and it goes to sdb1 then the user does not have permission to reset the kernel give the user plugdev.
ps the worst thing you can do is pull the usb flash drive out with out unmount it.
you will corrupt the super block.12 .2 I will try right now. ok in 12.2 you will put it in then a open dialog open it. then you will go to system storage storage media sda1 and right click and click remove safe. then take it out.their you go. in 12.1 and down I also had to do that with my digital camera. not anymore.


All times are GMT -5. The time now is 05:37 PM.