summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2020-06-13 16:15:34 +0200
committerAmaury Pouly <amaury.pouly@gmail.com>2020-10-11 13:08:03 +0200
commit76fbb33adf3cd0b6bcbe26dc47464904493160bd (patch)
treecfabff837f7153496faf41eb3853b9d6ac826a53 /firmware
parentc8fa53050d30b667f224668ca5de2bb7f07a1b3d (diff)
downloadrockbox-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 'firmware')
-rw-r--r--firmware/target/hosted/sonynwz/nwz-db.c7
-rw-r--r--firmware/target/hosted/sonynwz/nwz-db.h2
2 files changed, 6 insertions, 3 deletions
diff --git a/firmware/target/hosted/sonynwz/nwz-db.c b/firmware/target/hosted/sonynwz/nwz-db.c
index a43ce6c551..12c70ffb39 100644
--- a/firmware/target/hosted/sonynwz/nwz-db.c
+++ b/firmware/target/hosted/sonynwz/nwz-db.c
@@ -1877,7 +1877,9 @@ static unsigned long models_nwz_s770[] = { 0x16000001, 0x16000002, 0x16000004,
1877static unsigned long models_nw_s780[] = { 0x19000001, 0x19000002, 0x19000004, 1877static unsigned long models_nw_s780[] = { 0x19000001, 0x19000002, 0x19000004,
1878 0x19000005 }; 1878 0x19000005 };
1879 1879
1880static unsigned long models_nw_wm1[] = { 0x20000007, 0x21000008 }; 1880static unsigned long models_nw_wm1a[] = { 0x20000007 };
1881
1882static unsigned long models_nw_wm1z[] = { 0x21000008 };
1881 1883
1882static unsigned long models_nwz_x1000[] = { 0x5000002, 0x5000004, 0x5000005, 1884static unsigned long models_nwz_x1000[] = { 0x5000002, 0x5000004, 0x5000005,
1883 0x5020002, 0x5040002, 0x5020004, 0x5040004, 0x5020005, 0x5040005 }; 1885 0x5020002, 0x5040002, 0x5020004, 0x5040004, 0x5020005, 0x5040005 };
@@ -1927,7 +1929,8 @@ struct nwz_series_info_t nwz_series[NWZ_SERIES_COUNT] =
1927 { "nwz-s760", "NWZ-S760 Series", 10, models_nwz_s760, &nvp_index_f505c8 }, 1929 { "nwz-s760", "NWZ-S760 Series", 10, models_nwz_s760, &nvp_index_f505c8 },
1928 { "nwz-s770", "NWZ-S770 Series", 8, models_nwz_s770, 0 }, 1930 { "nwz-s770", "NWZ-S770 Series", 8, models_nwz_s770, 0 },
1929 { "nw-s780", "NW-S780 Series", 4, models_nw_s780, &nvp_index_6485c8 }, 1931 { "nw-s780", "NW-S780 Series", 4, models_nw_s780, &nvp_index_6485c8 },
1930 { "nw-wm1", "NW-WM1 Series", 2, models_nw_wm1, &nvp_index_398250 }, 1932 { "nw-wm1a", "NW-WM1 Series", 1, models_nw_wm1a, &nvp_index_398250 },
1933 { "nw-wm1z", "NW-WM1 Series", 1, models_nw_wm1z, &nvp_index_398250 },
1931 { "nwz-x1000", "NWZ-X1000 Series", 9, models_nwz_x1000, &nvp_index_4edba7 }, 1934 { "nwz-x1000", "NWZ-X1000 Series", 9, models_nwz_x1000, &nvp_index_4edba7 },
1932 { "nw-zx100", "NW-ZX100 Series", 6, models_nw_zx100, &nvp_index_92faee }, 1935 { "nw-zx100", "NW-ZX100 Series", 6, models_nw_zx100, &nvp_index_92faee },
1933 { "nw-zx300", "NW-ZX300 Series", 3, models_nw_zx300, &nvp_index_139d65 }, 1936 { "nw-zx300", "NW-ZX300 Series", 3, models_nw_zx300, &nvp_index_139d65 },
diff --git a/firmware/target/hosted/sonynwz/nwz-db.h b/firmware/target/hosted/sonynwz/nwz-db.h
index af2908b66f..a98267227b 100644
--- a/firmware/target/hosted/sonynwz/nwz-db.h
+++ b/firmware/target/hosted/sonynwz/nwz-db.h
@@ -159,7 +159,7 @@ enum nwz_nvp_node_t
159/* Number of models */ 159/* Number of models */
160#define NWZ_MODEL_COUNT 197 160#define NWZ_MODEL_COUNT 197
161/* Number of series */ 161/* Number of series */
162#define NWZ_SERIES_COUNT 40 162#define NWZ_SERIES_COUNT 41
163 163
164/* NVP node info */ 164/* NVP node info */
165struct nwz_nvp_info_t 165struct nwz_nvp_info_t