Older releases pre Ubuntu 10.10 extra steps

Ubuntu Studio Controls

Note: Do not perform this step if you have Ubuntu 10.10 ("Maverick Meerkat") or a later release.

Enable raw1394 and related permissions using Ubuntu Studio Controls. UbuntuStudioControls has a graphical guide.

Users and Groups

Note: Do not perform this step if you have Ubuntu 10.10 ("Maverick Meerkat") or a later release.

Enable your username to access Audio and Video devices.

In Karmic and earlier:

In Lucid and newer:

Reboot and Test

Note: Do not perform this step if you have Ubuntu 10.10 ("Maverick Meerkat") or a later release.

 ls -al /dev/raw1394

You should see something like this:

 crw-rw---- 1 root video 171, 0 2009-10-16 05:30 /dev/raw1394

'video' must be shown in this report. (In Lucid, this will be 'audio'.)

 groups

You should see something like this:

 <username> adm dialout fax cdrom tape audio dip video plugdev lpadmin sambashare admin netdev

Audio and video must be listed in this report. (again, 'video' isn't needed in Lucid and newer.)

FireWire stacks explained

It is easy to be confused by this topic, so here is how to make sense of what you have available on your system.

Which stack am I using?

In Ubuntu Maverick, the new Juju firewire driver stack is enabled by default, but the legacy stack is also present and can be used if needed. To check which driver stack is enabled, run this command:

lsmod | grep 'firewire\|1394'

On Lucid or older, it should return something like this: (these modules make up the Legacy firewire driver stack)

~$ lsmod | grep 'firewire\|1394'
dv1394                 18602  0 
ohci1394               30338  1 dv1394
raw1394                25814  0 
ieee1394               95219  3 dv1394,ohci1394,raw1394

On Maverick or newer, it should return this: (these modules make up the new Juju firewire driver stack)

~$ lsmod | grep 'firewire\|1394'
firewire_ohci          24679  0 
firewire_core          54327  1 firewire_ohci
crc_itu_t               1739  1 firewire_core

Only one driver stack should be loaded at a time so they will not cause conflicts. If both sets of drivers had been loaded accidently, you can check which one is actually in control of the hardware by

~$ grep 'firewire\|1394' /proc/interrupts

Most Maverick users should be able to use the Juju stack, and should not enable raw1394. Users who need to use use multiple firewire devices (known as daisy-chaining) must enable the legacy stack if using Maverick.

The legacy stack has been removed from Natty.

Switching between stacks

We can switch between driver stacks (without rebooting) using the modprobe command. To unload the Juju stack, run this command:

sudo modprobe -r firewire-ohci

Then, to load the Legacy stack:

sudo modprobe ohci1394 && sudo modprobe raw1394

If you want to unload the Legacy stack, do:

sudo modprobe -r dv1394 video1394 ohci1394 raw1394

And to load the Juju stack:

sudo modprobe firewire-ohci

Selecting the stack to load at boot time

To select which firewire stack is loaded at boot time:

sudo gedit /etc/modprobe.d/blacklist-firewire.conf

By default in Maverick, the legacy stack is blacklisted and the Juju stack is enabled:

blacklist ohci1394
blacklist sbp2
blacklist dv1394
blacklist raw1394
blacklist video1394

#blacklist firewire-ohci
#blacklist firewire-sbp2

To enable the legacy stack, modify this file as follows:

#blacklist ohci1394
#blacklist sbp2
#blacklist dv1394
#blacklist raw1394
#blacklist video1394

blacklist firewire-ohci
blacklist firewire-sbp2

Then, rebuild the initramfs:

sudo update-initramfs -k all -u

And on subsequent boots the legacy stack will be loaded.

For more information, see: https://ieee1394.wiki.kernel.org/index.php/Juju_Migration https://wiki.ubuntu.com/Kernel/SwitchFirewireStack


CategoryAudio

FireWire/DigitalAudio/OlderReleases (last edited 2012-09-27 11:45:24 by 196-215-54-213)