LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (http://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   USB flash drive not create driver node in /dev ? (http://www.linuxquestions.org/questions/linux-hardware-18/usb-flash-drive-not-create-driver-node-in-dev-562745/)

saq1980 06-18-2007 02:42 PM

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

Hern_28 06-19-2007 08:09 AM

Sda and usb.
 
Have you ls -l for /dev sd* and usb*? it may have set the device-name to one of those.

saq1980 06-19-2007 08:43 PM

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

saq1980 06-19-2007 08:45 PM

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

Hern_28 06-19-2007 09:05 PM

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.

saq1980 06-22-2007 03:01 AM

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


All times are GMT -5. The time now is 01:02 AM.