Re: driver development Question

From: Markku Kolkka (markku.kolkka_at_iki.fi)
Date: 10/16/03


Date: Thu, 16 Oct 2003 01:28:38 +0300

code11 wrote:

> Hi there,
>
> I wrote a simple device driver sample program hello.c
>
>>gcc -c hello.c
>
> OK

Wrong. Compile the module in the correct way:
http://tldp.org/LDP/lkmpg/x204.html

> I remember I upgraded the kernel, how can I solve the issue?

Make sure you upgraded the kernel-sources to match your running kernel.

-- 
        Markku Kolkka
        markku.kolkka@iki.fi


Relevant Pages

  • Re: kernel module
    ... >> You can't compile a kernel module like this. ... >> the header files for the currently running kernel (or the kernel ... >> it the wrong header files get included. ...
    (comp.unix.programmer)
  • compile module without compiling it for current kernel
    ... make-kpkg clean; make modules_clean; ... packages with for the currently running kernel, not for the revision I am ... passing via make-kpkg. ... How to compile 3rd party modules using make-kpkg without compiling them ...
    (Debian-User)
  • How to compile a module reside in the kernel source
    ... I have a compiled and running kernel now, ... netfilter module compiled which is required by iptables. ... compile and add this feature/module into the running kernel, ... recompile the whole kernel source with a new config? ...
    (comp.os.linux.misc)
  • Re: sarge installation, unresolved symbols loading marvell yukon module
    ... equipped with a marvell yukon gigabit ethernet controller. ... The running kernel on the machine you use the module on has to be ... It might be easier to burn the driver to a CD and compile it on the ...
    (comp.os.linux.networking)