顯示具有 bug 標籤的文章。 顯示所有文章
顯示具有 bug 標籤的文章。 顯示所有文章

2015年3月3日 星期二

[bug] make modules_prepare



Symptom:
- when compiling the driver, there maybe exist issue like :
......
In file included from include/linux/gfp.h:4:0,
                 from include/linux/slab.h:12,
                 from include/linux/percpu.h:5,
                 from include/asm/local.h:4,
                 from include/linux/module.h:19,
                 from
AX88179_178A_LINUX_DRIVER_v1.13.0_SOURCE/ax88179_178a.c:30:
include/linux/mmzone.h:18:26: fatal error: linux/bounds.h: No such file or directory
 #include <linux/bounds.h>
                          ^
.........

Root Cause:
- Header file miss.

Solution:
- go to kernel folder, issue the command:
make modules_prepare 
- after that, go back to make driver again

ref:
https://forums.gentoo.org/viewtopic-t-819002-start-0.html



2015年3月1日 星期日

[bug] Linux kernel menuconfig issue

symptom:
Makefile:434: *** mixed implicit and normal rules.  Stop.
Makefile:1551: *** mixed implicit and normal rules.  Stop.

root cause:
old Makefile format

solution:
(434) config %config: scripts_basic outputmakefile FORCE
(1551) / %/: prepare scripts FORCE

-->
(434) %config: scripts_basic outputmakefile FORCE
(1551) %/: prepare scripts FORCE

ref:
http://www.cnblogs.com/jevan/archive/2011/03/20/1989199.html