Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8026

Advanced users • How to ascertain if running 32 or 64 bit OS

$
0
0
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.

Code:

dpkg: error processing archive … : package architecture (arm64) does not match system (armhf)
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.

Statistics: Posted by Milliways — Tue Feb 27, 2024 6:49 am



Viewing all articles
Browse latest Browse all 8026

Trending Articles