forked from andonome/lk
		
	update arch for pi 4
This commit is contained in:
		| @@ -1,64 +1,7 @@ | |||||||
| --- | --- | ||||||
| title: "arch_pi_install" | title: "Arch on a Raspberry Pi 4" | ||||||
| tags: [ "Documentation", "distros" ] | tags: [ "Documentation", "distros", "raspberry pi", "rpi" ] | ||||||
| --- | --- | ||||||
| # Initial Setup |  | ||||||
| <!-- modified since testing |  | ||||||
| --> |  | ||||||
|  |  | ||||||
| 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. |  | ||||||
|  |  | ||||||
| ``` |  | ||||||
|  |  | ||||||
| <ip-address>		<hostname.domain.org>	<hostname> |  | ||||||
| 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 |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user