Re: sdcard read error with nokia n8 as mass storage

2013-02-18 Thread Hans Petter Selasky
On Monday 18 February 2013 22:57:25 Jan Beich wrote:
> Hans Petter Selasky  writes:
> > On Monday 18 February 2013 07:11:56 Jan Beich wrote:
> >> Hans Petter Selasky  writes:
> >> > On Sunday 17 February 2013 17:24:23 Jan Beich wrote:
> >> >> The phone has 16G of on-board and 16G sdcard memory. FreeBSD 10.0
> >> >> detects both but only the former can be mounted. And there is no
> >> >> issue mounting the sdcard on Ubuntu or on FreeBSD via iSCSI
> >> >> (fileio).
> 
> [...]
> 
> >> >> $ usbdump -i usbus7 -s 0 -vvv # on attach
> >> >> 
> 
> forgotten linux usbmon dump - http://pastebin.com/Df9Zp6T5
> 
> >> [...]
> >> 
> >> forgotten debug log - http://pastebin.com/NzpSJBRA
> 
> http://pastebin.com/P9474rw4 # no quirks (via source edit)
> 
> Why UQ_MSC_NO_SYNC_CACHE is always added for the device? on-board (da0)
> memory seems to mount/work just fine without + "Medium not present"
> is gone.
> 
> $ usbconfig dump_device_quirks | fgrep 421
> 
> 
> $ kenv | fgrep usb
> hw.usb.no_boot_wait="1"
> hw.usb.umass.debug="-1"
> 
> > Try this quirk:
> > 
> > usbconfig -d x.y add_quirk UQ_MSC_NO_INQUIRY
> 
> http://pastebin.com/4R0MYTUK # UQ_MSC_NO_INQUIRY
> http://pastebin.com/AGHGiC3n # UQ_MSC_NO_INQUIRY + UQ_MSC_NO_SYNC_CACHE
> 
> I've tried a few more (at random) with no luck either.
> 
> http://pastebin.com/RW2cg51S # UQ_MSC_FORCE_SHORT_INQ
> http://pastebin.com/ahiUvS7f # UQ_MSC_WRONG_CSWSIG
> http://pastebin.com/Wf6Be9uN # UQ_MSC_IGNORE_RESIDUE
> http://pastebin.com/0W4pcKmY # UQ_MSC_READ_CAP_OFFBY1
> 
> Linux seems to use only CAPACITY_HEURISTICS quirk.

Hi,

The device fails on READ_10. Maybe this command is not supported. I'm not sure 
how to reprogram CAM/SCSI layers to use READ_6 instead.

--HPS
___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"


Re: sdcard read error with nokia n8 as mass storage

2013-02-18 Thread Jan Beich
Hans Petter Selasky  writes:

> On Monday 18 February 2013 07:11:56 Jan Beich wrote:
>
>> Hans Petter Selasky  writes:
>> > On Sunday 17 February 2013 17:24:23 Jan Beich wrote:
>> >> The phone has 16G of on-board and 16G sdcard memory. FreeBSD 10.0
>> >> detects both but only the former can be mounted. And there is no issue
>> >> mounting the sdcard on Ubuntu or on FreeBSD via iSCSI (fileio).
[...]
>> >> $ usbdump -i usbus7 -s 0 -vvv # on attach
>> >> 

forgotten linux usbmon dump - http://pastebin.com/Df9Zp6T5

>> 
>> [...]
>> 
>> forgotten debug log - http://pastebin.com/NzpSJBRA

http://pastebin.com/P9474rw4 # no quirks (via source edit)

Why UQ_MSC_NO_SYNC_CACHE is always added for the device? on-board (da0)
memory seems to mount/work just fine without + "Medium not present"
is gone.

$ usbconfig dump_device_quirks | fgrep 421


$ kenv | fgrep usb
hw.usb.no_boot_wait="1"
hw.usb.umass.debug="-1"

> Try this quirk:
>
> usbconfig -d x.y add_quirk UQ_MSC_NO_INQUIRY

http://pastebin.com/4R0MYTUK # UQ_MSC_NO_INQUIRY
http://pastebin.com/AGHGiC3n # UQ_MSC_NO_INQUIRY + UQ_MSC_NO_SYNC_CACHE

I've tried a few more (at random) with no luck either.

http://pastebin.com/RW2cg51S # UQ_MSC_FORCE_SHORT_INQ
http://pastebin.com/ahiUvS7f # UQ_MSC_WRONG_CSWSIG
http://pastebin.com/Wf6Be9uN # UQ_MSC_IGNORE_RESIDUE
http://pastebin.com/0W4pcKmY # UQ_MSC_READ_CAP_OFFBY1

Linux seems to use only CAPACITY_HEURISTICS quirk.
___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"


Re: sdcard read error with nokia n8 as mass storage

2013-02-18 Thread Hans Petter Selasky
On Monday 18 February 2013 07:11:56 Jan Beich wrote:
> Hans Petter Selasky  writes:
> > On Sunday 17 February 2013 17:24:23 Jan Beich wrote:
> >> The phone has 16G of on-board and 16G sdcard memory. FreeBSD 10.0
> >> detects both but only the former can be mounted. And there is no issue
> >> mounting the sdcard on Ubuntu or on FreeBSD via iSCSI (fileio).
> 
> [...]
> 
> forgotten debug log - http://pastebin.com/NzpSJBRA
> 

Hi,

Try this quirk:

usbconfig -d x.y add_quirk UQ_MSC_NO_INQUIRY

--HPS
___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"


Current problem reports assigned to freebsd-usb@FreeBSD.org

2013-02-18 Thread FreeBSD bugmaster
Note: to view an individual PR, use:
  http://www.freebsd.org/cgi/query-pr.cgi?pr=(number).

The following is a listing of current problems submitted by FreeBSD users.
These represent problem reports covering all versions including
experimental development code and obsolete releases.


S Tracker  Resp.  Description

o usb/175731   usbdetaching USB keyboard freezes other USB keyboards
o usb/175639   usbnot detect usb netcard D-LINK DUB-E100 rev C1
o usb/175599   usb[usbdevs][patch]Liebert UPS PSI1000 being assigned uhi
o usb/175551   usbSeagate 2TB USB extern hard disk have errors with Free
o usb/175454   usbupdate usbdevs and usb_quirk.c for SanDisk SDDR-289
o usb/175379   usbusb card-reader problem
o usb/175302   usbdon't mount virtual driver CD for my phone
o usb/174963   usbbuffalo wli-uc-gn wireless card sometimes unusable and
o usb/174835   usbuaudio fails to create pcm/dsp device file
o usb/174814   usb[PATCH] support for MiFi 2200
o usb/174695   usbusb keeps disconnecting mouse or keyboard
o usb/174575   usbInterrupt storm error on startup
o usb/174464   usbclone MAC address(es) on usb networks cdce(4) && ue[0-
o usb/174254   usbMIDI keyboard not recognised
o usb/173722   usbXHCI driver bug after suspend to ram (ACPI S3 mode)
o usb/173616   usbLG USB DVD-RW USB STALL
o usb/173182   usbusbus appears as a network device
o usb/172937   usbFreeBSD 9.1-RC2 usb3 port disconnects
o usb/172633   usbSony Cybershot not recognized as USB mem stick
o usb/172199   usbhigh interrupts load xhci
o usb/171354   usb[umass] Medium not present error on flash drive [regre
o usb/171262   usbplug in sdhc via usb reader reboots machine
o usb/171197   usbADATA Classic CH11 USB HDD doesn't work in FreeBSD 9.1
o usb/170699   usbFreeBSD 9.0 Doesn't list HDD or its partitions in part
o usb/170688   usbpatch][usbdevs][wlan] Patch for ASUS Black Diamond USB
o usb/170606   usbr239222 kernel panic at boot - usb locking issue
o usb/170358   usb[ums] Wrong (duplicate) button numbers
o usb/170123   usb[umass] HP v210w USB stick not supported
o usb/169935   usb[keyboard] Unable use USB keyboard while panic
o usb/169789   usb[u3g] [patch] add support for huawei e3131
o usb/169461   usb[ugen] USB2 high-speed device detected as full speed
o usb/169428   usb[ugen] ugen not detecting all endpoints on device [reg
o usb/168551   usb[umass] Issues with embedded card reader (Laptop ASUS 
o usb/168132   usb[umass] MATSHITA memory card size reported wrong, moun
o usb/167847   usb[ural] dlink dwl-122g e crashes(?) when trying wap2 cr
o usb/167001   usb[USB] [PATCH] add support for Smart G2 64MB memory key
o usb/165815   usb[usbdevs] [patch] add k3772z 3g modem support
o usb/165163   usb[keyboard] The USB RF keyboard and mouse become non-re
o usb/164058   usb[umass] Lexar 8GB USB flash drive doesn't work by defa
f usb/163328   usb[usb] Support for Atheros USB abgn devices
o kern/163091  usb[panic] Fatal trap 12: page fault while in kernel mode
f usb/162306   usbusb devices cant get address asignation, no memories, 
o usb/162054   usbusbdump just hangs on 9.0-RC1
f usb/161793   usbpoor EHCI usb2 i/o performance
o usb/160436   usbucom wedges machine on parity error ?
o usb/160299   usbMicroSDHC-to-USB adapters do not work in FreeBSD 8.x
o usb/160192   usb[install] Installation from USB-Stick doesn't find the
o usb/159274   usbUSB 3.0 Etron EJ168A does not work.
f usb/159191   usb[fusefs-ntfs] write on fusefs-ntfs mounted partition r
o usb/157376   usbLaCie USB disk not recognized
o usb/157074   usb[boot] [usb8] vfs_mountroot_ask is called when no usb 
o usb/156898   usb[keyboard] usb keyboard does not work while boot (ps2 
f usb/156735   usbNeed Quirk for Goflex USB Disk Drives
o usb/156726   usb[snd_uaudio]: snd_uaudio(4) fails to detach when mixer
o usb/156725   usbUSB stack stall cause complete system input loss
o usb/156596   usb[ehci] Extremely high interrupt rate on ehci/uhci IRQ1
o usb/156000   usbrum(4) Fatal trap 18: integer divide fault while in ke
f usb/155996   usbNanoBSD not booted as Disk
o usb/155784   usbProblem with Transcend StoreJet 25M3 (2AJ1) on Asus M2
o usb/155663   usb[usbdevs] [patch] Add support for Supertop Nano 1GB US
o usb/154753   usb[usbdevs] [patch] Support for Qualcomm USB modem/stora
o usb/154506   usb[umass] Copying dir with large files makes FreeBSD loa
o usb/154192   usb[umass] In Garmin Oregon GPS, only the first umass dev
o i386/15