Subject: VIA USB->IDE bridge?
To: None <netbsd-users@netbsd.org>
From: MLH <mlh@goathill.org>
List: netbsd-users
Date: 02/27/2007 15:09:43
I have StarTech Infosafe USB->IDE drive enclosure with an 80G
Seagate drive in it with one Netbsd ffs partition on it.

When it is plugged in:

Feb 27 14:54:34 kingu /netbsd: umass0 at uhub3 port 2 configuration 2 interface 0
Feb 27 14:54:34 kingu /netbsd: 
Feb 27 14:54:34 kingu /netbsd: umass0: VIA Technologies Inc. USB 2.0 IDE Bridge, rev 2.00/0.04, addr 2
Feb 27 14:54:34 kingu /netbsd: umass0: using ATAPI over Bulk-Only
Feb 27 14:54:34 kingu /netbsd: atapibus1 at umass0: 2 targets
Feb 27 14:54:45 kingu /netbsd: sd0 at atapibus1 drive 0: <\324?q\260\027\351R\024, N\335\017 \201\020*2\035U\244w, \300\257\314\343> disk fixed
Feb 27 14:54:45 kingu /netbsd: sd0: fabricating a geometry
Feb 27 14:54:45 kingu /netbsd: sd0: 1613 GB, 1651824 cyl, 64 head, 32 sec, 512 bytes/sect x 3382936069 sectors

Appears the disklabel isn't being read so is fabricating a very
optimistic disklabel for it.

When I run disklabel on sd0, the process hangs and if I try to kill
it, the machine locks up.

Thoughts?

NetBSD 3.1_STABLE Thu Feb 22 13:51:40 CST 2007
total memory = 1023 MB
avail memory = 992 MB
BIOS32 rev. 0 found at 0xf0010
mainbus0 (root)
cpu0 at mainbus0: (uniprocessor)
cpu0: AMD Unknown K7 (Athlon) (686-class), 2203.02 MHz, id 0xf7a
cpu0: features 78bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR>
cpu0: features 78bfbff<PGE,MCA,CMOV,PAT,PSE36,MPC,MMX>
cpu0: features 78bfbff<FXSR,SSE,SSE2>
cpu0: "AMD Athlon(tm) 64 Processor 3500+"
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
pchb0 at pci0 dev 0 function 0
pchb0: VIA Technologies product 0x0282 (rev. 0x00)
agp0 at pchb0: aperture at 0xe4000000, size 0xe600000
pchb1 at pci0 dev 0 function 1
pchb1: VIA Technologies product 0x1282 (rev. 0x00)
pchb2 at pci0 dev 0 function 2
pchb2: VIA Technologies product 0x2282 (rev. 0x00)
pchb3 at pci0 dev 0 function 3
pchb3: VIA Technologies product 0x3282 (rev. 0x00)
pchb4 at pci0 dev 0 function 4
pchb4: VIA Technologies product 0x4282 (rev. 0x00)
pchb5 at pci0 dev 0 function 7
pchb5: VIA Technologies product 0x7282 (rev. 0x00)
ppb0 at pci0 dev 1 function 0: VIA Technologies product 0xb188 (rev. 0x00)
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled
vga1 at pci1 dev 0 function 0: ATI Technologies product 0x4150 (rev. 0x00)
wsdisplay0 at vga1 kbdmux 1: console (80x25, vt100 emulation)
wsmux1: connecting to wsdisplay0
ATI Technologies product 0x4170 (miscellaneous display) at pci1 dev 0 function 1 not configured
fwohci0 at pci0 dev 7 function 0: VIA Technologies VT6306 IEEE 1394 Host Controller (rev. 0x80)
fwohci0: interrupting at irq 11
fwohci0: OHCI 1.0, 00:11:d8:00:00:1b:42:d7, 400Mb/s, 2048 max_rec, 4 ir_ctx, 8 it_ctx
skc0 at pci0 dev 10 function 0: irq 10
skc0: interrupt moderation is 0 us
skc0: Marvell Yukon Lite Gigabit Ethernet rev. (0x9)
sk0 at skc0 port A: Ethernet address 00:11:d8:a9:d9:46
makphy0 at sk0 phy 0: Marvell 88E1011 Gigabit PHY, rev. 5
makphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
ahc1 at pci0 dev 12 function 0: Adaptec 2940 SCSI adapter
ahc1: interrupting at irq 10
ahc1: aic7870: Single Channel A, SCSI Id=0, 16/253 SCBs
scsibus0 at ahc1: 8 targets, 8 luns per target
viaide0 at pci0 dev 15 function 0
viaide0: VIA Technologies VT8237 SATA Controller (rev. 0x80)
viaide0: bus-master DMA support present
viaide0: primary channel wired to native-PCI mode
viaide0: using irq 10 for native-PCI interrupt
atabus0 at viaide0 channel 0
viaide0: secondary channel wired to native-PCI mode
atabus1 at viaide0 channel 1
viaide1 at pci0 dev 15 function 1
viaide1: VIA Technologies VT8237 ATA133 controller
viaide1: bus-master DMA support present
viaide1: primary channel configured to compatibility mode
viaide1: primary channel interrupting at irq 14
atabus2 at viaide1 channel 0
viaide1: secondary channel configured to compatibility mode
viaide1: secondary channel interrupting at irq 15
atabus3 at viaide1 channel 1
uhci0 at pci0 dev 16 function 0: VIA Technologies VT83C572 USB Controller (rev. 0x81)
uhci0: interrupting at irq 11
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: VIA Technologies UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1 at pci0 dev 16 function 1: VIA Technologies VT83C572 USB Controller (rev. 0x81)
uhci1: interrupting at irq 11
usb1 at uhci1: USB revision 1.0
uhub1 at usb1
uhub1: VIA Technologies UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uhci2 at pci0 dev 16 function 2: VIA Technologies VT83C572 USB Controller (rev. 0x81)
uhci2: interrupting at irq 10
usb2 at uhci2: USB revision 1.0
uhub2 at usb2
uhub2: VIA Technologies UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
uhci3 at pci0 dev 16 function 3: VIA Technologies VT83C572 USB Controller (rev. 0x81)
uhci3: interrupting at irq 10
usb3 at uhci3: USB revision 1.0
uhub3 at usb3
uhub3: VIA Technologies UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub3: 2 ports with 2 removable, self powered
pcib0 at pci0 dev 17 function 0
pcib0: VIA Technologies VT8237 (Apollo KT600) PCI-ISA Bridge (rev. 0x00)
auvia0 at pci0 dev 17 function 5: VIA Technologies VT8237 AC'97 Audio (rev 0x60)
auvia0: interrupting at irq 5
auvia0: ac97: Avance Logic ALC850 codec; no 3D stereo
auvia0: ac97: ext id 9c6<AC97_23,LDAC,SDAC,CDAC,SPDIF,DRA>
audio0 at auvia0: full duplex, independent
pchb6 at pci0 dev 24 function 0
pchb6: Advanced Micro Devices AMD64 HyperTransport configuration (rev. 0x00)
pchb7 at pci0 dev 24 function 1
pchb7: Advanced Micro Devices AMD64 Address Map configuration (rev. 0x00)
pchb8 at pci0 dev 24 function 2
pchb8: Advanced Micro Devices AMD64 DRAM configuration (rev. 0x00)
pchb9 at pci0 dev 24 function 3
pchb9: Advanced Micro Devices AMD64 Miscellaneous configuration (rev. 0x00)
isa0 at pcib0
...