From 0cb74508790fd1ef5a3e4a2ad6ef4146a6ff13f2 Mon Sep 17 00:00:00 2001 From: Nigel Norris Date: Tue, 28 Mar 2023 00:05:41 -0400 Subject: [PATCH] TMO Shell: Fix DFU and update URL after directory changes. This is related to commit: https://github.com/TheNameIsNigel/DevEdge-IoTDevKit-Binaries/commit/77546ed46e5ba44f21c8673e6aa28216b1978429.patch Signed-off-by: Nigel Norris --- dfu_gecko/dfu_gecko_lib.c | 8 ++++---- samples/tmo_shell/src/tmo_dfu_download.c | 2 +- samples/tmo_shell/src/tmo_shell.c | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/dfu_gecko/dfu_gecko_lib.c b/dfu_gecko/dfu_gecko_lib.c index cff65c6..a87ec43 100644 --- a/dfu_gecko/dfu_gecko_lib.c +++ b/dfu_gecko/dfu_gecko_lib.c @@ -31,25 +31,25 @@ const struct dfu_file_t dfu_files_mcu[] = { { "Gecko MCU 1/4", "/tmo/zephyr.slot0.bin", - "tmo_shell.tmo_dev_edge.slot0.bin", + "tmo_shell/pg12b/latest/tmo_shell.tmo_dev_edge.slot0.bin", { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 } }, { "Gecko MCU 2/4", "/tmo/zephyr.slot1.bin", - "tmo_shell.tmo_dev_edge.slot1.bin", + "tmo_shell/pg12b/latest/tmo_shell.tmo_dev_edge.slot1.bin", { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 } }, { "Gecko MCU 3/4", "/tmo/zephyr.slot0.bin.sha1", - "tmo_shell.tmo_dev_edge.slot0.bin.sha1", + "tmo_shell/pg12b/latest/tmo_shell.tmo_dev_edge.slot0.bin.sha1", { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 } }, { "Gecko MCU 4/4", "/tmo/zephyr.slot1.bin.sha1", - "tmo_shell.tmo_dev_edge.slot1.bin.sha1", + "tmo_shell/pg12b/latest/tmo_shell.tmo_dev_edge.slot1.bin.sha1", { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 } }, diff --git a/samples/tmo_shell/src/tmo_dfu_download.c b/samples/tmo_shell/src/tmo_dfu_download.c index 0ae238f..56acfa7 100644 --- a/samples/tmo_shell/src/tmo_dfu_download.c +++ b/samples/tmo_shell/src/tmo_dfu_download.c @@ -40,7 +40,7 @@ struct fs_dirent* my_finfo; static char base_url_s[MAX_BASE_URL_LEN]; static char user_base_url_s[MAX_BASE_URL_LEN] = "https://raw.githubusercontent.com/tmobile/DevEdge" - "-IoTDevKit-Binaries/main/tmo/tmo_shell/silabs_pg12b/"; + "-IoTDevKit-Binaries/main/"; static char dfu_auth_key[42]; static int iface_s = WIFI_ID; // Default iface is wifi diff --git a/samples/tmo_shell/src/tmo_shell.c b/samples/tmo_shell/src/tmo_shell.c index 6ed9014..c5db8c3 100644 --- a/samples/tmo_shell/src/tmo_shell.c +++ b/samples/tmo_shell/src/tmo_shell.c @@ -1805,7 +1805,7 @@ int cmd_dfu_download(const struct shell *shell, size_t argc, char **argv) } if (argc <= 2 && target == 2) { // have wifi - return tmo_dfu_download(shell, target, "rs9116w/RS9116W.2.7.0.0.39", argv[3]); + return tmo_dfu_download(shell, target, "rs9116w/RS9116W.2.7.1.0.8", argv[3]); } #ifndef BOOT_SLOT