您如何阅读错误?
我在/ home / aal / build / kernel。
之后运行.config -file/usr/src/linux-2.6$ make O=/home/aal/build/kernel/
我得到了
... cut ...
CC [M] drivers/staging/go7007/s2250-board.o
/usr/src/linux-2.6/drivers/staging/go7007/s2250-board.c:24:26: error: s2250-loader.h: No such file or directory
/usr/src/linux-2.6/drivers/staging/go7007/s2250-board.c: In function ‘read_reg_fp’:
/usr/src/linux-2.6/drivers/staging/go7007/s2250-board.c:264: warning: passing argument 1 of ‘down_interruptible’ from incompatible pointer type
/usr/src/linux-2.6/include/linux/semaphore.h:43: note: expected ‘struct semaphore *’ but argument is of type ‘struct mutex *’
/usr/src/linux-2.6/drivers/staging/go7007/s2250-board.c:273: warning: passing argument 1 of ‘up’ from incompatible pointer type
/usr/src/linux-2.6/include/linux/semaphore.h:47: note: expected ‘struct semaphore *’ but argument is of type ‘struct mutex *’
/usr/src/linux-2.6/drivers/staging/go7007/s2250-board.c: In function ‘s2250_init’:
/usr/src/linux-2.6/drivers/staging/go7007/s2250-board.c:670: error: implicit declaration of function ‘s2250loader_init’
/usr/src/linux-2.6/drivers/staging/go7007/s2250-board.c:676: error: implicit declaration of function ‘s2250loader_cleanup’
make[4]: *** [drivers/staging/go7007/s2250-board.o] Error 1
make[3]: *** [drivers/staging/go7007] Error 2
make[2]: *** [drivers/staging] Error 2
make[1]: *** [drivers] Error 2
make: *** [sub-make] Error 2
答案 0 :(得分:2)
从.config中删除对该驱动程序的引用,问题就会消失。或者,如果您需要适合该来源的驱动程序。
所有这些错误都是由缺少的标题引起的。
答案 1 :(得分:1)
错误发生在 staging 驱动程序中,即尚未或已经不是稳定驱动程序(请查看{{3有关登台树的讨论。)您可以在内核配置设备驱动程序 - >中禁用它们。分段驱动程序
答案 2 :(得分:0)
错误可能都源于第一个错误中丢失的文件。
我怀疑包含路径或源代码安装不完整......