Re: [linux-usb-devel] Device detected... But not able to mount device.

Previous thread: [PATCH] usb: Key codes for Microsoft Natural Ergonomic 4000 USB keyboard by John Zaitseff on Wednesday, October 10, 2007 - 1:59 am. (4 messages)

Next thread: [PATCH]suspend/resume for cdc_acm by Oliver Neukum on Wednesday, October 10, 2007 - 4:35 am. (3 messages)
To: <linux-usb-devel@...>
Date: Wednesday, October 10, 2007 - 2:59 am

Hi,

I am using the USB device port on my i.MX21(ARM 9) Lite kit. When I
plug in a flash drive, it gets detected perfectly as a storage device.
But I am not able to access the contents of the drive. When I mount
the drive, it says that the mount failed.

dmesg:

<4>Full speed Hub
<6>usb 1-2: new full speed USB device using imx21-hc and address 2
<4>Full speed Hub
<6>usb 1-2: configuration #1 chosen from 1 choice
<7>usb-storage: USB Mass Storage device detected
<7>usb-storage: -- associate_dev
<7>usb-storage: Vendor: 0x19b6, Product: 0x2048, Revision: 0x0100
<7>usb-storage: Interface Subclass: 0x06, Protocol: 0x50
<7>usb-storage: Transport: Bulk
<7>usb-storage: Protocol: Transparent SCSI
<6>scsi0 : SCSI emulation for USB Mass Storage devices
<7>usb-storage: *** thread sleeping.
<7>usb-storage: device found at 2
<7>usb-storage: waiting for device to settle before scanning
<7>usb-storage: usb_stor_control_msg: rq=fe rqtype=a1 value=0000 index=00 len=1
<7>usb-storage: GetMaxLUN command result is 1, data is 1
<7>usb-storage: queuecommand called
<7>usb-storage: *** thread awakened.
<7>usb-storage: Command INQUIRY (6 bytes)
<7>usb-storage: 12 00 00 00 24 00
<7>usb-storage: Bulk Command S 0x43425355 T 0x1 L 36 F 128 Trg 0 LUN 0 CL 6
<7>usb-storage: usb_stor_bulk_transfer_buf: xfer 31 bytes
<7>usb-storage: Status code 0; transferred 31/31
<7>usb-storage: -- transfer complete
<7>usb-storage: Bulk command transfer result=0
<7>usb-storage: usb_stor_bulk_transfer_sglist: xfer 36 bytes, 1 entries
<7>usb-storage: Status code 0; transferred 36/36
<7>usb-storage: -- transfer complete
<7>usb-storage: Bulk data transfer result 0x0
<7>usb-storage: Attempting to get CSW...
<7>usb-storage: usb_stor_bulk_transfer_buf: xfer 13 bytes
<7>usb-storage: Status code 0; transferred 13/13
<7>usb-storage:...

To: <linux-usb-devel@...>
Cc: Midhun A <midhunagni@...>
Date: Wednesday, October 10, 2007 - 3:05 am

Where are the SCSI disks? Did you load the sd driver?

Regards
Oliver

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

To: Midhun A <midhunagni@...>
Cc: <linux-usb-devel@...>
Date: Wednesday, October 10, 2007 - 3:08 am

And what kernel version is it?

Regards
Jason

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

To: jidong xiao <jidong.xiao@...>, <oliver@...>
Cc: <linux-usb-devel@...>
Date: Wednesday, October 10, 2007 - 5:37 am

I was also looking for the same. But I haven't built any of the
drivers as modules. All are built into the kernel. So I should really
see whether the SCSI driver is getting registered. Is everything fine
with the .config file? Or do I need to enable anything more?

Thanks,
Midhun.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

To: Midhun A <midhunagni@...>
Cc: <linux-usb-devel@...>
Date: Wednesday, October 10, 2007 - 5:54 am

Did you enable the partition type you are using on the device?
Please post the full dmesg.

Regards
Oliver

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

To: Oliver Neukum <oliver@...>
Cc: <linux-usb-devel@...>
Date: Wednesday, October 10, 2007 - 7:30 am

By "partition type" you mean the file system? I have the FAT file
system enabled. The full dmesg is as below:

<4>Full speed Hub
<6>usb 1-2: new full speed USB device using imx21-hc and address 2
<4>Full speed Hub
<6>usb 1-2: configuration #1 chosen from 1 choice
<7>usb-storage: USB Mass Storage device detected
<7>usb-storage: -- associate_dev
<7>usb-storage: Vendor: 0x19b6, Product: 0x2048, Revision: 0x0100
<7>usb-storage: Interface Subclass: 0x06, Protocol: 0x50
<7>usb-storage: Transport: Bulk
<7>usb-storage: Protocol: Transparent SCSI
<6>scsi0 : SCSI emulation for USB Mass Storage devices
<7>usb-storage: *** thread sleeping.
<7>usb-storage: device found at 2
<7>usb-storage: waiting for device to settle before scanning
<7>usb-storage: usb_stor_control_msg: rq=fe rqtype=a1 value=0000 index=00 len=1
<7>usb-storage: GetMaxLUN command result is 1, data is 1
<7>usb-storage: queuecommand called
<7>usb-storage: *** thread awakened.
<7>usb-storage: Command INQUIRY (6 bytes)
<7>usb-storage: 12 00 00 00 24 00
<7>usb-storage: Bulk Command S 0x43425355 T 0x1 L 36 F 128 Trg 0 LUN 0 CL 6
<7>usb-storage: usb_stor_bulk_transfer_buf: xfer 31 bytes
<7>usb-storage: Status code 0; transferred 31/31
<7>usb-storage: -- transfer complete
<7>usb-storage: Bulk command transfer result=0
<7>usb-storage: usb_stor_bulk_transfer_sglist: xfer 36 bytes, 1 entries
<7>usb-storage: Status code 0; transferred 36/36
<7>usb-storage: -- transfer complete
<7>usb-storage: Bulk data transfer result 0x0
<7>usb-storage: Attempting to get CSW...
<7>usb-storage: usb_stor_bulk_transfer_buf: xfer 13 bytes
<7>usb-storage: Status code 0; transferred 13/13
<7>usb-storage: -- transfer complete
<7>usb-storage: Bulk status result = 0
<7>usb-storage: Bulk Status S 0x53425355 T 0x1 R 0 Stat 0x0
<7>usb-storage: s...

To: <linux-usb-devel@...>, Midhun A <midhunagni@...>
Date: Wednesday, October 10, 2007 - 7:53 am

No, to use partitions you have to include support for the partitioning
scheme used.

Regards
Oliver

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

To: Oliver Neukum <oliver@...>
Cc: <linux-usb-devel@...>
Date: Wednesday, October 10, 2007 - 9:10 am

Oh ! I do not know that. Where do I find out which scheme am I using?

Thanks,
Midhun.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

To: Midhun A <midhunagni@...>
Cc: <linux-usb-devel@...>
Date: Wednesday, October 10, 2007 - 9:14 am

fdisk should tell you whether you run the commonest scheme.

Regards
Oliver

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

To: Oliver Neukum <oliver@...>
Cc: <linux-usb-devel@...>
Date: Wednesday, October 10, 2007 - 9:53 am

fdisk -l shows:

/ # fdisk -l

Disk /dev/sda: 2058 MB, 2058354176 bytes
255 heads, 63 sectors/track, 250 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 251 2010080 6 FAT16
Partition 1 has different physical/logical endings:
phys=(249, 254, 63) logical=(250, 63, 4)

Also:

/ # cat /proc/partitions
major minor #blocks name

31 0 8192 mtdblock0
31 1 384 mtdblock1
31 2 1664 mtdblock2
31 3 2048 mtdblock3
31 4 4096 mtdblock4
8 0 2010111 sda
8 1 2010080 sda1

Midhun.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

To: jidong xiao <jidong.xiao@...>, <oliver@...>
Cc: <linux-usb-devel@...>
Date: Wednesday, October 10, 2007 - 5:55 am

Hi,

I have got the driver working by changing the .config. The two
things that I have enabled are :

CONFIG_SCSI_TGT=y
CONFIG_SCSI_CONSTANTS=y

/ # cat /proc/devices
Character devices:
1 mem
2 pty
3 ttyp
4 /dev/vc/0
4 tty
4 ttyS
5 /dev/tty
5 /dev/console
5 /dev/ptmx
7 vcs
10 misc
13 input
21 sg
29 fb
90 mtd
128 ptm
136 pts
180 usb
189 usb_device
253 usb_endpoint
254 usbmon

Block devices:
1 ramdisk
8 sd
31 mtdblock
65 sd
66 sd
67 sd
68 sd
69 sd
70 sd
71 sd
128 sd
129 sd
130 sd
131 sd
132 sd
133 sd
134 sd
135 sd
179 mmc

I could find that CONFIG_SCSI_CONSTANTS is for verbose error
reporting. But CONFIG_SCSI_TGT ? Is this what has enabled the sd
driver? Can somebody explained what happened?

Thanks for all the help...
Midhun.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

To: Midhun A <midhunagni@...>
Cc: <oliver@...>, <linux-usb-devel@...>
Date: Wednesday, October 10, 2007 - 11:51 am

As far as I can tell, CONFIG_SCSI_TGT doesn't do anything at all for
simple setups like yours. Maybe something else changed that you
weren't aware of.

For example, if you turn off CONFIG_SCSI_TGT and build the kernel
again, does everything still work?

Alan Stern

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

To: Alan Stern <stern@...>
Cc: <oliver@...>, <linux-usb-devel@...>
Date: Sunday, October 14, 2007 - 1:50 am

I dont know what exactly has worked for me. But just for future
reference I would say that I have the following enabled on my 2.6.22
kernel:

SCSI device support
legacy /proc/scsi/ support
SCSI disk support
Probe all LUNs on each SCSI device

Thank you all for all the help !
Midhun.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Previous thread: [PATCH] usb: Key codes for Microsoft Natural Ergonomic 4000 USB keyboard by John Zaitseff on Wednesday, October 10, 2007 - 1:59 am. (4 messages)

Next thread: [PATCH]suspend/resume for cdc_acm by Oliver Neukum on Wednesday, October 10, 2007 - 4:35 am. (3 messages)