[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Compiling a specific module without compiling whole of the kernel
On 2/7/06, kanishk rastogi <kanishk_rastogi85@xxxxxxxxx> wrote:
>
>
>
> how do i compile a specific module without compiling
> the whole of the kernel
>
> i tried it by making the make file
>
> obj-m :=scsi_debug.o
>
> and using the command
>
> make -C /usr/src/linux-2.6.12/
> M='/usr/src/linux-2.6.12/drivers/scsi/' modules
> all being according to the pwd
>
> the module got compiled but while inserting it gave
> the error
>
>
> insmod: error inserting 'scsi_debug.ko': -1 Invalid
> module format
Are you compiling module against the same kernel version for which you
are inserting it ?
-Gaurav
>
> thanks
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
> --
> Kernelnewbies: Help each other learn about the Linux kernel.
> Archive: http://mail.nl.linux.org/kernelnewbies/
> FAQ: http://kernelnewbies.org/faq/
>
>
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/kernelnewbies/
FAQ: http://kernelnewbies.org/faq/