[opensuse] loading custom kernel modules



I'm sure this is a daft n00b question but I've not found the answer via Google
so I thought I'd try you guys.

I've a server with a Areca RAID card running 10.2

Now there isn't a default driver for this so I have to compile either a custom
kernel or module.

For ease I'd rather compile the stand alone module and just load it in as
it'll make updating the kernel easier.

So I go into the driver source directory and run the following command:

make -C /lib/modules/`uname -r`/build CONFIG_SCSI_ARCMSR=m SUBDIRS=$PWD
modules modules_install

Which builds the correct module and installs it to:

/lib/modules/<CURRENTKERNEL>/extra/arcmsr.ko

Now I can use insmod /lib/modules/2.6.18.8-0.3-default/extra/arcmsr.ko to load
it and it works fine.

However unlike the rest of the modules in the kernel it's not pathed so I
can't add it to /etc/modprobe.conf.local as it doesn't like absolute paths in
there.

This means I can't auto mount the logical drive on this card via /etc/fstab.

I can get around it by using a startup script that loads the module and then
mounts it but as it's not 'the proper way' of doing things it's bugging me.

If I create a whole new custom kernel then it's fine but I don't want to have
to build all that every time a new one comes out when I could just compile a
single module in a second.

Any help would be appreciated.

Regard

Matthew
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx



Relevant Pages

  • Re: Using 2.6.25 + Nvidia + VMware
    ... When I compile from kernel.org's 2.6.25.3 I don't get that problem. ... Go to the directory that contains the v86d code and then: ... make KDIR=<path of the kernel tree that was compiled above> ... the configure command should be ...
    (Debian-User)
  • missing the initrd file in the kernel package
    ... When I compile the kernel the file "initrd" is not created in spite of I'm specifying the "--initrd" option in the command line. ...
    (Debian-User)
  • Re: --initrd
    ... In the past I could compile a kernel like that and when I install the ... which command I have used to generate it. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". ...
    (Debian-User)
  • Re: [opensuse] loading custom kernel modules
    ... After building and installing the module, ... Now there isn't a default driver for this so I have to compile either a custom ... it'll make updating the kernel easier. ... This means I can't auto mount the logical drive on this card via /etc/fstab. ...
    (SuSE)
  • Re: Using 2.6.25 + Nvidia + VMware
    ... When I compile from kernel.org's 2.6.25.3 I don't get that problem. ... Go to the directory that contains the v86d code and then: ... make KDIR=<path of the kernel tree that was compiled above> ... the configure command should be ...
    (Debian-User)