[PATCH 1/2] board_f: fix use of GD_FLG_SKIP_RELOC

Peng Fan (OSS) peng.fan at oss.nxp.com
Thu Oct 14 03:47:40 CEST 2021


> Subject: Re: [PATCH 1/2] board_f: fix use of GD_FLG_SKIP_RELOC
> 
> On 10/13/21 11:54 AM, Peng Fan (OSS) wrote:
> > From: Peng Fan <peng.fan at nxp.com>
> >
> > When dtb is padded in the end of U-Boot binary, dtb should always be
> > relocated whether GD_FLG_SKIP_RELOC set or not, otherwise dtb maybe
> > corrupted.
> >
> > Need copy old gd contents to new_gd area, this may not needed on x86
> > or arc, but needed for ARM64, because crt0_64.S points x18 to new_gd,
> > considering gd is a small area, and common/board_f.c also use new_gd,
> > so let's always copy it.
> 
> Have a look at these patches:
> 
> https://patchwork.ozlabs.org/project/uboot/patch/20211010215209.872181
> -1-marek.vasut at gmail.com/
> https://patchwork.ozlabs.org/project/uboot/patch/20211010215209.872181
> -2-marek.vasut at gmail.com/
> https://patchwork.ozlabs.org/project/uboot/patch/20211010214410.870766
> -1-marek.vasut+renesas at gmail.com/

Oh, I should check mails before I work on this. Will look at your patches.

Thanks,
Peng.


More information about the U-Boot mailing list