Automatically load of kernel module "matrixfg"

mvDELTA, mvGAMMA-G, mvSIGMA-SLC, mvSIGMA-SLG, mvSIGMA-SQ, mvTITAN-C16, mvTITAN-C8, mvTITAN-CL, mvTITAN-DIG, mvTITAN-G1, mvTITAN-RGB/G4, pcIMAGE-SC, pcIMAGE-SDIG, pcIMAGE-SG/SGVS, pcIMAGE-SRGB

To load "matrixfg" you usually use the script "mvload matrixfg" in the "bin" directory. The "mvload" script assumes the "matrixfg" kernel module is being loaded with a dynamic major device number (which usually will be 254) since we don"t have an official number.

If you don"t want to use dynamic major device numbers, you can assign a fixed major device number to the matrixfg module and you could use number 60, for example, which is reserved for experimental use and is unlikely to be used by anything else on your computer.

You can then permanently create the devices in "/dev" like this...

prompt> mknod /dev/matrixfg0 c 60 0
prompt> mknod /dev/matrixfg1 c 60 1
prompt> mknod /dev/matrixfg2 c 60 2
prompt> mknod /dev/matrixfg3 c 60 3
prompt> cd /dev
prompt> ln -s /dev/matrixfg0 /dev/matrixfg

Then edit the file called "/etc/modules.conf" (it might be called "etc/conf.modules" with Mandrake) adding the following somewhere....

alias char-major-60 matrixfg
options matrixfg major_dev_num=60

Now you will be able to load matrixfg by using ...

prompt>modprobe matrixfg

and the options line will be applied automatically. When you start an application which opens the "matrixfg" device then the kernel module will be loaded automatically when needed.

Go back