[PATCH] am335x: add support for loading u-boot from multiple offsets

Rasmus Villemoes ravi at prevas.dk
Thu Jan 22 14:49:44 CET 2026


On Thu, Jan 22 2026, Rasmus Villemoes <ravi at prevas.dk> wrote:

> The am335x knows nothing about eMMC boot partitions, so in order to
> implement an update procedure of the bootloader which is robust
> against power failure or other interruptions, one must make use of the
> fact that ROM code on the am335x looks for a valid first stage
> bootloader at several different offsets.

Additional info I had written under the --- separator, but for some
reason didn't make it into the mail:

I finally got around to follow up on https://lore.kernel.org/u-boot/871prgzuui.fsf@prevas.dk/ .

I'm not at all sure about the naming of the config option(s), they can of course be changed.

The order the trial bits gets set is somewhat odd, but is clearly what
happens, and somebody else trying to reverse engineer the ROM code has
observed the same thing: See the TracingVectors.ods in
https://github.com/sjgallagher2/am335xbootrom .

Rasmus


More information about the U-Boot mailing list