From: Francesco Oppedisano <f.oppedisano@ti...> - 2003-07-15 00:19:10
Hi to all,
i'd like to test my module using UML, but:
1) how can i recompile it for uml kernel?
i tried making /usr/src/linux to point
to the uml kernel source tree and adding -DUML
in my compilation commands...Unfortunately
this led to a big flow of error messages.
So, what i have to do?
2) i tried to upload my module on the uml virtual
machine and to load it by insmod -f;
I obtain :
root@...:~# insmod -f metermain.o
Warning: kernel-module version mismatch
metermain.o was compiled for kernel version 2.4.20
while this kernel is version 2.4.20-5um
metermain.o: unresolved symbol __generic_copy_from_user
The unresolved symbol is due to a call to the macro copy_from_user i do in the
Reading the ml archive i learned that i have to export this symbol in
kernel/ksyms.c . I tried this adding the line
but this lead to a comilation error....
Can anyone say me how to export a symbol?
Thank u very much
Get latest updates about Open Source Projects, Conferences and News.