ยง2023-11-12
alexlai@n2JamGen:~/build/src/linux-5.15.0$ sudo make install
sh ./arch/arm64/boot/install.sh 5.15.126 \
arch/arm64/boot/Image System.map "/boot"
run-parts: executing /etc/kernel/postinst.d/dkms 5.15.126 /boot/vmlinuz-5.15.126
* dkms: running auto installation service for kernel 5.15.126 [ OK ]
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 5.15.126 /boot/vmlinuz-5.15.126
update-initramfs: Generating /boot/initrd.img-5.15.126
Using DTB: amlogic/meson64_odroidn2_plus.dtb
Couldn't find DTB meson64_odroidn2_plus.dtb in /usr/lib/linux-image-5.15.126 or /etc/flash-kernel/dtbs
Couldn't find DTB files in /usr/lib/linux-image-5.15.126/amlogic
run-parts: /etc/initramfs/post-update.d//flash-kernel exited with return code 1
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
make: *** [arch/arm64/Makefile:163: install] Error 1
total 72668
-rw-r--r-- 1 root root 4490 Nov 12 09:32 boot.scr
-rw-r--r-- 1 root root 4490 Nov 12 08:37 boot.scr.bak
-rw-r--r-- 1 root root 4476 Nov 12 11:19 boot.script
-rw-r--r-- 1 root root 4548 Nov 12 11:19 boot.scr.mod
-rw-r--r-- 1 root root 4490 Nov 12 13:11 boot.scr.ori
-rw-r--r-- 1 root root 220943 Jun 23 17:13 config-5.15.0-odroid-arm64
-rw-r--r-- 1 root root 221407 Nov 12 11:14 config-5.15.126
-rw-r--r-- 1 root root 237 Nov 12 08:30 config.ini
lrwxrwxrwx 1 root root 58 Nov 12 08:37 dtb -> dtbs/5.15.0-odroid-arm64/amlogic/meson64_odroidn2_plus.dtb
lrwxrwxrwx 1 root root 58 Nov 12 08:37 dtb-5.15.0-odroid-arm64 -> dtbs/5.15.0-odroid-arm64/amlogic/meson64_odroidn2_plus.dtb
drwxr-xr-x 3 root root 4096 Nov 12 13:10 dtbs
lrwxrwxrwx 1 root root 30 Nov 12 08:31 initrd.img -> initrd.img-5.15.0-odroid-arm64
-rw-r--r-- 1 root root 11759126 Nov 12 08:37 initrd.img-5.15.0-odroid-arm64
-rw-r--r-- 1 root root 11781474 Nov 12 11:14 initrd.img-5.15.126
lrwxrwxrwx 1 root root 30 Nov 12 08:31 initrd.img.old -> initrd.img-5.15.0-odroid-arm64
drwx------ 2 root root 16384 Nov 12 08:24 lost+found
lrwxrwxrwx 1 root root 41 Nov 12 08:37 overlays -> dtbs/5.15.0-odroid-arm64/amlogic/overlays
-rw-r--r-- 1 root root 5487786 Jun 23 17:13 System.map-5.15.0-odroid-arm64
-rw-r--r-- 1 root root 5498600 Nov 12 11:14 System.map-5.15.126
lrwxrwxrwx 1 root root 16 Nov 12 11:14 vmlinuz -> vmlinuz-5.15.126
-rw-r--r-- 1 root root 11508233 Jun 23 17:13 vmlinuz-5.15.0-odroid-arm64
-rw-r--r-- 1 root root 27854856 Nov 12 11:14 vmlinuz-5.15.126
lrwxrwxrwx 1 root root 27 Nov 12 08:31 vmlinuz.old -> vmlinuz-5.15.0-odroid-arm64
alexlai@n2JamGen:~/build/src/linux-5.15.0$ sudo make install
sh ./arch/arm64/boot/install.sh 5.15.126
arch/arm64/boot/Image System.map "/boot"
run-parts: executing /etc/kernel/postinst.d/dkms 5.15.126 /boot/vmlinuz-5.15.126
- dkms: running auto installation service for kernel 5.15.126 [ OK ] run-parts: executing /etc/kernel/postinst.d/initramfs-tools 5.15.126 /boot/vmlinuz-5.15.126 update-initramfs: Generating /boot/initrd.img-5.15.126 Using DTB: amlogic/meson64_odroidn2_plus.dtb Couldn't find DTB meson64_odroidn2_plus.dtb in /usr/lib/linux-image-5.15.126 or /etc/flash-kernel/dtbs Couldn't find DTB files in /usr/lib/linux-image-5.15.126/amlogic run-parts: /etc/initramfs/post-update.d//flash-kernel exited with return code 1 run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1 make: *** [arch/arm64/Makefile:163: install] Error 1
$ sudo ln -sf /usr/lib/linux-image-5.15.0-odroid-arm64/ /usr/lib/linux-image-5.15.126
alexlai@n2JamGen:~/build/src/linux-5.15.0$ sudo make install
sh ./arch/arm64/boot/install.sh 5.15.126
arch/arm64/boot/Image System.map "/boot"
run-parts: executing /etc/kernel/postinst.d/dkms 5.15.126 /boot/vmlinuz-5.15.126
- dkms: running auto installation service for kernel 5.15.126 [ OK ] run-parts: executing /etc/kernel/postinst.d/initramfs-tools 5.15.126 /boot/vmlinuz-5.15.126 update-initramfs: Generating /boot/initrd.img-5.15.126 Using DTB: amlogic/meson64_odroidn2_plus.dtb Couldn't find DTB meson64_odroidn2_plus.dtb in /usr/lib/linux-image-5.15.126 or /etc/flash-kernel/dtbs Installing amlogic into /boot/dtbs/5.15.126/amlogic/ Couldn't find DTB meson64_odroidn2_plus.dtb in /usr/lib/linux-image-5.15.126 or /etc/flash-kernel/dtbs Installing amlogic into /boot/dtbs/5.15.126/amlogic/ Kernel /boot/vmlinuz-5.15.126 does not match any of the expected flavors (arm64), therefore not writing it to flash. run-parts: executing /etc/kernel/postinst.d/xx-update-initrd-links 5.15.126 /boot/vmlinuz-5.15.126 I: /boot/vmlinuz.old is now a symlink to vmlinuz-5.15.0-odroid-arm64 I: /boot/initrd.img.old is now a symlink to initrd.img-5.15.0-odroid-arm64 I: /boot/initrd.img is now a symlink to initrd.img-5.15.126 run-parts: executing /etc/kernel/postinst.d/zz-flash-kernel 5.15.126 /boot/vmlinuz-5.15.126 Using DTB: amlogic/meson64_odroidn2_plus.dtb Couldn't find DTB meson64_odroidn2_plus.dtb in /usr/lib/linux-image-5.15.126 or /etc/flash-kernel/dtbs Installing amlogic into /boot/dtbs/5.15.126/amlogic/ Couldn't find DTB meson64_odroidn2_plus.dtb in /usr/lib/linux-image-5.15.126 or /etc/flash-kernel/dtbs Installing amlogic into /boot/dtbs/5.15.126/amlogic/ Kernel /boot/vmlinuz-5.15.126 does not match any of the expected flavors (arm64), therefore not writing it to flash.
Then, it boots into 5.15.126
mkimage -A arm -T script -C none -n "Ubuntu boot script" -d boot.script boot.scr