Hi!

I have added a patch to this mail which adds some missing
v4l devices (vbi / vbi0) for the REGISTER events.

A question: I found out that you need to have a CREATE
event if you want modules automatically loaded when
the device is accessed (contrary to REGISTER for modprobe).
The problem is that drakconf or similar needs to create
files in /etc/devfs/conf.d/ containing CREATE entries
for certain devices like raw1394, v4l2, video1394, some
of them are stronger device dependent than other (f.e.
ohci1394 depends on a certain firewire card while the
other mention 1394 modules can be loaded with whatever
firewire device you own).

Example:
/etc/devfs/conf.d/saa7134
This entry is created when saa7134 was detected from
harddrake or kudzu.
CREATE  ^v4l/video0$    MODLOAD ACTION saa7134
CREATE  ^v4l/vbi0$      MODLOAD ACTION saa7134

A better solution would be IMO to add all the
CREATE entries to devfsd.conf but only with
MODLOAD:
CREATE  ^v4l/video0$    MODLOAD
CREATE  ^v4l/vbi0$      MODLOAD

CREATE  ^raw1394        MODLOAD
CREATE  ^video1394/0    MODLOAD
Now we are device independant and can add
entries for /etc/modules.conf, f.e.

alias   eth1                    eth1394
alias   /dev/v4l/video0         saa7134
alias   /dev/raw1394            raw1394
alias   /dev/video1394/0        video1394

The only problem are devices which create no 
/dev/entries. These still have to be in /etc/modules,
like the ohci1394 driver.

Regards,

Reinhard Katzmann
P.S.: the patch is for devfsd from beta2

--- /etc/devfsd.conf~   2002-05-21 20:54:54.000000000 +0200
+++ /etc/devfsd.conf    2002-08-17 11:50:18.000000000 +0200
@@ -52,6 +52,9 @@
 REGISTER       ^v4l/video0$    CFUNCTION GLOBAL symlink v4l/video0 video
 UNREGISTER     ^v4l/video0$    CFUNCTION GLOBAL unlink video
 
+REGISTER       ^v4l/vbi0$      CFUNCTION GLOBAL symlink v4l/vbi0 vbi
+UNREGISTER     ^v4l/vbi0$      CFUNCTION GLOBAL unlink vbi
+
 # ALSA stuff
 #LOOKUP                snd             MODLOAD ACTION snd
-- 
Software-Engineer, Developer for Embedded Devices
Project: Pertergrin, a role playing game system
GnuPG Public Key available on request

Attachment: msg71235/pgp00000.pgp
Description: PGP signature

Reply via email to