There was a procedure in the Software Design article below, so I tried it for the first time in a while. In the article, it was Ubuntu 18.04 on Hyper-V, but I tried it on Ubuntu 20.04 on Azure VM. This is my first kernel compilation on Azure.
$ uname -r
5.4.0-1010-azure
$ git clone -b v5.5.5 --depth 1 https://kernel.googlesource.com/pub/scm/linux/kernel/git/stable/linux-stable
$ cd linux-stable
$ make localmodconfig
For the time being, I just try everything by default, so hit the Enter key repeatedly.
$ make -j$(grep -c processor /proc/cpuinfo) bindeb-pkg
It's not accurate because I was working on it separately, but about 30 minutes on the Standard D2s v3
instance?
$ sudo dpkg -i ../linux-image-5.5.5_5.5.5-16_amd64.deb
It's not necessary if you just reboot and try a new kernel, but if you want to go back, see the manual.
$ sudo /sbin/reboot
...
$ uname -r
5.5.5
Recommended Posts