Re: Building a kernel module for 2.6.23 kernel on a machine with 2.6.25 kernel.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Mark...

On Mon, Jul 14, 2008 at 5:41 PM, Mark Ryden <markryde@xxxxxxxxx> wrote:
> Hello,
>
>  I have a machine with 2.6.25 kernel (FC9) and I want to build on it a
> module which can be loaded into
> 2.6.23 kernel. (fc8).
> I am building the module on FC9 against 2.6.23 tree and it is ok.
>
> I can insmod the module in 2.6.23 kernel.
> However, when I try to insmod the module on 2.6.25 tree I get "invalid
> module format".

It's a standard warning: module insertion is forbidden if it's
detected being compiled with different gcc version. It might introduce
problem like stack layout, ABI and so on.

However, there is always insmod -f if you insist to do that...

regards,

Mulyadi.

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux