Howto install archlinux arm: Difference between revisions
Jump to navigation
Jump to search
Line 22: | Line 22: | ||
tar xvf ArchLinuxARM-rpi-aarch64-latest.tar.gz -C /mnt/archarm/ | tar xvf ArchLinuxARM-rpi-aarch64-latest.tar.gz -C /mnt/archarm/ | ||
sync | sync | ||
update /etc/fstab for the different sd block device compared to the raspberrypi 3: | |||
sed -i 's/mmcblk0/mmcblk1/g' /mnt/archarm/etc/fstab | |||
umount partitions: | umount partitions: | ||
umount /mnt/archarm/boot | umount /mnt/archarm/boot |
Revision as of 18:54, 20 January 2022
download image
download raspbian lite image:
wget https://downloads.raspberrypi.org/raspios_lite_armhf/images/raspios_lite_armhf-2021-11-08/2021-10-30-raspios-bullseye-armhf-lite.zip
download archlinuxarm image for raspberrypi 4:
wget http://os.archlinuxarm.org/os/ArchLinuxARM-rpi-aarch64-latest.tar.gz
umcompress rasbian lite image:
unzip 2021-10-30-raspios-bullseye-armhf-lite.zip
rename rasbian lite image:
mv 2021-10-30-raspios-bullseye-armhf-lite.img $(date +%F)-archlinuxarm.img
install multipath-tools:
pacman -S multipath-tools
mount the image with kpart:
kpart -va $(date +%F)-archlinuxarm.img
mount partitions:
mkdir /mnt/archarm mount /dev/mapper/loop0p2 /mnt/archarm mount /dev/mapper/loop0p1 /mnt/archarm/boot
remove all content:
cd /mnt/archarm rm -rf *
copy archlinuxarm image content to mountpoint:
tar xvf ArchLinuxARM-rpi-aarch64-latest.tar.gz -C /mnt/archarm/ sync
update /etc/fstab for the different sd block device compared to the raspberrypi 3:
sed -i 's/mmcblk0/mmcblk1/g' /mnt/archarm/etc/fstab
umount partitions:
umount /mnt/archarm/boot umount /mnt/archarm kpartx -d /dev/loop0 losetup -d /dev/loop0
connect sd card to your computer and detect drive letter:
dmesg fdisk -l /dev/sde
write image to sd card:
dd if=$(date +%F)-archlinuxarm.img of=/dev/sde