From: Nate Lawson [EMAIL PROTECTED]
To: Igor B. Bykhalo [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Wednesday, August 13, 2003 2:56 AM
Subject: Re: A-DATA flash drive: some oddities and how to add USB quirks
Looking at your dmesg output, I see that your drive is reporting that it's
not ready. However, your dmesg doesn't show any actual failure.
Instead it looks like CAM retries and then succeeds in probing the device.
Please report the exact failure behavior and the dmesg of any errors.
-Nate
Failures:
In attemp to mount:
Script started on Wed Aug 13 15:48:11 2003
goshik# mount -v -t msdos /dev/da0s1 /mnt
msdos: /dev/da0s1: Device not configured
goshik# exit
exit
Script done on Wed Aug 13 15:48:26 2003
Accompanied by console messages:
Aug 13 15:48:23 goshik /kernel: (da0:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0
0 0 0 0 0 0
Aug 13 15:48:23 goshik /kernel: (da0:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0
0 0 0 0 0 0
Aug 13 15:48:23 goshik /kernel: (da0:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0
0 0 0 0 0 0
Aug 13 15:48:23 goshik /kernel: (da0:umass-sim0:0:0:0): NOT READY asc:3a,0
Aug 13 15:48:23 goshik /kernel: (da0:umass-sim0:0:0:0): Medium not present
Some usb and camcontrol output:
Script started on Wed Aug 13 15:39:37 2003
goshik# usbdevs -v
Controller /dev/usb0:
addr 1: self powered, config 1, UHCI root hub(0x), VIA(0x), rev 1.00
port 1 addr 2: self powered, config 1, USB Embedded Hub(0x2515), A-DATA Technology
Inc.(0x067b), rev 0.01
port 1 addr 3: self powered, config 1, USB Mass Storage Device(0x2517), A-DATA
Technology Inc.(0x067b), rev 0.01
port 2 powered
goshik# camcontrol rescan all
Re-scan of bus 0 was successful
goshik# camcontrol devlist -v
scbus0 on umass-sim0 bus 0:
A-DATA Flash 2.0 P1.0at scbus0 target 0 lun 0 (pass0,da0)
scbus-1 on xpt0 bus 0:
at scbus-1 target -1 lun -1 (xpt0)
goshik# camcontrol inquiry da0
pass0: A-DATA Flash 2.0 P1.0 Removable Direct Access SCSI-0 device
pass0: Serial Number
pass0: 650KB/s transfers
goshik# exit
exit
Script done on Wed Aug 13 15:40:25 2003
Camcontrol commands are accompanied by console messages:
Aug 13 15:40:03 goshik /kernel: (probe0:umass-sim0:0:0:0): TEST UNIT READY. CDB: 0 0
0 0 0 0
Aug 13 15:40:03 goshik /kernel: (probe0:umass-sim0:0:0:0): INQUIRY. CDB: 12 0 0 0 24 0
Aug 13 15:40:03 goshik /kernel: (probe0:umass-sim0:0:0:0): INQUIRY. CDB: 12 1 80 0
ff 0
Aug 13 15:40:18 goshik /kernel: (pass0:umass-sim0:0:0:0): INQUIRY. CDB: 12 0 0 0 24 0
Aug 13 15:40:18 goshik /kernel: (pass0:umass-sim0:0:0:0): INQUIRY. CDB: 12 1 80 0 ff 0
From dmesg (boot -v before above commands):
Copyright (c) 1992-2003 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD 4.8-STABLE #31: Wed Aug 13 14:43:41 MSD 2003
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/GO
Calibrating clock(s) ... TSC clock: 1334887190 Hz, i8254 clock: 1193117 Hz
Timecounter i8254 frequency 1193117 Hz
CPU: AMD Athlon(tm) XP 1500+ (1334.89-MHz 686-class CPU)
Origin = AuthenticAMD Id = 0x662 Stepping = 2
Features=0x383f9ffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE
AMD Features=0xc048MP,AMIE,DSP,3DNow!
Data TLB: 32 entries, fully associative
Instruction TLB: 16 entries, fully associative
L1 data cache: 64 kbytes, 64 bytes/line, 1 lines/tag, 2-way associative
L1 instruction cache: 64 kbytes, 64 bytes/line, 1 lines/tag, 2-way associative
L2 internal cache: 256 kbytes, 64 bytes/line, 1 lines/tag, 8-way associative
real memory = 268369920 (262080K bytes)
Physical memory chunk(s):
0x01000 - 0x9, 651264 bytes (159 pages)
0x000369000 - 0x00ffe7fff, 264761344 bytes (64639 pages)
config en apm0
config di psm0
config di ppc0
config q
avail memory = 257847296 (251804K bytes)
bios32: Found BIOS32 Service Directory header at 0xc00faf90
bios32: Entry = 0xfb400 (c00fb400) Rev = 0 Len = 1
pcibios: PCI BIOS entry at 0xb430
pnpbios: Found PnP BIOS data at 0xc00fbef0
pnpbios: Entry = f:bf20 Rev = 1.0
Other BIOS signatures found:
ACPI: 000f66f0
Preloaded elf kernel kernel at 0xc0342000.
Preloaded userconfig_script /boot/kernel.conf at 0xc03420a8.
Preloaded elf module vesa.ko at 0xc03420f8.
Preloaded elf module vn.ko at 0xc0342194.
Preloaded elf module if_ef.ko at 0xc0342230.
Preloaded elf module if_sis.ko at 0xc03422d0.
Preloaded elf module miibus.ko at 0xc0342370.
Preloaded elf module snd_via8233.ko at 0xc0342410.
Preloaded elf module snd_pcm.ko at 0xc03424b4.
Preloaded elf module usb.ko at 0xc0342554.
Preloaded elf module ugen.ko at 0xc03425f0.
Preloaded elf module umass.ko at 0xc034268c.
Preloaded elf module snp.ko at 0xc034272c.
[...]
uhci0: VIA 83C572 USB controller port 0xd800-0xd81f irq 12 at device 17.2 on pci0
usb0: VIA 83C572 USB controller