嵌入式Linux应用与开发——内核配置选项含Linux最新版本kernel下载后续操作

本文详细介绍了在Ubuntu环境下,从下载最新Linux内核到解压、配置、编译的过程。在配置内核时遇到问题,未能成功打开配置窗口。作者建议先了解相关知识,再解决编译错误。内容涵盖了内核配置选项、模块选择、处理器类型、网络协议、设备驱动等关键步骤。
摘要由CSDN通过智能技术生成

下载官网的最新Linux内核版本,Linux虚拟机中Ubuntu 下载速度慢,更换镜像源后使下载速度正常。这是一个.tar.xz文件,我们要先来解压它。下面是下载内核解压文件编译内核配置内核的全过程。由于我们并没有正确的写好相关配置文件,我们的内核编译是失败的。

First,we would like to download the latest Linux kernel from Linux website .It seems that we could choose some old versions with smaller size but we prefer to using the latest one firstly.

xz -d linux-5.7.tar.xz
tar -xvf linux-5.7.tar

After decompressing the file, we would like to explore it.

 cd linux-5.7/
 ls

在这里插入图片描述
Here we have met a problem after entering make menuconfig in the terminal .We can not open the Linux kernel configuration window.

(base) warmtree@warmtree-HP-Pavilion-Laptop-15-cc5xx:~/下载/linux-5.7$ make menuconfig
  HOSTCC  scripts/basic/fixdep
  UPD     scripts/kconfig/mconf-cfg
  HOSTCC  scripts/kconfig/mconf.o
  HOSTCC  scripts/kconfig/lxdialog/checklist.o
  HOSTCC  scripts/kconfig/lxdialog/inputbox.o
  HOSTCC  scripts/kconfig/lxdialog/menubox.o
  HOSTCC  scripts/kconfig/lxdialog/textbox.o
  HOSTCC  scripts/kconfig/lxdialog/util.o
  HOSTCC  scripts/kconfig/lxdialog/yesno.o
  HOSTCC  scripts/kconfig/confdata.o
  HOSTCC  scripts/kconfig/expr.o
  LEX     scripts/kconfig/lexer.lex.c
/bin/sh: 1: flex: not found
scripts/Makefile.host:9: recipe for target 'scripts/kconfig/lexer.lex.c' failed
make[1]: *** [scripts/kconfig/lexer.lex.c] Error 127
Makefile:588: recipe for target 'menuconfig' failed
make: *** [menuconfig] Error 2

We should compile successfully before configuring.

  • 0
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

肥鼠路易

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值