Firewire on CentOS
A note about repositories for yum
Yum uses online information to manage your system's packages. CentOS-Base is the main repository used by default. However, this is by no means the only repository. ATrpms, rpmforge, ElRepo, and DAG are four third-party repositories with many invaluable resources not maintained by CentOS-Base. There are many great tutorials online about how to add these to automatically work with yum. Whether you do it manually or with an RPM, you'll be adding a file to the /etc/yum/repos.d folder for that specific repository. The configuration files are easy to understand text documents. Make sure the line "enabled=0" exists in the file so that these extra repos are not used by default. Otherwise you'll get way more updates than you're asking for. When you want to use the repo, call yum with the --enablerepo=*reponamehere* option to enable it for that call and that call only. Many of the packages in this guide have no dependencies, in which case you can download the package from the repo's website rather than through yum.
How to get firewire working in CentOS linux.
There are two distinct steps to get firewire working: removing CentOS's nonfuntional attempts at firewire support, and adding third-party packages and modules that actually work.
First we need to disable and uninstall CentOS's (unsuccessful) attempts at firewire which are enabled by default.
- Open the file /etc/modprobe.d/blacklist and add these lines:
blacklist firewire_core
blacklist firewire_ohci
This will prevent CentOS from loading the default firewire modules. - Open up the Add/Remove Software program and search for "libraw". Uninstall all the packages with "libraw" in the name. We will be downloading an updated version of this package later.
- Reboot. This will complete the changes we just made.
Next we might need to update the kernel to a version that will support the ieee1394 package. Go to the ATrpms website to browse through the kmdl-ieee1394 packages. Each one corresponds to a specific kernel version. If none match your kernel version, you'll have to update the kernel. You can find your kernel version by typing "uname -r" into a terminal.
- Enable kernel upgrades from yum and upgrade to a version compatible with a kmdl-ieee1394 package from ATrpms. There are many good tutorials online for how to configure this.
- Reboot to load with the new kernel.
- You might have an issue with the video card driver. Download the latest driver from the NVidia website to solve this issue.
Now we can download the actual packages and modules that make firewire work.
- Install ieee1394 ( and kmdl-ieee1394 ) from the ATrpms repository.
- Download the kmod-ieee1394 package frpm the ELRepo repository and install it using the rpm -Uvh command.
- Download packages libraw1394_8 and libraw1394 from ToraCat and install it using the rpm -Uvh command.
- Download the latest libdc1394 library and install it (./configure, make, make install as root). Find the libdc1394 website with a google search. After installation, move the libdc1394.so.22 file from the installation directory to /usr/lib64/
The libraries and modules are all in place. Give the system a reboot for good luck and move on to getting the camera connected.
- Plug in the camera.
- Run /sbin/lsmod to see all the running modules. Grep for "1394" and you should get video1394, raw1394, ohci1394, and ieee1394. Grep for "firewire" and you should get nothing.
- Change the ownership of /dev/raw1394 and /dev/video1394/ and /dev/video1394/0 to the logged in user.
Now we need software to read in the camera data. Coriander is the best option I've found.
- Install ffmpeg from DAG. Use yum because there are a bunch of package dependencies, and yum will automatically download them for you.
- Download and install Coriander (./configure, make, make install as root).
- Run "coriander". On some system, you have to run it as the root user.