Code Monkey home page Code Monkey logo

8266-build-env's Introduction

8266-build-env

Vagrantfile and instructions to setup build env for building haa

Software to install

Download and install Vagrant for your OS from https://www.vagrantup.com/downloads

Download and install Virtualbox from https://www.virtualbox.org/wiki/Downloads

After installing Virtualbox download the extension pack and install from https://www.virtualbox.org/wiki/Downloads

Latest Windows Installer https://download.virtualbox.org/virtualbox/6.1.16/VirtualBox-6.1.16-140961-Win.exe

Latest MacOS installer https://download.virtualbox.org/virtualbox/6.1.16/VirtualBox-6.1.16-140961-OSX.dmg

Latest Extension pack installer https://download.virtualbox.org/virtualbox/6.1.16/Oracle_VM_VirtualBox_Extension_Pack-6.1.16.vbox-extpack

Visual Code - optional https://code.visualstudio.com/download Vagrant stores the key needed to ssh in the following subfolder from your Vagrantfile ".vagrant/machines/default/virtualbox/private_key"

Setup instructions

Create a new folder somewhere and download "Vagrantfile" and save into that folder. For example i will a folder named HAA in my home folder.

mkdir ~/HAA

Change directory to the created folder.

cd ~/HAA

Download "Vagrantfile" and save into that folder

curl -L https://raw.githubusercontent.com/jsmith79/8266-build-env/main/Vagrantfile -o Vagrantfile

Type "vagrant up" and press enter

vagrant up

This will download Ubuntu and the source code from the following repositories. https://github.com/RavenSystem/esp-homekit-devices

https://github.com/pfalcon/esp-open-sdk

https://github.com/SuperHouse/esp-open-rtos

This will take a while, About 25 min for me.

Once complete you should be able to type "vagrant ssh" and press enter and you will ssh into the created virtual machine.

vagrant ssh

Source files for HAA are located in ~/build/esp-homekit-devices/

cd ~/build/esp-homekit-devices/

You should now be able to follow the build instructions at https://github.com/RavenSystem/esp-homekit-devices/wiki/Build-Instructions

Build:

make -j8 -C devices/HAA all

Upload firmware to ESP and then run it:

make -j8 -C devices/HAA test

Flash firmware:

make -j8 -C devices/HAA flash

Show UART output of connected device (Same as capture log):

make -j8 -C devices/HAA monitor

Clean and build from scratch:

make -j8 -C devices/HAA rebuild

Erase Flash:

make -j8 -C devices/HAA erase_flash

8266-build-env's People

Contributors

jsmith79 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.