profiles: thread: add lrzsz for EFR32MG firmware updates

EFR32MG bootloader supports firmware updates via X-MODEM protocol. So
until a special firmware update tool is available, we can use picocom
with lrzsz to perform firmware updates.

Example flashing session on Freedom board:

  $ picocom --baud 115200 /dev/ttyMSM1 --send-cmd "sz --verbose --verbose --xmodem"
   ...snip...

  Gecko Bootloader v2.05.02
  1. upload gbl
  2. run
  3. ebl info
  BL >
  begin upload
  CCC

   ---> [CTRL+a] [CTRL+s] key combination starts sending the file to the bootloader

  *** file: /tmp/wnc_freedom_openthread_rcp_2.5.2.0_GitHub-1fceb225b_gsdk_2024.6.2.gbl
  $ sz --verbose --verbose --xmodem /tmp/wnc_freedom_openthread_rcp_2.5.2.0_GitHub-1fceb225b_gsdk_2024.6.2.gbl
  Sending /tmp/wnc_freedom_openthread_rcp_2.5.2.0_GitHub-1fceb225b_gsdk_2024.6.2.gbl, 860 blocks: Give your local XMODEM receive command now.
  ...snip...
  Bytes Sent: 110208   BPS:11013

References: PCF-1296, PCF-1535
Signed-off-by: Petr Štetiar <petr.stetiar@prplfoundation.org>
This commit is contained in:
Petr Štetiar 2024-12-01 16:17:06 +00:00
parent 49ae459eba
commit a937a7f8ae
No known key found for this signature in database
GPG Key ID: 58EE120F30CC02D3
6 changed files with 10 additions and 0 deletions

View File

@ -516,6 +516,7 @@ Assure expected build configuration (PCF-1413):
CONFIG_PACKAGE_lighttpd-mod-setenv=y
CONFIG_PACKAGE_logd=m
CONFIG_PACKAGE_logrotate=y
CONFIG_PACKAGE_lrzsz=y
CONFIG_PACKAGE_ltq-wlan-wave_6x-uci-osp=y
CONFIG_PACKAGE_lua=y
CONFIG_PACKAGE_lua-amx=y

View File

@ -294,6 +294,7 @@ Assure expected build configuration (PCF-1413):
CONFIG_PACKAGE_lighttpd-mod-setenv=y
# CONFIG_PACKAGE_logd is not set
CONFIG_PACKAGE_logrotate=y
CONFIG_PACKAGE_lrzsz=y
CONFIG_PACKAGE_lua=y
CONFIG_PACKAGE_lua-amx=y
CONFIG_PACKAGE_lxc=y

View File

@ -299,6 +299,7 @@ Assure expected build configuration (PCF-1413):
CONFIG_PACKAGE_lighttpd-mod-setenv=y
# CONFIG_PACKAGE_logd is not set
CONFIG_PACKAGE_logrotate=y
CONFIG_PACKAGE_lrzsz=y
CONFIG_PACKAGE_lua=y
CONFIG_PACKAGE_lua-amx=y
CONFIG_PACKAGE_lxc=y

View File

@ -516,6 +516,7 @@ Assure expected build configuration (PCF-1413):
CONFIG_PACKAGE_lighttpd-mod-setenv=y
CONFIG_PACKAGE_logd=m
CONFIG_PACKAGE_logrotate=y
CONFIG_PACKAGE_lrzsz=y
CONFIG_PACKAGE_ltq-wlan-wave_6x-uci-osp=y
CONFIG_PACKAGE_lua=y
CONFIG_PACKAGE_lua-amx=y

View File

@ -334,6 +334,7 @@ Assure expected build configuration (PCF-1413):
CONFIG_PACKAGE_lighttpd-mod-setenv=y
# CONFIG_PACKAGE_logd is not set
CONFIG_PACKAGE_logrotate=y
CONFIG_PACKAGE_lrzsz=y
CONFIG_PACKAGE_lua=y
CONFIG_PACKAGE_lua-amx=y
CONFIG_PACKAGE_lxc=y

View File

@ -2,3 +2,8 @@
description: Add thread dependencies
packages:
- kmod-tun
additional_packages:
- feed: packages
packages:
- lrzsz