Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@geomatsi
Copy link

@geomatsi geomatsi commented Jun 29, 2025

Hi @smaeul

While adding support for this board in Buildroot, I discovered that I couldn't simply switch to using the mainline Linux DTS.
This merge request includes two patches that enable its use without further modifications. In brief:

  • the first commit patches dtb for Linux with DRAM information obtained by SPL
  • the second commit tunes load addresses in U-Boot default environment in order to add support for larger Linux images

Please let me know if I got it wrong and there is a proper default way to handle this.

Regards,
Sergey

geomatsi added 2 commits June 29, 2025 16:23
On D1 boards, the U-Boot SPL detects the DRAM size and patches the DTB
accordingly. Later, if U-Boot uses a different DTB for booting Linux,
it copies only the dtb reserved-memory blocks, but not the dtb memory
block. Meanwhile, current mainline Linux device trees for D1 platforms
do not include a memory block. This change enables adding or updating
the memory block in the DTB passed to Linux.

Signed-off-by: Sergey Matyukevich <[email protected]>
Most part of D1 boards listed on linux-sunxi.org have 512MB or more
DRAM. So add new option for SUNXI_MINIMUM_DRAM_MB and make it default
for SUNXI D1 boards.

Signed-off-by: Sergey Matyukevich <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant