Recently on my Raspberry Pi 3 Model B Plus Rev 1.3 I discovered I was running kernel 6.1.21-v8+ which showed as aarch64.
My original installation was Bullseye Raspberry Pi reference 2021-10-30 which was 32 bit (this was before 64 bit version).
This was due to arm_64bit=1 in config.txt (how or why is not relevant here and I am not sure how it got there).
This caused some problems trying to install aarch64 code.
Obviously the OS knows it is armhf.
My question is there some simple/direct means of detecting the bit size of the running OS?
I know it can be deduced indirectly (at least for Raspberry Pi OS) by looking at sources Debian/Raspbian.
It is simple to detect architecture - which shows kernel architecture.
I could use file on one of the OS binaries.
32 bit Code/OS runs quite happily under kernel 8 so there was no problem with normal use.
My original installation was Bullseye Raspberry Pi reference 2021-10-30 which was 32 bit (this was before 64 bit version).
This was due to arm_64bit=1 in config.txt (how or why is not relevant here and I am not sure how it got there).
This caused some problems trying to install aarch64 code.
Code:
dpkg: error processing archive … : package architecture (arm64) does not match system (armhf)My question is there some simple/direct means of detecting the bit size of the running OS?
I know it can be deduced indirectly (at least for Raspberry Pi OS) by looking at sources Debian/Raspbian.
It is simple to detect architecture - which shows kernel architecture.
I could use file on one of the OS binaries.
32 bit Code/OS runs quite happily under kernel 8 so there was no problem with normal use.
Statistics: Posted by Milliways — Tue Feb 27, 2024 6:49 am