computer:orange_pi_5_plus_32gb
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
computer:orange_pi_5_plus_32gb [2025-03-24 23:44] – skruppy | computer:orange_pi_5_plus_32gb [2025-03-31 22:22] (current) – skruppy | ||
---|---|---|---|
Line 6: | Line 6: | ||
===== Install Arch Linux with UEFI ===== | ===== Install Arch Linux with UEFI ===== | ||
- | <WRAP center round info 60%> | + | <WRAP center round info 80%> |
This guide is for the 32GB version of the Orange Pi 5 Plus, but probably applies also to other versions. | This guide is for the 32GB version of the Orange Pi 5 Plus, but probably applies also to other versions. | ||
With some small modifications this schould also apply to other RK3588 boards. | With some small modifications this schould also apply to other RK3588 boards. | ||
Line 21: | Line 21: | ||
Setup you build host (e.g. disable auto suspend & add SSH key). | Setup you build host (e.g. disable auto suspend & add SSH key). | ||
- | <WRAP center round important | + | <WRAP center round important |
Somewhere in the process we need to change the mirror: | Somewhere in the process we need to change the mirror: | ||
< | < | ||
echo ' | echo ' | ||
</ | </ | ||
+ | |||
+ | rate-mirrors-v0.19.1-aarch64-unknown-linux-musl/ | ||
</ | </ | ||
Line 37: | Line 39: | ||
</ | </ | ||
- | [[https:// | + | [[https:// |
< | < | ||
mkdir -p / | mkdir -p / | ||
Line 44: | Line 46: | ||
</ | </ | ||
+ | Generate unified kernel image (UKI), which will automatically found and booted by systemd-boot. | ||
< | < | ||
mv / | mv / | ||
Line 56: | Line 59: | ||
fallback_options=" | fallback_options=" | ||
EOF | EOF | ||
- | |||
- | mkdir -p / | ||
- | echo ' | ||
echo ' | echo ' | ||
+ | |||
+ | mkdir -p / | ||
+ | echo ' | ||
cat >/ | cat >/ | ||
Line 72: | Line 75: | ||
</ | </ | ||
+ | // | ||
+ | < | ||
+ | cat >/ | ||
+ | [Match] | ||
+ | Name=en* | ||
+ | [Network] | ||
+ | DHCP=yes | ||
+ | EOF | ||
+ | |||
+ | systemctl enable systemd-resolved | ||
+ | systemctl enable systemd-networkd | ||
+ | </ | ||
+ | |||
+ | // | ||
+ | An easy way to get the correct time, even if not RTC battery is connected, you can use SystemD' | ||
< | < | ||
- | echo root | passwd | + | systemctl enable systemd-timesyncd |
</ | </ | ||
+ | Make sure you can login (modify as needed) | ||
+ | < | ||
+ | PW=$(tr -dc A-Za-z0-9 </ | ||
+ | echo '!!! Login as root using this password: '" | ||
+ | echo $PW | passwd -s | ||
+ | |||
+ | curl https:// | ||
+ | systemctl enable sshd | ||
+ | </ | ||
+ | |||
+ | Leave chroot environment | ||
+ | < | ||
+ | exit | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | ln -sf ../ | ||
+ | </ | ||
==== Prepare boot/root device ==== | ==== Prepare boot/root device ==== | ||
The storage device can be a USB Flash Drive or SD card. | The storage device can be a USB Flash Drive or SD card. | ||
- | <WRAP center round tip 60%> | + | <WRAP center round important 80%> |
+ | Make sure the target device has not been auto mounted. | ||
+ | </ | ||
+ | |||
+ | <WRAP center round tip 80%> | ||
If during testing '' | If during testing '' | ||
</ | </ | ||
- | - Partition disks (<wrap em>this will DESTROY all data on the device</ | + | - Partition disks (<wrap em>this will DESTROY all data on the device</ |
- | sgdisk --zap-all /dev/sda | + | sgdisk |
- | sgdisk | + | |
- | sgdisk | + | -I \ |
+ | | ||
+ | -n 2:: -c 2:root -t 2: | ||
+ | --print --verify | ||
</ | </ | ||
- Fortmat partitions:< | - Fortmat partitions:< | ||
Line 96: | Line 139: | ||
- Mount partitions to '/ | - Mount partitions to '/ | ||
mount /dev/sda2 /mnt | mount /dev/sda2 /mnt | ||
- | mkdir -p /mnt/efi | + | btrfs subvolume create / |
- | mount /dev/sda1 /mnt/efi | + | btrfs subvolume set-default / |
+ | mkdir -p /mnt/@root-a/efi | ||
+ | mount /dev/sda1 /mnt/@root-a/efi | ||
</ | </ | ||
- Sync root filesystem to mounted partitions:< | - Sync root filesystem to mounted partitions:< | ||
- | rsync -a opi5plus/ /mnt | + | rsync -aAXUH opi5plus/ /mnt/@root-a |
</ | </ | ||
- Release storage device:< | - Release storage device:< | ||
- | umount /mnt/efi | + | umount /mnt/@root-a/efi |
umount /mnt | umount /mnt | ||
sync | sync |
computer/orange_pi_5_plus_32gb.1742856258.txt.gz · Last modified: 2025-03-24 23:44 by skruppy