From ae6a49638b999e78ef7fd2da8cac6ca1922abfe8 Mon Sep 17 00:00:00 2001 From: Amaury Pouly Date: Sun, 17 May 2020 20:18:12 +0200 Subject: 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 --- utils/nwztools/scsitools/scsitool.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'utils/nwztools') 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 */ }; -- cgit v1.2.3