>Synopsis: only one of two USB MSC "LUNs" detected - Sony PCM-M10
>Category: kernel
>Environment:
System : OpenBSD 6.0
Details : OpenBSD 6.0 (
GENERIC.MP) #2300: Sun Jul 17 13:04:18 MDT 2016
der...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/
GENERIC.MP
Architecture: OpenBSD.amd64
Machine : amd64
>Description:
Sony PCM-M10 is a handheld digital audio recorder with a 4 GB built-in
memory and a slot for a memory card. The slot is combined for microSDHC
and Sony MS M2, only one card can be inserted at a time. The recorder
makes the content of both storage devices (the built-in memory and the
memory card) accessible as an MSC USB device(s). While other OS's, such as
Linux, recognize it as a device with two LUNs (the built-in memory and the
memory card) and present them as two disks, OpenBSD recognizes only the
built-in memory.
umass0 at uhub1 port 5 configuration 1 interface 0 "Sony IC RECORDER" rev 2.00/1.00 addr 2
umass0: using ATAPI over Bulk-Only
scsibus4 at umass0: 2 targets, initiator 0
sd2 at scsibus4 targ 1 lun 0: <SONY, IC RECORDER, 2.00> ATAPI 0/direct removable
sd2: 3909MB, 512 bytes/sector, 8007676 sectors
For a comparison I am attaching part of the Linux dmesg which shows what
Linux reports when the device is connected to it, first without a memory
card and later with a 2 GB microSD card in its microSDHC slot.
Linux kernel version:
Linux Microknoppix 2.6.31.6 #4 SMP PREEMPT Tue Nov 10 19:11:11 CET 2009 i686 GNU/Linux
End of the Linux dmesg:
[ 60.956673] usb 1-4: new high speed USB device using ehci_hcd and address 3
[ 61.081120] usb 1-4: New USB device found, idVendor=054c, idProduct=03f2
[ 61.081125] usb 1-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 61.081130] usb 1-4: Product: IC RECORDER
[ 61.081133] usb 1-4: Manufacturer: Sony
[ 61.081136] usb 1-4: SerialNumber: 000000000000
[ 61.081329] usb 1-4: configuration #1 chosen from 1 choice
[ 61.082726] scsi3 : SCSI emulation for USB Mass Storage devices
[ 61.082953] usb-storage: device found at 3
[ 61.082956] usb-storage: waiting for device to settle before scanning
[ 66.080606] scsi 3:0:0:0: Direct-Access SONY IC RECORDER 2.00 PQ: 0 ANSI: 0 CCS
[ 66.080930] sd 3:0:0:0: Attached scsi generic sg6 type 0
[ 66.081605] scsi 3:0:0:1: Direct-Access SONY IC RECORDER 2.00 PQ: 0 ANSI: 0 CCS
[ 66.081818] sd 3:0:0:1: Attached scsi generic sg7 type 0
[ 66.082324] usb-storage: device scan complete
[ 66.088094] sd 3:0:0:0: [sdf] 8007676 512-byte logical blocks: (4.09 GB/3.81 GiB)
[ 66.088712] sd 3:0:0:1: [sdg] Attached SCSI removable disk
[ 66.089208] sd 3:0:0:0: [sdf] Write Protect is off
[ 66.089214] sd 3:0:0:0: [sdf] Mode Sense: 00 6a 10 00
[ 66.089218] sd 3:0:0:0: [sdf] Assuming drive cache: write through
[ 66.091706] sd 3:0:0:0: [sdf] Assuming drive cache: write through
[ 66.091714] sdf: sdf1
[ 66.095081] sd 3:0:0:0: [sdf] Assuming drive cache: write through
[ 66.095087] sd 3:0:0:0: [sdf] Attached SCSI removable disk
[ 188.548074] usb 1-4: USB disconnect, address 3
[ 235.289990] usb 1-4: new high speed USB device using ehci_hcd and address 4
[ 235.414505] usb 1-4: New USB device found, idVendor=054c, idProduct=03f2
[ 235.414511] usb 1-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 235.414515] usb 1-4: Product: IC RECORDER
[ 235.414519] usb 1-4: Manufacturer: Sony
[ 235.414522] usb 1-4: SerialNumber: 000000000000
[ 235.414716] usb 1-4: configuration #1 chosen from 1 choice
[ 235.416156] scsi4 : SCSI emulation for USB Mass Storage devices
[ 235.416395] usb-storage: device found at 4
[ 235.416398] usb-storage: waiting for device to settle before scanning
[ 240.413868] scsi 4:0:0:0: Direct-Access SONY IC RECORDER 2.00 PQ: 0 ANSI: 0 CCS
[ 240.414173] sd 4:0:0:0: Attached scsi generic sg6 type 0
[ 240.414740] scsi 4:0:0:1: Direct-Access SONY IC RECORDER 2.00 PQ: 0 ANSI: 0 CCS
[ 240.414945] sd 4:0:0:1: Attached scsi generic sg7 type 0
[ 240.415423] usb-storage: device scan complete
[ 240.428346] sd 4:0:0:0: [sdf] 8007676 512-byte logical blocks: (4.09 GB/3.81 GiB)
[ 240.428848] sd 4:0:0:0: [sdf] Write Protect is off
[ 240.428853] sd 4:0:0:0: [sdf] Mode Sense: 00 6a 10 00
[ 240.428857] sd 4:0:0:0: [sdf] Assuming drive cache: write through
[ 240.429220] sd 4:0:0:1: [sdg] 3938304 512-byte logical blocks: (2.01 GB/1.87 GiB)
[ 240.430378] sd 4:0:0:1: [sdg] Write Protect is off
[ 240.430384] sd 4:0:0:1: [sdg] Mode Sense: 00 6a 10 00
[ 240.430448] sd 4:0:0:1: [sdg] Assuming drive cache: write through
[ 240.433471] sd 4:0:0:0: [sdf] Assuming drive cache: write through
[ 240.433480] sdf: sdf1
[ 240.436898] sd 4:0:0:1: [sdg] Assuming drive cache: write through
[ 240.436906] sdg: sdg1
[ 240.439462] sd 4:0:0:0: [sdf] Assuming drive cache: write through
[ 240.439468] sd 4:0:0:0: [sdf] Attached SCSI removable disk
[ 240.442840] sd 4:0:0:1: [sdg] Assuming drive cache: write through
[ 240.442846] sd 4:0:0:1: [sdg] Attached SCSI removable disk
>How-To-Repeat:
Connect the Sony PCM-M10 audio recorder to the USB port. IIRC, the older
Sony PCM-D50 may show the same issue. Reproducible on any i386 and amd64
machine, I didn't try other platforms.
mpi@ has already seen this device at n2k16.
>Fix:
Not known.
I replaced the MAC addresses and the ATA drive id with characters x in the
dmesg.
dmesg:
OpenBSD 6.0 (
GENERIC.MP) #2300: Sun Jul 17 13:04:18 MDT 2016
der...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/
GENERIC.MP
real mem = 2121990144 (2023MB)
avail mem =
2053197824 (1958MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xf3253 (27 entries)
bios0: vendor Hewlett-Packard version "68MCU Ver. F.16" date 08/18/2008
bios0: Hewlett-Packard HP Compaq 6910p
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP SLIC HPET APIC MCFG TCPA SSDT SSDT SSDT SSDT SSDT
acpi0: wakeup devices C0B0(S5) C108(S3) C10F(S3) C110(S3) C111(S3) C119(S3) C11A(S3) C11B(S3) C131(S5) C2A7(S5) C132(S5) C2A8(S5) C134(S5) C2A8(S5) C137(S0) C23D(S5)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpihpet0 at acpi0: 14318179 Hz
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM)2 Duo CPU T7500 @ 2.20GHz, 2394.44 MHz
cpu0: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,NXE,LONG,LAHF,PERF,SENSOR
cpu0: 4MB 64b/line 16-way L2 cache
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
cpu0: apic clock running at 199MHz
cpu0: mwait min=64, max=64, C-substates=0.2.2.2.2, IBE
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM)2 Duo CPU T7500 @ 2.20GHz, 2194.51 MHz
cpu1: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,NXE,LONG,LAHF,PERF,SENSOR
cpu1: 4MB 64b/line 16-way L2 cache
cpu1: smt 0, core 1, package 0
ioapic0 at mainbus0: apid 1 pa 0xfec00000, version 20, 24 pins
acpimcfg0 at acpi0 addr 0xf8000000, bus 0-63
acpiprt0 at acpi0: bus 2 (C0B0)
acpiprt1 at acpi0: bus 8 (C11D)
acpiprt2 at acpi0: bus 16 (C131)
acpiprt3 at acpi0: bus 40 (C134)
acpiprt4 at acpi0: bus 0 (C003)
acpiec0 at acpi0
acpicpu0 at acpi0: !C3(100@57 mwait.3@0x30), !C2(500@1 mwait.1@0x10), C1(1000@1 mwait.1), PSS
acpicpu1 at acpi0: !C3(100@57 mwait.3@0x30), !C2(500@1 mwait.1@0x10), C1(1000@1 mwait.1), PSS
acpipwrres0 at acpi0: C272, resource for C26D
acpipwrres1 at acpi0: C27A, resource for C273
acpipwrres2 at acpi0: C281, resource for C27B
acpipwrres3 at acpi0: C29D, resource for C29B
acpipwrres4 at acpi0: C1C5, resource for C136
acpipwrres5 at acpi0: C3B9, resource for C3BE
acpipwrres6 at acpi0: C3BA, resource for C3BF
acpipwrres7 at acpi0: C3BB, resource for C3C0
acpipwrres8 at acpi0: C3BC, resource for C3C1
acpipwrres9 at acpi0: C3BD, resource for C3C2
acpitz0 at acpi0: critical temperature is 105 degC
acpitz1 at acpi0: critical temperature is 105 degC
acpitz2 at acpi0: critical temperature is 110 degC
acpitz3 at acpi0: critical temperature is 256 degC
acpitz4 at acpi0: critical temperature is 105 degC
"PNP0A06" at acpi0 not configured
"SMCF010" at acpi0 not configured
"IFX0102" at acpi0 not configured
"PNP0303" at acpi0 not configured
"SYN012F" at acpi0 not configured
"HPQ0004" at acpi0 not configured
"HPQ0006" at acpi0 not configured
acpibat0 at acpi0: C23B model "Primary" serial 44314 2008/08/16 type LIon oem "Hewlett-Packard"
acpibat1 at acpi0: C23A not present
acpiac0 at acpi0: AC unit offline
acpibtn0 at acpi0: C2BB
acpibtn1 at acpi0: C153
"PNP0C32" at acpi0 not configured
"PNP0C14" at acpi0 not configured
"PNP0C0B" at acpi0 not configured
"PNP0C0B" at acpi0 not configured
"PNP0C0B" at acpi0 not configured
"PNP0C0B" at acpi0 not configured
"PNP0C0B" at acpi0 not configured
acpivideo0 at acpi0: C098
acpivout0 at acpivideo0: C1AD
cpu0: Enhanced SpeedStep 2394 MHz: speeds: 2201, 2200, 1600, 1200, 800 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "Intel GM965 Host" rev 0x0c
inteldrm0 at pci0 dev 2 function 0 "Intel GM965 Video" rev 0x0c
drm0 at inteldrm0
intagp0 at inteldrm0
agp0 at intagp0: aperture at 0xd0000000, size 0x10000000
inteldrm0: msi
inteldrm0: 1440x900
wsdisplay0 at inteldrm0 mux 1: console (std, vt100 emulation)
wsdisplay0: screen 1-5 added (std, vt100 emulation)
"Intel GM965 Video" rev 0x0c at pci0 dev 2 function 1 not configured
em0 at pci0 dev 25 function 0 "Intel ICH8 IGP M AMT" rev 0x03: msi, address xx:xx:xx:xx:xx:xx
uhci0 at pci0 dev 26 function 0 "Intel 82801H USB" rev 0x03: apic 1 int 16
uhci1 at pci0 dev 26 function 1 "Intel 82801H USB" rev 0x03: apic 1 int 17
ehci0 at pci0 dev 26 function 7 "Intel 82801H USB" rev 0x03: apic 1 int 18
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
azalia0 at pci0 dev 27 function 0 "Intel 82801H HD Audio" rev 0x03: msi
azalia0: codecs: Analog Devices AD1981HD, Conexant/0x2c06, using Analog Devices AD1981HD
audio0 at azalia0
ppb0 at pci0 dev 28 function 0 "Intel 82801H PCIE" rev 0x03
pci1 at ppb0 bus 8
ppb1 at pci0 dev 28 function 1 "Intel 82801H PCIE" rev 0x03
pci2 at ppb1 bus 16
iwn0 at pci2 dev 0 function 0 "Intel Wireless WiFi Link 4965" rev 0x61: msi, MIMO 2T3R, MoW2, address xx:xx:xx:xx:xx:xx
ppb2 at pci0 dev 28 function 4 "Intel 82801H PCIE" rev 0x03: msi
pci3 at ppb2 bus 40
uhci2 at pci0 dev 29 function 0 "Intel 82801H USB" rev 0x03: apic 1 int 20
uhci3 at pci0 dev 29 function 1 "Intel 82801H USB" rev 0x03: apic 1 int 22
uhci4 at pci0 dev 29 function 2 "Intel 82801H USB" rev 0x03: apic 1 int 18
ehci1 at pci0 dev 29 function 7 "Intel 82801H USB" rev 0x03: apic 1 int 20
usb1 at ehci1: USB revision 2.0
uhub1 at usb1 "Intel EHCI root hub" rev 2.00/1.00 addr 1
ppb3 at pci0 dev 30 function 0 "Intel 82801BAM Hub-to-PCI" rev 0xf3
pci4 at ppb3 bus 2
cbb0 at pci4 dev 6 function 0 "Ricoh 5C476 CardBus" rev 0xb9: apic 1 int 18
cbb1 at pci4 dev 6 function 1 "Ricoh 5C476 CardBus" rev 0xb9: apic 1 int 19
sdhc0 at pci4 dev 6 function 3 "Ricoh 5C822 SD/MMC" rev 0x20: apic 1 int 19
sdhc0: SDHC 1.0, 33 MHz base clock
sdmmc0 at sdhc0: 4-bit
"Ricoh 5C843 MMC" rev 0x10 at pci4 dev 6 function 4 not configured
cardslot0 at cbb0 slot 0 flags 0
cardbus0 at cardslot0: bus 3 device 0 cacheline 0x0, lattimer 0x20
pcmcia0 at cardslot0
cardslot1 at cbb1 slot 1 flags 0
cardbus1 at cardslot1: bus 4 device 0 cacheline 0x0, lattimer 0x20
pcmcia1 at cardslot1
pcib0 at pci0 dev 31 function 0 "Intel 82801HEM LPC" rev 0x03
ahci0 at pci0 dev 31 function 2 "Intel 82801HBM AHCI" rev 0x03: msi, AHCI 1.1
ahci0: port 0: 3.0Gb/s
scsibus1 at ahci0: 32 targets
sd0 at scsibus1 targ 0 lun 0: <ATA, TOSHIBA MK1252GS, LV01> SCSI3 0/direct fixed naa.xxxxxxxxxxxxxxxx
sd0: 114473MB, 512 bytes/sector, 234441648 sectors
usb2 at uhci0: USB revision 1.0
uhub2 at usb2 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb3 at uhci1: USB revision 1.0
uhub3 at usb3 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb4 at uhci2: USB revision 1.0
uhub4 at usb4 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb5 at uhci3: USB revision 1.0
uhub5 at usb5 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb6 at uhci4: USB revision 1.0
uhub6 at usb6 "Intel UHCI root hub" rev 1.00/1.00 addr 1
isa0 at pcib0
isadma0 at isa0
com2 at isa0 port 0x3e8/8 irq 5: ns16550a, 16 byte fifo
pckbc0 at isa0 port 0x60/5 irq 1 irq 12
pckbd0 at pckbc0 (kbd slot)
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
wsmouse0 at pms0 mux 0
wsmouse1 at pms0 mux 0
pms0: Synaptics touchpad, firmware 6.2
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
"RICOH, Bay8Controller" (manufacturer 0x0, product 0x0) at pcmcia1 function 0 not configured
ugen0 at uhub2 port 1 "Broadcom Corp HP Integrated Module" rev 2.00/1.00 addr 2
ugen1 at uhub4 port 2 "AuthenTec Fingerprint Sensor" rev 1.10/6.23 addr 2
vscsi0 at root
scsibus2 at vscsi0: 256 targets
softraid0 at root
scsibus3 at softraid0: 256 targets
sd1 at scsibus3 targ 1 lun 0: <OPENBSD, SR CRYPTO, 006> SCSI2 0/direct fixed
sd1: 112407MB, 512 bytes/sector, 230210922 sectors
root on sd1a (65a23078e3187d9b.a) swap on sd1b dump on sd1b
umass0 at uhub1 port 5 configuration 1 interface 0 "Sony IC RECORDER" rev 2.00/1.00 addr 2
umass0: using ATAPI over Bulk-Only
scsibus4 at umass0: 2 targets, initiator 0
sd2 at scsibus4 targ 1 lun 0: <SONY, IC RECORDER, 2.00> ATAPI 0/direct removable
sd2: 3909MB, 512 bytes/sector, 8007676 sectors
usbdevs:
Controller /dev/usb0:
addr 1: high speed, self powered, config 1, EHCI root hub(0x0000), Intel(0x8086), rev 1.00
port 1 powered
port 2 powered
port 3 powered
port 4 powered
Controller /dev/usb1:
addr 1: high speed, self powered, config 1, EHCI root hub(0x0000), Intel(0x8086), rev 1.00
port 1 powered
port 2 powered
port 3 powered
port 4 powered
port 5 addr 2: high speed, power 500 mA, config 1, IC RECORDER(0x03f2), Sony(0x054c), rev 1.00, iSerialNumber 000000000000
port 6 powered
Controller /dev/usb2:
addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), Intel(0x8086), rev 1.00
port 1 addr 2: full speed, self powered, config 1, HP Integrated Module(0x171d), Broadcom Corp(0x03f0), rev 1.00
port 2 powered
Controller /dev/usb3:
addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), Intel(0x8086), rev 1.00
port 1 powered
port 2 powered
Controller /dev/usb4:
addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), Intel(0x8086), rev 1.00
port 1 powered
port 2 addr 2: full speed, power 100 mA, config 1, Fingerprint Sensor(0x2580), AuthenTec(0x08ff), rev 6.23
Controller /dev/usb5:
addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), Intel(0x8086), rev 1.00
port 1 powered
port 2 powered
Controller /dev/usb6:
addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), Intel(0x8086), rev 1.00
port 1 powered
port 2 powered