Loading

Ubuntu18.04手动升级内核

提要

公司配发新电脑,硬件无法在Ubuntu18.04下驱动,升级Ubuntu20.04无法兼容部分开发环境,希望手动升级内核增加新硬件支持。

方法

查了一圈,主流方法推荐UKUU进行升级,需要添加ppa源等操作,个人觉得比较麻烦。
偶然发现了可以使用deb包的方法升级内核,决定尝试。
首先登陆The Linux Kernel Archives查询得到最新内核稳定版本 Latest Release 5.15
随后访问Ubuntu Kernel网站获取最新内核deb文件
https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.15/
平台选择amd64内核种类分为generic与low-latency官方区别如下

The Low-Latency Kernel included in Ubuntu Studio (and available in the Ubuntu repositories) does not allow such malicious code from locking-out a user from their machine. It does contain other optimizations, such as Preempt-RT being enabled in the kernel configuration, to achieve the lowest possible latency for audio and other applications, while keeping the user interface usable. Latency as low as 0.1 millisecond can and has been achieved using this kernel.

因此不涉及音频处理的普通用户选择通用版即可,对应四个下载文件如下:

  amd64/linux-headers-5.15.0-051500-generic_5.15.0-051500.202110312130_amd64.deb
  amd64/linux-headers-5.15.0-051500_5.15.0-051500.202110312130_all.deb
  amd64/linux-image-unsigned-5.15.0-051500-generic_5.15.0-051500.202110312130_amd64.deb
  amd64/linux-modules-5.15.0-051500-generic_5.15.0-051500.202110312130_amd64.deb

下载完成后使用sudo dpkg -i linux*.deb进行安装,重启后硬件驱动生效。

参考

The Linux Kernel Archives
UbuntuStudio/RealTimeKernel - Community Help Wiki

posted @ 2021-11-06 19:24  azureology  阅读(1533)  评论(0编辑  收藏  举报