Skip to content

Commit 0cb7450

Browse files
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 <[email protected]>
1 parent 9aed673 commit 0cb7450

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

dfu_gecko/dfu_gecko_lib.c

+4-4
Original file line numberDiff line numberDiff line change
@@ -31,25 +31,25 @@ const struct dfu_file_t dfu_files_mcu[] = {
3131
{
3232
"Gecko MCU 1/4",
3333
"/tmo/zephyr.slot0.bin",
34-
"tmo_shell.tmo_dev_edge.slot0.bin",
34+
"tmo_shell/pg12b/latest/tmo_shell.tmo_dev_edge.slot0.bin",
3535
{ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }
3636
},
3737
{
3838
"Gecko MCU 2/4",
3939
"/tmo/zephyr.slot1.bin",
40-
"tmo_shell.tmo_dev_edge.slot1.bin",
40+
"tmo_shell/pg12b/latest/tmo_shell.tmo_dev_edge.slot1.bin",
4141
{ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }
4242
},
4343
{
4444
"Gecko MCU 3/4",
4545
"/tmo/zephyr.slot0.bin.sha1",
46-
"tmo_shell.tmo_dev_edge.slot0.bin.sha1",
46+
"tmo_shell/pg12b/latest/tmo_shell.tmo_dev_edge.slot0.bin.sha1",
4747
{ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }
4848
},
4949
{
5050
"Gecko MCU 4/4",
5151
"/tmo/zephyr.slot1.bin.sha1",
52-
"tmo_shell.tmo_dev_edge.slot1.bin.sha1",
52+
"tmo_shell/pg12b/latest/tmo_shell.tmo_dev_edge.slot1.bin.sha1",
5353
{ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }
5454
},
5555

samples/tmo_shell/src/tmo_dfu_download.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ struct fs_dirent* my_finfo;
4040
static char base_url_s[MAX_BASE_URL_LEN];
4141
static char user_base_url_s[MAX_BASE_URL_LEN] =
4242
"https://raw.githubusercontent.com/tmobile/DevEdge"
43-
"-IoTDevKit-Binaries/main/tmo/tmo_shell/silabs_pg12b/";
43+
"-IoTDevKit-Binaries/main/";
4444
static char dfu_auth_key[42];
4545

4646
static int iface_s = WIFI_ID; // Default iface is wifi

samples/tmo_shell/src/tmo_shell.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1805,7 +1805,7 @@ int cmd_dfu_download(const struct shell *shell, size_t argc, char **argv)
18051805
}
18061806

18071807
if (argc <= 2 && target == 2) { // have wifi
1808-
return tmo_dfu_download(shell, target, "rs9116w/RS9116W.2.7.0.0.39", argv[3]);
1808+
return tmo_dfu_download(shell, target, "rs9116w/RS9116W.2.7.1.0.8", argv[3]);
18091809
}
18101810

18111811
#ifndef BOOT_SLOT

0 commit comments

Comments
 (0)