Howto update the kernel only - VIM Pro

OK!

for example its /boot folder (for last khadas ubuntu)

root@Khadas:/boot# ls -l1 /boot
total 50556
-rw-r--r-- 1 root root      868 Dec 30 17:05 aml_autoscript
-rw-r--r-- 1 root root      796 Dec 30 17:05 aml_autoscript.txt
-rw-r--r-- 1 root root      800 Dec 30 17:05 aml_autoscript.zip
-rw-r--r-- 1 root root     8183 Dec 30 17:05 boot.ini
-rw-r--r-- 1 root root     8501 Dec 30 17:05 boot.scr
-rw-r--r-- 1 root root   156725 Dec 30 16:38 config-4.9.206
lrwxrwxrwx 1 root root       11 Jan  9 12:11 dtb -> dtb-4.9.206
drwxr-xr-x 2 root root     4096 Dec 30 17:06 dtb-4.9.206
-rw-r--r-- 1 root root     2733 Jan  9 12:14 env.txt
-rw-r--r-- 1 root root  8469135 Dec 30 17:08 initrd.img-4.9.206
-rw-rw-r-- 1 root root     1994 May 31  2018 remote.conf
-rw-r--r-- 1 root root     8501 Dec 30 17:05 s905_autoscript
-rw-r--r-- 1 root root     8429 Dec 30 17:05 s905_autoscript.cmd
-rw-r--r-- 1 root root  5612780 Dec 30 16:38 System.map-4.9.206
lrwxrwxrwx 1 root root       15 Jan  9 12:11 uInitrd -> uInitrd-4.9.206
-rw-r--r-- 1 root root  8469199 Dec 30 17:08 uInitrd-4.9.206
-rw-r--r-- 1 root root 28979712 Dec 30 16:38 vmlinuz-4.9.206
lrwxrwxrwx 1 root root       15 Jan  9 12:11 zImage -> vmlinuz-4.9.206

1 is - copy new kernel initrd and dtb files to /boot

cp  vmlinuz-new uInitrd-new dtb-new /boot
# fix links
ln -sf vmlinuz-new zImage
ln -sf uInitrd-new uInitrd 
ln -sf /boot/dtb-new dtb.img

2 is - copy all new kernel modules

cp -a /tmp/modules/new /lib/modules/

PS: u can use scp - for remote copy
PSS: anyway u must understand always what are u doing :wink:

GOODluck

2 Likes