RE: Fwd: Seeking support to get USB Host Interface (Mass Storage) working with Linux 2.6.35

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello Padro,

I will outline the procedure what I do when I attach my mass usb flash storage into my target, so you can see how my configuration looks like.

After I boot the target the following happens:

[1] Upon issuing fdisk -l command, the following is the output:
Disk /dev/sda: 82.0 GB, 81964302336 bytes
255 heads, 63 sectors/track, 9964 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x6f5756ac

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          20      160618+   b  W95 FAT32
/dev/sda2              21         993     7815622+  82  Linux swap / Solaris
/dev/sda3             994        4883    31246425   83  Linux

[2] After I plug-in mu USB mass storage, the following I read from dmesg:
[  124.546563] scsi 2:0:0:0: Direct-Access     PNY      USB 2.0 FD       8192 PQ: 0 ANSI: 0 CCS
[  124.548807] sd 2:0:0:0: [sdb] 15826944 512-byte logical blocks: (8.10 GB/7.54 GiB)
[  124.549682] sd 2:0:0:0: [sdb] Write Protect is off
[  124.549694] sd 2:0:0:0: [sdb] Mode Sense: 43 00 00 00
[  124.549701] sd 2:0:0:0: [sdb] Assuming drive cache: write through
[  124.552448] sd 2:0:0:0: [sdb] Assuming drive cache: write through
[  124.552468]  sdb: sdb1
[  124.555935] sd 2:0:0:0: [sdb] Assuming drive cache: write through
[  124.555946] sd 2:0:0:0: [sdb] Attached SCSI removable disk

[3] Now, upon issuing fdisk -l command, the following is the output:
Disk /dev/sda: 82.0 GB, 81964302336 bytes
255 heads, 63 sectors/track, 9964 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x6f5756ac

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          20      160618+   b  W95 FAT32
/dev/sda2              21         993     7815622+  82  Linux swap / Solaris
/dev/sda3             994        4883    31246425   83  Linux

Disk /dev/sdb: 8103 MB, 8103395328 bytes
256 heads, 21 sectors/track, 2944 cylinders
Units = cylinders of 5376 * 512 = 2752512 bytes
Disk identifier: 0xc3072e18

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *           1        2944     7913440+   c  W95 FAT32 (LBA)
_______

I see my SATA HDD as /dev/sda, while my USB is /dev/sdb .

The logical move is: mount -t vfat /dev/sdb1 /mnt/usb (or whatever directory you created for mount point).

Best Regards,
Zoran

-----Original Message-----
From: Umakanta Patro [mailto:umakanta.patro@xxxxxxxxxxxxxxxxx] 
Sent: Tuesday, February 07, 2012 10:44 AM
To: Stojsavljevic, Zoran; Alan Stern
Cc: linux-usb@xxxxxxxxxxxxxxx
Subject: Re: Fwd: Seeking support to get USB Host Interface (Mass Storage) working with Linux 2.6.35

Dear Zoran / Alan,

Thanks for your continous help.

Sorry for a late response.

I am able to use my mas storage device with my board.
And this worked after I enabled all the codepage support and some 
architecture file changes related to my USB device configuration.

But, now I have another issue, that is I have a USB-SATA bridge on my 
board which connects to the same USB Host port through a software DEMUX 
switch and it interfaces to normal SATA HDD.

But, here I am able to get the USB-SATA bridge detected, but not the 
Hard disk connected to it. The Hard Disk has a single partition of 1GB 
FAT32 formatted.

Below is the console message related to the Hard disk:
> usb 1-2: New USB device found, idVendor=04c5, idProduct=2026
> usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
> usb 1-2: Product: FUJITSU MB86C31
> usb 1-2: Manufacturer: FUJITSU
> usb 1-2: SerialNumber: 0000000000000001
> scsi0 : usb-storage 1-2:1.0
> scsi 0:0:0:0: Direct-Access                                    PQ: 0 
> ANSI: 5
> sd 0:0:0:0: [sda] Attached SCSI removable disk
And when I manually create a node and try to mount it, it says No Medium 
found:
> # /busybox mknod /dev/sda1 b 8 1
> # mkdir /mnt/usb/
> # mount -t vfat /dev/sda1 /mnt/usb/
> mount: No medium found

So, do you think any other configurations I need to take care for 
getting this functionality working.

Please help me with regards to this.

Thanks & Rregards,
Umakanta Patro

On 1/27/2012 9:04 PM, Stojsavljevic, Zoran wrote:
> Just tiny addendum.
>
> It might be that mass storage device does not work because of codepage or/and language missing support.
>
> Here is interesting web page describing these problems. :)
> http://www.nslu2-linux.org/wiki/HowTo/MountFATFileSystems
>
> Best regards,
> Zoran
>
> -----Original Message-----
> From:linux-usb-owner@xxxxxxxxxxxxxxx  [mailto:linux-usb-owner@xxxxxxxxxxxxxxx] On Behalf Of Alan Stern
> Sent: Friday, January 27, 2012 4:31 PM
> To: Umakanta Patro
> Cc:linux-usb@xxxxxxxxxxxxxxx
> Subject: Re: Fwd: Seeking support to get USB Host Interface (Mass Storage) working with Linux 2.6.35
>
> On Fri, 27 Jan 2012, Umakanta Patro wrote:
>
>> Dear All,
>>
>> Thank you all for having a look into my issue.
>>
>> Could anyone look into the document attached with my previous mail.
>>
>> Does the dmesg say that something wrong with the detection of my device?
>>
>> Here I am pasting some part of the dmesg:
> ...
>
>> And in this so many time the Status Code comes negative (which I feel
>> might be the Error).
> The dmesg shows no errors.  The negative status codes you saw are normal.
>
>> I am thinking that there may be some errors in my driver side, because
>> I have a USB-SATA bridge on my device as well connected to the same
>> USB Host controller, and selected by a software switch.
>> And in the SATA mode I don't get the SATA disk detected. I just find
>> the USB-SATA bridge detected, with its part number and manufacturer
>> details, but not about the Hard disk size, format, manufacturerr etc.
> That's a different problem.  The Kingston flash drive was working perfectly.
>
>> SO, whether a creation of manual node will solve the issue completely?
> Yes.
>
> Alan Stern
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message tomajordomo@xxxxxxxxxxxxxxx  More majordomo info athttp://vger.kernel.org/majordomo-info.html
> --------------------------------------------------------------------------------------
> Intel GmbH
> Dornacher Strasse 1
> 85622 Feldkirchen/Muenchen, Deutschland
> Sitz der Gesellschaft: Feldkirchen bei Muenchen
> Geschaeftsfuehrer: Douglas Lusk, Peter Gleissner, Hannes Schwaderer
> Registergericht: Muenchen HRB 47456
> Ust.-IdNr./VAT Registration No.: DE129385895
> Citibank Frankfurt a.M. (BLZ 502 109 00) 600119052
>
>



--------------------------------------------------------------------------------------
Intel GmbH
Dornacher Strasse 1
85622 Feldkirchen/Muenchen, Deutschland 
Sitz der Gesellschaft: Feldkirchen bei Muenchen
Geschaeftsfuehrer: Douglas Lusk, Peter Gleissner, Hannes Schwaderer
Registergericht: Muenchen HRB 47456 
Ust.-IdNr./VAT Registration No.: DE129385895
Citibank Frankfurt a.M. (BLZ 502 109 00) 600119052

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux