Device detected... But not able to mount device.

"Midhun A" <[email protected]>
Newsgroups gmane.linux.usb.devel
Message-ID <[email protected]>
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: -- 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: scsi cmd done, result=0x0
<7>usb-storage: *** thread sleeping.
<5>scsi 0:0:0:0: Direct-Access     Moser    Baer AZ-601      0.00 PQ: 0 ANSI: 2
<7>usb-storage: queuecommand called
<7>usb-storage: *** thread awakened.
<7>usb-storage: Bad target number (1:0)
<7>usb-storage: scsi cmd done, result=0x40000
<7>usb-storage: *** thread sleeping.
<7>usb-storage: queuecommand called
<7>usb-storage: *** thread awakened.
<7>usb-storage: Bad target number (2:0)
<7>usb-storage: scsi cmd done, result=0x40000
<7>usb-storage: *** thread sleeping.
<7>usb-storage: queuecommand called
<7>usb-storage: *** thread awakened.
<7>usb-storage: Bad target number (3:0)
<7>usb-storage: scsi cmd done, result=0x40000
<7>usb-storage: *** thread sleeping.
<7>usb-storage: queuecommand called
<7>usb-storage: *** thread awakened.
<7>usb-storage: Bad target number (4:0)
<7>usb-storage: scsi cmd done, result=0x40000
<7>usb-storage: *** thread sleeping.
<7>usb-storage: queuecommand called
<7>usb-storage: *** thread awakened.
<7>usb-storage: Bad target number (5:0)
<7>usb-storage: scsi cmd done, result=0x40000
<7>usb-storage: *** thread sleeping.
<7>usb-storage: queuecommand called
<7>usb-storage: *** thread awakened.
<7>usb-storage: Bad target number (6:0)
<7>usb-storage: scsi cmd done, result=0x40000
<7>usb-storage: *** thread sleeping.
<7>usb-storage: queuecommand called
<7>usb-storage: *** thread awakened.
<7>usb-storage: Bad target number (7:0)
<7>usb-storage: scsi cmd done, result=0x40000
<7>usb-storage: *** thread sleeping.
<7>usb-storage: device scan complete

 The devices:

# 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
 29 fb
 90 mtd
128 ptm
136 pts
180 usb
189 usb_device
253 usb_endpoint
254 usbmon

Block devices:
  1 ramdisk
 31 mtdblock
179 mmc

/ # 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

  The dev entries for sda are:

/dev # ls -l *sda*
brw-rw-rw-    1 0        0          8,   0 Jan  1 00:01 sda
brw-rw-rw-    1 0        0          8,   1 Jan  1 00:00 sda1
brw-rw-rw-    1 0        0          8,   2 Aug 14  2007 sda2

Mounting fails:

/dev # mount /dev/sda /mnt/usb
mount: mounting /dev/sda on /mnt/usb failed

/dev # mount /dev/sda1 /mnt/usb
mount: mounting /dev/sda1 on /mnt/usb failed

/dev # mount /dev/sda2 /mnt/usb
mount: mounting /dev/sda2 on /mnt/usb failed

  The config for SCSI and USB:

#
# SCSI device support
#
# CONFIG_RAID_ATTRS is not set
CONFIG_SCSI=y
# CONFIG_SCSI_TGT is not set
# CONFIG_SCSI_NETLINK is not set
CONFIG_SCSI_PROC_FS=y

#
# SCSI support type (disk, tape, CD-ROM)
#
CONFIG_BLK_DEV_SD=y
# CONFIG_CHR_DEV_ST is not set
# CONFIG_CHR_DEV_OSST is not set
# CONFIG_BLK_DEV_SR is not set
CONFIG_CHR_DEV_SG=y
# CONFIG_CHR_DEV_SCH is not set

#
# Some SCSI devices (e.g. CD jukebox) support multiple LUNs
#
CONFIG_SCSI_MULTI_LUN=y
# CONFIG_SCSI_CONSTANTS is not set
# CONFIG_SCSI_LOGGING is not set
# CONFIG_SCSI_SCAN_ASYNC is not set
CONFIG_SCSI_WAIT_SCAN=m

#
# SCSI Transports
#
# CONFIG_SCSI_SPI_ATTRS is not set
# CONFIG_SCSI_FC_ATTRS is not set
# CONFIG_SCSI_ISCSI_ATTRS is not set
# CONFIG_SCSI_SAS_ATTRS is not set
# CONFIG_SCSI_SAS_LIBSAS is not set

#
# SCSI low-level drivers
#
# CONFIG_ISCSI_TCP is not set
# CONFIG_SCSI_DEBUG is not set
# CONFIG_ATA is not set


#
# USB support
#
CONFIG_USB_ARCH_HAS_HCD=y
# CONFIG_USB_ARCH_HAS_OHCI is not set
# CONFIG_USB_ARCH_HAS_EHCI is not set
CONFIG_USB=y
# CONFIG_USB_DEBUG is not set

#
# Miscellaneous USB options
#
CONFIG_USB_DEVICEFS=y
# CONFIG_USB_DEVICE_CLASS is not set
# CONFIG_USB_DYNAMIC_MINORS is not set
# CONFIG_USB_SUSPEND is not set
# CONFIG_USB_OTG is not set

#
# USB Host Controller Drivers
#
# CONFIG_USB_ISP116X_HCD is not set
# CONFIG_USB_SL811_HCD is not set
CONFIG_USB_IMX21_HCD=y

#
# USB Device Class drivers
#
# CONFIG_USB_ACM is not set
# CONFIG_USB_PRINTER is not set

#
# NOTE: USB_STORAGE enables SCSI, and 'SCSI disk support'
#

#
# may also be needed; see USB_STORAGE Help for more information
#
CONFIG_USB_STORAGE=y
CONFIG_USB_STORAGE_DEBUG=y
# CONFIG_USB_STORAGE_DATAFAB is not set
# CONFIG_USB_STORAGE_FREECOM is not set
# CONFIG_USB_STORAGE_DPCM is not set
# CONFIG_USB_STORAGE_USBAT is not set
# CONFIG_USB_STORAGE_SDDR09 is not set
# CONFIG_USB_STORAGE_SDDR55 is not set
# CONFIG_USB_STORAGE_JUMPSHOT is not set
# CONFIG_USB_STORAGE_ALAUDA is not set
# CONFIG_USB_STORAGE_KARMA is not set
CONFIG_USB_LIBUSUAL=y

  There is no dmesg for the mount command. What else am I missing?

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/
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.