In order to adapt to the new hardware and driver requirements, try to recompile the kernel. Use ubuntu16.04-LTS to compile.
1. Replace the Linux software source to improve the download speed:
Edit the path vi /etc/apt/sources.list
//full text delete command
:.,$d
Or you can try to change the source manually, it may be more convenient: select 'Other site'
2. Create a new root user:
sudo passwd root
su to enter root privileges3. Download the source code to /usr/src:
apt install linux-source4. May be used to give folder permissions
chmod 777 -R path to give to file5. Unzip the source code
tar xvf linux-16.04.tar.xz26. Compile
apt-get install libncurses5-dev //安装curses Enter the decompressed source package and execute the command make menuconfig
Enter the configuration interface for relevant configuration, and attach detailed instructions for ubuntu kernel compilation: click to open the link (thanks to God for organizing)
7. After configuration, try make
Error reported missing header file openssl.h Command: apt-get install libssl-dev Re-command make bzImage
Enter the long wait. . .
After the compilation is completed, check the storage path of bzImage. Here I am /usr/src/linux-source-4.4.0/arch/x86/boot/bzImage
8. Replace the kernel
Copy bzImage to the mounted system and place it in the boot directory. Add kernel options: open /boot/grub, edit the file menu.lst
Add: title U kernel /boot/bzImage rw vga+771 panic=1 root=/dev/sda1 hpet=disable savedefault 0
Save and restart, select U in the startup interface to enter the new interface.
PS: 1. Delete unnecessary configuration files: sudo make mrproper For a kernel just downloaded from the Internet, it must be clean, doing so will only be superfluous. But it's a good habit, and there are no bad consequences. 2. Install header files # sudo apt-get install linux-headers-4.4.0 Example of uninstalling header files # sudo apt-get remove linux-headers-4.4.0