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

FireWire drive



Hello list,

Some time ago I asked some advice about buying an external FireWire
drive for use with OpenBSD. I ended up buying a LaCie FW800&USB2.0
drive, and I'm trying to get it to work in FireWire mode (400Mbps). It
works fine in USB mode, but USB1.1 is rather slow ;)

My FireWire controller seems to be supported (full dmesg below):
fwohci0 at pci0 dev 13 function 0 "Texas Instruments TSB12LV23 FireWire"
rev 0x00: irq 10
fwohci0: OHCI 1.0, 08:00:28:56:00:00:09:93, 400Mb/s, 2048 max_rec, 4
iso_ctx

Also, when I attach the drive, something happens:
fwnode0 at fwohci0 Node 1: UID 00:d0:4b:38:16:05:b8:c9

>From someone else's dmesg, I saw that normally, fwnode0 should report
the link speed it's using next, and then attach a scsibus, etc.
So maybe there's some trouble negotiating the link speed because the
drive is trying 800Mbps, which the ieee1394 code probably hasn't heard of
yet.

I've enabled all FireWire-related debug-options in my kernel (config:
see below), but I'm still not getting any extra messages. Is there a
way I can gather more information about what's going on that might help
development?

Also, would it help to move this machine to -current. I was planning an
upgrade when 3.4 is out, but if a snapshot might help, I'm prepared to
upgrade now.

(and is misc@ the right place for this kind of stuff, or does this belong
on tech@ ?)

Sebastiaan


dmesg:

OpenBSD 3.3 (RABBIT) #1: Fri Aug 29 14:34:58 CEST 2003
    rabbit@rabbit.rabbit.local:/usr/src/sys/arch/i386/compile/RABBIT
cpu0: Intel Pentium III (Coppermine) ("GenuineIntel" 686-class) 852 MHz
cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SYS,MTRR,PGE,MCA,CMOV,PAT,PSE36,SER,MMX,FXSR,SIMD
real mem  = 268021760 (261740K)
avail mem = 242606080 (236920K)
using 3297 buffers containing 13504512 bytes (13188K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(42) BIOS, date 09/10/99, BIOS32 rev. 0 @ 0xeb1d0
apm0 at bios0: Power Management spec V1.2
apm0: battery life expectancy 100%
apm0: AC on, battery charge high, estimated 546:06 hours
pcibios0 at bios0: rev. 2.1 @ 0xe8000/0x770
pcibios0: PCI IRQ Routing Table rev. 1.0 @ 0xfe840/160 (8 entries)
pcibios0: PCI Interrupt Router at 000:07:0 ("Intel 82371FB PCI-ISA" rev 0x00)
pcibios0: PCI bus #3 is the last bus
bios0: ROM list: 0xc0000/0x10000 0xe2000/0x1000 0xe3000/0x1000 0xe4000/0xc00!
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 "Intel 82443BX PCI-AGP" rev 0x03
ppb0 at pci0 dev 1 function 0 "Intel 82443BX AGP" rev 0x03
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 "ATI Mach64 LB" rev 0xdc
wsdisplay0 at vga1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
pcib0 at pci0 dev 7 function 0 "Intel 82371AB PIIX4 ISA" rev 0x02
pciide0 at pci0 dev 7 function 1 "Intel 82371AB IDE" rev 0x01: DMA, channel 0 wired to compatibility, channel 1 wired to compatibility
wd0 at pciide0 channel 0 drive 0: <FUJITSU MHN2200AT>
wd0: 16-sector PIO, LBA, 19077MB, 16383 cyl, 16 head, 63 sec, 39070080 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
atapiscsi0 at pciide0 channel 1 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: <LG, CD-ROM CRN-8241B, 1.05> SCSI0 5/cdrom removable
cd0(pciide0:1:0): using PIO mode 4, DMA mode 2
uhci0 at pci0 dev 7 function 2 "Intel 82371AB USB" rev 0x01: irq 10
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: vendor 0x0000 UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
"Intel 82371AB Power Mgmt" rev 0x03 at pci0 dev 7 function 3 not configured
cbb0 at pci0 dev 10 function 0 "Texas Instruments PCI1225 PCI-CardBus" rev 0x01: irq 10
cbb1 at pci0 dev 10 function 1 "Texas Instruments PCI1225 PCI-CardBus" rev 0x01: irq 10
fwohci0 at pci0 dev 13 function 0 "Texas Instruments TSB12LV23 FireWire" rev 0x00: irq 10
fwohci0: OHCI 1.0, 08:00:28:56:00:00:09:93, 400Mb/s, 2048 max_rec, 4 iso_ctx
maestro0 at pci0 dev 16 function 0 "ESS Maestro 2E" rev 0x10: irq 5
ac97: codec id 0x83847609 (SigmaTel STAC9721/23)
ac97: codec features 18 bit DAC, 18 bit ADC, SigmaTel 3D
audio0 at maestro0
isa0 at pcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: <PC speaker>
sysbeep0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
npx0 at isa0 port 0xf0/16: using exception 16
pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
pccom1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
cardslot0 at cbb0 slot 0 flags 0
cardbus0 at cardslot0: bus 2 device 0 cacheline 0x0, lattimer 0x20
pcmcia0 at cardslot0
cardslot1 at cbb1 slot 1 flags 0
cardbus1 at cardslot1: bus 3 device 0 cacheline 0x0, lattimer 0x20
pcmcia1 at cardslot1
biomask c440 netmask c440 ttymask d4c2
pctr: 686-class user-level performance counters enabled
mtrr: Pentium Pro MTRR support
dkcsum: wd0 matched BIOS disk 80
root on wd0a
rootdev=0x0 rrootdev=0x300 rawdev=0x302
fw at fwohci0 not configured
fwnode0 at fwohci0 Node 1: UID 00:d0:4b:38:16:05:b8:c9



diff between custom kernel and GENERIC:

--- /usr/src/sys/arch/i386/conf/GENERIC	Mon Mar 10 07:37:18 2003
+++ /usr/src/sys/arch/i386/conf/RABBIT	Wed Aug 13 16:45:30 2003
@@ -17,7 +17,7 @@
 option		USER_PCICONF	# user-space PCI configuration

 #option		VM86		# Virtual 8086 emulation
-#option		USER_LDT	# user-settable LDT; see i386_set_ldt(2)
+option		USER_LDT	# user-settable LDT; see i386_set_ldt(2)
 option		APERTURE	# in-kernel aperture driver for XFree86

 #option		KGDB		# Remote debugger support; exclusive of DDB
@@ -134,19 +134,19 @@
 ugen*	at uhub? port ? configuration ? # USB Generic driver

 # FireWire Controllers
-#fwohci*	at pci? dev ? function ?	# PCI FireWire adapter
-#fwohci*	at cardbus? dev ? function ?	# CardBus FireWire adapter
+fwohci*	at pci? dev ? function ?	# PCI FireWire adapter
+fwohci*	at cardbus? dev ? function ?	# CardBus FireWire adapter

-#fwnode*	at fwbus? idhi ? idlo ?
+fwnode*	at fwbus? idhi ? idlo ?

-#fwscsi*	at fwnode?			# SCSI over FireWire
-#scsibus* at fwscsi?
+fwscsi*	at fwnode?			# SCSI over FireWire
+scsibus* at fwscsi?

-#option	FWOHCI_DEBUG
-#option	FWNODE_DEBUG
-#option	P1212_DEBUG
-#option	SBP2_DEBUG
-#option	FWSCSI_DEBUG
+option	FWOHCI_DEBUG
+option	FWNODE_DEBUG
+option	P1212_DEBUG
+option	SBP2_DEBUG
+option	FWSCSI_DEBUG

 puc*	at pci?				# PCI "universal" communication device