Commit Graph

4 Commits

Author SHA1 Message Date
Ji Luo 3a62d022b9 MA-14118 Avoid slot switch if retry count exhaust in spl
The A/B slot is chosen at spl stage and should be kept up to
u-boot stage. Decrease slot retry count will cause slot switch
when the slot only has one chance left.
Set the 'bootloader_verified' flag when current slot is running the last
chance at spl, u-boot will treat the slot as bootable if the
'reserved' flag is set even the retry count exhausted.

Test: Slot not switch during 7 times reboot try.

Change-Id: I7ae84b2ce683300a1bb332606cd58e48483214ea
Signed-off-by: Ji Luo <ji.luo@nxp.com>
2019-02-22 10:13:28 +08:00
Luo Ji 0bfb34cbcc [iot] Verify single slot in boota for dual bootloader
A/B switch logic will be moved to SPL stage if dual bootloader
feature is enable, in such case, we just need to verify single
slot which is selected in SPL stage.

Test: verify and boot ok for imx8m.

Change-Id: Iafe0d2d4aea1c178551940808416eec4a3547259
Signed-off-by: Luo Ji <ji.luo@nxp.com>
2018-08-20 21:31:57 +08:00
Luo Ji 484e0dca8b [iot] [coverity] Fix null dereferenced issues
Fix the null dereferenced issues from converity scan results.
issue id:
  3618300:Dereference after null check
  3618364:Dereference after null check
  3618463:Dereference after null check
  3618470:Explicit null dereferenced
  3618520:Dereference after null check

Test: issue fixed by converity scan.

Change-Id: I577ed094a1f9b493de61b84827c0e1157a4fbd2f
Signed-off-by: Luo Ji <ji.luo@nxp.com>
2018-08-20 21:25:48 +08:00
Ye Li 2105662ada MLK-18591-1 android: Add the AVB library
Porting the android AVB lib from imx u-boot v2017.03

Signed-off-by: Ye Li <ye.li@nxp.com>
2018-06-13 02:41:08 -07:00