Bug #1039
ARM: architecture not autodetected properly
0%
Description
On my GTA04 which runs Parabola I have:
# uname -m armv7l
This seem to be picked by pacman, and I'm required to force the architectuer to armv7h in /etc/pacman.conf like that:
Architecture = armv7h
History
Updated by isacdaavid over 7 years ago
- Status changed from open to fixed
We can't support auto-detection on armv7h without patching pacman.
As of pacman 5.0.1-4.parabola1.1 the right value is hard-coded in pacman.conf (only for armv7h)
Updated by lukeshu over 7 years ago
It would cause problems with migrating from ALARM, and it would mean recompiling everything, but isn't the KISS solution to just use "armv7l" as the architecture name in pacman?
Updated by isacdaavid over 7 years ago
- Status changed from fixed to open
lukeshu wrote:
It would cause problems with migrating from ALARM, and it would mean recompiling everything, but isn't the KISS solution to just use "armv7l" as the architecture name in pacman?
Yes, it would be the proper solution if ALARM were to implement it. But I seriously doubt they are more willing to make a change this big than we are. Worth asking them anyway.
I'm uncomfortable marking this bug as fixed because it really isn't. Due to the lack of a better category I think I'll leave it open again.
Updated by GNUtoo over 5 years ago
I've looked again at this bug, and I've got an idea to try:
In Linux, uname -m seem to be set by UTS_MACHINE which seem to be set by ARCH. So it might be worth trying building linux-libre with make [...] ARCH=armv7h
However due I wasn't able to try that because of bug #2102
Updated by GNUtoo over 5 years ago
I tried to workaround other issues as well to build it and at the end this didn't work:
if [ "$CARCH" = "armv7h" ]; then + export ARCH=armv7h make zImage modules dtbs htmldocs
resulted in:
| ==> Starting build()... | Makefile:619: arch/armv7h/Makefile: No such file or directory | make: *** No rule to make target 'arch/armv7h/Makefile'. Stop. | ==> ERROR: A failure occurred in build(). | Aborting...