public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Yao Zi <me@ziyao.cc>
To: Johannes Krottmayer <krotti83@proton.me>,
	u-boot@lists.denx.de, minda.chen@starfivetech.com,
	hal.feng@starfivetech.com, Tom Rini <trini@konsulko.com>
Subject: Re: doc/board/starfive/jh7110_common.rst: Documentation doesn't mention OpenSBI text start address
Date: Thu, 16 Apr 2026 20:59:42 +0000	[thread overview]
Message-ID: <aeFNvoqalngWkL0N@pie> (raw)
In-Reply-To: <a39c05f8-7cb4-4a27-bd73-dd6297c19a0a@proton.me>

On Thu, Apr 16, 2026 at 03:11:42PM +0000, Johannes Krottmayer wrote:
> Hello,
> 
> 
> I have used the U-Boot documentation for building OpenSBI and
> U-Boot for the Starfive VisionFive 2 board.
> 
> Unfortunately there is a important definition missing (will be not
> mentioned in the current documentation) in the build step for
> OpenSBI.
> 
> FW_TEXT_START from OpenSBI defaults to address 0x0, this raises
> an exception. FW_TEXT_START should be set to the correct address
> 0x40000000 and then it works.

Which component raises the exception, and which OpenSBI/U-Boot
versions are you using?

For OpenSBI, it supports being loaded on arbitrary addresses since
at least commit 0f20e8adcf42 (firmware: Support position independent
execution, 2021-03-17), which is much earlirer than the minimum version
than support for JH7110 in OpenSBI. Currently OpenSBI should be built as
position-independent code by default, FW_TEXT_START only helps debuggers
and etc. to correctly resolve symbols, while makes no constraint on
OpenSBI loading.

For U-Boot, the address to load OpenSBI is determined by
CONFJG_SPL_OPENSBI_LOAD_ADDR, which is 0x40000000 in
starfive_visionfive2_defconfig, and has nothing to do with FW_TEXT_START
configured in OpenSBI side.

> 
> So therefore the correct build step should be:
> $ make PLATFORM=generic FW_TEXT_START=0x40000000

Thus I think probably the root cause of your failure has nothing to do
FW_TEXT_START. Might you check it further?

> Should I create a patch for the documentation to add this?
> 
> -- 
> Kind regards,
> 
> Johannes K.
> 

Regards,
Yao Zi

      reply	other threads:[~2026-04-16 21:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-04-16 15:11 doc/board/starfive/jh7110_common.rst: Documentation doesn't mention OpenSBI text start address Johannes Krottmayer
2026-04-16 20:59 ` Yao Zi [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=aeFNvoqalngWkL0N@pie \
    --to=me@ziyao.cc \
    --cc=hal.feng@starfivetech.com \
    --cc=krotti83@proton.me \
    --cc=minda.chen@starfivetech.com \
    --cc=trini@konsulko.com \
    --cc=u-boot@lists.denx.de \
    /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