View Issue Details

IDProjectCategoryView StatusLast Update
0005158UBootU-Bootpublic2022-01-28 13:39
Reportermueller Assigned To 
PrioritynormalSeverityminorReproducibilityhave not tried
Status resolvedResolutionfixed 
Product Versionfsimx8mm-Y2021.04 
Target Versionfsimx6ul-B2022.04Fixed in Versionfsimx6ul-B2022.04 
Summary0005158: Update process overwrites UBoot in eMMC when USB read fails
DescriptionThis is a follow up bug for issue number 0005142. If the load command fails, the update process still continues and potentially overwrites the UBoot area in eMMC.
Forum Link



2022-01-28 13:39

manager   ~0003832

Fixed in install.txt, so there is a commit in Buildroot as well as in Yocto.

Buildroot Git-ID: aaef04fed2896c5d76b08ca69b408d1cc086274d
Yocto Git-ID: 1745e581562c451f935f8c5c5a87440c5cdaec7e

Add error handling for the install script with eMMC

Currently the UBoot update process does not react to errors in UBoot commands issued in the install and update scripts. So whenever the load command fails, the RAM area will get written to the destination as it is. For boards with a NAND flash this is not as problematic, because the UBoot will not be affected by the update. For eMMC however the UBoot is included in the sysimg file. An error in the load command results in a corrupt UBoot and the board will not be bootable without external flashing software.

The updated install script checks for errors that might occur in the load command and aborts the update process before actually writing the corrupt data. Also the chunksize for the eMMC update process is reduced to support more USB sticks.