[PATCH 2/3] ARM: rockchip: boards: leave moving to the load address to atf.c

Sascha Hauer s.hauer at pengutronix.de
Thu Oct 1 03:19:36 PDT 2026


On 2026-10-01 10:30, Ahmad Fatoum wrote:
> Hello Sascha,
> 
> On 10/1/26 9:42 AM, Sascha Hauer wrote:
> > The SoC entry functions now move barebox to the load address themselves,
> > with the MMU enabled. Stop doing it upfront with relocate_to_adr_full(),
> > which copies the image with the MMU off, and just relocate in place.
> > 
> > Assisted-by: Claude:claude-opus-5-5
> > Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
> 
> Will an out-of-tree board that still has the same old pattern continue
> to work normally?

Yes. That board would relocate the binary in the board code and
rockchip_move_to_load_address() would bail out early due to
__image_start == load_address. The MMU would then be enabled in
rockchip_atf_load_bl31() as before.

Sascha

--
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |




More information about the barebox mailing list