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 : theom+news (at) *nospam* chiark.greenend.org.uk (Theo)
Groupes : comp.sys.raspberry-pi
Date : 22. Jul 2024, 11:35:18
Autres entêtes
Organisation : University of Cambridge, England
Message-ID : <cCF*514Pz@news.chiark.greenend.org.uk>
References : 1 2 3
User-Agent : tin/1.8.3-20070201 ("Scotasay") (UNIX) (Linux/5.10.0-28-amd64 (x86_64))
Adam Funk <a24061@ducksburg.com> wrote:
I'm starting to wonder if I just moved the SD card and external USB
drive from a 2 to a 4B when I got the 4B and kept upgrading. Would
that explain this situation?

It looks like it was changed in an update.  I think the Pi maintains
multiple kernels in /boot, so it's possible the same SD card will boot with
a 64-bit kernel on a Pi4 and 32-bit kernel on a Pi2 (especially the v1.0 Pi2
with a Cortex A7 which doesn't support 64 bit).

So it may not be that moving the card has affected it, just that the single
'32 bit' Pi OS boots a different kernel depending on which hardware you put
the card into.

(this has caused some troubles for build systems which use uname -m to work
out whether to build 32 or 64: it returns 64, but the right answer is 32.
The same would happen with a 32 bit chroot on a 64 bit x86)

Theo

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