diff options
author | Amaury Pouly <amaury.pouly@gmail.com> | 2020-05-17 20:18:12 +0200 |
---|---|---|
committer | Amaury Pouly <amaury.pouly@gmail.com> | 2020-05-17 20:21:12 +0200 |
commit | ae6a49638b999e78ef7fd2da8cac6ca1922abfe8 (patch) | |
tree | caed2eb34b17e90b19a78c841f1d5683dd6436ac /utils/nwztools/scsitools | |
parent | f86723716c18608c344e24bf740980ed76a00637 (diff) | |
download | rockbox-ae6a49638b999e78ef7fd2da8cac6ca1922abfe8.tar.gz 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/scsitools')
-rw-r--r-- | utils/nwztools/scsitools/scsitool.c | 5 |
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[] = | |||
165 | { "product_id", "Product ID", 0x23, 6, 12, DNK_STRING}, | 165 | { "product_id", "Product ID", 0x23, 6, 12, DNK_STRING}, |
166 | { "destination", "Destination", 0x23, 8, 4, DNK_EXACT_LENGTH | DNK_UINT32}, | 166 | { "destination", "Destination", 0x23, 8, 4, DNK_EXACT_LENGTH | DNK_UINT32}, |
167 | { "model_id", "Model ID", 0x23, 9, 4, DNK_EXACT_LENGTH | DNK_UINT32 | DNK_HEX}, | 167 | { "model_id", "Model ID", 0x23, 9, 4, DNK_EXACT_LENGTH | DNK_UINT32 | DNK_HEX}, |
168 | { "ufn", "Update filename", 0x23, 21, 8, DNK_STRING}, | ||
169 | { "kas", "Key and Signature", 0x23, 22, 60, DNK_STRING}, | ||
168 | { "model_name", "Model Name", 0x12, 0, 64, DNK_STRING}, | 170 | { "model_name", "Model Name", 0x12, 0, 64, DNK_STRING}, |
169 | /* there are more obscure commands: | 171 | /* there are more obscure commands: |
170 | * - 0x11 returns a 10-byte packet containing a 8-byte "LeftIdl8", scrambled | 172 | * - 0x11 returns a 10-byte packet containing a 8-byte "LeftIdl8", scrambled |
@@ -175,8 +177,9 @@ struct dnk_prop_t dnk_prop_list[] = | |||
175 | * - 0x23 has more subproperties: | 177 | * - 0x23 has more subproperties: |
176 | * - 5 is "eDKS" | 178 | * - 5 is "eDKS" |
177 | * - 7 is "ProductGroup" | 179 | * - 7 is "ProductGroup" |
178 | * - 10 is nvp properties (see get_dnk_nvp) | 180 | * - 10 is nvp properties (see get_dnk_nvp) (NOTE: nvp number vary by model here) |
179 | * - 11 seems to read something from nvp and encrypt it with AES, not sure what | 181 | * - 11 seems to read something from nvp and encrypt it with AES, not sure what |
182 | * - many other read important/canonical entries of NVP (number does NOT vary model) | ||
180 | * - 0x24 can write the same properties read by 0x23 */ | 183 | * - 0x24 can write the same properties read by 0x23 */ |
181 | }; | 184 | }; |
182 | 185 | ||