|
linux GPIO驱动在2.6.38内核版本下编译问题求助
[复制链接]
最近谢了一个ARM板的GPIO驱动,编译时出现了如下错误:
系统是Ubuntu 9.4的,arm 编译源码是2.6.38 的
make -C /home/mfh/project/linux-2.6.38 M=/home/mfh/work/gpio modules
make[1]: Entering directory `/home/mfh/project/linux-2.6.38'
Building modules, stage 2.
MODPOST 1 modules
LD [M] /home/mfh/work/gpio/gpio.ko
ld: /home/mfh/work/gpio/gpio.o: Relocations in generic ELF (EM: 40)
ld: /home/mfh/work/gpio/gpio.o: Relocations in generic ELF (EM: 40)
ld: /home/mfh/work/gpio/gpio.o: Relocations in generic ELF (EM: 40)
ld: /home/mfh/work/gpio/gpio.o: Relocations in generic ELF (EM: 40)
ld: /home/mfh/work/gpio/gpio.o: Relocations in generic ELF (EM: 40)
ld: /home/mfh/work/gpio/gpio.o: Relocations in generic ELF (EM: 40)
ld: /home/mfh/work/gpio/gpio.o: Relocations in generic ELF (EM: 40)
ld: /home/mfh/work/gpio/gpio.o: Relocations in generic ELF (EM: 40)
ld: /home/mfh/work/gpio/gpio.o: Relocations in generic ELF (EM: 40)
/home/mfh/work/gpio/gpio.o: could not read symbols: File in wrong format
make[2]: *** [/home/mfh/work/gpio/gpio.ko] Error 1
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/home/mfh/project/linux-2.6.38'
make: *** [modules] Error 2
求大神帮助分析一下原因及解决办法。头疼死了。在低版本例如2.6.26下就能编译过,但是到了38版本就出错了。网上查也不是很清楚。求帮助,谢谢!!
|
|