Deutsch   English   Français   Italiano  
<tb32nkxm06.ln2@news.ducksburg.com>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!2.eu.feeder.erje.net!3.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.mixmin.net!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: Adam Funk <a24061@ducksburg.com>
Newsgroups: comp.sys.raspberry-pi
Subject: Re: Inconsistent results for checking whether the OS is 32 or 64 bit
Date: Mon, 22 Jul 2024 14:27:57 +0100
Organization: $CABAL
Lines: 33
Message-ID: <tb32nkxm06.ln2@news.ducksburg.com>
References: <khvkmkx35l.ln2@news.ducksburg.com>
 <1721294290@f2226.n292.z2.fidonet.org> <d900nkx03k.ln2@news.ducksburg.com>
 <cCF*514Pz@news.chiark.greenend.org.uk>
X-Trace: individual.net 0kFMOeElOx4ffn46OBP9aQsl7s1hV5hlK+klZsXIWsj5raKb+u
X-Orig-Path: news.ducksburg.com!not-for-mail
Cancel-Lock: sha1:kRxtcQEWCfU+l9vdO2Zwk5tYoGU= sha1:YIMBbJeNxysgwryuGyzlmGqHGxQ= sha256:Jcz1V+P1PKrj+ijy0hpmqP++VGrBus2KGMfdEJctpng=
User-Agent: slrn/pre1.0.4-6 (Linux)
Bytes: 2232

On 2024-07-22, Theo wrote:

> 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).

Right.


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

Well, if I had done a fresh install on a 4B, I would have picked the
64-bit option, so the 32-bit userland is a vestige of that.


> (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)

Ouch. Fortunately I haven't run into that.


-- 
With the breakdown of the medieval system, the gods of chaos, lunacy,
and bad taste gained ascendancy.                ---Ignatius J Reilly