Giter VIP home page Giter VIP logo

redbear-duo-reflash's Introduction

How to update firmware on Redbear Duo devices

Why write this? Because RB's instructions are complex and do things out of order.

Last performed on: July 28 2018

  • flashed devices Duo-[1-8] to 0.3.1

Resources:

Directories for operating within: (clone these)

Updating

From Code/c++/Duo/firmware:

# Wipe temp backup files from previous runs
rm dct/device_private_key_backup.der
rm dct/device_private_key.der
rm dct/dct_backup.bin

# Export keys for safekeeping/fallback
dfu-util -d 2b04:d058 -a 1 -s 34 -U dct/device_private_key_backup.der
dfu-util -d 2b04:d058 -a 1 -s 34 -U dct/device_private_key.der

# Load new Device Configuration Table, re-set keys
dfu-util -d 2b04:d058 -a 0 -s 0x8008000 -D dct/fac-dct-r1.bin
dfu-util -d 2b04:d058 -a 1 -s 2082 -D dct/server_public_key.der
dfu-util -d 2b04:d058 -a 1 -s 34 -D dct/device_private_key.der

# Load new firmware
dfu-util -d 2b04:d058 -a 0 -s 0x8020000 -D system/v0.3.2/duo-system-part1-v0.3.2.bin
dfu-util -d 2b04:d058 -a 0 -s 0x8040000 -D system/v0.3.2/duo-system-part2-v0.3.2.bin

# Load new Factory Reset Application & new Wifi system
dfu-util -d 2b04:d058 -a 2 -s 0x140000 -D system/v0.3.2/duo-fac-web-server-v0.3.2.bin
dfu-util -d 2b04:d058 -a 2 -s 0x180000 -D wifi/duo-wifi-r1.bin

Provisioning

From Code/c++/Duo/firmware:

# Enter DFU (blinking yellow)
dfu-util -d 2b04:d058 -a 1 -s 34:leave -D dct/reset_device_private_key.bin

# Enter LISTENING (blinking blue)
picocom /dev/tty.usbmodem1411
i   # prints DEVICE_ID
v   # prints new firmware id
w   # enter network details

From Code/nodejs/device-provisioning-helper:

node main.js DEVICE_ID

redbear-duo-reflash's People

Contributors

emcniece avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.