All Projects → gojimmypi → build_esp8266

gojimmypi / build_esp8266

Licence: MIT license
Bash Script to Build MicroPython for ESP8266 on Raspberry Pi or Debian Linux

Programming Languages

shell
77523 projects

Projects that are alternatives of or similar to build esp8266

OpenCV Raspberry pi TBB
Latest pre-compiled binary of Pre-released & Stable OpenCV (4.0.0) along with TBB (2018-Update 6) for Raspberry Pi.
Stars: ✭ 46 (+253.85%)
Mutual labels:  raspberrypi
pimox
Proxmox for the Raspberry Pi
Stars: ✭ 59 (+353.85%)
Mutual labels:  raspberrypi
rpi-backup
raspberry pi backup,树莓派系统备份,最小镜像备份
Stars: ✭ 213 (+1538.46%)
Mutual labels:  raspberrypi
Pi-Pool
Cardano Stakepool on Raspberry Pi
Stars: ✭ 204 (+1469.23%)
Mutual labels:  raspberrypi
aw-clock
Astronomy/weather clock
Stars: ✭ 41 (+215.38%)
Mutual labels:  raspberrypi
docker-at-home
Things I run at home on Raspberry Pi in Docker containers
Stars: ✭ 25 (+92.31%)
Mutual labels:  raspberrypi
MSXPi
Interface for MSX to Connect and use Raspberry Pi resources
Stars: ✭ 61 (+369.23%)
Mutual labels:  raspberrypi
wor-flasher
Legal utility that runs on RPiOS to flash another SD card with Windows 10/11
Stars: ✭ 451 (+3369.23%)
Mutual labels:  raspberrypi
filebrowser-docker
🐳 filebrowser inside Docker container
Stars: ✭ 122 (+838.46%)
Mutual labels:  raspberrypi
Raspberry-ili9340spi
ILI9340 SPI TFT Library & XPT2046 Touch Screen Library for Raspberry
Stars: ✭ 26 (+100%)
Mutual labels:  raspberrypi
eliot-os
Minimal Operating System for Eliot
Stars: ✭ 19 (+46.15%)
Mutual labels:  raspberrypi
raspberry-noaa
Fully automated ISS SSTV, NOAA and Meteor satellite image downloader using Raspberry PI
Stars: ✭ 155 (+1092.31%)
Mutual labels:  raspberrypi
xbvr
Tool to organize and stream your VR porn library
Stars: ✭ 186 (+1330.77%)
Mutual labels:  raspberrypi
PiHueEntertainment
An application that can handle the Hue Entertainment Areas on a Raspberry Pi
Stars: ✭ 28 (+115.38%)
Mutual labels:  raspberrypi
challenges
A repository for challenges for various tech stacks.
Stars: ✭ 44 (+238.46%)
Mutual labels:  raspberrypi
TPU-Posenet
Edge TPU Accelerator / Multi-TPU / Multi-Model + Posenet/DeeplabV3/MobileNet-SSD + Python + Sync / Async + LaptopPC / RaspberryPi
Stars: ✭ 39 (+200%)
Mutual labels:  raspberrypi
MPU-9250-Sensors-Data-Collect
MPU9250 (MPU6500 + AK8963) I2C Driver in Python for Raspbery PI
Stars: ✭ 51 (+292.31%)
Mutual labels:  raspberrypi
pi roombot
ROS raspberry pi "roomba" like robot
Stars: ✭ 12 (-7.69%)
Mutual labels:  raspberrypi
pipxe
iPXE for the Raspberry Pi
Stars: ✭ 154 (+1084.62%)
Mutual labels:  raspberrypi
TPU-MobilenetSSD
Edge TPU Accelerator / Multi-TPU + MobileNet-SSD v2 + Python + Async + LattePandaAlpha/RaspberryPi3/LaptopPC
Stars: ✭ 82 (+530.77%)
Mutual labels:  raspberrypi

Update: March 24, 2019. Script now works with new "port" directory structure and confirmed to work in WSL.

BUILD ESP8266

This is the source code to build MicroPython for the ESP8266 on a Raspberry Pi (or debian, or WSL Ubuntu).

debian_specific.sh

If you are not using a Raspberry Pi, then there are some things on Debian that are not installed by default.

quick_start.sh

To get started quickly, here's a simple script to fetch the build script, flag it as executable, and run it:

build_esp8266.sh

This is the main script to build MicroPython for the ESP8266

Usage: ./build_esp8266.sh [OPTION]

OPTIONS (note the change to lower case, and addtion of --prefix since last release!)

--help show this help. Source will be placed in ~/workspace/ directory.

--full Update OS and installed apps, download latest esp-open-sdk and micropython, build everything, erase and upload new binary to /dev/ttyUSB0 (or /dev/ttyS0 for WSL)

--make-only Download latest esp-open-sdk and micropython, build everything.

--make-only-esp8266 Download latest micropython and build (skip esp-open-sdk).

--run-tests Run the esp8266 test script

--flash-only Only writing existing flash to device. (no updates, no build)

Note the FULL option, of rebuilding EVERYTHING can take a quite long time on the Raspberry Pi.

#Examples:

./build_esp8266.sh --make-only-esp8266

or

./build_esp8266.sh --flash-only

which really just does this:

~/workspace/esptool/esptool.py --port /dev/ttyUSB0 --baud 115200 write_flash  0  ~/workspace/micropython/esp8266/build/firmware-combined.bin

Known issues:

Errors like this mean that the bash file was edited in Windows:

./build_esp8266.sh: line 65: $'\r': command not found

to fix:

dos2unix build_esp8266.sh

Comments & Feedback

You can leave messages on the MicroPython forum:

http://forum.micropython.org/viewtopic.php?f=16&t=1720

References

[1] https://downloads.raspberrypi.org/raspbian_latest Latest binary image to write to Raspberry Pi SD Flash

[2] https://sourceforge.net/projects/win32diskimager/files/Archive/Win32DiskImager-0.9.5-install.exe/download executable image for win32diskimager (useful for getting binary image from Windows onto RPi SD card)

[3] https://sourceforge.net/projects/win32diskimager/ More info for win32diskimager tool

[4] http://forum.micropython.org/viewforum.php?f=16 The MicroPython ESP8266 Forum

[5] https://github.com/pfalcon/esp-open-sdk The eps-open-sdk (required to build for ESP8266)

[6] https://github.com/micropython The MicroPython source

License

The MIT License (MIT)

Copyright (c) 2016, gojimmypi

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Other stuff referenced:

esp-open-sdk is in its nature merely a makefile, and is in public domain. However, the toolchain this makefile builds consists of many components, each having its own license. You should study and abide them all.

Quick summary: gcc is under GPL, which means that if you're distributing a toolchain binary you must be ready to provide complete toolchain sources on the first request.

Since version 1.1.0, vendor SDK comes under modified MIT license. Newlib, used as C library comes with variety of BSD-like licenses. libgcc, compiler support library, comes with a linking exception. All the above means that for applications compiled with this toolchain, there are no specific requirements regarding source availability of the application or toolchain. (In other words, you can use it to build closed-source applications). (There're however standard attribution requirements - see licences for details).

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].