Upgrade from armv7h to aarch64 (linux-rpi)
1) Review packages, backup, etc. (assume you will fail
)
-Consider removing large and custom packages.
-Check your disk space
-Probably exit any GUIs, but it's okay to remote in and do this
2) Update system and clear pacman cache
$this->bbcode_second_pass_code('', 'pacman -Syu --needed pacman-contrib # need pacman-contrib for pac tree below
pacman -Scc # answer yes both times
reboot
')
3) Change Pacman Architecture, sync pacman for aarch64, download packages
$this->bbcode_second_pass_code('', 'sed -i 's/armv7h/aarch64/' /etc/pacman.conf
pacman -Syy && pacman -Sw $(pacman -Qqn)
')
4) Install pacman and upgrade to aarch64 - don't interrupt this step (i.e. su -, and not sudo), there will be errors but seems okay to ignore
$this->bbcode_second_pass_code('', 'pactree -l pacman | pacman -S -
pacman -Qqn | pacman -S -
')
Example of the error messages i hit during the last pacman command:
$this->bbcode_second_pass_code('', 'call to execv failed (Exec format error)
request_module: modprobe binfmt-464c cannot be processed, kmod busy with 50 threads for more than 5 seconds now
request_module: kmod_concurrent_max (0) close to 0 (max_modprobes: 50), for module binfmt-464c, throttling...
')
5) Reboot
You will have to pull the plug to reboot
6) Review pacnew, pacsave and anything that might indicate an architecture like /etc/makepkg.conf
I've managed to do this on 3b, 3b+, 4b and CM4 without any issues.... yet. I feel like this is kind of like Pet Sematary and i'm just waiting for an issue... but so far so good.