From 7e4ac7c7b13a43b114675d5e93882ac290e05cbe Mon Sep 17 00:00:00 2001 From: Malin Freeborn Date: Fri, 14 Apr 2023 11:48:57 +0200 Subject: [PATCH] update arch for pi 4 --- distros/arch/arch_pi_install.md | 63 ++------------------------------- 1 file changed, 3 insertions(+), 60 deletions(-) diff --git a/distros/arch/arch_pi_install.md b/distros/arch/arch_pi_install.md index 5adcd66..9eb6535 100644 --- a/distros/arch/arch_pi_install.md +++ b/distros/arch/arch_pi_install.md @@ -1,64 +1,7 @@ --- -title: "arch_pi_install" -tags: [ "Documentation", "distros" ] +title: "Arch on a Raspberry Pi 4" +tags: [ "Documentation", "distros", "raspberry pi", "rpi" ] --- -# Initial Setup - -Some of this needs executed as root, so it's probably easier to do the whole things as root. +The [Official Instructions](https://archlinuxarm.org/platforms/armv8/broadcom/raspberry-pi-4) for a Raspberry pi 4 do not allow for working sound from the headphone jack, unless you use the aarch64 Installation. -> fdisk /dev/sdX - -o,n,t,c - -> mkfs.vfat /dev/sdX1 -> mkdir boot -> mount /dev/sdX1 boot - -Create and mount the ext4 filesystem: - -> mkfs.ext4 /dev/sdX2 -> mkdir root -> mount /dev/sdX2 root - -Download and extract the root filesystem (as root, not via sudo): - -> wget http://archlinuxarm.org/os/ArchLinuxARM-rpi-3-latest.tar.gz - -> tar zxvf ArchLinuxARM-rpi-3-latest.tar.gz -C root - -> sync - -Move boot files to the first partition: - -> mv root/boot/\* boot -> Unmount the two partitions: -> umount boot root - -> echo [ hostname ] > /etc/hostname - -Then edit the `/etc/hosts` file. - -``` - - -127.0.0.1 localhost.localdomain localhost -::1 localhost.localdomain localhost ip6-localhost - -``` - -# Get audio on - -> echo dtparam=audio=on >> /boot/config.txt - -Start pacman keyring. - -> pacman-key --init -> pacman-key --populate archlinuxarm - -> pacman -Syyu base-devel git alsa-utils xf86-video-fbdev - -> timedatectl set-timezone Europe/Belgrade - -> systemctl enable --now wpa_supplicant