View Issue Details

IDProjectCategoryView StatusLast Update
0002281UBootNAND-FMDpublic2016-11-24 15:28
ReporterKeller Assigned To 
PrioritylowSeverityminorReproducibilityalways
Status assignedResolutionopen 
Product Versionfsvybrid-V1.2 
Target Versionfsvybrid-next 
Summary0002281: ubi part does not work if the current UBI partition is erased with nand erase
DescriptionIf the partition that is currently used with ubi part is erased with nand erase, a following ubi part command for this partition will not work.
Steps To Reproduceubi part TargetFS
ubi erase.part TargetFS
ubi part TargetFS

The partition will not be initialized as UBI again in the last command, the command has no effect.
Additional InformationWe have introduced an optimization that ubi part will only do something if the partition name is different to the previous ubi part command. As a consequence, ubi part will not have any effect in the above scenario because the partition name does not change.

So we have to clear the current partition name in the UBI environment when we erase a partition. However this is not as easy as it seems because we have no access to this name from outside of the UBI files. So this change requires some restructuring of the code.

As a workaround, you can restart the board after the nand erase command. Then ubi part will work again.
Forum Link

Activities

There are no notes attached to this issue.