[U-Boot] [Question] Is it safe to use 'set verify n' ?

Hi everyone,
when it comes to optimizing the boot sequence there are several documents with a lot of hints. One of them is to skip the check sum calculation of the image in U-Boot (set verify n) - some of them say "you don't need to verify every time you boot, since it is always the same image you load". I've tested this option and it saves around 900 ms.
My question is: I'm a bit worried if this boot sequence is still safe to run. What happens e.g. if there were Flash errors? Does it still makes sense to skip the verification, or wouldn't it be better to accept a longer boot since the risk of errors is too high?
What is your opinion?
Kind Regards
Frank

Dear Frank,
In message 53BA57510200004600052723@gwia2.rz.hs-offenburg.de you wrote:
My question is: I'm a bit worried if this boot sequence is still safe to run. What happens e.g. if there were Flash errors? Does it still makes sense to skip the verification, or wouldn't it be better to accept a longer boot since the risk of errors is too high?
We cannot answer this question for your.
You already realized that you are trading speed for security when you switch off the checksum verification.
It depends on your use case and your project's requirements if this acceptable or not. If you're building a consumer grade MP3 player or a TV remote control, then it's probably fine. If you build a distress call system or a remote control for medical equipment the technical requirements may be very similar, but your evaluation of the speed vs. risk question may come to totally different results.
Best regards,
Wolfgang Denk
participants (2)
-
Frank Ihle
-
Wolfgang Denk