Re: [opensuse] loading custom kernel modules



Hi Matthew,

After building and installing the module, did you run 'depmod -a' ?

Once you can modprobe the module, you can edit /etc/sysconfig/kernel:
edit the line INITRD_MODULES="......."

You will then need to build a new initrd by running 'mkinitrd'. This
will forceload the module at boot time.

Regards

Sean


Matthew Stringer wrote:
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: Debian Question: linux-image-2.6...-k7 vs. linux-image-2.6...-amd64
    ... I were to install and use AMD64 Kernel. ... programs can get more virtual address space, ... not making my OS 100% 64-bit because I heard it is a hassle to compile both 32-bit and 64-bit programs which I do not have time for. ... and installing the 64-bit system in the first place. ...
    (comp.os.linux.hardware)
  • Re: Realtek rtl8139 nic and 2.4.20 kernel
    ... > which gives me the option of installing any modules contained in a given ... modconf 'loads' and 'unloads' modules. ... Plus, you can compile a kernel to have the tool available at any time, ... But when you compile it, you must either compile it as part of the kernel, ...
    (Debian-User)
  • Re: nForce 2 and Woody: How can I achieve a network install and what functionality is available with
    ... > gotten around to installing it, since it seemed like such a hassle. ... > guessing I would need to compile a kernel with the forcedeth patch. ... you can bould a custom boot CD/floppy and add the binary nvnet driver. ...
    (Debian-User)
  • Re: Kernel Questions
    ... If I specify a driver in the config file with a device command, ... > not compiled into the kernel that it can compile as a module? ... regardless of whether you compile some of the devices statically into ... > procedure for installing the kernel if you have no other reason for not ...
    (freebsd-questions)
  • [opensuse] loading custom kernel modules
    ... Now there isn't a default driver for this so I have to compile either a custom ... it'll make updating the kernel easier. ... So I go into the driver source directory and run the following command: ... This means I can't auto mount the logical drive on this card via /etc/fstab. ...
    (SuSE)