Update Bootloader iMX6

Hello,

I try to update the Bootloader, i tested:

  1. Over the Commandline with “\Windows\update.exe /u spl,raw,\eboot.spl”, that say "Update Failed."
  2. Over the ToradexCeLibraries_V2.0-20170524 with follow steps, Upd_Restore() return 0
  3. _updHandle = Upd_Init();
  4. Upd_SetConfigString(_updHandle, “filename”, “\eboot.spl”, StoreVolatile);
  5. Upd_SetConfigString(_updHandle, “sections”, “spl”, StoreVolatile);
  6. Upd_SetConfigString(_updHandle, “format”, “raw”, StoreVolatile);
  7. int ReturnValue = Upd_Restore(_updHandle);
  8. Manual over the update.exe gui (type “i.MX6 SPL bootloader image”) → that woks

For SPL loader the section is “bootloader” and format is “SPL”, so replacing “spl” with “bootloader” and “raw” with “spl” in your samples should work.

This works, thanks

_updHandle = Upd_Init();

Upd_SetConfigString(_updHandle, “filename”, “\eboot.spl”, StoreVolatile);

Upd_SetConfigString(_updHandle, “sections”, “bootloader”, StoreVolatile);

Upd_SetConfigString(_updHandle, “format”, “spl”, StoreVolatile);

int ReturnValue = Upd_Restore(_updHandle);