summaryrefslogtreecommitdiffstats
path: root/utils/nwztools
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2020-05-17 20:18:12 +0200
committerAmaury Pouly <amaury.pouly@gmail.com>2020-05-17 20:21:12 +0200
commitae6a49638b999e78ef7fd2da8cac6ca1922abfe8 (patch)
treecaed2eb34b17e90b19a78c841f1d5683dd6436ac /utils/nwztools
parentf86723716c18608c344e24bf740980ed76a00637 (diff)
downloadrockbox-ae6a49638b999e78ef7fd2da8cac6ca1922abfe8.tar.gz
rockbox-ae6a49638b999e78ef7fd2da8cac6ca1922abfe8.tar.bz2
rockbox-ae6a49638b999e78ef7fd2da8cac6ca1922abfe8.zip
nwztools/scsitool: add more NVP properties
At least newer devices support more NVP properties in a device-independent numbering. Many are supported but I just added two useful ones Change-Id: I57926de7f0dd364b46a57ca8d48a5c4d4f20402b
Diffstat (limited to 'utils/nwztools')
-rw-r--r--utils/nwztools/scsitools/scsitool.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/utils/nwztools/scsitools/scsitool.c b/utils/nwztools/scsitools/scsitool.c
index 3d4b0c0a13..c85eb75f9a 100644
--- a/utils/nwztools/scsitools/scsitool.c
+++ b/utils/nwztools/scsitools/scsitool.c
@@ -165,6 +165,8 @@ struct dnk_prop_t dnk_prop_list[] =
{ "product_id", "Product ID", 0x23, 6, 12, DNK_STRING},
{ "destination", "Destination", 0x23, 8, 4, DNK_EXACT_LENGTH | DNK_UINT32},
{ "model_id", "Model ID", 0x23, 9, 4, DNK_EXACT_LENGTH | DNK_UINT32 | DNK_HEX},
+ { "ufn", "Update filename", 0x23, 21, 8, DNK_STRING},
+ { "kas", "Key and Signature", 0x23, 22, 60, DNK_STRING},
{ "model_name", "Model Name", 0x12, 0, 64, DNK_STRING},
/* there are more obscure commands:
* - 0x11 returns a 10-byte packet containing a 8-byte "LeftIdl8", scrambled
@@ -175,8 +177,9 @@ struct dnk_prop_t dnk_prop_list[] =
* - 0x23 has more subproperties:
* - 5 is "eDKS"
* - 7 is "ProductGroup"
- * - 10 is nvp properties (see get_dnk_nvp)
+ * - 10 is nvp properties (see get_dnk_nvp) (NOTE: nvp number vary by model here)
* - 11 seems to read something from nvp and encrypt it with AES, not sure what
+ * - many other read important/canonical entries of NVP (number does NOT vary model)
* - 0x24 can write the same properties read by 0x23 */
};