ESP8266 Developer Zone The Official ESP8266 Forum 2017-01-31T21:49:59+08:00 https://bbs.espressif.com:443/feed.php?f=7&t=2917 2017-01-31T21:49:59+08:00 2017-01-31T21:49:59+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2917&p=11209#p11209 <![CDATA[Re: Docker: Super easy compiling and flashing without installing the SDK and all the dependencies]]> Statistics: Posted by electronicsguy — Tue Jan 31, 2017 9:49 pm


]]>
2016-10-25T03:52:30+08:00 2016-10-25T03:52:30+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2917&p=10253#p10253 <![CDATA[Docker: Super easy compiling and flashing without installing the SDK and all the dependencies]]> And the best thing: You don't have to install all the dependencies and the SDK(s). And it just WORKS on pretty much any system.
So I created two docker images: One for the "ESP8266 and ESP8266EX" and one for the "ESP32 and ESP31b".
If you are interested check it out on Github: https://github.com/T-vK/docker-esp-sdk

To build the docker image you just have to install docker and run these three lines:

Code:

git clone https://github.com/T-vK/docker-esp-sdk.git
cd docker-esp-sdk
sudo docker build -t tavk/esp-sdk:0.1.0 .


Usage is super simple:

Compiling binaries

Code:

sudo docker run -t -i -u esp \
-v /home/ubuntu/esp8266/esp-open-sdk/examples/blinky:/home/esp/shared_project \
-e SDK_VERSION='1.5.3' \
tavk/esp-sdk:0.1.0 \
make


Flashing binaries

Code:

sudo docker run -t -i -u esp \
--device=/dev/ttyUSB0 \
-v /home/ubuntu/esp8266/esp-open-sdk/examples/blinky:/home/esp/shared_project \
tavk/esp-sdk:0.1.0 \
esptool.py --port /dev/ttyUSB0 write_flash 0x00000 blinky-0x00000.bin 0x40000 blinky-0x40000.bin


Flashing bootloaders

Code:

sudo docker run -t -i -u esp \
--device=/dev/ttyUSB0 \
-v /home/ubuntu/projects/esp-bootloader:/home/esp/shared_project \
tavk/esp-sdk:0.1.0 \
esptool.py --port /dev/ttyUSB0 write_flash --flash_mode dio --flash_size 32m 0x0 bootloader.bin


More detailed info on Github:
https://github.com/T-vK/docker-esp-sdk

Statistics: Posted by NopItTwice — Tue Oct 25, 2016 3:52 am


]]>