regarding USB
Hi
I configured the OSK5912 for supporting USB FLASH
according to the follwing procedure
USb Flash has been detected.
But when i am trying to mount USB(step 3) it is
showing this error
mount: Mounting /dev/sda1 on /mnt/usb failed: No such device or address
Kindly help me in this regard
Using USB Flash memory with the OSK5912
1. Compile the kernel with following options
enabled.
Device Drivers --->
USB support --->
<*> Support for host-side USB ( CONFIG_USB )
<*> OHCI HCD support ( CONFIG_USB_OHCI_HCD )
<*> USB Mass Storage Support ( CONFIG_USB_STORAGE )
SCSI device support ---> ( CONFIG_SCSI )
<*> SCSI disk support ( CONFIG_BLK_DEV_SD )
At least one file system must be enabled. The
below describes vfat file system as an example (compatible with Windows).
"File systems" --->
"DOS/FAT/NT Filesystems" ---> ( CONFIG_FAT_FS)
<*> MSDOS fs support ( CONFIG_MSDOS_FS )
<*> VFAT ( Windows-95 fs support) ( CONFIG_VFAT_FS )
"File systems" --->
"Partition Types" --->
[*] Advanced partition selection (CONFIG_PARTITION_ADVANCED )
[*] PC BIOS (MSDOS partition table) (CONFIG_MSDOS_PARTITION )
"File systems" --->
"Native Language Support" ---> ( CONFIG_NLS )
<*> Code Page 437 (United States...) (CONFIG_NLS_CODEPAGE_437 )
<*> NLS ISO8859 (Latan 1...) ( CONFIG_NLS_ISO8859_1
)
2. Register the usb
Add the following line in OSK's '/etc/fstab'
file.
/dev/sda1 /mnt/usb vfat defaults 0 0
3. Mount the file system
# mkdir /mnt/usb # mknod /dev/sda1 b 8 1 # mount /dev/sda1 /mnt/usb -t vfat
4. Access the USB Flash.
Now, you can access the USB Flash contents under/mnt/usb directory.
# ls /mnt/usb
5. Remove the USB Flash
Ensure umount before removing the device.
# umount /mnt/usb
____________________________________________________________________________________
Don't let your dream ride pass you by. Make it a reality with Yahoo! Autos.
http://autos.yahoo.com/index.html
Quoted 57 lines
-----Original Message-----
Sent: Friday, September 21, 2007 12:13 PM
To: [email protected]
Subject: regarding USBHi
I configured the OSK5912 for supporting USB FLASH
according to the follwing procedureUSb Flash has been detected.
But when i am trying to mount USB(step 3) it is
showing this errormount: Mounting
/dev/sda1on/mnt/usbfailed: No such device or addressKindly help me in this regard
Using USB Flash memory with the OSK5912
1. Compile the kernel with following options
enabled.Device Drivers --->
USB support --->
<*> Support for host-side USB (CONFIG_USB)
<*> OHCI HCD support (CONFIG_USB_OHCI_HCD)
<*> USB Mass Storage Support (CONFIG_USB_STORAGE)SCSI device support ---> (
CONFIG_SCSI)
<*> SCSI disk support (CONFIG_BLK_DEV_SD)At least one file system must be enabled. The
below describes vfat file system as an example (compatible with Windows)."File systems" --->
"DOS/FAT/NT Filesystems" ---> (CONFIG_FAT_FS)
<*> MSDOS fs support (CONFIG_MSDOS_FS)
<*> VFAT ( Windows-95 fs support) (CONFIG_VFAT_FS)"File systems" --->
"Partition Types" --->
[*] Advanced partition selection (CONFIG_PARTITION_ADVANCED)
[*] PC BIOS (MSDOS partition table) (CONFIG_MSDOS_PARTITION)"File systems" --->
"Native Language Support" ---> (CONFIG_NLS)
<*> Code Page 437 (United States...) (CONFIG_NLS_CODEPAGE_437)
<*> NLS ISO8859 (Latan 1...) (CONFIG_NLS_ISO8859_1
)
Quoted 7 lines
2. Register the usb
Add the following line in OSK's '
/etc/fstab'
file.
/dev/sda1/mnt/usbvfat defaults 0 0
No need to do this. In menuconfig you should choose the Host Controller (not sure if it is OHCI or Inventra - one of them) After you plug in the mass storage driver you should see the following kind of logs:
usb 1-1: new high speed USB device using musb_hdrc and address 2 usb 1-1: Product: USB FLASH DRIVE
usb 1-1: Manufacturer:
usb 1-1: SerialNumber: 19541200012B
usb 1-1: configuration #1 chosen from 1 choice
scsi0 : SCSI emulation for USB Mass Storage devices
scsi 0:0:0:0: Direct-Access USB FLASH DRIVE 53CD PQ: 0 ANSI: 0 CCS
sd 0:0:0:0: [sda] 251904 512-byte hardware sectors (129 MB) sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Assuming drive cache: write through sd 0:0:0:0: [sda] 251904 512-byte hardware sectors (129 MB) sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Assuming drive cache: write through
sda:<7>usb-storage: queuecommand called
sda1
sd 0:0:0:0: [sda] Attached SCSI removable disk
Once you see the SCASI logs (that is important: sda1), you can issue the command:
mkdir mnt
mount -t vfat /dev/sda1 mnt
mnt directory will have to mass storage contents.
Quoted 30 lines
3. Mount the file system
# mkdir /mnt/usb # mknod /dev/sda1 b 8 1 # mount /dev/sda1 /mnt/usb -t vfat4. Access the USB Flash.
Now, you can access the USB Flash contents under
/mnt/usbdirectory.# ls /mnt/usb5. Remove the USB Flash
Ensure umount before removing the device.
# umount /mnt/usb____________________________________________________________________________________Don't let your dream ride pass you by. Make it a reality with Yahoo! Autos.
http://autos.yahoo.com/index.html_______________________________________________
Linux-omap-open-source mailing list
[email protected]
http://linux.omap.com/mailman/listinfo/linux-omap-open-source
Hi
after connecting USBto OSK5912 i am geeting messge like this
Instead of SDA1 i am geeting SDB1
so i created a node for sdb1
and i mounted usb using sdb1 node
still i am getting error
usb 1-1: new full speed USB device using ohci and address 4
usb 1-1: Product: Mass Storage Device
usb 1-1: Manufacturer: JetFlash
usb 1-1: SerialNumber: 0M9K8ZBK
usb 1-1: configuration #1 chosen from 1 choice scsi3 : SCSI emulation for USB Mass Storage devices
scsi 3:0:0:0: Direct-Access JetFlash TS1GJFV30
8.07 PQ: 0 ANSI: 2
sd 3:0:0:0: [sdb] 2007038 512-byte hardware sectors (1028 MB)
sd 3:0:0:0: [sdb] Write Protect is off
sd 3:0:0:0: [sdb] Assuming drive cache: write through sd 3:0:0:0: [sdb] 2007038 512-byte hardware sectors (1028 MB)
sd 3:0:0:0: [sdb] Write Protect is off
sd 3:0:0:0: [sdb] Assuming drive cache: write through
sdb:<7>usb-storage: queuecommand called
sdb1
sd 3:0:0:0: [sdb] Attached SCSI removable disk sd 3:0:0:0: Attached scsi generic sg1 type 0
/dev # mknod /dev/sdb1 b 8 1
/dev # mount -t vfat /dev/sdb1 /mnt/usb
mount: Mounting /dev/sdb1 on /mnt/usb failed: No such device or address
____________________________________________________________________________________
Luggage? GPS? Comic books?
Check out fitting gifts for grads at Yahoo! Search
http://search.yahoo.com/search?fr=oni_on_mail&p=graduation+gifts&cs=bz