$this->bbcode_second_pass_code('', '
# linux-aarch64 (vanilla mainline kernel) --> linux-rpi (rpi foundation kernel / aarch64)
#
# rpi3B+
# as root, not via sudo
# without any package blacklisting
# full upgrade run to avoid partial upgrade, do NOT reboot
pacman --sync --refresh --refresh --sysupgrade --noconfirm --noprogressbar --verbose
# switch kernel, Removes linux-aarch64, uboot-raspberrypi
pacman -S linux-rpi
# reinstall bootloader
pacman -S raspberrypi-bootloader-x raspberrypi-firmware
# check + restore your settings from .pacsave
sudoedit /boot/config.txt
# check + restore your settings from .pacsave
sudoedit /boot/cmdline.txt
reboot
')
initial version from graysky: viewtopic.php?f=65&t=15708&p=68174#p68174
Enhanced and tested yesterday on a rpi3B+