computer:orange_pi_5_plus_32gb
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
computer:orange_pi_5_plus_32gb [2025-03-23 16:14] – created skruppy | computer:orange_pi_5_plus_32gb [2025-03-31 22:22] (current) – skruppy | ||
---|---|---|---|
Line 3: | Line 3: | ||
* [[http:// | * [[http:// | ||
- | < | ||
- | paru rkdeveloptool | ||
- | ## https:// | + | ===== Install Arch Linux with UEFI ===== |
- | curl -O https:// | + | |
- | ## https://dl.radxa.com/ | + | <WRAP center round info 80%> |
- | curl -O https:// | + | This guide is for the 32GB version of the Orange Pi 5 Plus, but probably applies also to other versions. |
- | </code> | + | With some small modifications this schould also apply to other RK3588 boards. |
+ | </WRAP> | ||
- | * Disconnect power | + | ==== Create root filesystem ==== |
- | * Connect front USB-C (marked " | + | To create the root filesystem, you need a running Arch Linux on the same platform (aarch64). Some ideas to get this: |
- | * Hold "MASKROM" | + | * Flash [[http:// |
- | * Connect power | + | * Use any other "Pi" |
+ | * Use your Phone and [[https:// | ||
+ | * Use a [[https:// | ||
+ | * Rent a ARM cloud VM for a short time | ||
+ | Setup you build host (e.g. disable auto suspend & add SSH key). | ||
+ | |||
+ | <WRAP center round important 80%> | ||
+ | Somewhere in the process we need to change the mirror: | ||
< | < | ||
- | rkdeveloptool ld | + | echo ' |
- | 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) | + | rate-mirrors-v0.19.1-aarch64-unknown-linux-musl/ |
- | * Setup system (e.g. disable auto suspend & add SSH key) | + | </ |
+ | |||
+ | * Kickout " | ||
< | < | ||
mkdir opi5plus | mkdir opi5plus | ||
- | pacstrap -K opi5plus base linux-aarch64 | + | mount --bind opi5plus opi5plus |
+ | pacstrap -K -C / | ||
arch-chroot opi5plus | arch-chroot opi5plus | ||
+ | </ | ||
+ | |||
+ | [[https:// | ||
+ | < | ||
+ | mkdir -p / | ||
+ | cp / | ||
+ | cp / | ||
+ | </ | ||
+ | |||
+ | Generate unified kernel image (UKI), which will automatically found and booted by systemd-boot. | ||
+ | < | ||
+ | mv / | ||
+ | cat >/ | ||
+ | ALL_kver="/ | ||
+ | |||
+ | PRESETS=(' | ||
+ | |||
+ | default_uki="/ | ||
+ | |||
+ | fallback_uki="/ | ||
+ | fallback_options=" | ||
+ | EOF | ||
+ | |||
+ | echo ' | ||
+ | |||
+ | mkdir -p / | ||
+ | echo ' | ||
+ | |||
+ | cat >/ | ||
+ | KEYMAP=us | ||
+ | XKBLAYOUT=de | ||
+ | XKBMODEL=pc105 | ||
+ | XKBVARIANT=us | ||
+ | EOF | ||
+ | |||
+ | mkinitcpio -P | ||
+ | </ | ||
+ | |||
+ | // | ||
+ | < | ||
+ | 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' | ||
+ | < | ||
+ | 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 ==== | ||
+ | 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.1742742861.txt.gz · Last modified: 2025-03-23 16:14 by skruppy