Re: Inconsistent results for checking whether the OS is 32 or 64 bit

Liste des GroupesRevenir à cs raspberry-pi 
Sujet : Re: Inconsistent results for checking whether the OS is 32 or 64 bit
De : a24061 (at) *nospam* ducksburg.com (Adam Funk)
Groupes : comp.sys.raspberry-pi
Date : 21. Jul 2024, 19:24:56
Autres entêtes
Organisation : $CABAL
Message-ID : <oc00nkx03k.ln2@news.ducksburg.com>
References : 1 2
User-Agent : slrn/pre1.0.4-6 (Linux)
On 2024-07-17, Theo wrote:

Adam Funk <a24061@ducksburg.com> wrote:
Hi
 
I have a Pi 4 B that I use headlessly over SSH. I can't remember
whether I installed the 32-bit or 64-bit OS on it, but different
commands found on the web give different results.
 
$ uname -m
aarch64
 
$ getconf LONG_BIT
32
 
$ dpkg --print-architecture
armhf
 
Which one is right?
>
That sounds like a 32 bit OS on 64 bit hardware.  Not sure if uname -m is
the kernel or the hardware, but perhaps you're running a 32 bit userland on
a 64 bit kernel?

That does seem to be the case.


Seems that Pi OS switched to a 64 bit kernel on the Pi4 in March 2023:
https://github.com/raspberrypi/firmware/issues/1795

"After updating 32 bit Raspi OS Pi 4 is on 64bit kernel" --- yes, that
would explain it.  Thanks!



It looks like 'getconf' returns glibc parameters, which would be 32 bit on a
32 bit userland.
>
Theo

--
Master Foo once said to a visiting programmer: "There is more
Unix-nature in one line of shell script than there is in ten
thousand lines of C."                         ---Eric Raymond

Date Sujet#  Auteur
17 Jul 24 * Inconsistent results for checking whether the OS is 32 or 64 bit11Adam Funk
17 Jul 24 +* Re: Inconsistent results for checking whether the OS is 32 or 64 bit2Theo
21 Jul 24 i`- Re: Inconsistent results for checking whether the OS is 32 or 64 bit1Adam Funk
17 Jul 24 +- Re: Inconsistent results for checking whether the OS is 32 or 64 bit1Dan Clough
18 Jul 24 +- Re: Inconsistent results for checking whether the OS is 32 or 64 bit1Lawrence D'Oliveiro
18 Jul 24 `* Inconsistent results for checking whether the OS is 32 or 64 bit6Christian Vanguers
18 Jul 24  +- Re: Inconsistent results for checking whether the OS is 32 or 64 bit1druck
21 Jul 24  `* Re: Inconsistent results for checking whether the OS is 32 or 64 bit4Adam Funk
22 Jul 24   `* Re: Inconsistent results for checking whether the OS is 32 or 64 bit3Theo
22 Jul 24    +- Re: Inconsistent results for checking whether the OS is 32 or 64 bit1Adam Funk
22 Jul 24    `- Re: Inconsistent results for checking whether the OS is 32 or 64 bit1druck

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal