§2023-10-09
W: https://repo.huaweicloud.com/docker-ce/linux/ubuntu/dists/jammy/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
- quick solve
root@orangepi5plus:/home/orangepi# cp /etc/apt/trusted.gpg /etc/apt/trusted.gpg.d -->
from freshly burned
root@orangepi5plus:/mnt# mkimage -A arm64 -O linux -T ramdisk -C none -a 0 -e 0 -d initrd.img-5.10.110-rockchip-rk3588 initrd.img-5.10.110-rockchip-rk3588.uimg
Image Name:
Created: Mon Oct 9 16:46:24 2023
Image Type: AArch64 Linux RAMDisk Image (uncompressed)
Data Size: 20015902 Bytes = 19546.78 KiB = 19.09 MiB
Load Address: 00000000
Entry Point: 00000000
root@orangepi5plus:/mnt# mv uInitrd uInitrd.old
root@orangepi5plus:/mnt# ln -sf initrd.img-5.10.110-rockchip-rk3588.uimg uInitrd
root@orangepi5plus:/mnt# ls -l
total 101168
-rwxr-xr-x 1 root root 230456 Jun 1 12:07 boot.bmp
-rwxr-xr-x 1 root root 3339 Jun 1 12:05 boot.cmd
-rwxr-xr-x 1 root root 3411 Jun 1 12:15 boot.scr
-rwxr-xr-x 1 root root 219610 Jun 1 11:43 config-5.10.110-rockchip-rk3588
drwxr-xr-x 3 root root 4096 Jun 1 12:06 dtb
drwxr-xr-x 3 root root 4096 Jun 1 12:06 dtb-5.10.110-rockchip-rk3588
lrwxrwxrwx 1 root root 32 Oct 9 16:41 Image -> vmlinuz-5.10.110-rockchip-rk3588
-rwxr-xr-x 1 root root 20015902 Jun 1 12:16 initrd.img-5.10.110-rockchip-rk3588
-rw-r--r-- 1 root root 20015966 Oct 9 16:46 initrd.img-5.10.110-rockchip-rk3588.uimg
-rwxr-xr-x 1 root root 1152056 Jun 1 12:07 logo.bmp
drwx------ 2 root root 16384 Oct 9 16:39 lost+found
-rwxr-xr-x 1 root root 226 Oct 9 16:37 orangepiEnv.txt
-rwxr-xr-x 1 root root 1542 Jun 1 12:13 orangepi_first_run.txt.template
-rwxr-xr-x 1 root root 7780782 Jun 1 11:43 System.map-5.10.110-rockchip-rk3588
lrwxrwxrwx 1 root root 40 Oct 9 16:48 uInitrd -> initrd.img-5.10.110-rockchip-rk3588.uimg
-rwxr-xr-x 1 root root 20015966 Jun 1 12:16 uInitrd.old
-rwxr-xr-x 1 root root 34109952 Jun 1 11:43 vmlinuz-5.10.110-rockchip-rk3588
(chroot) orangepi5plus /usr/src # git clone --branch orange-pi-5.10-rk3588 https://github.com/orangepi-xunlong/linux-orangepi.git
# eselect kernel list
# eselect kernel set 2 <-- you can not use `ln -sf`
#
- make menuconfig
# ls /mnt/gentoo/usr/src/linux/arch/arm64/configs
amlogic_gki.fragment fips140_gki_eval_testing.fragment hikey960_gki.fragment rk1808_linux_defconfig rk3326_linux.config rk3399pro_npu_defconfig rk3588_linux.config rockchip_defconfig rockchip_linux_defconfig
db845c_gki.fragment fips140_gki.fragment px30_linux_defconfig rk1808_x4_linux_defconfig rk3326_linux_robot_defconfig rk3568_nvr.config rk3588_nvr.config rockchip_gki.config rockchip_rt.config
defconfig gki_defconfig px30_linux_robot_defconfig rk3308_linux_defconfig rk3358_linux.config rk3588_edge.config rockchip_cros_defconfig rockchip_gki.fragment rockpi4_defconfig
# zcat /proc/config.gz > /usr/src/linux/.config ` <---
# make menuconfig rk3358_linux.config
(chroot) orangepi5plus /usr/src/linux # genkernel all
* Gentoo Linux Genkernel; Version 4.3.6
* Using genkernel configuration from '/etc/genkernel.conf' ...
* Running with options: all
* Working with Linux kernel 5.10.110 for arm64
* Using kernel config file '/usr/share/genkernel/arch/arm64/generated-config' ...
*
* Note: The version above is subject to change (depends on config and status of kernel sources).
* kernel: >> Initializing ...
* >> Previous config backed up to .config--2023-10-09--05-25-11.bak
* >> Running 'make mrproper' ...
* >> Running 'make oldconfig' ...
* >> Ignoring --microcode parameter; Architecture does not support microcode loading ...
* >> Re-running 'make oldconfig' due to changed kernel options ...
* >> Kernel version has changed (probably due to config change) since genkernel start:
* We are now building Linux kernel 5.10.110-arm64+ for arm64 ...
* >> Compiling 5.10.110-arm64+ Image ...
* >> Compiling 5.10.110-arm64+ modules ...
* >> Installing 5.10.110-arm64+ modules (and stripping) ...
* >> Generating module dependency data ...
* >> Compiling out-of-tree module(s) ...
* >> Saving config of successful build to '/etc/kernels/kernel-config-5.10.110-arm64+' ...
* initramfs: >> Initializing ...
* >> Appending devices cpio data ...
* >> Appending base_layout cpio data ...
* >> Appending util-linux cpio data ...
* >> Appending eudev cpio data ...
* >> Appending auxiliary cpio data ...
* >> Appending busybox cpio data ...
* >> Appending modprobed cpio data ...
* >> Appending modules cpio data ...
* >> Deduping cpio ...
* >> Pre-generating initramfs' /etc/ld.so.cache ...
* >> Compressing cpio data (.xz) ...
xz: Reduced the number of threads from 8 to 1 to not exceed the memory usage limit of 1923 MiB
* Kernel compiled successfully!
*
* --no-bootloader set; Skipping bootloader update ...
*
* Required kernel parameter:
*
* root=/dev/$ROOT
*
* Where $ROOT is the device node for your root partition as the
* one specified in /etc/fstab
* If you require Genkernel's hardware detection features, you MUST
* tell your bootloader to use the provided initramfs file '/boot/initramfs-5.10.110-arm64+.img'.
* WARNING... WARNING... WARNING...
* Additional kernel parameters that *may* be required to boot properly:
* Do NOT report kernel bugs as genkernel bugs unless your bug
* is about the default genkernel configuration...
*
* Make sure you have the latest ~arch genkernel before reporting bugs.
* Failed to determine session leader; Will not try to stop child processes
- what we got in /boot
(chroot) orangepi5plus / # ls -l /boot
total 287556
-rwxr-xr-x 1 root root 230456 Jun 1 04:07 boot.bmp
-rwxr-xr-x 1 root root 3339 Jun 1 04:05 boot.cmd
-rwxr-xr-x 1 root root 3411 Oct 8 07:25 boot.scr
-rwxr-xr-x 1 root root 3411 Oct 8 07:25 boot.scr.ori
-rwxr-xr-x 1 root root 219610 Jun 1 03:43 config-5.10.110-rockchip-rk3588
-rw-r--r-- 1 root root 281506 Oct 7 09:22 config-6.1.55-gentoo-dist
drwxr-xr-x 3 root root 4096 Jun 1 04:06 dtb
drwxr-xr-x 3 root root 4096 Jun 1 04:06 dtb-5.10.110-rockchip-rk3588
drwxr-xr-x 3 root root 4096 Oct 7 09:20 dtbs
lrwxrwxrwx 1 root root 30 Oct 8 07:22 Image -> vmlinuz-6.1.53-gentoo-r1-arm64
-rw-r--r-- 1 root root 9772484 Oct 9 06:24 initramfs-5.10.110-arm64+.img <-- 2023-10-09
-rw-r--r-- 1 root root 9631808 Oct 9 05:08 initramfs-6.1.53-gentoo-r1-arm64.img
-rw-r--r-- 1 root root 9637200 Oct 8 07:01 initramfs-6.1.53-gentoo-r1-arm64.img.old
-rw-r--r-- 1 root root 28914325 Oct 7 09:22 initramfs-6.1.55-gentoo-dist.img
-rwxr-xr-x 1 root root 20015902 Jun 1 04:16 initrd.img-5.10.110-rockchip-rk3588
-rwxr-xr-x 1 root root 1152056 Jun 1 04:07 logo.bmp
drwx------ 2 root root 16384 Oct 7 07:05 lost+found
-rwxr-xr-x 1 root root 226 Oct 8 07:23 orangepiEnv.txt
-rwxr-xr-x 1 root root 1542 Jun 1 04:13 orangepi_first_run.txt.template
-rw-r--r-- 1 root root 5087703 Oct 9 05:35 System.map-5.10.110-arm64+ <-- 2023-10-09
-rwxr-xr-x 1 root root 7780782 Jun 1 03:43 System.map-5.10.110-rockchip-rk3588
-rw-r--r-- 1 root root 4371654 Oct 9 04:01 System.map-6.1.53-gentoo-r1-arm64
-rw-r--r-- 1 root root 4371654 Oct 8 06:04 System.map-6.1.53-gentoo-r1-arm64.old
-rw-r--r-- 1 root root 6986092 Oct 7 09:22 System.map-6.1.55-gentoo-dist
lrwxrwxrwx 1 root root 30 Oct 8 07:22 uInitrd -> uInitrd-6.1.53-gentoo-r1-arm64
-rwxr-xr-x 1 root root 20015966 Oct 7 07:48 uInitrd-5.10.110-rockchip-rk3588
-rw-r--r-- 1 root root 9637264 Oct 8 07:19 uInitrd-6.1.53-gentoo-r1-arm64
-rwxr-xr-x 1 root root 28914389 Oct 7 09:38 uInitrd-6.1.55-gentoo-dist
-rw-r--r-- 1 root root 25709056 Oct 9 05:35 vmlinuz-5.10.110-arm64+ <-- 2023-10-09
-rwxr-xr-x 1 root root 34109952 Oct 7 11:46 vmlinuz-5.10.110-rockchip-rk3588
-rw-r--r-- 1 root root 27806208 Oct 9 04:01 vmlinuz-6.1.53-gentoo-r1-arm64 <-- 2023-10-09, ??
-rw-r--r-- 1 root root 27806208 Oct 8 06:04 vmlinuz-6.1.53-gentoo-r1-arm64.old
-rw-r--r-- 1 root root 12272594 Oct 7 09:22 vmlinuz-6.1.55-gentoo-dist
mkimage
(chroot) orangepi5plus /boot # mkimage -A arm64 -O linux -T ramdisk -C none -a 0 -e 0 -d initramfs-5.10.110-arm64+.img uInitrd-5.10.110-arm64+.uimg
Image Name:
Created: Mon Oct 9 06:44:21 2023
Image Type: AArch64 Linux RAMDisk Image (uncompressed)
Data Size: 9772484 Bytes = 9543.44 KiB = 9.32 MiB
Load Address: 00000000
Entry Point: 00000000
(chroot) orangepi5plus /boot # file uInitrd-5.10.110-arm64+.uimg
uInitrd-5.10.110-arm64+.uimg: u-boot legacy uImage, , Linux/ARM 64-bit, RAMDisk Image (Not compressed), 9772484 bytes, Mon Oct 9 06:44:21 2023, Load Address: 00000000, Entry Point: 00000000, Header CRC: 0XF188DBC, Data CRC: 0X8B199904
(chroot) orangepi5plus /boot # lsーl
(chroot) orangepi5plus /boot # ln -sf vmlinuz-5.10.110-arm64+ Image
(chroot) orangepi5plus /boot # ln -sf uInitrd-5.10.110-arm64+.uimg uInitrd
(chroot) orangepi5plus /boot # ls -l
total 297100
-rwxr-xr-x 1 root root 230456 Jun 1 04:07 boot.bmp
-rwxr-xr-x 1 root root 3339 Jun 1 04:05 boot.cmd
-rwxr-xr-x 1 root root 3411 Oct 8 07:25 boot.scr
-rwxr-xr-x 1 root root 3411 Oct 8 07:25 boot.scr.ori
-rwxr-xr-x 1 root root 219610 Jun 1 03:43 config-5.10.110-rockchip-rk3588
-rw-r--r-- 1 root root 281506 Oct 7 09:22 config-6.1.55-gentoo-dist
drwxr-xr-x 3 root root 4096 Jun 1 04:06 dtb
drwxr-xr-x 3 root root 4096 Jun 1 04:06 dtb-5.10.110-rockchip-rk3588
drwxr-xr-x 3 root root 4096 Oct 7 09:20 dtbs
lrwxrwxrwx 1 root root 23 Oct 9 06:46 Image -> vmlinuz-5.10.110-arm64+
-rw-r--r-- 1 root root 9772484 Oct 9 06:24 initramfs-5.10.110-arm64+.img
-rw-r--r-- 1 root root 9631808 Oct 9 05:08 initramfs-6.1.53-gentoo-r1-arm64.img
-rw-r--r-- 1 root root 9637200 Oct 8 07:01 initramfs-6.1.53-gentoo-r1-arm64.img.old
-rw-r--r-- 1 root root 28914325 Oct 7 09:22 initramfs-6.1.55-gentoo-dist.img
-rwxr-xr-x 1 root root 20015902 Jun 1 04:16 initrd.img-5.10.110-rockchip-rk3588
-rwxr-xr-x 1 root root 1152056 Jun 1 04:07 logo.bmp
drwx------ 2 root root 16384 Oct 7 07:05 lost+found
-rwxr-xr-x 1 root root 226 Oct 8 07:23 orangepiEnv.txt
-rwxr-xr-x 1 root root 1542 Jun 1 04:13 orangepi_first_run.txt.template
-rw-r--r-- 1 root root 5087703 Oct 9 05:35 System.map-5.10.110-arm64+
-rwxr-xr-x 1 root root 7780782 Jun 1 03:43 System.map-5.10.110-rockchip-rk3588
-rw-r--r-- 1 root root 4371654 Oct 9 04:01 System.map-6.1.53-gentoo-r1-arm64
-rw-r--r-- 1 root root 4371654 Oct 8 06:04 System.map-6.1.53-gentoo-r1-arm64.old
-rw-r--r-- 1 root root 6986092 Oct 7 09:22 System.map-6.1.55-gentoo-dist
lrwxrwxrwx 1 root root 28 Oct 9 06:46 uInitrd -> uInitrd-5.10.110-arm64+.uimg
-rw-r--r-- 1 root root 9772548 Oct 9 06:44 uInitrd-5.10.110-arm64+.uimg
-rwxr-xr-x 1 root root 20015966 Oct 7 07:48 uInitrd-5.10.110-rockchip-rk3588
-rw-r--r-- 1 root root 9637264 Oct 8 07:19 uInitrd-6.1.53-gentoo-r1-arm64
-rwxr-xr-x 1 root root 28914389 Oct 7 09:38 uInitrd-6.1.55-gentoo-dist
-rw-r--r-- 1 root root 25709056 Oct 9 05:35 vmlinuz-5.10.110-arm64+
-rwxr-xr-x 1 root root 34109952 Oct 7 11:46 vmlinuz-5.10.110-rockchip-rk3588
-rw-r--r-- 1 root root 27806208 Oct 9 04:01 vmlinuz-6.1.53-gentoo-r1-arm64
-rw-r--r-- 1 root root 27806208 Oct 8 06:04 vmlinuz-6.1.53-gentoo-r1-arm64.old
-rw-r--r-- 1 root root 12272594 Oct 7 09:22 vmlinuz-6.1.55-gentoo-dist