Get FC2 to load 1394 drivers automatically

Mark Knecht markknecht at gmail.com
Wed Dec 8 02:24:31 UTC 2004


On Tue, 07 Dec 2004 17:20:20 -0800, Rick Stevens
<rstevens at vitalstream.com> wrote:


> 
>         alias ieee1394-controller ohci1394
> 
> you should be able to remove the stuff I told you to put in.

OK, this seems to have worked fine. I've rebooted with the 1394 drive
on and again with it off. In both cases sbp2 is loaded at boot time.
Thanks.

> 
> The /etc/rc.d/rc.sysinit script looks for the alias above.  If it sees
> it, then it modprobes the ohci1394 module (which should load ieee1394).
> 
> Once that's done, the script cats "/proc/bus/ieee1394/devices" and
> sees if "SBP2" appears in there.  If so, it modprobes sbp2.  The upshot
> of this is that it would do exactly what my code would do, but it would
> do it at system boot time.
> 
> You can verify this by booting cleanly, then doing a "modprobe
> ohci1394".  Once that's done you can
> 
>         cat /proc/bus/ieee1394/devices | grep SBP2

This part doesn't seem to be consistent with my FC2 machine. Here you
can see that the 1394 hard drive was mounted as sda1:

[mark at Godzilla mark]$ df
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/hda4              6759524   6402444     13708 100% /
/dev/hda1                99043     14652     79277  16% /boot
none                    387616         0    387616   0% /dev/shm
none                    387616         0    387616   0% /var/lib/jack/tmp
/dev/sda1             32748528  20098448  12650080  62% /mnt/audio1
[mark at Godzilla mark]$


However, ieee1394 is not a 'bus' under /proc:
[mark at Godzilla mark]$ ls -la /proc/bus/
total 0
dr-xr-xr-x    5 root root 0 Dec  7 18:13 .
dr-xr-xr-x  105 root root 0 Dec  7 10:12 ..
dr-xr-xr-x    2 root root 0 Dec  7 18:19 input
dr-xr-xr-x    5 root root 0 Dec  7 18:13 pci
dr-xr-xr-x    2 root root 0 Dec  7 18:19 usb
[mark at Godzilla mark]$



> 
> If you get a line back, then changing the alias and deleting my stuff
> should do the trick.  This is all buried in lines 753-765 of the
> "/etc/rc.d/rc.sysinit" script if you want to look at it.  The
> controlling thing, however, is the "alias ieee1394-controller" line.  It
> works just like the "alias scsi_hostadapter" lines needed to make the
> system load SCSI drivers.

I see what you see at line 753. I don't read this stuff very well, but
clearly the script is expecting /proc/bus/ieee1394 and I don't have it
but things still work.

Interesting!

> 
> I should have caught this sooner, Mark, but I don't have a firewire
> device so I wasn't familiar with the mechanism used.  I should have
> guessed that an alias line would trip it.  I'm embarrassed.  :-]

Please don't be. I'm grateful to have such attention and fast responses!

I was able over the last couple of days to do about 8 hours of audio
recording to 1394 drives using FC2 with not a single problem.
Everything worked really well. After that nice experience I'm trying
to get the machine into the same state at boot time. This requires the
1394 stuff that you just helped me with, and also echoing a value to
/proc/irq/... to set up interrupt threading in this kernel. Off to
work on that one now.

Cheers,
Mark




More information about the Redhat-install-list mailing list