首页 > 系统服务 > 详细

how to compile and replace ubuntu kernel

时间:2019-09-26 16:32:51      阅读:75      评论:0      收藏:0      [点我收藏+]

how to compile and replace ubuntu kernel

0. environment
  -ubuntu 1804 64bit 

 

1. prepare source code
  sudo apt-get install linux-source
  or
  wget https://git.kernel.org/torvalds/t/linux-4.17-rc2.tar.gz (replace to your version)

 

2. set up tools
  sudo apt-get install git fakeroot build-essential ncurses-dev xz-utils libssl-dev bc flex libelf-dev bison

 

3. tar xvzf linux-4.17-rc2.tar.gz (replace to your version)

 

4. cp /boot/config-$(uname -r) .config

 

5. make menuconfig (can be ignored)

 

6. make modules_install

 

7. sudo make install

 

8. sudo mkinitramfs -o /boot/initrd.img-4.15.18


9. sudo update-initramfs -c -k 4.15.18


10. sudo update-grub2

 

reference

https://linux.cn/article-9665-1.html

https://blog.csdn.net/qq_36290650/article/details/83052315

how to compile and replace ubuntu kernel

原文:https://www.cnblogs.com/pugang/p/11592372.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!