Re: errors on loading the module



ashu wrote:
hi
i compiled the device driver program bfin_adv7393fb.c and the .ko
and .o files are generated.after that while loading the module using
insmod "bfin_adv7393fb.ko" it gives the following errors:::::::
insmod: error inserting "bfin_adv7393fb.ko"-1 invalid module format
help me to solve this........

What revision is your compile kernel (the one you are using to compile the
module), what revision is your runtime kernel (the one that runs on your
target)? Are they different? If "yes", that can't work (most of the time).

"invalid module format" sounds like you try to load a 2.6 kernel module into
a running 2.4 kernel...

Try to boot your new kernel you built to create the adv module. Then try to
load the module again.

Juergen

.



Relevant Pages

  • Re: [BUG] local_softirq_pending storm
    ... If I disable NOHZ by kernel command line nohz=off this problem ... you only use the console and run a kernel compile with -j4? ... Yep, it seems independent of load on the system, to test I compiled ... I didn't applied ratelimit patch since I wanted to test is it high ...
    (Linux-Kernel)
  • modules
    ... I'd like to compile kernel. ... If I go to /etc/modutils there are no my sound modules to load. ...
    (Debian-User)
  • Re: Distributions
    ... | general there are a lot of packages for people to use. ... kernel, have to run on a multitude of different systems, they tend to be ... and slower than if you compile those packages, ... can have that stability with virtually any distro. ...
    (Debian-User)
  • Re: [BUG] local_softirq_pending storm
    ... This system is P4/2.40GHz/HT with SMP/SMT on in kernel config. ... network otherwise plain command line with no network access don't trigger ... you only use the console and run a kernel compile with -j4? ... Yep, it seems independent of load on the system, to test I compiled ...
    (Linux-Kernel)
  • Re: Distributions
    ... Ubuntu is based on Debian, ... | general there are a lot of packages for people to use. ... kernel, have to run on a multitude of different systems, they tend to be larger ... and slower than if you compile those packages, ...
    (Debian-User)