Method to switching armv7 to aarch64

This forum is for topics dealing with problems with software specifically in the AArch64 repo.

Method to switching armv7 to aarch64

Postby Elrondo46 » Mon Nov 29, 2021 11:32 pm

Hi,

I've a rpi4 4GB, and I want to switch to aarch64 architecture.

My questions

- How to do this (is it possible) ?
- Is it stable for kodi ?
Elrondo46
 
Posts: 11
Joined: Mon Oct 26, 2015 4:33 am

Re: Method to switching armv7 to aarch64

Postby graysky » Tue Nov 30, 2021 1:56 am

1. Backup /home/ and /root/ and your custom config files, network, etc.
2. Fresh image to a new sd card
3. Restore backup.

No issues with kodi on aarch64.
graysky
Developer
 
Posts: 1727
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: Method to switching armv7 to aarch64

Postby Elrondo46 » Tue Nov 30, 2021 7:19 am

Not able to replace boot, and then reinstall all packages with other architecture with pacman ?
Elrondo46
 
Posts: 11
Joined: Mon Oct 26, 2015 4:33 am

Re: Method to switching armv7 to aarch64

Postby graysky » Tue Nov 30, 2021 11:16 am

I do not believe that is possible. If you're backed-up, feel free to try and report back.
graysky
Developer
 
Posts: 1727
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: Method to switching armv7 to aarch64

Postby Elrondo46 » Tue Nov 30, 2021 3:17 pm

I'll try with another memory card. Clone it and make it all in chroot with qemu.
Elrondo46
 
Posts: 11
Joined: Mon Oct 26, 2015 4:33 am

Re: Method to switching armv7 to aarch64

Postby ivanich » Fri Dec 03, 2021 8:53 pm

It's possible, see viewtopic.php?f=65&t=15518
Anyway take a full backup first ;)
ivanich
 
Posts: 10
Joined: Wed Dec 04, 2019 3:00 pm

Re: Method to switching armv7 to aarch64

Postby skunark » Sun Dec 05, 2021 2:01 am

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.
skunark
 
Posts: 16
Joined: Fri Apr 30, 2021 12:36 am

Re: Method to switching armv7 to aarch64

Postby Elrondo46 » Wed Dec 08, 2021 7:08 pm

Thanks for your answer I will try with another memory card. I'll receive it Saturday. Just one more question... is it possible to run armv7l docker images in aarch64 version of docker (delivered officially in archarm repos of course) ?
Elrondo46
 
Posts: 11
Joined: Mon Oct 26, 2015 4:33 am

Re: Method to switching armv7 to aarch64

Postby graysky » Wed Dec 08, 2021 9:17 pm

I don't know. I use LXC but it's always the same arch in the container/have not tried mixing.
graysky
Developer
 
Posts: 1727
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: Method to switching armv7 to aarch64

Postby graysky » Sat Dec 11, 2021 5:41 pm

I would think that method could ***** up which packages were explicitly installed vs those pulled in as dependencies. https://wiki.archlinux.org/title/Pacman ... l_packages

Maybe if you strip the armv7h down to just base and kernel, firmware and bootloader, it could work. Way easier to just start from a fresh image and copy back data and configs.
graysky
Developer
 
Posts: 1727
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Next

Return to ARMv8

Who is online

Users browsing this forum: No registered users and 7 guests