Hey @all
i have Arch Linux ARM running now with 6.2 rc5.
- Install any recent ubuntu image on m1 or use legendary
https://jamesachambers.com/legendary-od ... tu-images/- boot it!
- i created arch partitions on an sd-card, you can use any device. 256MB ext2 for /boot, rest ext4 for /
- mount both partitions and extract the latest aarch64 tarball on root (tutorial here:
https://archlinuxarm.org/platforms/armv8/generic)
- mount the /proc /sys /dev and /run into f.e. /mnt/archroot:
$this->bbcode_second_pass_code('', '
mount -t proc /proc /mnt/archroot/proc/
mount -t sysfs /proc /mnt/archroot/sys/
mount -o bind /dev /mnt/archroot/dev/
mount -o bind /run /mnt/archroot/run/
')
you need the /run directory mounted for internet to work after chroot
chroot into /mnt/archroot
update the system with pacman -Syu
get partition ids from blkid and update /etc/fstab with /boot and / or use device names like i did:
$this->bbcode_second_pass_code('', '
/dev/mmcblk1p2 / ext4 rw,noatime 0 1
/dev/mmcblk1p1 /boot ext2 rw,noatime 0 1
')
install the 6.2 rc5 kernel. You can makepkg the kernel by yourself, instructions here:
viewtopic.php?f=23&t=6565#p36628 (core/linux-aarch64-rc instead of raspberrypi)
You can edit /etc/makepkg.conf and enable MAKEFLAGS=-j4 to speed up compiling (will still take an hour or two, but works)
My build still failed because of this:
https://github.com/archlinuxarm/PKGBUILDs/pull/1970You can patch the package from there or simply get the compiled rc6-kernel package in the last comment. Download it into your chroot and install with
$this->bbcode_second_pass_code('', 'pacman -U linux-aarch64-rc-6.2.rc6-1-aarch64.pkg.tar.zst')
copy everything from /mnt/archroot/boot into the mounted boot-partition and insert the grub.cfg file like this:
$this->bbcode_second_pass_code('', '
menuentry "Arch Linux ARM" {
devicetree /dtbs/rockchip/rk3568-odroid-m1.dtb
initrd /initramfs-linux.img
linux /Image.gz root=/dev/mmcblk1p1 console=ttyS2,1500000
}
')
Nothing more is needed to boot, no grub-install or similiar. Clean the boot folder in the root partition
exit chroot, sync and unmount all and thats it!
Happy arching!