make -C /root/armlinuxsrc/FS2410_linux2.6.8.1-0712
M=/root/mypro/example/drv modules
make[1]:
Entering directory
`/root/armlinuxsrc/FS2410_linux2.6.8.1-0712'
Building modules, stage 2.
MODPOST
LD [M]
/root/mypro/example/drv/newtest.ko
/usr/local/arm/3.3.2/bin/arm-linux-ld:
/root/mypro/example/drv/newtest.o: Relocations in
generic ELF (EM: 3)
/root/mypro/example/drv/newtest.o: could not read
symbols: 文件格式错误
make[2]: ***
[/root/mypro/example/drv/newtest.ko] 错误 1
make
[1]: *** [modules] 错误 2
make[1]: Leaving directory
`/root/armlinuxsrc/FS2410_linux2.6.8.1-0712'
make:
*** [modules] 错误 2
解决办法: 我重新执行了一下make 中clean命令
把*.O的文件都删除了 再重新执行一下make接
可以生成.ko文件了