Howto install archlinuxarm raspberrypi5: Difference between revisions
Jump to navigation
Jump to search
(Created page with "download image: copy the qemu-aarch64-static binary to the chroot: cp /usr/bin/qemu-aarch64-static /mnt/temp/usr/bin register the qemu-aarch64-static as an arm interpreter in the kernel: echo ':aarch64:M::\x7fELF\x02\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\xb7:\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff:/usr/bin/qemu-aarch64-static:' > /proc/sys/fs/binfmt_misc/register") |
No edit summary |
||
Line 1: | Line 1: | ||
= download image = | |||
download image: | download image: | ||
= chroot with qemu = | |||
use qemu-user-static to interpret the arm instructions in the chroot: | |||
pacman -Sy qemu-user-static --noconfirm | |||
copy the qemu-aarch64-static binary to the chroot: | copy the qemu-aarch64-static binary to the chroot: | ||
cp /usr/bin/qemu-aarch64-static /mnt/temp/usr/bin | cp /usr/bin/qemu-aarch64-static /mnt/temp/usr/bin | ||
register the qemu-aarch64-static as an arm interpreter in the kernel: | register the qemu-aarch64-static as an arm interpreter in the kernel: | ||
echo ':aarch64:M::\x7fELF\x02\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\xb7:\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff:/usr/bin/qemu-aarch64-static:' > /proc/sys/fs/binfmt_misc/register | echo ':aarch64:M::\x7fELF\x02\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\xb7:\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff:/usr/bin/qemu-aarch64-static:' > /proc/sys/fs/binfmt_misc/register |
Revision as of 00:41, 21 February 2024
download image
download image:
chroot with qemu
use qemu-user-static to interpret the arm instructions in the chroot:
pacman -Sy qemu-user-static --noconfirm
copy the qemu-aarch64-static binary to the chroot:
cp /usr/bin/qemu-aarch64-static /mnt/temp/usr/bin
register the qemu-aarch64-static as an arm interpreter in the kernel:
echo ':aarch64:M::\x7fELF\x02\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\xb7:\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff:/usr/bin/qemu-aarch64-static:' > /proc/sys/fs/binfmt_misc/register