I have made some progress.

At the first time I tried the file `u-boot-sunxi-with-spl.bin` from
Fedora `uboot-images-armv8-1:2024.04-1.fc40.noarch` package.

Now I built u-boot from sources.

I tried to build from:

    https://github.com/orangepi-xunlong/u-boot-orangepi.git

But got some python incomprehensible errors while building for Orange Pi
PC2. (And for fun I tried to build for RPi 3b+ and have success...)


Then I tried to build from:

    https://github.com/u-boot/u-boot
    https://github.com/TrustedFirmware-A/trusted-firmware-a.git

The first is u-boot itself, the second if for `bl31.bin` file. Success,
I got the `u-boot-sunxi-with-spl.bin` file. Again:

    dd if=miniroot77.img of=/dev/sdc bs=1M
    dd if=/path/to/build/u-boot-sunxi-with-spl.bin \
        of=/dev/sdc bs=1024 seek=8

And now I'm having this from u-boot:

=== START ===

U-Boot SPL 2025.10-rc5-00046-gdc6c80056e21 (Oct 05 2025 - 12:02:07 +0300)
DRAM: 1024 MiB
Trying to boot from MMC1
alloc space exhausted ptr 10a200 limit 100000
Could not get FIT buffer of 1089536 bytes
        check CONFIG_SPL_SYS_MALLOC_F_LEN
NOTICE:  BL31: v2.13.0(debug):v2.13.0-866-geb7b34849-dirty
NOTICE:  BL31: Built : 12:01:20, Oct  5 2025
NOTICE:  BL31: Detected Allwinner H5 SoC (1718)
NOTICE:  BL31: No DTB found.
INFO:    ARM GICv2 driver initialized
INFO:    Configuring SPC Controller
NOTICE:  PMIC: Assuming H5 reference regulator design
INFO:    BL31: Platform setup done
INFO:    BL31: Initializing runtime services
INFO:    BL31: cortex_a53: CPU workaround for erratum 855873 was applied
INFO:    BL31: cortex_a53: CPU workaround for erratum 1530924 was applied
INFO:    PSCI: Suspend is unavailable
INFO:    BL31: Preparing for EL3 exit to normal world
INFO:    Entry point address = 0x4a000000
INFO:    SPSR = 0x3c9

===  END  ===

That's all.

Maybe you can share with me the `u-boot-sunxi-with-spl.bin` file. I
don't have a computer with OpenBSD on it, so I can't to do:

    pkg_add u-boot-sun50i

from the INSTALL.arm64 instruction.

I have the RPi 1b+ with FreeBSD. I'm trying to build it from ports
but it has already taken more than 24 hours. :^)

Reply via email to