kernel---ubuntu编译内核

编译环境
Distributor ID: Ubuntu
Description: Ubuntu 20.04.3 LTS
Release: 20.04

编译内核版本
linux-4.19.10.tar.gz

编译过程
第一步:解压内核
第二步:执行下面三个命令

sudo make mrproper
mrproper为清除编译过程中产生的所有中间文件

sudo make clean
clean为清除上一次产生的编译中间文件

sudo make menuconfig
在menuconfig中出现选择的图形化界面后,直接按右方向键选择到exit退出,退出提示中选择保存,实现内核的默认配置

第三步:执行configure
./configure --disable-mutile

第四步:编译
sudu make

编译时遇到下列错误
错误1

  • Unable to find the ncurses package.
  • Install ncurses (ncurses-devel or libncurses-dev
  • depending on your distribution)

解决方法:
sudo apt-get install ncurses-dev

错误2
UPD scripts/kconfig/.mconf-cfg
HOSTCC scripts/kconfig/mconf.o
YACC scripts/kconfig/zconf.tab.c
/bin/sh: 1: bison: not found
make[1]: *** [scripts/Makefile.lib:196:scripts/kconfig/zconf.tab.c] 错误 127
ma

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值