VF50 Production programming CE6 to CE7

We are using the VF50 with CE7.
The new modules come installed with CE6 so need to be updated.
I have updated 1 and configured it to run our application, then backed up the
Configblock , registry and filesystem.

I have then create a production programming USB stick to configure new boards.

The problem i have:
If I try to get the batch file to update everything on one go, after a reboot the OS fails to boot.
The only way I can recover this then be recovered by using the SD card and serial console recovery.

The current working method requires 2 USB sticks:
1st USB stick updates eboot.img and nk7.bin
then after a reboot
2nd USB stick updates configblock,registry and filesystem.
This works fine, but i’m unsure why?

Below is the batch file i have tried to use to do the process in one go.
Should i be able to update everything in one go?
Jamie.

ProductionProgramming.bat

@ECHO OFF

REM ################################################################################
REM Configuration Section

REM Path to UpdateTool.exe (relatvie to this batch file)
set PATH_UPDATETOOL=\USB HD\UpdateTool

REM Configuration Section end
REM ################################################################################

ECHO Toradex Production Programming
ECHO ******************************
REM First clear registry
“%PATH_UPDATETOOL%\updatetool.exe” /cu
REM Update bootloader
“%PATH_UPDATETOOL%\updatetool.exe” /u bootloader,raw,\USB HD\backup\eboot.img
REM Update image
“%PATH_UPDATETOOL%\updatetool.exe” /u os,bin,\USB HD\backup\nk7.bin
REM Update Config block
“%PATH_UPDATETOOL%\updatetool.exe” /u configblock,raw,\USB HD\backup\Backup.cfg
REM Update Registry
“%PATH_UPDATETOOL%\updatetool.exe” /u registry,raw,\USB HD\backup\Backup.ivr
REM Update File System
“%PATH_UPDATETOOL%\updatetool.exe” /u filesystem,raw,\USB HD\backup\Backup.ivf
ECHO Production programming done.
ECHO *******************************

Could you please enable the debug messages collect log and share it here?

I have been trying to repeat the issue, but i am getting different results.

I have booted the new module (CE6 pre-installed).
I then insert the USB stick with the updates listed above.
The result on 3 new boards so far is that the eboot,nk7.bin,Backup.cfg and Backup.ivr all get set successfully.
The Backup.ivf does not appear to be installed. This includes software and the .net compact framework to the /FlashDisk directory.

On its first boot once updated to CE7, the Toradex logo comes up then the screen changes to a screen of white noise (fixed random noise).
This maybe due to the disabling of explorer in the registry.
Where a previous test resulted in me unable to do anything further,
I can now insert a usb stick to autorun explorer.exe and the default desktop appears.
But the /FlashDisk directory does not contain the required files.

I do have the debug logs if this helps.
first log is the CE6 booted + USB upgrade inserted.

Toradex Bootloader 1.5 for Vybrid Built Dec 18 2017
CPU : 400 Mhz
Flash: 128 MB
RAM : 128 MB
Colibri VF50 module version 1.2B Serial No.: 7299964

Press [SPACE] to enter Bootloader Menu

Initiating image launch in 0 seconds.
Loading OS Image

Done.
OEMLaunch 80004000
Windows CE Kernel for ARM (Thumb Enabled) Built on Mar 8 2013 at 17:05:33

Toradex Windows CE 6.0 1.5 for Vybrid Built Dec 18 2017
Registry - registry is empty.
Loading EDMA…
Done EDMA
Loading NAND…
Done NAND
Loading UARTA…
Port is used for OS debug!.
Loading UARTB…
Done UARTB
Loading UARTC…
Done UARTC
Loading WKU…
WakeupSources:

  • SODIMM 43 wake up when toggling.*
    Done WKU
    Waiting for flash disk \FlashDisk for 300 seconds
    Folder mounted
    Loading ENET2…
    Done ENET
    ENET: Using mac from serial number
    The name for the external PHY is KSZ8041
    ENET Auto-Negotiation
    ENET : Auto-negotiation is on
    Loading USB OTG…
    Done USB OTG
    Loading ESDHC2…
    Done ESDHC2
    Loading ADC1…
    Done ADC1…
    Loading ADC2…
    Done ADC2…
    Loading Display Driver…
    Done Display Driver
    Loading PS2…
    Failed PS2
    Loading Touch…
    Invalid time on External RTC, please set a valid time
    Done Touch
    +OEMSetAlarmTime(2006/3/12 2:0:0.000)
    -OEMSetAlarmTime(rc = 1)
    Registry saved.

The second log is the boot after upgrade (debug re-enabled)

Toradex Bootloader 1.8 for Vybrid Built Jan 31 2022
Colibri VF50 128MB 1.2B Serial: 07299964
CPU : 400 Mhz
Flash: 128 MB
RAM : 128 MB

Press [SPACE] to enter Bootloader Menu

Initiating image launch in 0 seconds.
Loading OS Image

Done.
OEMLaunch 80004000
Windows CE Kernel for ARM (Thumb Enabled)

Toradex Windows CE 7.0 1.8 for Vybrid Built Jan 31 2022
Loading EDMA…
Done EDMA
Loading NAND…
DataEcc: BCH24, SMIOffset: 49, SMISize: 8, SMIEcc: BCH4
Start Block: 513, Number of Blocks: 511
Done NAND
Loading UARTA…
Port is used for OS debug!.
Loading UARTB…
Done UARTB
Loading UARTC…
Done UARTC
Loading WKU…
WakeupSources:

  • SODIMM 43 wake up when toggling.*
    Done WKU
    Waiting for flash disk \FlashDisk for 10 seconds
    Folder mounted
    Loading ENET2…
    Done ENET
    ENET: Using mac from serial number
    The name for the external PHY is KSZ8041
    ENET Auto-Negotiation
    ENET : Auto-negotiation is on
    Loading USB OTG…
    Done USB OTG
    Loading ESDHC2…
    Done ESDHC2
    Loading ADC1…
    Done ADC1…
    Loading ADC2…
    Done ADC2…
    Loading Display Driver…
    Done Display Driver
    Loading PS2…
    Failed PS2
    Invalid time on External RTC, please set a valid time
    Loading Touch…
    Done Touch

If i re-run the upgrade with just the filesystem update, the module boots correctly and runs as expected.
I have repeated this 3 times now with the same results.
This does give me route forward, but i would still like to understand why the last stage (Backup.ivf) does not complete.