Steps for porting a new kernel to an Linux system

  • 2020-12-21 18:16:53
  • OfStack

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

2. Install ubuntu16.04 to PC host

Next execute the following:

Compiling the new Linux kernel to use with the X86 kernel produced the following error:

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

Solutions:

(1) download openssl - d 1.0.1. 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 install_docs to remove this compilation option. make & & make install cp ./tmp/include/* /usr/include cp ./tmp/lib/* /usr/lib

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

I personally recommend type 2.

Go to the kernel source root directory

cp /boot/config-xxxxxx-generic make-jx (x stands for the number 2,4,8, which represents the core number of CPU) make modules_install make install After confirmation, reboot

Kernel migration successful.

conclusion


Related articles: