Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Jul 2005 10:50:07 +0200
From:      =?ISO-8859-1?Q?Erik_N=F8rgaard?= <norgaard@locolomo.org>
To:        FreeBSD Questions <questions@freebsd.org>
Subject:   Firewire setup/test
Message-ID:  <42DE103F.3000100@locolomo.org>

next in thread | raw e-mail | index | archive | help
Hi,

I want to buy a miniDV camera, transfer the DV stream using firewire. 
Now, I'm really newbie on firewire devices and DV, I have none so far, 
and I'd really like to test and see it work before throwing out $1000.

I know, this is probably one of those questions that I would answer by 
"go try, see if it works" but I'd rather not get embarrased in the shop 
trying to get silly permissions or other things right :-)

So, how make sure that I can access the firewire device as ordinary user 
  and test with gvdrecv, kino or other programs? Do I need to configure 
the device as root before I switch to ordinary user privileges? how?

Thanks! Erik

Here's my setup:

Kernel config file:
# FireWire support
device          firewire    # FireWire bus code
device          fwe         # Ethernet over FireWire (non-standard!)
#device          sbp        # SCSI over FireWire (Requires scbus and da)
device          fwip        # IP over FireWire (rfc2734 and rfc3146)

# dmesg
fwohci0: <Ricoh R5C552> mem 0xe5800000-0xe58007ff irq 11 at device 10.2
     on pci0
fwohci0: [GIANT-LOCKED]
fwohci0: OHCI version 1.0 (ROM=1)
fwohci0: No. of Isochronous channels is 4.
fwohci0: EUI64 00:e0:18:00:03:09:43:39
fwohci0: Phy 1394a available S400, 2 ports.
fwohci0: Link S400, max_rec 2048 bytes.
firewire0: <IEEE1394(FireWire) bus> on fwohci0
fwe0: <Ethernet over FireWire> on firewire0
if_fwe0: Fake Ethernet address: 02:e0:18:09:43:39
fwe0: Ethernet address: 02:e0:18:09:43:39
fwip0: <IP over FireWire> on firewire0
fwip0: Firewire address: 00:e0:18:00:03:09:43:39 @ 0xfffe00000000, S400,
     maxrec 2048
fwohci0: Initiate bus reset
fwohci0: node_id=0xc800ffc0, gen=1, CYCLEMASTER mode
firewire0: 1 nodes, maxhop <= 0, cable IRM = 0 (me)
firewire0: bus manager 0 (me)

# sysctl -a|grep firewire
      firewire    27    23K       -       29  16,32,64,512,1024,2048,4096
debug.firewire_debug: 0
hw.firewire.try_bmr: 1
hw.firewire.hold_count: 3
hw.firewire.fwmem.eui64_hi: 0
hw.firewire.fwmem.eui64_lo: 0
hw.firewire.fwmem.speed: 2
hw.firewire.fwe.stream_ch: 1
hw.firewire.fwe.tx_speed: 2
hw.firewire.fwe.rx_queue_len: 128
hw.firewire.fwip.rx_queue_len: 128
dev.firewire.0.%desc: IEEE1394(FireWire) bus
dev.firewire.0.%driver: firewire
dev.firewire.0.%parent: fwohci0
dev.fwe.0.%parent: firewire0
dev.fwip.0.%parent: firewire0

# sysctl -a | grep fwoh
dev.fwohci.0.%desc: Ricoh R5C552
dev.fwohci.0.%driver: fwohci
dev.fwohci.0.%location: slot=10 function=2 handle=\_SB_.PCI0.IE94
dev.fwohci.0.%pnpinfo: vendor=0x1180 device=0x0552 subvendor=0x1043
     subdevice=0x1687 class=0x0c0010
dev.fwohci.0.%parent: pci0
dev.firewire.0.%parent: fwohci0

# ls -l /dev
lrwxr-xr-x  1 root      wheel            5  1 Jan  1970 fw0 -> fw0.0
crw-rw----  1 root      operator   15,  32 20 Jul 08:14 fw0.0
crw-rw----  1 root      operator   15,  96 20 Jul 08:14 fw0.1
crw-rw----  1 root      operator   15,  97 20 Jul 08:14 fw0.2
crw-rw----  1 root      operator   15,  98 20 Jul 08:14 fw0.3
lrwxr-xr-x  1 root      wheel            8  1 Jan  1970 fwmem0 ->
     fwmem0.0
crw-rw----  1 root      operator   15,  33 20 Jul 08:14 fwmem0.0

There's no firewire0 device, but this may be because I have nothing 
attached.

-- 
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?42DE103F.3000100>