Uploaded image for project: 'Qt for MCUs'
  1. Qt for MCUs
  2. QTMCU-353

Versioning of resource binary files

    XMLWordPrintable

Details

    • User Story
    • Resolution: Fixed
    • P2: Important
    • Qt for MCUs 2.10
    • None
    • Other
    • None

    Description

      For OTA updates of resource binary data, as an extra layer of verification, it's desired that versioning is added to the resource binary data.

      The versioning should be configurable per resource storage section by the application developer in the qmlproject file, with a major version and a minor version component.

      When building the application, the major version and minor versions it was built with should also be kept in the application binary itself.

      During resource initialization, the core library should then compare the major and minor versions that the application was built with, with the major and minor versions of the binary resource data that gets loaded at runtime.

      The requirement for each resource storage section should be that the major version has to match the version that the application was built with, and the minor version has to be equal or higher than the minor version that the application was built with. If not, then an error should be reported (using the approach decided in QTMCU-349).

      The qmlproject API could look similar to this (the final API will have to go through internal review, so it might change somewhat):

      Project {
          MCU.Config {
              ResourceStorageSection {
                  name: "QulResourceData" // default
                  majorVersion: 1
                  minorVersion: 0
               }
              ResourceStorageSection {
                  name: "QulResourceDataInExternalFlash"
                  majorVersion: 2
                  minorVersion: 3
              }
          }
      
          QmlFiles {
              ...
          }
      
          ImageFiles {
              files: [...]
          }
      
          ImageFiles {
              files: [...]
              MCU.resourceStorageSection: "QulResourceDataInExternalFlash"
          }
      }
      

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              srodal Samuel Rødal
              srodal Samuel Rødal
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes