From 9438064afc3e562e25b403d4fe48813ba6b2994b Mon Sep 17 00:00:00 2001 From: Jef Driesen Date: Mon, 14 Dec 2020 13:58:23 +0100 Subject: [PATCH] Fix the Mares Genius memory layout The Mares Genius appears to have 16M of flash memory, and it also supports 4K packets. --- src/mares_iconhd.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/mares_iconhd.c b/src/mares_iconhd.c index 6388bb5..e2085eb 100644 --- a/src/mares_iconhd.c +++ b/src/mares_iconhd.c @@ -128,6 +128,12 @@ static const mares_iconhd_layout_t mares_iconhdnet_layout = { 0x100000, /* rb_profile_end */ }; +static const mares_iconhd_layout_t mares_genius_layout = { + 0x1000000, /* memsize */ + 0x0100000, /* rb_profile_begin */ + 0x1000000, /* rb_profile_end */ +}; + static const mares_iconhd_layout_t mares_matrix_layout = { 0x40000, /* memsize */ 0x0A000, /* rb_profile_begin */ @@ -560,8 +566,8 @@ mares_iconhd_device_open (dc_device_t **out, dc_context_t *context, dc_iostream_ device->packetsize = 256; break; case GENIUS: - device->layout = &mares_iconhdnet_layout; - device->packetsize = 256; + device->layout = &mares_genius_layout; + device->packetsize = 4096; device->fingerprint_size = 4; break; case ICONHDNET: