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:...
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
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
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
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
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...
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
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
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
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 bytesDevice 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 name31 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 sda1Midhun.
-------------------------------------------------------------------------
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
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 usbmonBlock 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 mmcI 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
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
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 deviceThank 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
| Greg KH | Re: Announce: Linux-next (Or Andrew's dream :-)) |
| Greg KH | [patch 26/73] NET: Correct two mistaken skb_reset_mac_header() conversions. |
| Greg Kroah-Hartman | [PATCH 007/196] Chinese: add translation of stable_kernel_rules.txt |
| Alan Cox | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
git: | |
| Alexey Dobriyan | Re: [GIT]: Networking |
| Gerrit Renker | [PATCH 03/37] dccp: List management for new feature negotiation |
| Jarek Poplawski | [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Andrew Morton | Re: [BUG] New Kernel Bugs |
