* regarding USB
@ 2007-09-21 6:42 radha k
2007-09-21 9:38 ` Pandita, Vikram
0 siblings, 1 reply; 6+ messages in thread
From: radha k @ 2007-09-21 6:42 UTC (permalink / raw)
To: Linux-omap-open-source
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
^ permalink raw reply [flat|nested] 6+ messages in thread
* RE: regarding USB
2007-09-21 6:42 radha k
@ 2007-09-21 9:38 ` Pandita, Vikram
2007-09-21 10:03 ` radha k
0 siblings, 1 reply; 6+ messages in thread
From: Pandita, Vikram @ 2007-09-21 9:38 UTC (permalink / raw)
To: radha k, Linux-omap-open-source
>-----Original Message-----
>Sent: Friday, September 21, 2007 12:13 PM
>To: Linux-omap-open-source@linux.omap.com
>Subject: 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
>
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.
> 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
>
>
>
>_______________________________________________
>Linux-omap-open-source mailing list
>Linux-omap-open-source@linux.omap.com
>http://linux.omap.com/mailman/listinfo/linux-omap-open-source
^ permalink raw reply [flat|nested] 6+ messages in thread
* RE: regarding USB
2007-09-21 9:38 ` Pandita, Vikram
@ 2007-09-21 10:03 ` radha k
0 siblings, 0 replies; 6+ messages in thread
From: radha k @ 2007-09-21 10:03 UTC (permalink / raw)
To: Pandita, Vikram; +Cc: 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
^ permalink raw reply [flat|nested] 6+ messages in thread
* RE: regarding USB
[not found] <5DF83221BE20114E9C331F665ACBC080039ABD36@dbde01.ent.ti.com>
@ 2007-09-22 5:06 ` radha k
2007-09-22 6:08 ` Pandita, Vikram
2007-09-24 4:50 ` Nazim Khan
0 siblings, 2 replies; 6+ messages in thread
From: radha k @ 2007-09-22 5:06 UTC (permalink / raw)
To: Pandita, Vikram; +Cc: linux-omap-open-source
HI sir
I am doing: /dev # mknod /dev/sdb1 b 8 1, because
sdb1 node is not getting created for me as soon as i
connect USB.Therefore i am creating it manually.
Kindly let me know how to proceed.
Thanking you in advance,
With regards,
Radha.K
--- "Pandita, Vikram" <vikram.pandita@ti.com> wrote:
> I am not doing: /dev # mknod /dev/sdb1 b 8 1
> I directly mount the /dev/sdb1 node.
>
> >-----Original Message-----
> >From: radha k [mailto:radha_kodirekka@yahoo.com]
> >Sent: Friday, September 21, 2007 3:34 PM
> >To: Pandita, Vikram
> >Cc: linux-omap-open-source@linux.omap.com
> >Subject: RE: regarding USB
> >
> >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
>
____________________________________________________________________________________
Check out the hottest 2008 models today at Yahoo! Autos.
http://autos.yahoo.com/new_cars.html
^ permalink raw reply [flat|nested] 6+ messages in thread
* RE: regarding USB
2007-09-22 5:06 ` regarding USB radha k
@ 2007-09-22 6:08 ` Pandita, Vikram
2007-09-24 4:50 ` Nazim Khan
1 sibling, 0 replies; 6+ messages in thread
From: Pandita, Vikram @ 2007-09-22 6:08 UTC (permalink / raw)
To: radha k; +Cc: linux-omap-open-source
>From: radha k [mailto:radha_kodirekka@yahoo.com]
>Sent: Saturday, September 22, 2007 10:37 AM
>To: Pandita, Vikram
>Cc: linux-omap-open-source@linux.omap.com
>Subject: RE: regarding USB
>
>
>HI sir
> I am doing: /dev # mknod /dev/sdb1 b 8 1, because
>sdb1 node is not getting created for me as soon as i
>connect USB.Therefore i am creating it manually.
>
Try mounting on a locally created directory and give full permissions to the new directory.
> Kindly let me know how to proceed.
> Thanking you in advance,
>With regards,
>Radha.K
>
>
>--- "Pandita, Vikram" <vikram.pandita@ti.com> wrote:
>
>> I am not doing: /dev # mknod /dev/sdb1 b 8 1
>> I directly mount the /dev/sdb1 node.
>>
>> >-----Original Message-----
>> >From: radha k [mailto:radha_kodirekka@yahoo.com]
>> >Sent: Friday, September 21, 2007 3:34 PM
>> >To: Pandita, Vikram
>> >Cc: linux-omap-open-source@linux.omap.com
>> >Subject: RE: regarding USB
>> >
>> >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
>>
>
>
>
> ____________________________________________________________________________________
>Check out the hottest 2008 models today at Yahoo! Autos.
>http://autos.yahoo.com/new_cars.html
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: regarding USB
2007-09-22 5:06 ` regarding USB radha k
2007-09-22 6:08 ` Pandita, Vikram
@ 2007-09-24 4:50 ` Nazim Khan
1 sibling, 0 replies; 6+ messages in thread
From: Nazim Khan @ 2007-09-24 4:50 UTC (permalink / raw)
To: radha k; +Cc: linux-omap-open-source
Looks like your USB Memory device does not have any partitions.
Is that right?
if thats the case then your device is actually sdb, not sdb1.
Create proper device node for sdb using following command check it out again.
# mknod /dev/sdb b 8 16
- Naz
On 9/22/07, radha k <radha_kodirekka@yahoo.com> wrote:
>
> HI sir
> I am doing: /dev # mknod /dev/sdb1 b 8 1, because
> sdb1 node is not getting created for me as soon as i
> connect USB.Therefore i am creating it manually.
>
> Kindly let me know how to proceed.
> Thanking you in advance,
> With regards,
> Radha.K
>
>
> --- "Pandita, Vikram" <vikram.pandita@ti.com> wrote:
>
> > I am not doing: /dev # mknod /dev/sdb1 b 8 1
> > I directly mount the /dev/sdb1 node.
> >
> > >-----Original Message-----
> > >From: radha k [mailto:radha_kodirekka@yahoo.com]
> > >Sent: Friday, September 21, 2007 3:34 PM
> > >To: Pandita, Vikram
> > >Cc: linux-omap-open-source@linux.omap.com
> > >Subject: RE: regarding USB
> > >
> > >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
> >
>
>
>
> ____________________________________________________________________________________
> Check out the hottest 2008 models today at Yahoo! Autos.
> http://autos.yahoo.com/new_cars.html
> _______________________________________________
> Linux-omap-open-source mailing list
> Linux-omap-open-source@linux.omap.com
> http://linux.omap.com/mailman/listinfo/linux-omap-open-source
>
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2007-09-24 4:50 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <5DF83221BE20114E9C331F665ACBC080039ABD36@dbde01.ent.ti.com>
2007-09-22 5:06 ` regarding USB radha k
2007-09-22 6:08 ` Pandita, Vikram
2007-09-24 4:50 ` Nazim Khan
2007-09-21 6:42 radha k
2007-09-21 9:38 ` Pandita, Vikram
2007-09-21 10:03 ` radha k
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox