[PATCH v2 14/14] common/board_r: Move blkcache_init call earlier in the boot sequence

Angelo Dureghello angelo.dureghello at timesys.com
Mon Jul 13 19:23:10 CEST 2020


Hi Ovidiu and all,

>
> blkcache_init manually relocates blkcache list pointers when
> CONFIG_NEEDS_MANUAL_RELOC is enabled. However, it is called very late in
> the boot sequence, which could be a problem if previous boot calls execute
> blkcache operations with the non-relocated pointers. For example, mmc is
> initialized earlier and might call blkcache_invalidate (in
> mmc_select_hwpart()) when trying to load the environment from mmc via
> env_load().
>
> To fix this issue, move blkcache_init boot call earlier, before mmc gets
> initialized.

i tested this full 14/14 patch on ColdFire mcf5441x (m68k), it works for me.

Acked-by: Angelo Dureghello <angelo.dureghello at timesys.com>
Tested-by: Angelo Dureghello <angelo.dureghello at timesys.com>

Thanks !

Regards,
angelo


More information about the U-Boot mailing list