Where is source of esp8266-20171101-v1.9.3.bin

All ESP8266 boards running MicroPython.
Official boards are the Adafruit Huzzah and Feather boards.
Target audience: MicroPython users with an ESP8266 board.
Post Reply
jomas
Posts: 59
Joined: Mon Dec 25, 2017 1:48 pm
Location: Netherlands

Where is source of esp8266-20171101-v1.9.3.bin

Post by jomas » Mon Jan 01, 2018 12:06 pm

I try to compile micropython to get esp8266-20171101-v1.9.3.bin (the one on the download page)
But I end up with a (working) 1.9.3 binary that does NOT include (u)asyncio.

esp8266-20171101-v1.9.3.bin (from the download page) however is inclusive (u)asyncio.
I tried to checkout the source by tag v1.9.3, and the source on https://github.com/micropython/micropyt ... tag/v1.9.3.

So where is the source that compiles to esp8266-20171101-v1.9.3.bin?

User avatar
Roberthh
Posts: 3667
Joined: Sat May 09, 2015 4:13 pm
Location: Rhineland, Europe

Re: Where is source of esp8266-20171101-v1.9.3.bin

Post by Roberthh » Mon Jan 01, 2018 8:17 pm

uasyncio is besides the utimeq module a set python scripts, which you can find in the micropython lib. Instructions are here: https://github.com/peterhinch/micropyth ... -mechanism
To be included into the frozen bytecode, you can copy the files manually to your esp8266/modules directory. Create there the subdirectory uasyncio, and copy into it:
__init__.py from https://github.com/micropython/micropyt ... o/uasyncio
core.py from https://github.com/micropython/micropyt ... e/uasyncio
queues.py from https://github.com/micropython/micropyt ... s/uasyncio
synchro.py from https://github.com/micropython/micropyt ... o/uasyncio

jomas
Posts: 59
Joined: Mon Dec 25, 2017 1:48 pm
Location: Netherlands

Re: Where is source of esp8266-20171101-v1.9.3.bin

Post by jomas » Mon Jan 01, 2018 8:47 pm

Yes I already used the "upip way" from the unix port to copy asyncio to the modules directory of the esp8266 port. Then it works.
But I assumed that at least the official released versions had a source somewhere that would compile directly to the binaries on the download side.

But thanks anyway for the answer.

User avatar
pythoncoder
Posts: 5956
Joined: Fri Jul 18, 2014 8:01 am
Location: UK
Contact:

Re: Where is source of esp8266-20171101-v1.9.3.bin

Post by pythoncoder » Tue Jan 02, 2018 1:45 pm

Daily builds like esp8266-20171101-v1.9.3.bin don't include libraries by default. If you clone the Micropython repository and build the firmware it will produce the binary corresponding to that day's .bin file. So either way you'll need to install the libraries you need. The release builds (e.g. v.1.9.3) include some libraries but I'm a little vague as to exactly which ones as I always build from source.
Peter Hinch
Index to my micropython libraries.

Post Reply