Re: uBoot broken on RPI2 Model B?

From: Mark Millard <marklmi_at_yahoo.com>
Date: Sat, 04 Mar 2023 03:16:08 UTC
On Mar 3, 2023, at 17:48, Karl Denninger <karl@denninger.net> wrote:

> On 3/3/2023 19:36, Mark Millard wrote:
>> On Mar 3, 2023, at 14:50, Karl Denninger <karl@denninger.net> wrote:
>> 
>> 
>>> On 3/3/2023 16:12, Karl Denninger wrote:
>>> 
>>>> Just tried to build -13STABLE for the RPi2
>>>> 
>> v1.1 (so: armv7) (I'll be testing this case.)
>> v1.2 (so: aarch64 --but could also be used via armv7)
>> 
>> 
>>>> . . .
>>>> The layout of the disk on the boot partition is thus:
>>>> root@NewFS:/mnt # ls -la
>>>> total 12679
>>>> drwxr-xr-x 1 root wheel 16384 Dec 31 1979 .
>>>> drwxr-xr-x 35 root wheel 42 Jan 20 10:16 ..
>>>> drwxr-xr-x 1 root wheel 4096 Feb 13 11:09 EFI
>>>> -rwxr-xr-x 1 root wheel 709 Feb 13 11:09 README
>>>> -rwxr-xr-x 1 root wheel 26745 Feb 13 11:09 bcm2709-rpi-2-b.dtb
>>>> 
>> So: armv7 style.
> Yes.  I didn't think I COULD build for aarch64 on the Pi2.... that will work?

Which type of RPi2? There is more than one.

I've access to:

a RPi2B v1.1 (Cortex-A7, so armv7 only)
and:
a RPi2B v1.2 (Cortex-A72, so aarch64 but also capable of armv7 use)

RPi3B variants are also Cortex-A72 based, so aarch64, but are also
armv7 capable. (I've access to a RPi3B as well.) Basically a
RPi2B v1.2 is a variant of the RPi3B.

As of the RPi4B's the RPi* folks quit trying to allow booting as
armv7. But in FreeBSD you can chroot into a armv7 world on a RPi4B,
for example. (Also on: RPi3B or RPi2B v1.2 booted as aarch64.)

You can build armv7 ports on a RPi4B via poudriere, no quemu
involved. The same for RPi3B booted as aarch64. The same for RPi2B
v1.2 booted as aarch64.

===
Mark Millard
marklmi at yahoo.com