当前内核4.15,是由4.14莫名其妙通过软件升级程序自动升级上来的。
打算自行编译配置升级到4.16
先到镜像地址:http://mirror.bjtu.edu.cn/kernel/linux/kernel/
或者 : http://ftp.sjtu.edu.cn/sites/ftp.kernel.org/pub/linux/kernel/
下载4.16.9版本源码
编译前使用make mrproper命令清理掉编译痕迹,该指令与make clean有区别,可以理解为更彻底。
图形化配置xconfig的依赖需要 flex bison qttools5-dev 。
make xconfig到此可以使用。
然后按百度文档描述使用make dep
root@lc-NUC8i5BEH:/usr/src/linux-4.16.9# make dep
Makefile:976: "Cannot use CONFIG_STACK_VALIDATION=y, please install libelf-dev, libelf-devel or elfutils-libelf-devel"
make: *** No rule to make target 'dep'。 停止。
这个还是缺依赖,按提示安装libelf-dev等。
以上所有内容均为百度过的手段,全都没用,全都不对,全是扯淡。
除了这个镜像地址是不错的
镜像地址:http://mirror.bjtu.edu.cn/kernel/linux/kernel/
或者 : http://ftp.sjtu.edu.cn/sites/ftp.kernel.org/pub/linux/kernel/
最最最正确的编译内核和升级内核的说明文档就在源码目录下的README文件,
请仔细阅读,你需要的不是百度,而是有道翻译。
Linux kernel release 4.x <http://kernel.org/>
=============================================
These are the release notes for Linux version 4. Read them carefully,
as they tell you what this is all about, explain how to install the
kernel, and what to do if something goes wrong.
What is Linux?
--------------
Linux is a clone of the operating system Unix, written from scratch by
Linus Torvalds with assistance from a loosely-knit team of hackers across
the Net. It aims towards POSIX and Single UNIX Specification compliance.
It has all the features you would expect in a modern fully-fledged Unix,
including true multitasking, virtual memory, shared libraries, demand
loading, shared copy-on-write executables, proper memory management,
and multistack networking including IPv4 and IPv6.
It is distributed under the GNU General Public License v2 - see the
accompanying COPYING file for more details.
On what hardware does it run?
-----------------------------
Although originally developed first for 32-bit x86-based PCs (386 or higher),
today Linux also runs on (at least) the Compaq Alpha AXP, Sun SPARC and
UltraSPARC, Motorola 68000, PowerPC, PowerPC64, ARM, Hitachi SuperH, Cell,
IBM S/390, MIPS, HP PA-RISC, Intel IA-64, DEC VAX, AMD x86-64, AXIS CRIS,
Xtensa, Tilera TILE, ARC and Renesas M32R architectures.
Linux is easily portable to most general-purpose 32- or 64-bit architectures
as long as they have a paged memory management unit (PMMU) and a port of the
GNU C compiler (gcc) (part of The GNU Compiler Collection, GCC). Linux has
also been ported to a number of architectures without a PMMU, although
functionality is then obviously somewhat limited.
Linux has also been ported to itself. You can now run the kernel as a
userspace application - this is called UserMode Linux (UML).
Documentation
-------------
- There is a lot of documentation available both in electronic form on
the Internet and in books, both Linux-specific and pertaining to
general UNIX questions. I'd recommend looking into the documentation
subdirectories on any Linux FTP site for the LDP (Linux Documentation
Project) books. This README is not meant to be documentation on the
system: there are much better sources available.
- There are various README files in the Documentation/ subdirectory:
these typically contain kernel-specific installation notes for some
drivers for example. See Documentation/00-INDEX for a list of what
is contained in each file. Please read the
:ref:`Documentation/process/changes.rst <changes>` file, as it
contains information about the problems, which may result by upgrading
your kernel.
Installing the kernel source
----------------------------
- If you install the full sources, put the kernel tarball in a
directory where you have permissions (e.g. your home directory) and
unpack it::
xz -cd linux-4.X.tar.xz | tar xvf -
Replace "X" with the version number of the latest kernel.
Do NOT use the /usr/src/linux area! This area has a (usually
incomplete) set of kernel headers that are used by the library header
files. They should match the lib