LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-17-2008, 01:23 AM   #1
cmrnaidu
LQ Newbie
 
Registered: Jun 2006
Posts: 15

Rep: Reputation: 0
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.

Last edited by cmrnaidu; 12-17-2008 at 01:26 AM.
 
Old 12-17-2008, 04:46 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
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.
 
Old 12-17-2008, 04:58 PM   #3
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,716
Blog Entries: 3

Rep: Reputation: 483Reputation: 483Reputation: 483Reputation: 483Reputation: 483
make sure that user has disk permission and scsi permission. if not you will need to do the old mount stuff. what distro please.
 
Old 12-17-2008, 06:40 PM   #4
cmrnaidu
LQ Newbie
 
Registered: Jun 2006
Posts: 15

Original Poster
Rep: Reputation: 0
Smile Thanks alot for your immediate response

Quote:
Originally Posted by unSpawn View Post
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.
 
Old 12-18-2008, 12:09 AM   #5
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,716
Blog Entries: 3

Rep: Reputation: 483Reputation: 483Reputation: 483Reputation: 483Reputation: 483
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.
 
  


Reply

Tags
linux, usb



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
USB problems on feisty host controller halted hydroscrog Linux - Hardware 1 01-05-2008 02:56 AM
USB 2.0 enhanced host controller driver satimis General 1 10-07-2006 11:15 AM
Boot hangup with Universal Host Controller Interface Driver v2.2 Degei Fedora - Installation 0 08-14-2004 02:32 PM
USB pendrive kills host controller fridgehead Linux - Hardware 2 09-23-2003 05:53 AM
Help- USB 2.0 Host Controller jaysinism Slackware 10 08-09-2003 03:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:36 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration