Wiki

A universe of ideas

User Tools

Site Tools


computer:orange_pi_5_plus_32gb

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
computer:orange_pi_5_plus_32gb [2025-03-25 00:51] – [Create root filesystem] skruppycomputer: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 60%>+<WRAP center round important 80%>
 Somewhere in the process we need to change the mirror: Somewhere in the process we need to change the mirror:
 <code> <code>
Line 63: Line 63:
  
 mkdir -p /etc/cmdline.d mkdir -p /etc/cmdline.d
-echo 'root=UUID=5df70045-78f0-4c45-97f0-7f1783f532b1' >/etc/cmdline.d/custom.conf+echo 'root=LABEL=root cpufreq.default_governor=schedutil' >/etc/cmdline.d/custom.conf
  
 cat >/etc/vconsole.conf <<EOF cat >/etc/vconsole.conf <<EOF
Line 87: Line 87:
 systemctl enable systemd-resolved systemctl enable systemd-resolved
 systemctl enable systemd-networkd systemctl enable systemd-networkd
-ln -sf ../run/systemd/resolve/stub-resolv.conf /etc/resolv.conf  
 </code> </code>
  
Line 99: Line 98:
 <code> <code>
 PW=$(tr -dc A-Za-z0-9 </dev/urandom | head -c 16) PW=$(tr -dc A-Za-z0-9 </dev/urandom | head -c 16)
-echo "!!! Login as root using this password: $PW"+echo '!!! Login as root using this password: '"$PW"
 echo $PW | passwd -s echo $PW | passwd -s
  
Line 110: Line 109:
 exit exit
 </code> </code>
 +
 +<code>
 +ln -sf ../run/systemd/resolve/stub-resolv.conf opi5plus/etc/resolv.conf
 +</code>
 +
 ==== 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> 
 + 
 +<WRAP center round tip 80%>
 If during testing ''umount opi5plus'' failes because "target is busy" run ''killall gpg-agent''. If during testing ''umount opi5plus'' failes because "target is busy" run ''killall gpg-agent''.
 </WRAP> </WRAP>
  
-  - Partition disks (<wrap em>this will DESTROY all data on the device</wrap>):<code> +  - Partition disks (<wrap em>this will DESTROY all data on the device</wrap>). You can optionally set ''-a'' if the default 1MiB alignment isn't for your SSD:<code> 
-sgdisk --zap-all /dev/sda +sgdisk 
-sgdisk -n 1::+512M -c 1:EFI  -t 1:ef00 /dev/sda +  --zap-all /dev/sda \ 
-sgdisk -n 2::      -c 2:root -t 2:8304 /dev/sda+  -I \ 
 +  -n 1::+512M -c 1:EFI  -t 1:ef00 \ 
 +  -n 2::      -c 2:root -t 2:8304 
 +  --print --verify /dev/sda
 </code> </code>
   - Fortmat partitions:<code>   - Fortmat partitions:<code>
Line 128: Line 139:
   - Mount partitions to '/mnt' (or any thoder suitable mount point):<code>   - Mount partitions to '/mnt' (or any thoder suitable mount point):<code>
 mount /dev/sda2 /mnt mount /dev/sda2 /mnt
-mkdir -p /mnt/efi +btrfs subvolume create /mnt/@root-a 
-mount /dev/sda1 /mnt/efi+btrfs subvolume set-default /mnt/@root-a 
 +mkdir -p /mnt/@root-a/efi 
 +mount /dev/sda1 /mnt/@root-a/efi
 </code> </code>
   - Sync root filesystem to mounted partitions:<code>   - Sync root filesystem to mounted partitions:<code>
-rsync -opi5plus/ /mnt+rsync -aAXUH opi5plus/ /mnt/@root-a
 </code> </code>
   - Release storage device:<code>   - Release storage device:<code>
-umount /mnt/efi+umount /mnt/@root-a/efi
 umount /mnt umount /mnt
 sync sync
computer/orange_pi_5_plus_32gb.1742860308.txt.gz · Last modified: 2025-03-25 00:51 by skruppy