From 2cbcf5149f363bd48f208a3469dc395660ca5a3d Mon Sep 17 00:00:00 2001 From: Kenneth Lim Date: Sun, 21 Feb 2016 19:28:52 +0800 Subject: [PATCH] device: add duo support - DFU works (tested sys1, sys2, user, factory) - Serial works (wifi, inspect, identify) - Not sure about the public/private keys address location though - serialNumber: 'RedBear_Duo' is not verfied as this shows up in linux but should be correct based on https://github.com/redbear/firmware/blob/duo/bootloader/src/stm32f2xx/usbd_desc.c Signed-off-by: Kenneth Lim --- lib/deviceSpecs/specifications.js | 45 +++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/lib/deviceSpecs/specifications.js b/lib/deviceSpecs/specifications.js index 256fadb76..2fc36b3d1 100644 --- a/lib/deviceSpecs/specifications.js +++ b/lib/deviceSpecs/specifications.js @@ -242,6 +242,51 @@ module.exports = { }, defaultProtocol: 'udp', productId: 10 + }, + '2b04:d058': { + productName: 'Duo', + tcpServerKey: { + address: '2082', + size: 512, + format: 'der', + alt: '1', + alg: 'rsa', + addressOffset: 384, + portOffset: 450 + }, + tcpPrivateKey: { + address: '34', + size: 612, + format: 'der', + alt: '1', + alg: 'rsa' + }, + factoryReset: { + address: '0x00140000', + alt: '2' + }, + userFirmware: { + address: '0x080C0000', + alt: '0' + }, + systemFirmwareOne: { + address: '0x08020000', + alt: '0' + }, + systemFirmwareTwo: { + address: '0x08040000', + alt: '0' + }, + knownApps: { + + }, + serial: { + vid: '2b04', + pid: 'c058', + serialNumber: 'RedBear_Duo' + }, + defaultProtocol: 'tcp', + productId: 88 } };