GithubHelp home page GithubHelp logo

synackfin / esp8266-ota-flash-convert Goto Github PK

View Code? Open in Web Editor NEW

This project forked from vtrust-de/esp8266-ota-flash-convert

0.0 1.0 0.0 72 KB

Shell 4.92% Python 8.73% C++ 47.02% Objective-C 39.33%

esp8266-ota-flash-convert's Introduction

esp8266-ota-flash-convert

Intermediate upgrade firmware for ESP8266 based Tuya devices to easily backup and replace stock firmware

Used for OTA flashing by https://github.com/ct-Open-Source/tuya-convert

It was based on https://github.com/khcnz/Espressif2Arduino

Setup

Method 1 - PlatformIO (recommended)

  1. Install platformio

Method 2 - Arduino

  1. Install Arduino 1.8.8
  2. Go to Preferences and add to "Additional Boards Manager URLs" http://arduino.esp8266.com/stable/package_esp8266com_index.json
  3. Go to "Board Manager" and search "esp"
  4. Install esp8266 by ESP8266 Community version 2.3
  5. Install linker scripts from this repository
cp files/boards.txt $ARDUINO_PATH/packages/esp8266/hardware/esp8266/2.3.0
cp files/*.ld $ARDUINO_PATH/packages/esp8266/hardware/esp8266/2.3.0/tools/sdk/ld

Building

Method 1 - PlatformIO (recommended)

  1. Build and package
scripts/build-pio.sh

Method 2 - Arduino CLI

  1. Edit $ARDUINO_PATH in scripts/build-arduino.sh to point to the arduino executable
  2. Build and package
scripts/build-arduino.sh

Method 3 - Arduino IDE

  1. Build esp8266-ota-flash-convert.ino using Flash Size "1M (Espressif OTA Rom 1)"
  2. Convert to a version 2 binary
esptool.py elf2image --version 2 esp8266-ota-flash-convert.ino.elf
  1. Build esp8266-ota-flash-convert.ino using Flash Size "1M (Espressif OTA Rom 2)"
  2. Convert to a version 2 binary
esptool.py elf2image --version 2 esp8266-ota-flash-convert.ino.elf
  1. Move binaries into build directory as user1.bin and user2.bin respectively
  2. Package UPG
scripts/create_upg.py

Installing

  1. Copy .bin files from build to the files directory under tuya-convert

esp8266-ota-flash-convert's People

Contributors

kueblc avatar nanobyte84 avatar

Watchers

 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.