(no subject)

From: Larry Reaves (larry_at_moonshinecomputers.com)
Date: 02/22/04

  • Next message: Hemmann, Volker Armin: "Re: SiS 746FX AGP 3.0 problem"
    To: redzic fadil <redzic_fadil@hotmail.com>
    Date:	Sun, 22 Feb 2004 13:48:39 -0500
    
    

    I suggest that you read
    http://linuxdevices.com/articles/AT4389927951.html it is an article
    about the differences between modules for 2.4 and 2.6. Basically all
    you need to do to get it to work is delete your Makefile and create a
    new one with only this line:
    obj-m := hello.o
    and then issue the following command:
    make -C /usr/src/linux-2.6.3 SUBDIRS=$PWD modules
    your module compiles fine on my box using this method

    On Sun, 2004-02-22 at 12:51, redzic fadil wrote:
    > hello
    >
    >
    > I hope I don't disturb,
    >
    >
    > I have tried to compile the hello.c module under kernel 2.6.3.
    > And I'd like to insert the hello.o module in the kernel.
    > But this doesn't work with kernel 2.6.3 .
    >
    > I have compiled this module with kernel 2.4.* and it is well.
    >
    > Also I cannot include the header file module.h, because I get error
    > messages.
    >
    > my module:
    > #include <linux/kernel.h>
    > #include <linux/module.h>
    > #include <linux/init.h>
    >
    >
    > int initial_module (void)
    > {
    > printk("\ninitial module\n");
    > return (0);
    > }
    >
    > void delete_module (void)
    > {
    > printk("\ndelete module\n");
    > }
    >
    > module_init(initial_module);
    > module_exit(delete_module);
    >
    >
    > my Makefile:
    > CC=gcc
    > CFLAGS=-isystem /lib/modules/`uname -r`/build/include -O2 -D__KERNEL__
    > -DMODULE
    > all: hello.o
    >
    > If you have any idea please send an E-Mail: redzic_fadil@hotmail.com
    >
    > thanks
    >
    > _________________________________________________________________
    > Die ultimative Fan-Seite für den MSN Messenger http://www.ilovemessenger.de
    > Emoticons und Hintergründe kostenlos downloaden!
    >
    > -
    > To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    > the body of a message to majordomo@vger.kernel.org
    > More majordomo info at http://vger.kernel.org/majordomo-info.html
    > Please read the FAQ at http://www.tux.org/lkml/

    -- 
    Larry Reaves <larry@moonshinecomputers.com>
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at  http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at  http://www.tux.org/lkml/
    

  • Next message: Hemmann, Volker Armin: "Re: SiS 746FX AGP 3.0 problem"

    Relevant Pages

    • Fwd: Help needed: GCOV - not getting HOW TO!!!
      ... I have patched my kernel and i have configured the gcov kernel module support. ... I compilied my module and i run insmod and i got my module executed. ... void cleanup_module { ... To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ ...
      (Linux-Kernel)
    • Re: [RFC] ASLA design, depth of code review and lack thereof
      ... void a ... constant-sized memcpy() in the kernel will be expanded to ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • [sparc32] [5/13] reinstate smp_reschedule_irq()
      ... This patch reinstates it so that the kernel will link properly ... void smp_flush_page_to_ram ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: i386 entry.S problems
      ... > kernel; nothing can legitemately use them and in the last few years ... -asmlinkage void lcall27; ... static void __init set_task_gate(unsigned int n, ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: module-init-tools dont support gzipped modules.
      ... > modutils. ... I haven't tested it yet since I don't have any 2.6 kernel right here. ... > But at least it compiles with and without zlib. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)