[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)
  • 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: Kernel Compiling Checklist, rev 3
    ... On Tue, 2004-04-13 at 10:56, Etanisla Lopez-Ortiz wrote: ... > Tonight I'll be trying the kernel compile again, but before I do, I want to ... Get desired kernel and extract it. ... The `&&` between commands means that the next command will be started ...
    (Fedora)
  • 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)
  • Re: Kernel Compiling Checklist, rev 3
    ... On Tue, 2004-04-13 at 11:05, Christopher Ness wrote: ... >> Tonight I'll be trying the kernel compile again, but before I do, I want to ... >> verify the new kernel is running. ... > if you want it to run the next command no matter what happens. ...
    (Fedora)