summaryrefslogtreecommitdiff
path: root/src/qmi-firmware-update
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2020-10-28 14:51:52 +0100
committerAleksander Morgado <aleksander@aleksander.es>2020-11-04 08:52:51 +0000
commitafc765aa41c3022b9f7192b3d5501a4d78bbf21e (patch)
tree794d0769ebacf090fff23ffcdef754bec3032aef /src/qmi-firmware-update
parent5c953ae8b0069195b9c41432cd83560d1f284a5c (diff)
downloadlibqmi-afc765aa41c3022b9f7192b3d5501a4d78bbf21e.tar.gz
qmicli,dms: switch to a key-value list for --dms-set-firmware-preference
So that we also allow providing the "download-override" flag or the "modem-storage-index" value. The old "[(firmware_version),(config_version),(carrier)]" format is still supported for backwards compatibility.
Diffstat (limited to 'src/qmi-firmware-update')
-rw-r--r--src/qmi-firmware-update/qfu-main.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/qmi-firmware-update/qfu-main.c b/src/qmi-firmware-update/qfu-main.c
index f4e6142e..5ff5c24d 100644
--- a/src/qmi-firmware-update/qfu-main.c
+++ b/src/qmi-firmware-update/qfu-main.c
@@ -466,7 +466,14 @@ print_help_examples (void)
" a) Set firmware preference setting:\n"
" $ sudo qmicli \\\n"
" -d /dev/cdc-wdm0 \\\n"
- " --dms-set-firmware-preference=\"05.05.58.00,005.025_002,Generic\"\n"
+ " --dms-set-firmware-preference=\"firmware-version=05.05.58.00, \\\n"
+ " config-version=005.025_002, \\\n"
+ " carrier=Generic\"\n"
+ "\n"
+ " The --override-download and --modem-storage-index=[INDEX] options that are\n"
+ " supported in automatic mode may be used in manual mode by passing the\n"
+ " additional 'override-download=yes' and 'modem-storage-index=[INDEX]' keys to the \n"
+ " --dms-set-firmware-preference operation.\n"
"\n"
" b) Request power cycle:\n"
" $ sudo qmicli \\\n"