最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
移植新内核到Linux系统上的操作步骤
时间:2018-12-19 编辑:猪哥 来源:一聚教程网
1、在ubuntu官网下载ubuntu16.04的镜像和对应ubuntu16.04的内核版本源代码,或者在镜像源上找
2、安装ubuntu16.04到PC主机上
接下来执行以下:
编译新的Linux内核给X86内核使用出现以下错误:
scripts/sign-file.c:25:30: fatal error: openssl/opensslv.h: No such file or directory
解决方法:
(1)下载openssl-1.0.1d.tar.gz
- tar xzf openssl-1.0.1d.tar.gz
- cd openssl-1.0.1d/
- ./config shared no-asm --prefix=$PWD/tmp
- 然后打开Makefile
- 搜索install_docs,将这个编译选项去掉。
- make && make install
- cp ./tmp/include/* /usr/include
- cp ./tmp/lib/* /usr/lib
(2)apt-get upgrade && apt-get update
个人推荐第二种。
再到内核源码根目录
- cp /boot/config-xxxxxx-generic
- make -jx (x代表数字2,4,8,表示CPU核心数)
- make modules_install
- make install
- 确认成功后,reboot
内核移植成功。
相关文章
- Linux的文件权限解析 10-20
- Git文件删除操作命令解析 10-20
- Linux apache实现https的配置教程 10-18
- 远程登录Linux CentOS系统教程 10-11
- UOS系统连接打印机教程 10-10
- Linux系统安装brother打印机驱动并且设置网络打印机教程 10-10