§2023-01-14
apt update
for the first time
orangepi@orangepi5plus:~$ sudo apt update
[sudo] password for orangepi:
Hit:1 http://repo.huaweicloud.com/ubuntu-ports jammy InRelease
Hit:2 http://repo.huaweicloud.com/ubuntu-ports jammy-security InRelease
Hit:3 http://repo.huaweicloud.com/ubuntu-ports jammy-updates InRelease
Hit:4 http://repo.huaweicloud.com/ubuntu-ports jammy-backports InRelease
Hit:5 https://repo.huaweicloud.com/docker-ce/linux/ubuntu jammy InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
299 packages can be upgraded. Run 'apt list --upgradable' to see them.
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 fix
orangepi@orangepi5plus:~$ sudo cp /etc/apt/trusted.gpg /etc/apt/trusted.gpg.d
orangepi@orangepi5plus:~$ sudo apt update
Hit:1 http://repo.huaweicloud.com/ubuntu-ports jammy InRelease
Hit:2 http://repo.huaweicloud.com/ubuntu-ports jammy-security InRelease
Hit:3 http://repo.huaweicloud.com/ubuntu-ports jammy-updates InRelease
Hit:4 http://repo.huaweicloud.com/ubuntu-ports jammy-backports InRelease
Hit:5 https://repo.huaweicloud.com/docker-ce/linux/ubuntu jammy InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
299 packages can be upgraded. Run 'apt list --upgradable' to see them.
- rsync from /dev/mmcblk0 to /dev/nvme0n1
root@orangepi5plus:/home/alexlai# lsblk -f
NAME FSTYPE FSVER LABEL UUID FSAVAIL FSUSE% MOUNTPOINTS
mtdblock0
mmcblk0
├─mmcblk0p1 vfat FAT32 opi_boot B4B0-FCBB 907.8M 11% /boot
└─mmcblk0p2 ext4 1.0 opi_root 4fd266e5-0cae-4fc3-85c6-18c4710189df 22.1G 20% /var/log.hdd
/
zram0 [SWAP]
zram1 169.4M 2% /var/log
nvme0n1
├─nvme0n1p1 ext4 1.0 0e6b68b1-ef04-42e1-b5a8-d4d6964efdba
├─nvme0n1p2 swap 1 d28c7a8d-412c-4095-9538-3380170f7c54
├─nvme0n1p3 ext4 1.0 7f97c58e-c2da-49dd-9e67-30d446878e6c
└─nvme0n1p4 ext4 1.0 03b6113f-95c8-440c-a7f8-b9659afb13dc
root@orangepi5plus:/home/alexlai# mount /dev/nvme0n1p1 /mnt
root@orangepi5plus:/home/alexlai# rsync -av --progress /boot/* /mnt
- fix boot area
root@orangepi5plus:/mnt# ls -l
total 114940
-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
-rwxr-xr-x 1 root root 34109952 Jun 1 11:43 Image
-rwxr-xr-x 1 root root 20017404 Oct 14 09:29 initrd.img-5.10.110-rockchip-rk3588
-rwxr-xr-x 1 root root 1152056 Jun 1 12:07 logo.bmp
drwx------ 2 root root 16384 Oct 14 09:39 lost+found
-rwxr-xr-x 1 root root 226 Oct 14 09:33 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
-rwxr-xr-x 1 root root 20017468 Oct 14 09:29 uInitrd
-rwxr-xr-x 1 root root 34109952 Jun 1 11:43 vmlinuz-5.10.110-rockchip-rk3588
root@orangepi5plus:/mnt# ln -sf vmlinuz-5.10.110-rockchip-rk3588 Image
root@orangepi5plus:/mnt# mv uInitrd initrd.img-5.10.110-rockchip-rk3588-uInitrd
root@orangepi5plus:/mnt# ln -sf initrd.img-5.10.110-rockchip-rk3588-uInitrd uInitrd
root@orangepi5plus:/mnt# file vmlinuz-5.10.110-rockchip-rk3588
vmlinuz-5.10.110-rockchip-rk3588: Linux kernel ARM64 boot executable Image, little-endian, 4K pages
root@orangepi5plus:/mnt# file initrd.img-5.10.110-rockchip-rk3588-uInitrd
initrd.img-5.10.110-rockchip-rk3588-uInitrd: u-boot legacy uImage, uInitrd, Linux/ARM 64-bit, RAMDisk Image (gzip), 20017404 bytes, Sat Oct 14 01:29:50 2023, Load Address: 00000000, Entry Point: 00000000, Header CRC: 0X3926FD33, Data CRC: 0X4D2DF13A
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: Sat Oct 14 10:05:10 2023
Image Type: AArch64 Linux RAMDisk Image (uncompressed)
Data Size: 20017404 Bytes = 19548.25 KiB = 19.09 MiB
Load Address: 00000000
Entry Point: 00000000
root@orangepi5plus:/mnt# ls -l
total 101180
-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 14 09:57 Image -> vmlinuz-5.10.110-rockchip-rk3588
-rwxr-xr-x 1 root root 20017404 Oct 14 09:29 initrd.img-5.10.110-rockchip-rk3588
-rw-r--r-- 1 root root 20017468 Oct 14 10:05 initrd.img-5.10.110-rockchip-rk3588.uimg
-rwxr-xr-x 1 root root 20017468 Oct 14 09:29 initrd.img-5.10.110-rockchip-rk3588-uInitrd
-rwxr-xr-x 1 root root 1152056 Jun 1 12:07 logo.bmp
drwx------ 2 root root 16384 Oct 14 09:39 lost+found
-rwxr-xr-x 1 root root 226 Oct 14 10:00 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 43 Oct 14 09:59 uInitrd -> initrd.img-5.10.110-rockchip-rk3588-uInitrd
-rwxr-xr-x 1 root root 34109952 Jun 1 11:43 vmlinuz-5.10.110-rockchip-rk3588
root@orangepi5plus:/mnt# ln -sf initrd.img-5.10.110-rockchip-rk3588.uimg uInitrd
- /mnt/orangepiEnv.txt as
verbosity=1
bootlogo=true
extraargs=cma=128M
overlay_prefix=rk3588
fdtfile=rockchip/rk3588-orangepi-5-plus.dtb
rootdev=UUID=7f97c58e-c2da-49dd-9e67-30d446878e6c <-- boot from /dev/nvme0n1p3
rootfstype=ext4
usbstoragequirks=0x2537:0x1066:u,0x2537:0x1068:u
root@orangepi5plus:/home/alexlai# mount /dev/nvme0n1p3 /mnt
root@orangepi5plus:/home/alexlai# rsync -av --progress --exclude /mnt / /mnt/
...
sent 6,323,827,994 bytes received 7,259,003 bytes 30,659,016.93 bytes/sec
total size is 6,191,258,431 speedup is 0.98
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1338) [sender=3.2.7]
- /mnt/etc/fstab as UUID=7f97c58e-c2da-49dd-9e67-30d446878e6c / ext4 defaults,noatime,commit=600,errors=remount-ro 0 1 UUID=0e6b68b1-ef04-42e1-b5a8-d4d6964efdba /boot ext4 defaults 0 2 tmpfs /tmp tmpfs defaults,nosuid 0 0
/dev/nvme0n1p2: UUID="d28c7a8d-412c-4095-9538-3380170f7c54" TYPE="swap" PARTLABEL="Linux swap" PARTUUID="67c202a1-bd74-4b41-8563-4177d86568bb"
/dev/nvme0n1p3: UUID="7f97c58e-c2da-49dd-9e67-30d446878e6c" BLOCK_SIZE="4096" TYPE="ext4" PARTLABEL="Linux filesystem" PARTUUID="f38ea063-31fa-44e7-a6f5-16a39463e181"
/dev/nvme0n1p1: UUID="0e6b68b1-ef04-42e1-b5a8-d4d6964efdba" BLOCK_SIZE="4096" TYPE="ext4" PARTLABEL="Linux filesystem" PARTUUID="6a83f587-1bc1-4d2c-9d4b-2cd4e0325c66"
/dev/nvme0n1p4: UUID="03b6113f-95c8-440c-a7f8-b9659afb13dc" BLOCK_SIZE="4096" TYPE="ext4" PARTLABEL="Linux filesystem" PARTUUID="16c62b21-6f2f-456a-907d-4efeff13dcb3"