[PATCH] Allwinner: fix booting on a number of devices

Peter Robinson pbrobinson at gmail.com
Fri Oct 17 19:28:06 CEST 2025


Hey Andre,

> > > > Revert "sunxi: enable MMU_PGPROT proper page table protection"
> > > >
> > > > This reverts commit 16cfccda4dbf0b53473b8212897f5c63bfbeb6e1.
> > > >
> > > > This causes the follow issue on the A64 boards I have including
> > > > Pine64+, Pine64-LTS and the Pinephone. Revert until the issue
> > > > can be properly investigated.
> > > >
> > > > CPU:   Allwinner A64 (SUN50I)
> > > > Model: Pine64+
> > > > DRAM:  2 GiB
> > > > Insufficient RAM for page table: 0x5000 > 0x4000. Please increase the size in get_page_table_size()
> > >
> > > Mmh, how did you get this? I just ran mainline on a Pine64-LTS, and
> > > didn't see any issues. Are you running on some specific setup? I am on
> > > GCC 11.2.0, TF-A is some v2.12.0-724-gf745e004a, and that's with
> > > pine64-lts_defconfig.
> >
> > Fedora 42/43, gcc 15.2, binutils 2.44, TF-A 2.13.
> >
> > I've seen it across Pine64+, Pine64-LTS and Pinephone.
> >
> > No special setup and I reproduced in on the vanilla upstream checkout
> > from a couple of days ago when I had the time to do the bisect.
>
> So I tried this with some gcc 15.2 from kernel.org, binutils is at 2.45
> there. That worked just fine for me. So can you send me the generated ELF
> files (u-boot and spl/u-boot-spl), from some upstream commit that breaks
> for you? And also the final u-boot-sunxi-with-spl.bin? Either for the
> Pine64+ or LTS. Could be privately, no need to spam the list. I would then
> try to build something as close as possible to that, and compare the ELF
> files to mine, to spot any differences.

Sorry for the delay on this.

Just tried this again against the v2025.10 tag with the latest Fedora
43 toolchain bits and still see the problem on the pine64+.

You should have all the bits here
https://pbrobinson.fedorapeople.org/pine64plus/

Let me know if there's anything else you need, or just ping me on chat.

Peter


More information about the U-Boot mailing list