problem when compiling external modules
problem when compiling external modules
Posted Mar 10, 2004 21:53 UTC (Wed) by madmax1984 (guest, #20101)Parent article: Driver porting: compiling external modules
i encountered the following problem when trying
to compile a hello.o type module for 2.6.1:
after the initial setbacks of having to figure
out about init_module, cleanup_module, SUBDIRS
thingie and all it still wouldn't work:
insmod hello.ko would return -1: invalid format;
insmod hello.o would work warning/error free
(really odd) but i would get a seg fault when
trying to rmmod hello.
after quite a bit of googleing i found the
solution: recompile the kernel with the running
config (the last kernel i had built was for my
gateway and used no modules, had no module
support - which might have been the problem -
although my running kernel had module support)
hope this is useful
