[U-Boot] [RFC PATCH] SPL: FIT: Enable SPL_FIT_LOAD in RAM based boot mode

Nicolae Rosia nicolae.rosia at gmail.com
Tue May 17 16:36:40 CEST 2016


Hello Michal,

I have a minor comment.

On Thu, Apr 28, 2016 at 11:43 AM, Michal Simek <michal.simek at xilinx.com> wrote:
> Support loading FIT in SPL for RAM bootmode.
> CONFIG_SPL_LOAD_FIT_ADRESS points to address where FIT image is stored
> in memory.
>
> Signed-off-by: Michal Simek <michal.simek at xilinx.com>
> ---
>
[...]
> +       debug("%s: sector %lx, count %lx, buf %lx\n",
> +             __func__, sector, count, (ulong)buf);
> +       memcpy(buf, (void *)(CONFIG_SPL_LOAD_FIT_ADRESS + sector), count);
s/CONFIG_SPL_LOAD_FIT_ADRESS/CONFIG_SPL_LOAD_FIT_ADDRESS

[...]
> -        */
> -       header = (struct image_header *)
> -               (CONFIG_SYS_TEXT_BASE - sizeof(struct image_header));
> +       header = (struct image_header *)CONFIG_SPL_LOAD_FIT_ADRESS;
s/CONFIG_SPL_LOAD_FIT_ADRESS/CONFIG_SPL_LOAD_FIT_ADDRESS

[...]

Regards,
Nicolae


More information about the U-Boot mailing list