diff options
author | Patrick Delaunay <patrick.delaunay@foss.st.com> | 2021-07-08 10:53:56 +0200 |
---|---|---|
committer | Patrick Delaunay <patrick.delaunay@foss.st.com> | 2021-07-27 09:47:40 +0200 |
commit | 8b71b20e0e5431f0243a5a8078ac62be0af2189e (patch) | |
tree | 45e5aecf7cda7bef752422453ee7d1b4bb7a3535 /drivers/clk/clk_stm32mp1.c | |
parent | b70b9b07463db2f6937c7ea6d7fb5122feb7ba1b (diff) |
arm: stm32mp1: force boot_device variable for invalid TAMP register value
When the TAMP register 20 have an invalid value (0x0 for example after
TAMPER error) the "boot_device" U-Boot env variable have no value and
no error is displayed in U-Boot log.
The STM32MP boot command bootcmd_stm32mp failed with strange trace:
"Boot over !"
and the next command in bootcmd_stm32mp failed with few indication:
if test ${boot_device} = serial || test ${boot_device} = usb;
then stm32prog ${boot_device} ${boot_instance};
As it is difficult to investigate, the current patch avoids this issue:
- change the debug message to error: "unexpected boot mode" is displayed
- display trace "Boot over invalid!" in bootcmd_stm32mp
- execute "run distro_bootcmd" to try all the possible target
Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
Diffstat (limited to 'drivers/clk/clk_stm32mp1.c')
0 files changed, 0 insertions, 0 deletions