Re: inserting module in kernel

From: Srinivas G (srinivasganji_at_gmail.com)
Date: 01/21/05


Date: 21 Jan 2005 06:39:27 -0800


P.T. Breuer wrote:
> Kasper Dupont <kasperd@daimi.au.dk> wrote:
> > "P.T. Breuer" wrote:
> > >
> > > and nowadays third party modules seem impossible to compile
> >
> > You insiste on doing things differently from recomended
>
> You know perfectly well that third party modules ARE impossible to
> compile on 2.6, which is what I mean by "nowadays". My point is that
> the original rationale for the change (/usr/include/linux being
supplied
> with libc) was to protect against major changes of kernel version
> affecting userspace compiles (we can deduce that minor changes make
no
> difference in a sane world), but it doesn't matter now since nobody
> would switch from 2.4 to 2.6 and still expect sanity of any kind to
> prevail...
>
> > practice, and now you start complaining that it doesn't
> > work.
>
> Nonsense.
>
> Peter

Dear All,

We were developed a block device driver on linux-2.6.x kernel. We want
to distribute our driver as a RPM Binary. We are using the SuSE 9.1
with 2.6.5-7.71 kernel.

We build the RPM file using the fm.ko file on SuSE 9.1 with 2.6.5-7.71
kernel where fm.ko indicates our Block Driver module. When I try to
run the RPM file on a different kernel version it has given the
following error message.

FATAL: Error inserting fm
(/lib/modules/2.6.4-52-default/kernel/drivers/block/fm.ko): Invalid
module format

As I know the error message indicates that I compiled the driver under
2.6.5-7.71 kernel where as I am trying to insert the module in
2.6.4-52-default kernel.

My question is: Is it possible to compile and build a .ko file with out
including the version information? (i.e. I want to build a RPM file
using fm.ko file which was compiled using 2.6.5-7.71 and to run the RPM
file on a different kernel versions.)

We are not very sure of how to achieve this.
Please help us address this issue.
Thanks in advance and regards,
Srinivas G



Relevant Pages

  • Re: Fedora Core3 - nvidia - I can compile the driver - where to put it ?
    ... The driver package from nvidia.com ... >> contains the source code for the driver which compiles against the ... >> currently running kernel as a last resort (kernel sources must be ... >> I always buy nVidia because they're so trouble free with Linux. ...
    (comp.os.linux.setup)
  • Re: [SLE] Backing Out Kernel Update
    ... Whenever I update the kernel I need to re-install VMWare and the NVIDIA ... driver. ... Use the command line, rpm, to install whichever kernel you want. ... involves more than one rpm file. ...
    (SuSE)
  • Re: ipw3945 compile problems with latest kernel 2.6.18-1.2849.fc6
    ... I added your line to the Makefile ... and changed the version from 1.1.4 to git-1.1.13 as in the current kernel. ... Now the module at least compiles but I could not get it to run - I will ... or 1.1.2 driver in the up-to-date fc6 kernel I would appreciate it a lot. ...
    (Fedora)
  • Re: Which to use? -ivh, -Uvh or -Fvh.
    ... >> How can I determine if a rpm file should be ... >This will upgrade an existing package OR install it if it isn't already ... Do _NOT_ use this for kernel installs/upgrades. ...
    (Fedora)
  • Noob kernel question
    ... I am current running the 2.6.5-7.111.5-default kernel and would really ... like to upgrade to 2.6.8. ... kernel-default-2.6.8-20041206150724.x86_64 rpm file but I've never done a ... lilo ...
    (alt.os.linux.suse)