ArchLinux Guide
Finally I got ArchLinux generic build running on LaFrite, here are the steps for any one interested
This is for booting from USB, can be installed on eMMC as well in similar steps
This is for booting from USB, can be installed on eMMC as well in similar steps
- Prepare USB stick with first partition as ext4
- Download Generic Arm64 build of ArchLinux https://archlinuxarm.org/platforms/armv8/generic
- Follow the instructions on that page, mount the USB stick on Linux computer and extract the ArchLinuxARM-aarch64-latest.tar.gz using bsdtar as root
bsdtar -xpf ArchLinuxARM-aarch64-latest.tar.gz -C mountpoint
- Install uboot tools, go to boot folder under mounted partition
cd mountpoint/boot
- Create Uboot Kernel Image, do all following operations as root user
mkimage -A arm64 -O linux -C none -T kernel -a 0x01080000 -e 0x01080000 -d Image uImage
- Create Uboot initrd image
mkimage -A arm64 -O linux -T ramdisk -n "initramfs" -C gzip -a 0x13000000 -e 0x13000000 -d initramfs-linux.img uInitramfs
- Create text file for uboot script (lets say lafrite-boot.txt), with following uboot commands
load ${devtype} ${devnum}:${distro_bootpart} ${kernel_addr_r} /boot/uImage load ${devtype} ${devnum}:${distro_bootpart} ${ramdisk_addr_r} /boot/uInitramfs load ${devtype} ${devnum}:${distro_bootpart} ${fdt_addr_r} /boot/dtbs/amlogic/meson-gxl-s805x-libretech-ac.dtb setenv bootargs console=ttyAML0,115200 root=/dev/sda1 rw bootm ${kernel_addr_r} ${ramdisk_addr_r} ${fdt_addr_r}
- Covert it to a boot script
mkimage -T script -C none -n "ArchLinux Boot Script" -d lafrite-boot.txt boot.scr
- Now you should have uImage, uInitramfs, boot.scr under boot folder of mounted USB partition
- Go ahead and unmount it, put in lafrite, you should have Arch booting now, and follow rest of instructions from Arch site i.e setup pacman keys etc. and default user ids and password are given there.
Tagged:
Comments