Last active
January 1, 2025 18:50
-
-
Save cyring/af2f37312887654aa0318d1e7b546add to your computer and use it in GitHub Desktop.
Orange Pi 5+
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Linux 5.10.110-rockchip-rk3588 |
Performances
# hdparm -t /dev/nvme0n1
/dev/nvme0n1:
Timing buffered disk reads: 4958 MB in 3.00 seconds = 1652.33 MB/sec
# hdparm -T /dev/nvme0n1
/dev/nvme0n1:
Timing cached reads: 7454 MB in 2.00 seconds = 3730.22 MB/sec
# hdparm -tT /dev/nvme0n1
/dev/nvme0n1:
Timing cached reads: 7324 MB in 2.00 seconds = 3665.01 MB/sec
Timing buffered disk reads: 4786 MB in 3.00 seconds = 1594.93 MB/sec
Ubuntu
ssh [email protected].???
sudo nand-sata-install
cd /media/
sudo mkdir p1 p2
sudo mount /dev/nvme0n1p1 p1
sudo mount /dev/nvme0n1p2 p2
cd p1
rm -fr * .*
cd ..
cd p2
sudo rm -fr bin run selinux usr etc lib srv var sbin
cd ..
cd p1
sudo rsync -avP /boot/
cd ../p2
sudo rsync -avP --numeric-ids --exclude='/boot' --exclude='/dev' --exclude='/lost+found' --exclude='/mnt' --exclude='/proc' --exclude='/sys' --exclude='/media' --exclude='/root' --exclude='/home' / .
ls -l /dev/nvme0n1p*
brw-rw---- 1 root disk 259, 1 Jun 1 2023 /dev/nvme0n1p1
brw-rw---- 1 root disk 259, 2 Jun 1 2023 /dev/nvme0n1p2
brw-rw---- 1 root disk 259, 3 Jun 1 2023 /dev/nvme0n1p3
sudo nano etc/fstab
/dev/nvme0n1p2 / ext4 defaults,noatime,commit=600,errors=remount-ro 0 1
/dev/nvme0n1p1 /boot vfat defaults 0 2
/dev/nvme0n1p3 /home ext4 defaults 0 3
tmpfs /tmp tmpfs defaults,nosuid 0 0
cd ..
sudo sync
sudo fstrim /media/p1
sudo fstrim /media/p2
sudo umount /media/p1
sudo umount /media/p2
sudo reboot
ssh [email protected].???
cd /media/
sudo mount /dev/nvme0n1p1 p1
sudo mount /dev/nvme0n1p2 p2
ls -l /dev/disk/by-uuid/
total 0
lrwxrwxrwx 1 root root 15 Jan 1 23:51 4ba4cf3f-3f6d-4fc0-9200-9e92d6d2f5fb -> ../../nvme0n1p2
lrwxrwxrwx 1 root root 15 Jan 1 23:51 4fd266e5-0cae-4fc3-85c6-18c4710189df -> ../../mmcblk0p2
lrwxrwxrwx 1 root root 15 Jan 1 23:51 B4B0-FCBB -> ../../mmcblk0p1
lrwxrwxrwx 1 root root 15 Jan 1 23:51 b58588aa-8829-45d8-a601-4b499285353e -> ../../nvme0n1p3
lrwxrwxrwx 1 root root 15 Jan 1 23:51 EE66-DCBA -> ../../nvme0n1p1
sudo nano p1/orangepiEnv.txt
verbosity=1
bootlogo=true
extraargs=cma=128M
overlay_prefix=rk3588
fdtfile=rockchip/rk3588-orangepi-5-plus.dtb
rootdev=UUID=4ba4cf3f-3f6d-4fc0-9200-9e92d6d2f5fb
rootfstype=ext4
usbstoragequirks=0x2537:0x1066:u,0x2537:0x1068:u
sudo sync
sudo umount /media/p1
sudo umount /media/p2
sudo poweroff
ssh [email protected].???
sudo su
passwd
New password:
Retype new password:
passwd: password updated successfully
vipw
vigr
passwd newname
New password:
Retype new password:
passwd: password updated successfully
apt update
apt list --upgradable
apt upgrade
apt list --installed | grep -i zh
apt autoremove gnome-user-docs-zh-hans
apt autoremove language-pack-gnome-zh-hans language-pack-gnome-zh-hans-base language-pack-zh-hans
apt autoremove libreoffice-help-zh-cn libreoffice-l10n-zh-cn thunderbird-locale-zh-cn thunderbird-locale-zh-hans
## adb daemon
systemctl stop usbdevice.service
systemctl disable usbdevice.service
## TimeZone
timedatectl set-timezone Europe/Paris
## Degraded Services
systemctl stop dnsmasq.service
systemctl disable dnsmasq.service
## No AutoLogin
nano /usr/lib/systemd/system/[email protected]/override.conf
[Service]
ExecStart=-/sbin/agetty -o '-- \\u' --noreset --login-pause %I ${TERM}
Type=idle
nano /usr/lib/systemd/system/[email protected]
[Service]
#ExecStart=-/sbin/agetty -o '-p -- \\u' --noclear %I $TERM
#Type=idle
nano /usr/lib/systemd/system/[email protected]/override.conf
[Service]
#ExecStartPre=/bin/sh -c 'exec /bin/sleep 10'
#ExecStart=
#ExecStart=-/sbin/agetty --noissue --autologin orangepi %I $TERM
#Type=idle
systemctl daemon-reload
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Orange Pi 5 Plus RAM: 16GB, SoC: RK3588 8 x Cores {A76, A55} up to 2.4 GHz
Store: Shenzhen Xunlong Software CO.,Limited, ETA: 20D
OS: Debian Bookworm by Orange Pi
Remarks
Be aware the provided Debian image like
Copy of Orangepi5plus_1.0.6_debian_bookworm_server_linux5.10.110.7z
is not secured at all: