diff options
-rw-r--r-- | utils/nwztools/upgtools/upg.c | 1 | ||||
-rw-r--r-- | utils/nwztools/upgtools/upgtool.c | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/utils/nwztools/upgtools/upg.c b/utils/nwztools/upgtools/upg.c index 051ee4c15a..b3b80ac771 100644 --- a/utils/nwztools/upgtools/upg.c +++ b/utils/nwztools/upgtools/upg.c | |||
@@ -36,6 +36,7 @@ struct nwz_model_t g_model_list[] = | |||
36 | { "nwz-e470", true, "e4144baaa2707913f17b5634034262c4" }, | 36 | { "nwz-e470", true, "e4144baaa2707913f17b5634034262c4" }, |
37 | { "nwz-e580", true, "6e25f79812eca7ceed04819d833e80af" }, | 37 | { "nwz-e580", true, "6e25f79812eca7ceed04819d833e80af" }, |
38 | { "nwz-s750", true, "6d4f4d9adec781baf197e6255cedd0f6" }, | 38 | { "nwz-s750", true, "6d4f4d9adec781baf197e6255cedd0f6" }, |
39 | { "nwz-x1000",true, "efafdee4c628fa7536de0b878cfe23af" }, | ||
39 | { "nw-zx100", true, "cdda8d5e5360fd4373154388743f84d2" }, | 40 | { "nw-zx100", true, "cdda8d5e5360fd4373154388743f84d2" }, |
40 | /* The following keys were obtained by brute forcing firmware upgrades, | 41 | /* The following keys were obtained by brute forcing firmware upgrades, |
41 | * someone with a device needs to confirm that they work */ | 42 | * someone with a device needs to confirm that they work */ |
diff --git a/utils/nwztools/upgtools/upgtool.c b/utils/nwztools/upgtools/upgtool.c index a1dce84870..7a4d78f0d7 100644 --- a/utils/nwztools/upgtools/upgtool.c +++ b/utils/nwztools/upgtools/upgtool.c | |||
@@ -465,6 +465,11 @@ int main(int argc, char **argv) | |||
465 | printf("You cannot specify both create and extract\n"); | 465 | printf("You cannot specify both create and extract\n"); |
466 | return 1; | 466 | return 1; |
467 | } | 467 | } |
468 | if(extract && !g_out_prefix) | ||
469 | { | ||
470 | printf("You need to specify output prefix (-o) to extract\n"); | ||
471 | return 1; | ||
472 | } | ||
468 | 473 | ||
469 | int ret = 0; | 474 | int ret = 0; |
470 | if(create) | 475 | if(create) |