Steps to transplant the new kernel to the Linux system

Steps to transplant the new kernel to the Linux system

1. Download the ubuntu16.04 image and the corresponding ubuntu16.04 kernel version source code from the ubuntu official website, or find it on the image source.

2. Install Ubuntu 16.04 on the PC host

Next, execute the following:

The following error occurs when compiling a new Linux kernel for use with the X86 kernel:

scripts/sign-file.c:25:30: fatal error: openssl/opensslv.h: No such file or directory

Solution:

(1) Download 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
  • Then open Makefile
  • Search for install_docs and remove this compilation option.
  • make && make install
  • cp ./tmp/include/* /usr/include
  • cp ./tmp/lib/* /usr/lib

(2)apt-get upgrade && apt-get update

Personally, I recommend the second one.

Then go to the kernel source root directory

  • cp /boot/config-xxxxxx-generic
  • make -jx (x represents the number 2, 4, 8, indicating the number of CPU cores)
  • make modules_install
  • make install
  • After confirmation, reboot

The kernel porting was successful.

Summarize

The above is the full content of this article. I hope that the content of this article will have certain reference learning value for your study or work. Thank you for your support of 123WORDPRESS.COM. If you want to learn more about this, please check out the following links

You may also be interested in:
  • How to compile the Linux kernel
  • How to implement Linux deepin to delete redundant kernels
  • How to manually upgrade the kernel in deepin linux
  • In-depth analysis of the Linux kernel macro container_of
  • Linux kernel device driver character device driver notes
  • Detailed explanation of Linux kernel memory management architecture
  • Linux kernel parameter adjustment method
  • Analyze the compilation and burning of Linux kernel and device tree

<<:  MySQL SQL statement performance tuning simple example

>>:  Several methods of implementing carousel images in JS

Recommend

MySQL MyISAM default storage engine implementation principle

By default, the MyISAM table will generate three ...

Detailed explanation of the interaction between React Native and IOS

Table of contents Prerequisites RN passes value t...

Summary of three methods of lazy loading lazyLoad using native JS

Table of contents Preface Method 1: High contrast...

Tutorial on using the hyperlink tag in HTML

The various HTML documents of the website are con...

WeChat applet scroll-view realizes left-right linkage effect

WeChat applet uses scroll-view to achieve left-ri...

JS implements dragging the progress bar to change the transparency of elements

What I want to share today is to use native JS to...

JavaScript uses canvas to draw coordinates and lines

This article shares the specific code of using ca...

Solution to MySQL server login error ERROR 1820 (HY000)

Fault site: Log in to the MySQL server and get th...

mysql 5.7.18 winx64 free installation configuration method

1. Download 2. Decompression 3. Add the path envi...

CSS3 implements the sample code of NES game console

Achieve resultsImplementation Code html <input...

Details on overriding prototype methods in JavaScript instance objects

Table of contents In JavaScript , we can usually ...

5 Simple XHTML Web Forms for Web Design

Simple XHTML web form in web design 5. Technique ...

CSS method of clearing float and BFC

BFC BFC: Block Formatting Context BFC layout rule...

mysql5.7.21 utf8 encoding problem and solution in Mac environment

1. Goal: Change the value of character_set_server...