LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-15-2010, 11:32 PM   #1
vtoal
LQ Newbie
 
Registered: Mar 2010
Posts: 17

Rep: Reputation: 0
Firewire, DV Red Hat worskstation 5.5


Having trouble with my digital video camera and my Linux Red Hat workstation.
When I attache my Canon ZR50 to my laptop via firewire the camera shows me [DV IN] (which is normal as far as I remember) but the device does not show up on my workstation.
lspci shows the firewire port as active but I never get an entry in /dev/fw* ... so I am not sure if my laptop has an issue or my camera.
I have not used it in a while and the last time I captured video from it was 2-3 years back when I still used Windows (different PC from what I have now)

Any idea where I can start digging to get to the bottom of this? I see no error in /var/log/messages ... a bit of a mystery.

Details: Lenovo T61p
OS: Red Hat 2.6.18-194.11.1.el5PAE

lspci output
00:00.0 Host bridge: Intel Corporation Mobile PM965/GM965/GL960 Memory Controller Hub (rev 0c)
00:01.0 PCI bridge: Intel Corporation Mobile PM965/GM965/GL960 PCI Express Root Port (rev 0c)
00:19.0 Ethernet controller: Intel Corporation 82566MM Gigabit Network Connection (rev 03)
00:1a.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #4 (rev 03)
00:1a.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #5 (rev 03)
00:1a.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #2 (rev 03)
00:1b.0 Audio device: Intel Corporation 82801H (ICH8 Family) HD Audio Controller (rev 03)
00:1c.0 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 1 (rev 03)
00:1c.1 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 2 (rev 03)
00:1c.2 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 3 (rev 03)
00:1c.3 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 4 (rev 03)
00:1c.4 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 5 (rev 03)
00:1d.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #1 (rev 03)
00:1d.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #2 (rev 03)
00:1d.2 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #3 (rev 03)
00:1d.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #1 (rev 03)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev f3)
00:1f.0 ISA bridge: Intel Corporation 82801HBM (ICH8M-E) LPC Interface Controller (rev 03)
00:1f.1 IDE interface: Intel Corporation 82801HBM/HEM (ICH8M/ICH8M-E) IDE Controller (rev 03)
00:1f.2 SATA controller: Intel Corporation 82801HBM/HEM (ICH8M/ICH8M-E) SATA AHCI Controller (rev 03)
00:1f.3 SMBus: Intel Corporation 82801H (ICH8 Family) SMBus Controller (rev 03)
01:00.0 VGA compatible controller: nVidia Corporation Quadro FX 570M (rev a1)
03:00.0 Network controller: Intel Corporation PRO/Wireless 4965 AG or AGN [Kedron] Network Connection (rev 61)
15:00.0 CardBus bridge: Ricoh Co Ltd RL5c476 II (rev ba)
15:00.1 FireWire (IEEE 1394): Ricoh Co Ltd R5C832 IEEE 1394 Controller (rev 04)
15:00.2 SD Host controller: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter (rev 21)
15:00.3 System peripheral: Ricoh Co Ltd R5C843 MMC Host Controller (rev 11)
15:00.4 System peripheral: Ricoh Co Ltd R5C592 Memory Stick Bus Host Adapter (rev 11)
15:00.5 System peripheral: Ricoh Co Ltd xD-Picture Card Controller (rev 11)
 
Old 08-16-2010, 08:56 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
Post the output of the lsmod command. This will tell us what if any of the firewire modules are being loaded.
You need:
raw1394
dv1394
 
1 members found this post helpful.
Old 08-16-2010, 09:30 AM   #3
vtoal
LQ Newbie
 
Registered: Mar 2010
Posts: 17

Original Poster
Rep: Reputation: 0
Thanks, I'll try that this evening when I get back home to my laptop - appreciate the hint!
 
Old 08-16-2010, 05:08 PM   #4
vtoal
LQ Newbie
 
Registered: Mar 2010
Posts: 17

Original Poster
Rep: Reputation: 0
looks like it is not loading those modules - here the output below. I'll see if google helps me find a solution, any hint how to prceed from here woudl be appreciated!


# lsmod
Module Size Used by
autofs4 29253 3
hidp 23105 2
rfcomm 42585 0
l2cap 29633 10 hidp,rfcomm
bluetooth 53925 5 hidp,rfcomm,l2cap
vmnet 58708 13
vmblock 20512 3
vsock 55456 0
vmci 62560 1 vsock
vmmon 73536 0
lockd 63337 0
sunrpc 146685 2 lockd
ip_conntrack_ftp 11569 0
ip_conntrack_netbios_ns 6977 0
ipt_REJECT 9664 1
xt_state 6209 14
ip_conntrack 53281 3 ip_conntrack_ftp,ip_conntrack_netbios_ns,xt_state
nfnetlink 10713 1 ip_conntrack
iptable_filter 7105 1
ip_tables 17029 1 iptable_filter
ip6t_REJECT 9409 1
xt_tcpudp 7105 34
ip6table_filter 6849 1
ip6_tables 18053 1 ip6table_filter
x_tables 17349 6 ipt_REJECT,xt_state,ip_tables,ip6t_REJECT,xt_tcpudp,ip6_tables
cpufreq_ondemand 12493 1
acpi_cpufreq 13897 1
dm_multipath 25421 0
scsi_dh 12097 1 dm_multipath
video 21193 0
thinkpad_acpi 56929 0
backlight 10049 2 video,thinkpad_acpi
sbs 18533 0
power_meter 16461 0
hwmon 7365 2 thinkpad_acpi,power_meter
i2c_ec 9025 1 sbs
dell_wmi 8401 0
wmi 12137 1 dell_wmi
button 10705 0
battery 13637 0
asus_acpi 19289 0
ac 9157 0
ipv6 270433 27 ip6t_REJECT
xfrm_nalgo 13381 1 ipv6
parport_pc 29157 0
lp 15849 0
parport 37513 2 parport_pc,lp
snd_hda_intel 472337 2
snd_seq_dummy 7877 0
snd_seq_oss 32577 0
snd_seq_midi_event 11073 1 snd_seq_oss
snd_seq 49713 5 snd_seq_dummy,snd_seq_oss,snd_seq_midi_event
joydev 13185 0
snd_seq_device 11725 3 snd_seq_dummy,snd_seq_oss,snd_seq
nvidia 9972196 32
snd_pcm_oss 42817 0
snd_mixer_oss 19009 2 snd_pcm_oss
snd_pcm 72261 2 snd_hda_intel,snd_pcm_oss
sg 36573 0
testmgr_cipher 6849 0
testmgr 52337 1 testmgr_cipher
aead 11841 1 testmgr
crypto_blkcipher 17601 1 testmgr
crypto_algapi 22849 3 testmgr,aead,crypto_blkcipher
crypto_api 12609 5 xfrm_nalgo,testmgr,aead,crypto_blkcipher,crypto_algapi
snd_timer 24517 2 snd_seq,snd_pcm
arc4 6209 2
snd_page_alloc 14281 2 snd_hda_intel,snd_pcm
serio_raw 10693 0
snd_hwdep 12869 1 snd_hda_intel
snd 55749 11 snd_hda_intel,snd_seq_oss,snd_seq,snd_seq_device,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_timer,snd_hwd ep
soundcore 11553 2 snd
iwlagn 108993 0
iwlcore 109125 1 iwlagn
sdhci 21337 0
i2c_i801 11725 0
mac80211 139073 2 iwlagn,iwlcore
mmc_core 27585 1 sdhci
e1000e 117025 0
pcspkr 7105 0
i2c_core 24001 3 i2c_ec,nvidia,i2c_i801
cfg80211 141449 3 iwlagn,iwlcore,mac80211
rfkill 19797 1 cfg80211
wireless_compat 5825 2 cfg80211,rfkill
dm_raid45 67145 0
dm_message 6977 1 dm_raid45
dm_region_hash 15681 1 dm_raid45
dm_mem_cache 9537 1 dm_raid45
dm_snapshot 23141 0
dm_zero 6209 0
dm_mirror 24393 0
dm_log 14657 3 dm_raid45,dm_region_hash,dm_mirror
dm_mod 63225 11 dm_multipath,dm_raid45,dm_snapshot,dm_zero,dm_mirror,dm_log
usb_storage 80673 0
ata_piix 23621 0
ahci 35145 2
libata 157445 2 ata_piix,ahci
sd_mod 25281 3
scsi_mod 141973 5 scsi_dh,sg,usb_storage,libata,sd_mod
ext3 125513 3
jbd 57321 1 ext3
uhci_hcd 25549 0
ohci_hcd 25193 0
ehci_hcd 34125 0
 
Old 08-16-2010, 06:02 PM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
You can load them via the modprobe command. i.e.
modprobe ohci1394
modprobe raw1394
modprobe dv1394
modprove video1394

If all goes well you will not see any messages. The two applications that I have used in the past are dvgrab and kino to download video from the camera. If all that works you can add the modules to the /etc/modprobe.conf file.
 
Old 08-16-2010, 06:18 PM   #6
vtoal
LQ Newbie
 
Registered: Mar 2010
Posts: 17

Original Poster
Rep: Reputation: 0
I don't seem to have those modules. I checked and have raw1394.i386 inswtalled so I uninstalled it and re-installed .. no change:

# modprobe ohci1394
FATAL: Module ohci1394 not found.
# modprobe raw1394
FATAL: Module raw1394 not found.
# modprobe dv1394
FATAL: Module dv1394 not found.
# modprobe video1394
FATAL: Module video1394 not found.

I looked in the /lib/modules/2.6.18-194.11.1.el5PAE/kernel/drivers nd could not find any of the modules, just the firewire folder that contains the firewire-core.ko firewire-ohci.ko firewire-sbp2.ko modules.

I also looked in the left over kernel folders /2.6.18-194.3.1.el5PAE and /2.6.18-194.8.1.el5PAE and there was nothing there either. BTW - I never know .. can I ge rid of those old kernel folders or do I need to leave them hanging around? Unrelated to my current prpblem but I want to tidy up is necessary.
 
Old 08-17-2010, 07:28 AM   #7
vtoal
LQ Newbie
 
Registered: Mar 2010
Posts: 17

Original Poster
Rep: Reputation: 0
I found a firewire blacklist int eh system and commented the firewire out and restarted. I am kind assuming I might have to re-compile the kernel? Not sure, anybody who can point me in the right direction?

Thanks!
 
Old 08-17-2010, 07:40 AM   #8
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
Interesting. The new firewire stack did not get released until 2.6.31 so I assumed your kernel was still using the old stuff. firewire-core, firewire-ochi and firewire-sbp2 are the new modules.
 
Old 08-17-2010, 10:34 AM   #9
vtoal
LQ Newbie
 
Registered: Mar 2010
Posts: 17

Original Poster
Rep: Reputation: 0
aha - so that means the modules I need to start with modprobe would then be these three firewire-core.ko firewire-ohci.ko firewire-sbp2.ko modules? I'll give that a wiz tonight at home and see if dvgrab works ... I should have though of trying that last night but it was LATE last night and I was burnt.

Thanks!!
 
Old 08-17-2010, 04:41 PM   #10
vtoal
LQ Newbie
 
Registered: Mar 2010
Posts: 17

Original Poster
Rep: Reputation: 0
SUCCESS!
started the modules

# modprobe firewire-core
# modprobe firewire-ohci
# modprobe firewire-sbp2

checked with lsmod
# lsmod
Module Size Used by
firewire_sbp2 20173 0
firewire_ohci 26057 0
firewire_core 43465 2 firewire_sbp2,firewire_ohci


started dvgrab ..... and am now currently capturing video on my machine

THANKS!
 
Old 09-26-2014, 12:38 PM   #11
Tonystark
LQ Newbie
 
Registered: Jul 2013
Posts: 21

Rep: Reputation: Disabled
Not working in opencv

I tried the above and I can see the modules running. I am able to read the video from my flea2 camera connected through firewire , using Coriander. However, when I use this simple code from opencv, the camera is not being detected.

#include "/home/iiith/opencv-2.4.9/include/opencv/cv.h"
#include "/home/iiith/opencv-2.4.9/include/opencv/highgui.h"
#include "cxcore.h"
#include <iostream>

using namespace cv;
using namespace std;

int main(int,char**)
{
VideoCapture cap(0);
if(!cap.isOpened())
cout<<"Camera not detected"<<endl;
}

The output is always that the camera is not detected. Considering the value of the variable can be wrong, I even tried displaying the image from the frame and I got an error saying empty image and thus an error thrown by the Mat funtion. Can you please help me and tell me how to make it work in Opencv? Thanks in advance.
 
  


Reply

Tags
dv, dvgrab, firewire, ieee1394



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Red Hat Summit 2007, Day 2: Red Hat Exchange and interesting presentations LXer Syndicated Linux News 0 05-11-2007 07:32 PM
Red Hat Enterprise ES 3 or 4 and Firewire Mc2102 Linux - Enterprise 5 03-27-2005 09:15 AM
External Firewire Drive Mount on Red Hat 9 Problem anilnatha Linux - Hardware 5 12-17-2003 01:02 PM
Red Hat 8.0, Firewire, Booting alexbarnes Linux - Distributions 3 02-23-2003 12:09 AM
Red Hat 8: Firewire Trouble General_Tso Linux - Hardware 0 02-11-2003 01:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:18 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration