LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 06-18-2007, 02:42 PM   #1
saq1980
LQ Newbie
 
Registered: Jun 2007
Posts: 4

Rep: Reputation: 0
USB flash drive not create driver node in /dev ?


hi all,

I am new in Embedded Linux. I am working on ARM target Microcontroller using Linux kernel 2.6. Overall system working fine I crosscomple on x86 but problem is this when I inserting USB flash drive in target board, drive recorgnised by the system but it did not create driver file in /dev directory (normally creating /dev file at the time of prob function trigger, prob function triggered when flash drive insert into system). please explain me how i can create file /dev, or any other way to excess the drive?

Regards,
Syed AbdulQavi

Last edited by saq1980; 06-18-2007 at 02:44 PM.
 
Old 06-19-2007, 08:09 AM   #2
Hern_28
Member
 
Registered: Mar 2007
Location: North Carolina
Distribution: Slackware 12.0, Gentoo, LFS, Debian, Kubuntu.
Posts: 906

Rep: Reputation: 38
Sda and usb.

Have you ls -l for /dev sd* and usb*? it may have set the device-name to one of those.
 
Old 06-19-2007, 08:43 PM   #3
saq1980
LQ Newbie
 
Registered: Jun 2007
Posts: 4

Original Poster
Rep: Reputation: 0
Hi everybody,

first of all thanks for response.
yes han_28 I check ls -l . but not there.
when I insert my flash drive in target board, I got this msg.

# usb 1-1: new full speed USB device using at91_ohci and address 6
usb 1-1: configuration #1 chosen from 1 choice
scsi0 : SCSI emulation for USB Mass Storage devices

# scsi 0:0:0:0: Direct-Access SONY2.0 Flash Disk 1.06 PQ: 0 ANSI: 0 CCS
SCSI device sda: 522560 512-byte hdwr sectors (268 MB)
sda: Write Protect is off
sda: assuming drive cache: write through
SCSI device sda: 522560 512-byte hdwr sectors (268 MB)
sda: Write Protect is off
sda: assuming drive cache: write through
sda:<7>usb-storage: queuecommand called
sda1
sda: p1 exceeds device capacity
sd 0:0:0:0: Attached scsi removable disk sda
 
Old 06-19-2007, 08:45 PM   #4
saq1980
LQ Newbie
 
Registered: Jun 2007
Posts: 4

Original Poster
Rep: Reputation: 0
Post

Hi everybody,

first of all thanks for response.
yes han_28 I check ls -l . but not there.
when I insert my flash drive in target board, I got this msg.

# usb 1-1: new full speed USB device using at91_ohci and address 6
usb 1-1: configuration #1 chosen from 1 choice
scsi0 : SCSI emulation for USB Mass Storage devices

# scsi 0:0:0:0: Direct-Access SONY2.0 Flash Disk 1.06 PQ: 0 ANSI: 0 CCS
SCSI device sda: 522560 512-byte hdwr sectors (268 MB)
sda: Write Protect is off
sda: assuming drive cache: write through
SCSI device sda: 522560 512-byte hdwr sectors (268 MB)
sda: Write Protect is off
sda: assuming drive cache: write through
sda:<7>usb-storage: queuecommand called
sda1
sda: p1 exceeds device capacity
sd 0:0:0:0: Attached scsi removable disk sda

here I try to mount my flash drive..

# mount -t vfat /dev/sda1 /mnt
mount: Mounting /dev/sda1 on /mnt failed: No such device


Regards,
Syed Abdul Qavi
 
Old 06-19-2007, 09:05 PM   #5
Hern_28
Member
 
Registered: Mar 2007
Location: North Carolina
Distribution: Slackware 12.0, Gentoo, LFS, Debian, Kubuntu.
Posts: 906

Rep: Reputation: 38
Not sure if this might help.

Instead of mounting the drive to the /mnt dir, might need to use a sub-dir (there mounted drives in /mnt that might have a problem with that). you could create a subdir in /mnt like /mnt/memory and use that as the mount point. ex:

mount -t vfat /dev/sda1 /mnt/memory

also post the results of:

ls -lR /dev/disk ( gives you the name assigned by udev )

udev -a -p /sys/block/sda ( specific device info )

This should tell us if udev is detecting and setting up the device wierd.

Last edited by Hern_28; 06-19-2007 at 09:07 PM.
 
Old 06-22-2007, 03:01 AM   #6
saq1980
LQ Newbie
 
Registered: Jun 2007
Posts: 4

Original Poster
Rep: Reputation: 0
Unhappy

thanks Hern_28,

now i got wht is problem but i do not know how to solve.
when i developed my kernel 2.6 for ARM, i did not attach udev with this.
but now i do not know how to add udev with my system please if any know tell me.

regards,
syed abdul qavi
 
  


Reply



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
How do I create a new modem dev node for Puppy Linux 2.13 zdrv? webworm98 Puppy 1 03-05-2007 08:15 AM
I can`t create a device node in /dev gcasados Slackware 8 02-21-2005 05:17 AM
Can't mount USB FLASH (Pen driver) vador Linux - Software 5 10-09-2004 01:49 PM
Floppy driver gets activated when using USB Flash drive iradi8 Linux - Hardware 0 07-28-2004 01:13 PM
Floppy driver gets activated when using USB Flash drive iradi8 Linux - Laptop and Netbook 0 07-16-2004 11:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 03:44 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