In our production we use a batch file to load OS and application onto the devices. In about 1/3 of the installations the registry is not saved but the default registry is still present after the process.
The script looks like this:
Cleaning is not needed anyway. Saving will overwrite old copy in a safe way. But we don’t have explanation why cleaning generates this issue. Could you [log the serial debug message][1] and share it with us? let us try to find any clue from there?
Unfortunately it is not possible to enable the debug output in the production area. I can just simulate the production process and enable the debug output locally on my device. For completeness: in our production we first load eboot.spl, eboot.cfg, nk7.nbx and registry.i6r over EasyInstaller using a customized template (Toradex Documents - iMX6 Easy Installer template for custom images). After this we run a script similar to what I posted initially to load the current WinEC7 version and install our application.
In my simulation I found just one sequence in which the registry gets lost:
Thank you for the explanations. In this case we will remove the clean registry call in the beginning of the script. We will just call update registry to load the backup *.i6r and then reboot the device without calling save registry. This sequence worked well locally on my device. We will test it in the production area in December. If we encounter further problems I will come back to you.