Re: insmod: error inserting

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

 



Onkar 写道:
> let me tell the sequence of step I followed  before I got that error :
> 
> (1) I compiled the kernel with the CONFIG_B44=m option
> (2) then I booted with this new kernel 2.6.18
> (3) at his time lsmod |grep b44 showed b44 (that means module loaded at boot
> time)
> (4) then , I removed the module : modprobe -r b44  (at this point I lost the
> network connection)
> (5) then I took b44.c and b44.h from drivers folder of the kernel and
> compiled them seperately (away from the kernel) -> this compiled
> successfully
> (6) insmod b44.ko gave me those errors !!!
> 
> Any clue , why  ?
> 

make -C <path-to-kernel> M=`pwd`

Did you specify the correct kernel path ? This should be the kernel
you boot with.

> 
> 
> On Jan 29, 2008 12:05 PM, Manish Katiyar <mkatiyar@xxxxxxxxx> wrote:
> 
>> Have you compiled with the same kernel version which you are running ?
>> I guess u are using 2.4 kernel.
>>
>> On Jan 29, 2008 12:02 PM, Onkar <onkar.n.m@xxxxxxxxx> wrote:
>>> I was experimenting with the etnernet driver code : Broadcom b44 NIC . I
>>> took the code from the linux kernel /drivers directory and tried to
>> compile
>>> it seperately and insert into the running kernel.
>>> the kernel is just freshly compiled  ??
>>>
>>> insmod: error inserting './b44.o': -1 Invalid module format ??
>>>
>>> Can I not do it like that ?? I even tried to insert the module compiled
>>> during kernel compilation in the drivers directoy .. but that too is
>> giving
>>> the same results.
>>>
>>> Please guide me to point out whats going wrong ?
>>>
>>>
>>>
>>



--
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