All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mehmet Fide <mehmet.fide@gmail.com>
To: Francesco Dolcini <francesco@dolcini.it>
Cc: Stefan Agner <stefan@agner.ch>,
	u-boot@lists.u-boot-project.org, Tom Rini <trini@konsulko.com>,
	Stefano Babic <sbabic@nabladev.com>,
	Fabio Estevam <festevam@gmail.com>,
	Franz Schnyder <franz.schnyder@toradex.com>,
	Mehmet Fide <mehmet.fide@screeningeagle.com>
Subject: Re: [PATCH 1/2] colibri_vf: restore the pre-2017 text base, the BootROM refuses the low one
Date: Fri, 14 Aug 2026 10:17:43 +0200	[thread overview]
Message-ID: <20260814081743.2498173-1-mehmet.fide@gmail.com> (raw)
In-Reply-To: <20260814071920.GB5246@francesco-nb>

From: Mehmet Fide <mehmet.fide@screeningeagle.com>

Hello Francesco,

> Stefan: do you remember any of this? any comment?
>
> Unless Stefan says anything against this change, I am ok with it. But I
> really have no idea about it, I trust your analysis Mehmet.

Some more background that may make this less scary.

The value this restores is not a new invention: 0x3f408000 is what
mainline used until 2017 and what the Toradex 2015.04 fork has been
shipping since, including on our seven Colibri VF products in the
field, so it is the most field-proven number this board has.

As for why the low base fails, the reference manual gives a hint. For
NAND boot the ROM first stages the 4 KiB "initial load region" of the
image in internal RAM, parses the IVT at offset 0x400 inside it, and
only then copies the whole image to the address the IVT names (VFxxx
RM, table 7-51). Where that staging buffer lives is not documented,
but the imx_usb_loader Vybrid configuration points its scratch/DCD
address at 0x3f400000, the very bottom of the gfxRAM. An image linked
at 0x3f401000 asks the ROM to copy the image right over that region,
which would corrupt the staged source header mid-copy, and it matches
what I observe: the ROM never jumps, it falls straight back to the
serial downloader. With 0x3f408000 the copy target starts at
0x3f4074e8 and the bottom of the SRAM is never touched.

That said, this is my best reading of it; what the commit message
relies on is the A/B measurement only. If Stefan remembers the actual
constraint I am happy to spell it out in the commit message.

Thanks for the ack!

Mehmet

  reply	other threads:[~2026-08-14  8:17 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-13 15:07 [PATCH 0/2] colibri_vf: fix NAND boot and add the board documentation Mehmet Fide
2026-08-13 15:07 ` [PATCH 1/2] colibri_vf: restore the pre-2017 text base, the BootROM refuses the low one Mehmet Fide
2026-08-14  7:19   ` Francesco Dolcini
2026-08-14  8:17     ` Mehmet Fide [this message]
2026-08-13 15:07 ` [PATCH 2/2] doc: board: toradex: add the Colibri VF50/VF61 page Mehmet Fide
2026-08-14  7:23   ` Francesco Dolcini

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=20260814081743.2498173-1-mehmet.fide@gmail.com \
    --to=mehmet.fide@gmail.com \
    --cc=festevam@gmail.com \
    --cc=francesco@dolcini.it \
    --cc=franz.schnyder@toradex.com \
    --cc=mehmet.fide@screeningeagle.com \
    --cc=sbabic@nabladev.com \
    --cc=stefan@agner.ch \
    --cc=trini@konsulko.com \
    --cc=u-boot@lists.u-boot-project.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.