6.0-BETA4 #0: firewire problems

Erik Nørgaard norgaard at locolomo.org
Tue Sep 6 14:36:25 PDT 2005


Hi,

Sorry for bugging you. I have a problem with firewire/dv that seems not
to have been noticed on the list, nor is reported. Before I file a PR, I
hope you could help me get better debug information.

System upgraded today to 6.0-BETA4 #0 but it appeared also with BETA3. 
On fortunately, I don't have anoter -STABLE system to try on so I can't 
exclude the problem may be more general.

The firewire device is a Canon MVX200 mini-DV camera. I have just bought
it so I can't exclude this is a problem with the camera rather than the
system.

Problems:

1) If the firewire device is connected on boot, system hangs booting
after identifying disks and before attempting to mount root device.
Once the firewire device is turned off the boot process resumes.

2) Connecting the firewire device, fwcontrol cannot read the DV stream. 
(see output below).

3) The connected firewire device can cause other applications, including 
firefox, thunderbird, mysql or login, to coredump in which case the 
system must be rebooted before it can be restarted.

If I'm missing something obvious, please tell me, I can go beat myself 
up just fine.

Thanks, Erik

System:

FreeBSD charm 6.0-BETA4 FreeBSD 6.0-BETA4 #0:
     Tue Sep  6 21:16:56 CEST 2005
     norgaard at charm:/usr/obj/usr/src/sys/GENERIC  i386

Connecting the firewire device creates the following output (from
/var/log/messages):

fwohci0: BUS reset
fwohci0: node_id=0x8800ffc0, gen=11, non CYCLEMAST ER mode
firewire0: 2 nodes, maxhop <= 1, cable IRM = 0 (me)
fwohci0: txd err= 3 miss Ack err
firewire0: bus_explore node=1 addr=0x400 resp=22 retry=1
fwohci0: txd err= 3 miss Ack err
firewire0: bus_explore node=1 addr=0x400 resp=22 retry=2
fwohci0: txd err= 3 miss Ack err
firewire0: bus_explore node=1 addr=0x400 resp=22 retry=3
fwohci0: txd err= 3 miss Ack err
firewire0: bus_explore node=1 addr=0x400 resp=22 retry=4
firewire0: bus_explore failed for 1 nodes
fwohci0: BUS reset
fwohci0: node_id=0xc800ffc0, gen=12, CYCLEMASTER mode
firewire0: 1 nodes, maxhop <= 0, cable IRM = 0 (me)
fwohci0: BUS reset
fwohci0: node_id=0x8800ffc0, gen=13, non CYCLEMASTER mode
firewire0: 2 nodes, maxhop <= 1, cable IRM = 1

Output from fwcontrol and dvts tools:

Script started on Tue Sep  6 23:00:04 2005
charm# fwcontrol -r
charm# fwcontrol -t
crc_len: 4 generation:7 node_count:2 sid_count:2
id link gap_cnt speed delay cIRM power port0 port1 port2 ini more
00    1       5  S400     0    1   -1W     P     -         1    0
01    1       5  S100     0    1    0W     C     -     -   0    0
charm# fwcontrol -p
=== base register ===
0x01 0x3f 0xe2 0x41 0xcc 0x03 0x00 0x20
Physical_ID:0  R:0  CPS:1
RHB:0  IBR:0  Gap_Count:63
Extended:7 Num_Ports:2
PHY_Speed:2 Delay:1
LCtrl:1 C:1 Jitter:1 Pwr_Class:4
WDIE:0 ISBR:0 CTOI:0 CPSI:0 STOI:0 PEI:0 EAA:1 EMC:1
Max_Legacy_SPD:0 BLINK:0 Bridge:0
Page_Select:1 Port_Select0

=== page 0 port 0 ===
0xf6 0x00 0x00 0x00 0x00 0x00 0x00 0x00
Astat:3 BStat:3 Ch:0 Con:1 RXOK:1 Dis:0
Negotiated_speed:0 PIE:0 Fault:0 Stanby_fault:0 Disscrm:0 B_Only:0
DC_connected:0 Max_port_speed:0 LPP:0 Cable_speed:0
Connection_unreliable:0 Beta_mode:0
Port_error:0x0
Loop_disable:0 In_standby:0 Hard_disable:0

=== page 0 port 1 ===
0xf8 0x00 0x00 0x00 0x00 0x00 0x00 0x00
Astat:3 BStat:3 Ch:1 Con:0 RXOK:0 Dis:0
Negotiated_speed:0 PIE:0 Fault:0 Stanby_fault:0 Disscrm:0 B_Only:0
DC_connected:0 Max_port_speed:0 LPP:0 Cable_speed:0
Connection_unreliable:0 Beta_mode:0
Port_error:0x0
Loop_disable:0 In_standby:0 Hard_disable:0

=== page 1 ===
0x01 0x00 0x00 0x00 0x74 0x00 0x55 0x20
Compliance:1
Vendor_ID:0x000074
Product_ID:0x005520
charm# fwcontrol -c 0
first quad: 0x041ceb3e info_len=4 crc_len=28 crc=0xeb3e(OK)
bus_name: 0x31333934
irmc:1 cmc:1 isc:1 bmc:1 pmc:0
cyc_clk_acc:100 max_rec:10 max_rom:0
generation:3 link_spd:2
EUI64: 00-e0-18-00-03-09-43-39
root_directory: len=0x0005(5) crc=0x8a4a(OK)
0c(I:0c) 0083c0 node_capabilities:
03(I:03) acde48 module_vendor_ID:
81(L:01) 000003 text_leaf: len=7 crc=0x82ed(OK) FreeBSD Project
04(I:04) 0927e2 hardware_version:
81(L:01) 000009 text_leaf: len=9 crc=0x0412(OK) charm

charm# fwcontrol -R test.dv
(EAGAIN)
(EAGAIN)
(EAGAIN)
(EAGAIN)
(EAGAIN)
(EAGAIN)
fwcontrol: unknown format 0x1e
charm# fwcontrol -R test.dv
PAL
0fwcontrol: unknown format 0x1e
charm# fwcontrol -R test.dv
PAL
0fwcontrol: unknown format 0x1e
charm# sysctl hw.firewire.try_bmr=0
hw.firewire.try_bmr: 1 -> 0
charm# fwcontrol -r
charm# fwcontrol -R test.dv
PAL
0fwcontrol: unknown format 0x1e
charm# fwcontrol -R test.dv
(EAGAIN)
(EAGAIN)
(EAGAIN)
(EAGAIN)
(EAGAIN)
(EAGAIN)
fwcontrol: unknown format 0x1e
charm# fwcontrol -u 0 -R test.dv
(EAGAIN)
(EAGAIN)
(EAGAIN)
(EAGAIN)
(EAGAIN)
fwcontrol: unknown format 0x1e
charm# dvrecv test.dv
Found AV/C device
Vendor: Canon
Model: MVX200
waiting for DV data, please press 'play' on the camcorder...
waiting for DV data, please press 'play' on the camcorder...
waiting for DV data, please press 'play' on the camcorder...
waiting for DV data, please press 'play' on the camcorder...
total : -1 frames (0 Bytes)
charm# exit

-- 
Ph: +34.666334818                           web: http://www.locolomo.org
S/MIME Certificate: http://www.locolomo.org/crt/2004071206.crt
Subject ID:  A9:76:7A:ED:06:95:2B:8D:48:97:CE:F2:3F:42:C8:F2:22:DE:4C:B9
Fingerprint: 4A:E8:63:38:46:F6:9A:5D:B4:DC:29:41:3F:62:D3:0A:73:25:67:C2





More information about the freebsd-current mailing list