Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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
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
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.