Trouble Compiling Kernel Module...
G'Day,
I am experiencing a strange problem with recompiling an external kernel module. I last compiled a month ago, and in that time the module source, kernel version and (crosscompiler) toolchain all remain unchanged: all that has changed is that I have upgraded to Ubuntu Breezy (hence all other utilities have been updated). Because all of the aspects which should directly impact this are unchanged, I am at a loss to explain why it no longer works. My problem is this: when I compile my module, everything starts as normal, and it compiles, like so... Code:
$ make I am able to recompile the kernel itself without any difficulties, as I can with regular applications, so I cannot explain this one. Any suggestions would be most appreciated! |
I still have not been able to get this to work (according the kernel documentation, the Makefile is correct, so I have no idea why it does not), so I have been trying to compile it without the Makefile. This is what I have got so far:
Code:
$ make -C /usr/src/linux M=/home/matthew/src/c/modules/omap-owire-dev modules Code:
$ cd /usr/src/linux Code:
$ arm-linux-gcc -Wp,-MD,/home/matthew/src/c/modules/omap-owire-dev/omap_owire.mod.d -nostdinc \ Code:
$ arm-linux-gcc -r -o omap_owire.ko omap_owire.o omap_owire.mod.o |
Hi,
i don't know if you are still having this problem but i ran into the same while porting a driver from Kernel 2.4 to 2.6. You have to add a line like this in the makefile: Code:
obj-m:=omap_owire.o exman |
All times are GMT -5. The time now is 03:58 PM. |