mipsel_24kc的linux内核,选择内核为4.14.195时的编译错误
反饋bug/問題模板,提建議請刪除
1.關于你要提交的問題
Q:是否搜索了issue (使用 "x" 選擇)
[x ] 沒有類似的issue
2. 詳細敘述
由于5.4的內核沒有交換機選項,因此我在編譯前將內核改為4.14來編譯,我更改了target/linux/ramips/Makefile和target/linux/ramips/mt7621/target.mk.中的版本為4.14, 在編譯中遇到以下問題請指教。
(1) 具體問題
A:在 target/linux/ramips/mt7621/ 中沒有config-4.14文件,我用config-5.4代替和把版本回退到4.14.180里面的4.14代替,編譯時都需要手動選擇一些信息,如
VPE loader support. (MIPS_VPE_LOADER) [N/y/?] (NEW) y
Load VPE program into memory hidden from linux (MIPS_VPE_LOADER_TOM) [Y/n/?] (NEW) y
Enable support for AP/SP API (RTLX) (MIPS_VPE_APSP_API) [N/y/?] (NEW) y
MIPS Coherent Processing System support (MIPS_CPS) [Y/n/?]
我需要怎么選擇config-4.14,,或自動選擇這些信息
B:編譯內核時產生錯誤,提示build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/mt76-2020-12-18-4a90fdf6/util.h文件中kthread_create函數沒有聲明,我在這個文件中添加 #include 可順利編譯.
可以將這個改到原始文件中嗎,或者請教一下這個文件的原始文件在哪
(2) 路由器型號和固件版本
A:HC5962, MT7621, 4.14.195 git(9bc05c5ce)
(3) 詳細日志
A:問題B的日志
/home/xxxxx/tmp/lede/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/mt76-2020-12-18-4a90fdf6/util.h: In function 'mt76_worker_setup':
/home/xxxxx/tmp/lede/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/mt76-2020-12-18-4a90fdf6/util.h:73:12: error: implicit declaration of function 'kthread_create'; did you mean 'kobject_create'? [-Werror=implicit-function-declaration]
w->task = kthread_create(__mt76_worker_fn, w, "mt76-%s %s",
^~~~~~~~~~~~~~
kobject_create
/home/xxxxx/tmp/lede/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/mt76-2020-12-18-4a90fdf6/util.h:73:10: error: assignment to 'struct task_struct *' from 'int' makes pointer from integer without a cast [-Werror=int-conversion]
w->task = kthread_create(__mt76_worker_fn, w, "mt76-%s %s",
^
/home/xxxxx/tmp/lede/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/mt76-2020-12-18-4a90fdf6/util.h: In function 'mt76_worker_disable':
/home/xxxxx/tmp/lede/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/mt76-2020-12-18-4a90fdf6/util.h:102:2: error: implicit declaration of function 'kthread_park'; did you mean 'read_pnet'? [-Werror=implicit-function-declaration]
kthread_park(w->task);
^~~~~~~~~~~~
read_pnet
/home/xxxxx/tmp/lede/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/mt76-2020-12-18-4a90fdf6/util.h: In function 'mt76_worker_enable':
/home/xxxxx/tmp/lede/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/mt76-2020-12-18-4a90fdf6/util.h:111:2: error: implicit declaration of function 'kthread_unpark'; did you mean 'read_unlock'? [-Werror=implicit-function-declaration]
kthread_unpark(w->task);
^~~~~~~~~~~~~~
read_unlock
/home/xxxxx/tmp/lede/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/mt76-2020-12-18-4a90fdf6/util.h: In function 'mt76_worker_teardown':
/home/xxxxx/tmp/lede/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/mt76-2020-12-18-4a90fdf6/util.h:120:2: error: implicit declaration of function 'kthread_stop'; did you mean 'ether_setup'? [-Werror=implicit-function-declaration]
kthread_stop(w->task);
^~~~~~~~~~~~
ether_setup
cc1: all warnings being treated as errors
make[5]: *** [scripts/Makefile.build:327: /home/xxxxx/tmp/lede/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/mt76-2020-12-18-4a90fdf6/mmio.o] Error 1
make[4]: *** [Makefile:1550: module/home/xxxxx/tmp/lede/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/mt76-2020-12-18-4a90fdf6] Error 2
make[4]: Leaving directory '/home/xxxxx/tmp/lede/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/linux-4.14.195'
make[3]: *** [Makefile:397: /home/xxxxx/tmp/lede/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/mt76-2020-12-18-4a90fdf6/.built] Error 2
make[3]: Leaving directory '/home/xxxxx/tmp/lede/package/kernel/mt76'
time: package/kernel/mt76/compile#2.30#2.00#3.85
make[2]: *** [package/Makefile:113: package/kernel/mt76/compile] Error 2
make[2]: Leaving directory '/home/xxxxx/tmp/lede'
make[1]: *** [package/Makefile:107: /home/xxxxx/tmp/lede/staging_dir/target-mipsel_24kc_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/xxxxx/tmp/lede'
make: *** [/home/xxxxx/tmp/lede/include/toplevel.mk:224: world] Error 2
總結
以上是生活随笔為你收集整理的mipsel_24kc的linux内核,选择内核为4.14.195时的编译错误的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 冲锋技能jass脚本重写
- 下一篇: Vero WorkNC 2020中文版