alex24
November 22, 2017, 7:12pm
1
Hi, I need to update the kernel in a VIM Pro system running an Ubuntu server image.
Do you have any information on how to update kernel/modules and initrd from U-boot in a way you do not overwrite the full emmc (and the whole system). Has anybody tried something similar?
Thanks
Gouwa
November 23, 2017, 1:22am
2
Alex:
Yep, read the Load Images with U-Boot via TFTP for the instructions, and you can also refer the Khadas Docs for further details.
Enjoy!
sunkwi
January 8, 2020, 1:39am
3
Hi,
Is there any guide for this update?
I need to update the kernel only , not full emmc image.
and I tried the gouwa comment but, the link page âLoad images with U-Boot via TFTPâ doesnât open.
Thanks
Sunkwi
RDFTKV
January 8, 2020, 1:54am
4
Hello, The link may be stale, have a look here .
sunkwi
January 8, 2020, 2:08am
5
thanks for your promptly reply
1 Like
sunkwi
January 8, 2020, 8:21am
6
Hi RKFTKV
I am trying to update with U-Boot via TFTP.
currently after kernel building, I couldnât find the some download image files.
Below is my building step.
cd fenix
source env/setenv.sh
select in menu.
VIM3 -> uboot-mainline -> Ubuntu -> bionic -> xfce
#build kernel only
make kernel
â-----build log -----â
SYSMAP System.map
OBJCOPY arch/arm64/boot/Image
Building modules, stage 2.
MODPOST 1746 modules
warning: same module names found:
fs/exfat/exfat.ko
drivers/staging/exfat/exfat.ko
make[1]: Leaving directory â/media/sunkwikim/SSD/projects/amlogic/fenix/build/linux-mainline-5.5-rc2â
Done.
Then I want to try below guide.
"
Linux Kernel Image
Download and run Linux:
kvim# tftp 1080000 zImage
kvim# tftp 10000000 uInitrd
kvim# tftp 20000000 kvim.dtb
kvim# booti 1080000 10000000 20000000
"
but, I couldnât find the built image files(zImage, uinitrd, kvim.db). please let me know where the download image build out.
Regards
Sunkwi
hyphop
January 8, 2020, 8:51am
7
Uboot tftp download files directly to ram
And after Linux start u need upload this files again and put to proper place
sunkwi
January 9, 2020, 12:01am
8
Could you guide me how to update new built files the after linux starting?
Please give me a guide in detail such as building command, image files etc.
I am not familiar with VIM3 Board environment.
sunkwi
January 9, 2020, 7:37am
9
Hi, hyphop
could you give me any update about this issue?
hyphop
January 9, 2020, 12:29pm
10
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
GOODluck
2 Likes
sunkwi
January 10, 2020, 5:10am
11
hi hyphop. Thanks for your support. now itâs works.