From: Thomas Perrot <thomas.perrot@bootlin.com>
To: Yao Zi <me@ziyao.cc>, u-boot@lists.denx.de
Cc: thomas.perrot@bootlin.com,
Thomas Petazzoni <thomas.petazzoni@bootlin.com>,
Rick Chen <rick@andestech.com>, Leo <ycliang@andestech.com>,
Tom Rini <trini@konsulko.com>,
Conor Dooley <conor.dooley@microchip.com>,
Jamie Gibbons <jamie.gibbons@microchip.com>
Subject: Re: [PATCH 0/3] riscv: Add support for the BeagleBoard.org BeagleV-Ahead
Date: Thu, 05 Nov 2026 15:06:56 +0100 [thread overview]
Message-ID: <0420ee712fe50b33299a94249357c366cc2ef3ce.camel@bootlin.com> (raw)
In-Reply-To: <auniBY7vN13FsebY@pie>
[-- Attachment #1: Type: text/plain, Size: 3086 bytes --]
Hello Yao,
On Tue, 2026-11-03 at 13:30 +0000, Yao Zi wrote:
> On Sat, Oct 17, 2026 at 07:41:20PM +0200, Thomas Perrot wrote:
> > This series adds support for the BeagleBoard.org BeagleV-Ahead, a
> > single
> > board computer built around the T-Head TH1520 SoC (4x Xuantie C910)
> > with
> > 4 GB of LPDDR4X and 16 GB of eMMC.
> >
> > Most of the work is already upstream: the TH1520 SoC support added
> > for the
> > Lichee Pi 4A (SPL, DDR controller, clock and pinctrl drivers,
> > binman FIT
> > generation) and the BeagleV-Ahead devicetree, which is available
> > through
> > OF_UPSTREAM. The board therefore only needs a small board
> > directory, a
> > U-Boot specific devicetree include and a defconfig.
> >
> > The one missing piece is in the DDR controller driver, which only
> > accepts
> > the dual rank firmware and fails with -EINVAL on the BeagleV-Ahead.
> > The
> > first patch makes it program the rank configuration and the address
> > map
> > from the number of ranks described by the firmware.
> >
> > As on the Lichee Pi 4A, u-boot-with-spl.bin contains the SPL, the
> > DDR
> > firmware, OpenSBI and U-Boot proper, and is loaded into SRAM
> > through
> > fastboot.
> >
> > The BeagleV-Ahead has a single rank of LPDDR4X, so the DDR firmware
> > has to
> > be generated from lpddr4x-3733-singlerank.lua, which is already
> > provided by
> > https://github.com/ziyao233/th1520-firmware, instead of the dual
> > rank
> > configuration used by the Lichee Pi 4A. This is described in the
> > documentation added by the third patch.
> >
> > Testing: the series builds with the Bootlin riscv64 glibc toolchain
> > (2026.08-1) together with OpenSBI v1.9, and produces a u-boot-with-
> > spl.bin
> > holding the SPL, the DDR firmware and the FIT image.
> >
> > The image was loaded into SRAM through the BROM fastboot interface
> > on a
> > BeagleV-Ahead. Without the first patch the SPL stops with "failed
> > to
> > initialize DDR controller: -22". With it, the DDR is initialized
> > with the
> > single rank firmware, OpenSBI and U-Boot proper start, and the
> > console
> > reports "Model: BeagleV Ahead", "DRAM: 4 GiB", both MMC
> > controllers and
> > the Ethernet device. The Ethernet link, the eMMC and microSD
> > accesses and
> > writing U-Boot to the eMMC were not tested. The dual rank behavior
> > is
> > unchanged by the first patch, but I could not test it on a Lichee
> > Pi 4A.
> >
> > Signed-off-by: Thomas Perrot <thomas.perrot@bootlin.com>
>
> lists.denx.de has been down for some time, and U-Boot has switched
> to u-boot@lists.u-boot-project.org for development, please update
> your
> Git tree.
>
> Please re-send the series to the available address, so there's a
> public
> copy available to everyone, and I'll continue to review, thanks for
> your
> patch.
>
Thanks, Yao. I just resent it to the new mailing list.
Kind regards,
Thomas
> Regards,
> Yao Zi
--
Thomas Perrot, Bootlin
Embedded Linux and kernel engineering
https://bootlin.com
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 659 bytes --]
prev parent reply other threads:[~2026-11-05 14:07 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20261017-dev-tprrt-beaglev-ahead-spl-v1-0-f9dfdff50f59@bootlin.com>
2026-11-03 13:30 ` [PATCH 0/3] riscv: Add support for the BeagleBoard.org BeagleV-Ahead Yao Zi
2026-11-05 14:06 ` Thomas Perrot [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=0420ee712fe50b33299a94249357c366cc2ef3ce.camel@bootlin.com \
--to=thomas.perrot@bootlin.com \
--cc=conor.dooley@microchip.com \
--cc=jamie.gibbons@microchip.com \
--cc=me@ziyao.cc \
--cc=rick@andestech.com \
--cc=thomas.petazzoni@bootlin.com \
--cc=trini@konsulko.com \
--cc=u-boot@lists.denx.de \
--cc=ycliang@andestech.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox