diff options
author | Amaury Pouly <amaury.pouly@gmail.com> | 2020-06-13 16:15:34 +0200 |
---|---|---|
committer | Amaury Pouly <amaury.pouly@gmail.com> | 2020-10-11 13:08:03 +0200 |
commit | 76fbb33adf3cd0b6bcbe26dc47464904493160bd (patch) | |
tree | cfabff837f7153496faf41eb3853b9d6ac826a53 /utils/nwztools/scsitools | |
parent | c8fa53050d30b667f224668ca5de2bb7f07a1b3d (diff) | |
download | rockbox-76fbb33adf3cd0b6bcbe26dc47464904493160bd.tar.gz rockbox-76fbb33adf3cd0b6bcbe26dc47464904493160bd.zip |
nwztools: fix MW-WM1/A30 KAS, fix KAS length
Split WM1A/WM1Z because they don't have the same KAS. On newer devices, the KAS
is actually 64 bytes, not 60. The strange thing is that "get_dnk_nvp kas" returns
60 bytes whereas "get_dnk_prop kas" returns 64, not sure why.
Change-Id: I944d3d838209ba58388439af0cdf5d7c74f1f7fc
Diffstat (limited to 'utils/nwztools/scsitools')
-rw-r--r-- | utils/nwztools/scsitools/scsitool.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/nwztools/scsitools/scsitool.c b/utils/nwztools/scsitools/scsitool.c index c4834b709a..4f7e6ad4b8 100644 --- a/utils/nwztools/scsitools/scsitool.c +++ b/utils/nwztools/scsitools/scsitool.c | |||
@@ -167,7 +167,7 @@ struct dnk_prop_t dnk_prop_list[] = | |||
167 | { "destination", "Destination", 0x23, 8, 4, DNK_EXACT_LENGTH | DNK_UINT32}, | 167 | { "destination", "Destination", 0x23, 8, 4, DNK_EXACT_LENGTH | DNK_UINT32}, |
168 | { "model_id", "Model ID", 0x23, 9, 4, DNK_EXACT_LENGTH | DNK_UINT32 | DNK_HEX}, | 168 | { "model_id", "Model ID", 0x23, 9, 4, DNK_EXACT_LENGTH | DNK_UINT32 | DNK_HEX}, |
169 | { "ufn", "Update filename", 0x23, 21, 8, DNK_STRING}, | 169 | { "ufn", "Update filename", 0x23, 21, 8, DNK_STRING}, |
170 | { "kas", "Key and Signature", 0x23, 22, 60, DNK_STRING}, | 170 | { "kas", "Key and Signature", 0x23, 22, 64, DNK_STRING}, |
171 | { "devinfo", "Devide Info", 0x12, 0, 64, DNK_HEX}, | 171 | { "devinfo", "Devide Info", 0x12, 0, 64, DNK_HEX}, |
172 | /* there are more obscure commands: | 172 | /* there are more obscure commands: |
173 | * - 0x11 returns a 10-byte packet containing a 8-byte "LeftIdl8", scrambled | 173 | * - 0x11 returns a 10-byte packet containing a 8-byte "LeftIdl8", scrambled |