First check the kernel version you are using
If the source code is automatically installed when the system is installed. There is a corresponding version directory in the /usr/src directory.
Check out the downloadable source packages
I choose "linux-source-3.2.0 - Linux kernel source for version 3.2.0 with Ubuntu patches" to install directly After the download is complete, the file name is: linux-source-3.2.0.tar.bz2 in /usr/src. It is a compressed package. You can get the source code of the entire kernel by decompressing it. Use pwd to view the current path ls to see what files are in the folder
Unzip Enter the directory (cd linux-source-3.2.0)
Start configuring the kernel and choose the fastest original configuration (default) method Make needs to wait for more than an hour. . . A few hours later ...System is 4826 kB CRC d5a51584 Kernel: arch/x86/boot/bzImage is ready (#1) Building modules, stage 2. MODPOST 3304 modules ERROR: "__modver_version_show" [drivers/staging/rts5139/rts5139.ko] undefined! WARNING: modpost: Found 4 section mismatch(es). To see full details build your kernel with: 'make CONFIG_DEBUG_SECTION_MISMATCH=y' make[1]: *** [__modpost] Error 1 make: *** [modules] Error 2 Solution: From http://ubuntuforums.org/showthread.php?t=1931029 It is probably a problem with the RTS5139 driver. Anyway, this driver is not used, so do not add it to the compilation. Edit .config and change CONFIG_RTS5139=m Modify it into the following form: CONFIG_RTS5139=n Continue to make Compile the kernel in compressed form make bzImage Compile the module: make modules Install the module: make modules_install After the execution is completed, a new directory will be generated under /lib/modules
Reboot after success. The above is the full content of this article. I hope it will be helpful for everyone’s study. I also hope that everyone will support 123WORDPRESS.COM. You may also be interested in:
|
<<: VUE realizes registration and login effects
A few days ago, when I was adjusting a module of a...
SQL statement /* Some methods of eliminating dupl...
The color presentation on a web page will be affec...
Table of contents Reactive Function usage: toRef ...
Table of contents First we need to build the page...
Preface Vue (pronounced /vjuː/, similar to view) ...
The installation and configuration methods of MyS...
1. It is preferred to use the root user to log in...
Table of contents 1. Template tag in HTML5 2. Pro...
<br />In general guestbooks, forums and othe...
This article shares the installation tutorial of ...
Windows Server 2012 and Windows Server 2008 diffe...
1. Docker pull pulls the image When using $ docke...
1. Go to the official website to download the ins...
Preface When Ahhang was developing the Springboot...