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

Webpack builds scaffolding to package TypeScript code

Create a folder Directory structure: dabaots Init...

Let you understand the working principle of JavaScript

Table of contents Browser kernel JavaScript Engin...

Dissecting the advantages of class over id when annotating HTML elements

There are very complex HTML structures in web pag...

What I learned while building my own blog

<br />In one year of blogging, I have person...

Install and configure MySQL under Linux

System: Ubuntu 16.04LTS 1\Download mysql-5.7.18-l...

Goodbye Docker: How to Transform to Containerd in 5 Minutes

Docker is a very popular container technology. Th...

How to calculate the frame rate FPS of web animations

Table of contents Standards for smooth animation ...

display:grid in CSS3, an introduction to grid layout

1. Grid layout (grid): It divides the web page in...

Comprehensive analysis of MySql master-slave replication mechanism

Table of contents Master-slave replication mechan...

How to change the mysql password on the Xampp server (with pictures)

Today, I found out while working on PHP that if w...

WeChat applet picker multi-column selector (mode = multiSelector)

Table of contents 1. Effect diagram (multiple col...

Alibaba Cloud Server Tomcat cannot be accessed

Table of contents 1. Introduction 2. Solution 2.1...

Nginx Linux installation and deployment detailed tutorial

1. Introduction to Nginx Nginx is a web server th...

How to hide elements on the Web and their advantages and disadvantages

Example source code: https://codepen.io/shadeed/p...