Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
- Join Date
- May 2006
integrate driver into kernel sources
I´m trying to integrate an IO driver (Meilhaus ME8100) into kernel sources (126.96.36.199).
When I compile the kernel (incl. driver sources), I get the following error message:
drivers/built-in.o: In function `init_module': : undefined reference to `__this_module' drivers/built-in.o:(.data+0x3d80): undefined reference to `__this_module' make: *** [.tmp_vmlinux1] Fehler 1
- copied driver sources (me8100.c, me8100.h) to drivers/char/
- inserted "obj-$(CONFIG_ME8100) += me8100.o" in file drivers/char/Makefile
- created a config section in Kconfig file (config ME8100 ...)
- make xconfig
- make clean
- make bzImage
Compiling this driver as a module works fine.
I guess something´s wrong with my driver code (but I´m not an expert). E.g I didn´t find the macros module_init and module_exit in me8100.c (inserting them doesn´t work either).
The whole driver package can be downloaded at sourceforge: me8100-1.1.6.tar.gz
or see the attachment
would be great if you could help me
- Join Date
- Apr 2008
Even i got the same error. If you already got the solution plz share with me
Thanks in advance