Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] [TF:OTA] OTA updates common work branch #9969

Closed
wants to merge 41 commits into from

Commits on Oct 30, 2018

  1. REWORD ME riotboot: introduce riot-based minimal bootloader

    TODO Rebase message edit at the end.
    
     * updated to edbg/openocd new variables
     * Use RIOTBOOT_FW_SLOT_SIZE: upcomming PRs should remove
       RIOTBOOT_SLOT1_SIZE and RIOTBOOT_SLOT2_SIZE
     * Use ROM_START_ADDR for 'firmware' to handle iotlab-m3
     * Use ROM_OFFSET and FW_ROM_LEN
     * Info on non supported existing bootloader for the moment in dist/riotboot
     * dist/riotboot: allow running different targets and not only flash
     * RIOTBOOT_HDR_LEN as hexadecimal and can be overwritten
    kaspar030 authored and kYc0o committed Oct 30, 2018
    Configuration menu
    Copy the full SHA
    f8fa196 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    37ff3d0 View commit details
    Browse the repository at this point in the history
  3. makefiles/riotboot: allow generating a combined binary

    It creates a binary with
    
        bootloader + slot1-signature + slot1
    cladmi authored and kYc0o committed Oct 30, 2018
    Configuration menu
    Copy the full SHA
    219701e View commit details
    Browse the repository at this point in the history
  4. EDIT/REWORD ME sys/firmware: initial import of firmware management fu…

    …nctions
    
    * Except the bootloader, only one slot size is supported
    * export RIOTBOOT_ variables
    * Set the header length to FIRMWARE_METADATA_SIZE
    * Add a warning that 'dist/tools/firmware' should be compiled with the same
      options as the current board
    kaspar030 authored and kYc0o committed Oct 30, 2018
    Configuration menu
    Copy the full SHA
    7c46949 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    9726a30 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    a5ba1eb View commit details
    Browse the repository at this point in the history
  7. cpu/cortexm_common: initial multislot support

    Calculate RIOTBOOT_FW_SLOT_SIZE is calculated as an hexadecimal value and
    handles ROM_LEN defined as kilobytes like '512K'
    kaspar030 authored and kYc0o committed Oct 30, 2018
    Configuration menu
    Copy the full SHA
    8a884be View commit details
    Browse the repository at this point in the history
  8. sys/ota: introduce CoAP OTA module

    kaspar030 authored and kYc0o committed Oct 30, 2018
    Configuration menu
    Copy the full SHA
    78d2b65 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    b721c08 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    666fd8f View commit details
    Browse the repository at this point in the history
  11. firmware: remove metadata_type from struct

    bergzand authored and kYc0o committed Oct 30, 2018
    Configuration menu
    Copy the full SHA
    7d59ee4 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    eccb8fd View commit details
    Browse the repository at this point in the history
  13. Add conditional support

    bergzand authored and kYc0o committed Oct 30, 2018
    Configuration menu
    Copy the full SHA
    1c4dd2d View commit details
    Browse the repository at this point in the history
  14. ota_suit: Initial work

    bergzand authored and kYc0o committed Oct 30, 2018
    Configuration menu
    Copy the full SHA
    2797b25 View commit details
    Browse the repository at this point in the history
  15. TODO BACKPORT IN INITIAL COMMITS firmware: fix support for bigger fla…

    …sh pages
    
    Fix support when FIRMWARE_METADATA_SIZE < FLASHPAGE_SIZE.
    cladmi authored and kYc0o committed Oct 30, 2018
    Configuration menu
    Copy the full SHA
    810834b View commit details
    Browse the repository at this point in the history
  16. getters for the uuids

    bergzand authored and kYc0o committed Oct 30, 2018
    Configuration menu
    Copy the full SHA
    4c157f3 View commit details
    Browse the repository at this point in the history
  17. Add simple url extraction

    bergzand authored and kYc0o committed Oct 30, 2018
    Configuration menu
    Copy the full SHA
    87591d4 View commit details
    Browse the repository at this point in the history
  18. url parsing

    bergzand authored and kYc0o committed Oct 30, 2018
    Configuration menu
    Copy the full SHA
    bb14500 View commit details
    Browse the repository at this point in the history
  19. Update

    bergzand authored and kYc0o committed Oct 30, 2018
    Configuration menu
    Copy the full SHA
    2383c60 View commit details
    Browse the repository at this point in the history
  20. gen_manifest: add raw option

    bergzand authored and kYc0o committed Oct 30, 2018
    Configuration menu
    Copy the full SHA
    7a0406e View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    0687386 View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    517db38 View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    be89133 View commit details
    Browse the repository at this point in the history
  24. ota_suit: increase STACKSIZE as it overflowed

    On `samr21-xpro` it used 1040 for previously 1024 bytes.
    Now it has 2048 bytes.
    cladmi authored and kYc0o committed Oct 30, 2018
    Configuration menu
    Copy the full SHA
    964d531 View commit details
    Browse the repository at this point in the history
  25. DEBUG COMMIT: suit_updater: add global ipv6 addresses print

    Adapt from shell/commands/sc_gnrc_netif
    cladmi authored and kYc0o committed Oct 30, 2018
    Configuration menu
    Copy the full SHA
    8a64c07 View commit details
    Browse the repository at this point in the history
  26. firmware: add some debug information for flashwrite_putbytes

    * Add information on the current flashpage
    
    Currently the information is not 100% consistent as 'offset' is relative to
    the beginning and flashpage is absolute but I find it useful this way.
    cladmi authored and kYc0o committed Oct 30, 2018
    Configuration menu
    Copy the full SHA
    49585a0 View commit details
    Browse the repository at this point in the history
  27. fixup! ota_suit: Initial work

    kYc0o committed Oct 30, 2018
    Configuration menu
    Copy the full SHA
    efdb9e1 View commit details
    Browse the repository at this point in the history
  28. Configuration menu
    Copy the full SHA
    cb0bf41 View commit details
    Browse the repository at this point in the history
  29. fixup! ota_suit: Initial work

    kYc0o committed Oct 30, 2018
    Configuration menu
    Copy the full SHA
    957c40e View commit details
    Browse the repository at this point in the history
  30. Configuration menu
    Copy the full SHA
    922ce91 View commit details
    Browse the repository at this point in the history
  31. Configuration menu
    Copy the full SHA
    da1747b View commit details
    Browse the repository at this point in the history
  32. Configuration menu
    Copy the full SHA
    4ef8e7e View commit details
    Browse the repository at this point in the history
  33. fixup! ota_suit: Initial work

    kYc0o committed Oct 30, 2018
    Configuration menu
    Copy the full SHA
    12af153 View commit details
    Browse the repository at this point in the history
  34. fixup! ota_suit: Initial work

    kYc0o committed Oct 30, 2018
    Configuration menu
    Copy the full SHA
    dfb5bbc View commit details
    Browse the repository at this point in the history
  35. squash! REWORD ME riotboot: introduce riot-based minimal bootloader

    `RIOTBOOT_FW_SLOT_SIZE` contains both the metadata and the firmware.
    TODO describe somewhere.
    cladmi authored and kYc0o committed Oct 30, 2018
    Configuration menu
    Copy the full SHA
    ca8afb4 View commit details
    Browse the repository at this point in the history
  36. Configuration menu
    Copy the full SHA
    0772c54 View commit details
    Browse the repository at this point in the history
  37. squash! makefiles/riotboot: generate separate .signed.bin file

    Variables must be exported for `openocd.sh` on `iotlab-m3`.
    cladmi authored and kYc0o committed Oct 30, 2018
    Configuration menu
    Copy the full SHA
    373366c View commit details
    Browse the repository at this point in the history
  38. fixup! makefiles/riotboot: allow generating a combined binary

    Variables must be exported for `openocd.sh` on `iotlab-m3`.
    cladmi authored and kYc0o committed Oct 30, 2018
    Configuration menu
    Copy the full SHA
    fc6ff36 View commit details
    Browse the repository at this point in the history
  39. squash! squash! makefiles/riotboot: generate separate .signed.bin file

    As it us using 'export' to the shell for openocd, it does not work properly.
    Replace it with calculating the value in a subshell.
    cladmi authored and kYc0o committed Oct 30, 2018
    Configuration menu
    Copy the full SHA
    4405b86 View commit details
    Browse the repository at this point in the history
  40. examples/ota: tiny documentation fix

    fedepell authored and kYc0o committed Oct 30, 2018
    Configuration menu
    Copy the full SHA
    7004953 View commit details
    Browse the repository at this point in the history
  41. makefiles/riotboot.mk: enforce rule precedence (signed.bin before .bin)

    make is a bit strange sometimes and considers various factors to decide
    the precedence of the rule to be applied: definition order is one (and
    the %.signed.bin is after %.bin, and would be also if we put it at the
    end of Makefile.include), but also if a rule is implicit is then
    preferred no matter the order.
    
    A quite complete and coincise overview of the topic can be found here:
    https://stackoverflow.com/questions/28842851/force-make-to-use-a-more-specific-rule
    
    Given the inclusion mechanism used in RIOT it should be safer to
    explicitly state things, although may seem ugly sometimes.
    fedepell authored and kYc0o committed Oct 30, 2018
    Configuration menu
    Copy the full SHA
    359ee2e View commit details
    Browse the repository at this point in the history