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 : nospam.Dan.Clough (at) *nospam* f1.n770.z15354.fidonet.org (Dan Clough)
Groupes : comp.sys.raspberry-pi
Date : 17. Jul 2024, 00:23:00
Autres entêtes
Organisation : Agency HUB, Dunedin - New Zealand
Message-ID : <721252537@f1.n770.z15354.fidonet.org>
References : 1
User-Agent : VSoup v1.2.9.47Beta [95/NT]
-=> Adam Funk wrote to All <=-

 AF> I have a Pi 4 B that I use headlessly over SSH. I can't remember
 AF> whether I installed the 32-bit or 64-bit OS on it, but different
 AF> commands found on the web give different results.

 AF> $ uname -m
 AF> aarch64

 AF> $ getconf LONG_BIT
 AF> 32

 AF> $ dpkg --print-architecture
 AF> armhf

 AF> Which one is right?

On my Pi4B, which I know has a 64-bit OS installed, I get:

$ uname -m
aarch64

$ getconf LONG_BIT
64

dpkg --print-architecture
arm64

So.... I'd say you have a 32-bit OS installed.

The "uname -m" reports on the device HARDWARE, not software/kernel, so
your results make sense.



... So easy, a child could do it. Child sold separately.
=== MultiMail/Linux v0.52

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