jeudi 29 janvier 2015
Ubuntu 14.10 - Upgrade Linux kernel from 3.18.1 to 3.18.4 (incremental patches)
Par david techer, jeudi 29 janvier 2015 à 18:02 :: Ubuntu
/opt/linux-3.18.1
. Kernel 3.18.1 is my current kernel. I wanted to upgrade because I read important notes in ChangeLog-3.18.4.
This way my kernel will be up-to-date.
- Go to this folder
cd /opt/linux-3.18.1
- Download incremental patches
mkdir tmp_patch cd tmp_patch/ wget https://www.kernel.org/pub/linux/kernel/v3.x/incr/patch-3.18.1-2.xz wget https://www.kernel.org/pub/linux/kernel/v3.x/incr/patch-3.18.2-3.xz wget https://www.kernel.org/pub/linux/kernel/v3.x/incr/patch-3.18.3-4.xz
- Decompress these patches
xz -d patch-3.18.1-2.xz xz -d patch-3.18.2-3.xz xz -d patch-3.18.3-4.xz
- Apply these patches
cd .. patch -p1 < tmp_patch/patch-3.18.1-2 patch -p1 < tmp_patch/patch-3.18.2-3 patch -p1 < tmp_patch/patch-3.18.3-4
- The usual commands to build kernel
- Nothing to change using command below (I will just click 'Yes' since all my options are already checked)
make menuconfig
Notice: Just runmake mrproper
before command above to keep your kernel folder clean -- if required !-- - Build everything
make -j4 bzImage modules
Notice: If you have a DVD or a film to watch then ....Command above should take a while - Install
make -j4 INSTALL_MOD_STRIP=1 modules_install make -j4 INSTALL_MOD_STRIP=1 install make -j4 INSTALL_MOD_STRIP=1 headers_install
Notice:INSTALL_MOD_STRIP=1
is pretty useful. This flag helps to install binaries with a smaller size
- Nothing to change using command below (I will just click 'Yes' since all my options are already checked)