简体   繁体   English

编译内核— 3.9.4 —问题

[英]compiling kernel — 3.9.4 — issues

I have a desktop on which fedora linux is installed. 我有一个安装了fedora linux的桌面。 Kernel i am using is 3.9.4 . 我正在使用的内核是3.9.4 I need to recompile my 3.9.4 kernel for CAN bus support. 我需要重新编译3.9.4内核以支持CAN总线。

My kernel source is here :--- 我的内核源在这里:---

[root@localhost 3.9.4-200.fc18.x86_64]# pwd
/usr/src/kernels/3.9.4-200.fc18.x86_64

Then i did -- make menuconfig , -- changed the configuration. 然后我做了make menuconfig ,-更改了配置。

Error i get after -- make . 我得到的错误- make

[root@localhost 3.9.4-200.fc18.x86_64]# make
make[1]: *** No rule to make target `/usr/src/kernels/3.9.4-200.fc18.x86_64/arch/x86/syscalls/syscall_32.tbl', needed by `arch/x86/syscalls/../include/generated/uapi/asm/unistd_32.h'.  Stop.
make: *** [archheaders] Error 2

How to get rid of this error to compile my kernel ? 如何摆脱这个错误来编译我的内核?

You need to get the entire source tree for the kernel. 您需要获取内核的整个源代码树。 /usr/src/kernels/3.9.4-200.fc18.x86_64/ does not contain the entire source for the Fedora kernel, it only contains headers and makefiles for building additional modules. /usr/src/kernels/3.9.4-200.fc18.x86_64/不包含Fedora内核的全部源代码,它仅包含用于构建其他模块的头文件和makefile。

You can either get the source rpm for that kernel and rebuild it. 您可以获取该内核的源rpm并重建它。 Or get a mainline kernel directly from kernel.org and build it. 或者直接从kernel.org获取主线内核并进行构建。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM