Get the App
SLTechnology News&Howtos  ›  Servers  › 

Steps for porting a new kernel to a Linux system

Shulou Source: shulou.com Published: 2022-06-02 01:06:28 10月02日 Update

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

2. Install ubuntu16.04 to the PC host

Next, perform the following:

The following error occurred when compiling a new Linux kernel for use by 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.gzcd openssl-1.0.1d/./config shared no-asm-- prefix=$PWD/tmp then opens Makefile to search for install_docs and removes this compilation option. Make & & make installcp. / tmp/include/* / usr/includecp. / tmp/lib/* / usr/lib

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

I personally recommend the second one.

Then go to the kernel source root directory

Cp / boot/config-xxxxxx-genericmake-jx (x stands for the number of CPU cores) after make modules_installmake install confirms the success, reboot

The kernel was transplanted successfully.

Summary

The above is the whole content of this article. I hope the content of this article has a certain reference and learning value for everyone's study or work. Thank you for your support. If you want to know more about it, please see the relevant links below.

Tags: Kernel content success mirroring learning compiling porting next individual host representative value that is numbers methods more core root directory source code source code Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno vpn NVidia Microsoft Linux Huawei