[PATCH 0/4] Some reserved memory hardenings

Tero Kristo t-kristo at ti.com
Fri Jun 12 14:41:17 CEST 2020


Hi,

This series applies some reserved memory checks to the boot commands,
and enhances the bdinfo command to dump out reserved memory sections.
Motivation behind these is mostly to help detecting overwriting either
DTB, ramdisk or Linux image with other images. Right now, the boot in
most cases just continues but will hang before anything is printed out
from Linux. In some cases the boot continues even if u-boot detects
something that is terribly wrong (like DTB has been overwritten.)

Patch #3 has some holes in it (it does not pass the OS image / size in
some cases.) I wasn't quite sure what parameter to pass in these cases
so I just left them at zero, meaning no checks are done.

The layout of the reserved memory section printout with patch #1 could
maybe also made look bit neater, I just re-used the existing lmb debug
functionality for this purpose.

-Tero


--
Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki


More information about the U-Boot mailing list