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 00:31] – 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. | ||
</ | </ | ||
- | < | + | ==== Create root filesystem ==== |
- | paru rkdeveloptool | + | To create the root filesystem, you need a running Arch Linux on the same platform (aarch64). Some ideas to get this: |
+ | * Flash [[http:// | ||
+ | * Use any other " | ||
+ | * Use your Phone and [[https:// | ||
+ | * Use a [[https:// | ||
+ | * Rent a ARM cloud VM for a short time | ||
- | ## https:// | + | Setup you build host (e.g. disable auto suspend & add SSH key). |
- | curl -O https:// | + | |
- | ## https:// | + | <WRAP center round important |
- | curl -O https:// | + | |
- | </ | + | |
- | + | ||
- | * Disconnect power | + | |
- | * Connect front USB-C (marked " | + | |
- | * Hold " | + | |
- | * Connect power | + | |
- | + | ||
- | < | + | |
- | rkdeveloptool ld | + | |
- | rkdeveloptool db rk3588_spl_loader_v*.bin | + | |
- | rkdeveloptool wl 0 orangepi-5plus_UEFI_Release_v*.img | + | |
- | rkdeveloptool rd | + | |
- | </ | + | |
- | + | ||
- | * Flash Orange PI Arch onto SD card (USB stick does not work) | + | |
- | * Setup system (e.g. disable auto suspend & add SSH key) | + | |
- | + | ||
- | <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 48: | Line 35: | ||
mkdir opi5plus | mkdir opi5plus | ||
mount --bind opi5plus opi5plus | mount --bind opi5plus opi5plus | ||
- | pacstrap -K -C / | + | pacstrap -K -C / |
arch-chroot opi5plus | arch-chroot opi5plus | ||
- | mkdir -p /efi/ | + | </code> |
- | ## https:// | + | [[https:// |
+ | < | ||
+ | mkdir -p / | ||
cp / | cp / | ||
cp / | cp / | ||
+ | </ | ||
+ | Generate unified kernel image (UKI), which will automatically found and booted by systemd-boot. | ||
+ | < | ||
mv / | mv / | ||
cat >/ | cat >/ | ||
Line 67: | Line 59: | ||
fallback_options=" | fallback_options=" | ||
EOF | EOF | ||
+ | |||
+ | echo ' | ||
+ | |||
+ | mkdir -p / | ||
+ | echo ' | ||
+ | |||
+ | cat >/ | ||
+ | KEYMAP=us | ||
+ | XKBLAYOUT=de | ||
+ | XKBMODEL=pc105 | ||
+ | XKBVARIANT=us | ||
+ | EOF | ||
+ | |||
+ | mkinitcpio -P | ||
</ | </ | ||
- | <WRAP center round tip 60%> | + | // |
- | If during testing | + | <code> |
+ | 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's NTP daemon. | ||
+ | < | ||
+ | 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 ../run/ | ||
+ | </ | ||
+ | |||
+ | ==== Prepare boot/root device ==== | ||
+ | The storage device can be a USB Flash Drive or SD card. | ||
+ | |||
+ | <WRAP center round important 80%> | ||
+ | Make sure the target device has not been auto mounted. | ||
</ | </ | ||
+ | <WRAP center round tip 80%> | ||
+ | If during testing '' | ||
+ | </ | ||
+ | |||
+ | - Partition disks (<wrap em>this will DESTROY all data on the device</ | ||
+ | sgdisk \ | ||
+ | --zap-all /dev/sda \ | ||
+ | -I \ | ||
+ | -n 1::+512M -c 1:EFI -t 1:ef00 \ | ||
+ | -n 2:: -c 2:root -t 2:8304 \ | ||
+ | --print --verify /dev/sda | ||
+ | </ | ||
+ | - Fortmat partitions:< | ||
+ | mkfs.vfat -F32 -n EFI /dev/sda1 | ||
+ | mkfs.btrfs -L root /dev/sda2 | ||
+ | </ | ||
+ | - Mount partitions to '/ | ||
+ | mount /dev/sda2 /mnt | ||
+ | btrfs subvolume create / | ||
+ | btrfs subvolume set-default / | ||
+ | mkdir -p / | ||
+ | mount /dev/sda1 / | ||
+ | </ | ||
+ | - Sync root filesystem to mounted partitions:< | ||
+ | rsync -aAXUH opi5plus/ / | ||
+ | </ | ||
+ | - Release storage device:< | ||
+ | umount / | ||
+ | umount /mnt | ||
+ | sync | ||
+ | </ | ||
+ | |||
+ | |||
+ | ==== Install UEFI firmware/ | ||
+ | === Preparations === | ||
+ | * Install [[https:// | ||
+ | paru rkdeveloptool | ||
+ | </ | ||
+ | * Download the [[https:// | ||
+ | curl -O https:// | ||
+ | </ | ||
+ | * Download the [[https:// | ||
+ | curl -O https:// | ||
+ | </ | ||
+ | |||
+ | === Flashing firmware to SPI === | ||
+ | - Connect front USB-C (marked " | ||
+ | - Hold " | ||
+ | - Check device in MaskROM mode ist detected by Linux host: < | ||
+ | rkdeveloptool ld | ||
+ | </ | ||
+ | - Load SPI flash loader into RAM: < | ||
+ | rkdeveloptool db rk3588_spl_loader_v*.bin | ||
+ | </ | ||
+ | - Flash EDK2 firmware: < | ||
+ | rkdeveloptool wl 0 orangepi-5plus_UEFI_Release_v*.img | ||
+ | </ | ||
+ | - // | ||
+ | rkdeveloptool rd | ||
+ | </ | ||
computer/orange_pi_5_plus_32gb.1742772686.txt.gz · Last modified: 2025-03-24 00:31 by skruppy