Re: insmod: Invalid module format (2.6.4-52-default, gcc-3.3.3)

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

 



Hemant Mohapatra wrote:

On 6/19/05, MHD.Tayseer <gilmour@xxxxxxxxxxx> wrote:

I've read the
/src/Documentation/kbuild/modules.txt
/src/Documentation/kbuild/makefiles.txt
and everything went right after that


Hi Tayseer,

Thanks for the mail. I had checked out the makefiles.txt and
modules.txt and my Makefile is similar to the one they have discussed:

KERNEL_SOURCE = /usr/src/linux-`uname -r`/
CFLAGS = -g -D__KERNEL__ -DMODULE -I$(KERNEL_SOURCE)/include -O -Wall
KERNELRELEASE="2.6.4-52-default"

obj-m := t2.o

default:
    make -C  ${KERNEL_SOURCE} SUBDIRS=`pwd` modules

--

modinfo module.ko gives:

vermagic:       2.6.4-52-default 586 REGPARM gcc-3.3

What next?
./h

Hi ..
try just the following makefile

KERNEL_SOURCE = /usr/src/linux-`uname -r`/
obj-m := t2.o
default:
    make -C  ${KERNEL_SOURCE} SUBDIRS=`pwd` modules

and then just do make and insmod
this is the simplist form .. if it doesn't work this means that i'm not able to build it too :) then we have to seek an expert :)
good luck




--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           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