iTop-4412學習的第一個驅動
學習過程中瞭解了make menuconfig配置 makefile的編寫 及一些常見的問題
WARING: Symbol version dump xxxx/Module.symvers is missing ; modules will hava no dependencies and mdversions;
WARNING: 這個問題只需要 在內核裏添加一個名字爲Module.symvers的空文件夾即可解決警告問題。
編譯內核模塊時遇到這樣一個報錯,
error: expected declaration specifiers or ‘…’ before string constant
只需要包含頭文件<linux/module.h>