Is there an updated guide about how to use esp-open-sdk?

All ESP8266 boards running MicroPython.
Official boards are the Adafruit Huzzah and Feather boards.
Target audience: MicroPython users with an ESP8266 board.
Post Reply
Drakoky
Posts: 2
Joined: Tue Feb 23, 2021 11:35 pm

Is there an updated guide about how to use esp-open-sdk?

Post by Drakoky » Wed Mar 24, 2021 11:46 pm

I had many problems with esp-open-skd, follow the guide on the GitHub repo.
  1. First of all, this guide isn't clear with dependencies, I had to install one by one, because is only tell me one dependency missing each time I run make.
  2. Apparently, this repo doesn't work properly on newest version of Linux, doesn't detect bash v5. Already solve changing one line of code
  3. error: python is missing or unusable. This is the last error I got, I already tried install python2-dev, add "PYTHON=python3" to make, but neither work.
I already searched guide for use this, but all guided I found are 4-5 old and give me the same error.

In just want add some lib to frozen code, so I need to build a new firmware, according to guides I found on internet, but I have not results.

kevinkk525
Posts: 925
Joined: Sat Feb 03, 2018 7:02 pm

Re: Is there an updated guide about how to use esp-open-sdk?

Post by kevinkk525 » Thu Mar 25, 2021 7:56 am

Kevin Köck
Micropython Smarthome Firmware (with Home-Assistant integration): https://github.com/kevinkk525/pysmartnode

hklang
Posts: 6
Joined: Mon Nov 30, 2020 11:21 pm

Re: Is there an updated guide about how to use esp-open-sdk?

Post by hklang » Sun Mar 28, 2021 9:12 pm

I think the download of expat-2.1.0 is broken upstream.

Code: Select all

[DEBUG]    Not at this location:"http://downloads.sourceforge.net/project/expat/expat/2.1.0/expat-2.1.0.tgz"
Even after fixing the URL in the script, version 2.1.0 has been renamed as vulnerable. See: https://sourceforge.net/projects/expat/ ... pat/2.1.0/

kevinkk525
Posts: 925
Joined: Sat Feb 03, 2018 7:02 pm

Re: Is there an updated guide about how to use esp-open-sdk?

Post by kevinkk525 » Mon Mar 29, 2021 7:06 am

Ubuntu 20.04 installs:
Note, selecting 'libexpat1-dev' instead of 'libexpat-dev'
libexpat1-dev is already the newest version (2.2.9-1build1)

So where do you pull 2.1 from?
Kevin Köck
Micropython Smarthome Firmware (with Home-Assistant integration): https://github.com/kevinkk525/pysmartnode

hklang
Posts: 6
Joined: Mon Nov 30, 2020 11:21 pm

Re: Is there an updated guide about how to use esp-open-sdk?

Post by hklang » Tue Mar 30, 2021 3:48 pm

Firstly, thanks for publishing your script - this is very helpful.

The only issue I have is with Debian 10:

libexpat1-dev is installed, however "make" is pulling libexpat_2.1 from crosstalk_NG's sourceforge repo and failing because it is no-longer there.

Code: Select all

[INFO ]  Build started 20210330.153406
[INFO ]  Building environment variables
[INFO ]  =================================================================
[INFO ]  Retrieving needed toolchain components' tarballs
[ERROR]   
[ERROR]  >>
[ERROR]  >>  Build failed in step 'Retrieving needed toolchain components' tarballs'
[ERROR]  >>        called in step '(top-level)'
[ERROR]  >>
[ERROR]  >>  Error happened in: do_expat_get[scripts/build/companion_libs/210-expat.sh@12]
[ERROR]  >>        called from: do_companion_libs_get[scripts/build/companion_libs.sh@15]
[ERROR]  >>        called from: main[scripts/crosstool-NG.sh@591]
The workaround for me was simply to patch esp-open-sdk/crosstool-NG/config/companion_libs/expat.in and change all references from 2_1 to 2_3

kevinkk525
Posts: 925
Joined: Sat Feb 03, 2018 7:02 pm

Re: Is there an updated guide about how to use esp-open-sdk?

Post by kevinkk525 » Tue Mar 30, 2021 4:14 pm

oh, then my chain might have pulled that version before it got removed. Thanks for reporting the needed change.
Kevin Köck
Micropython Smarthome Firmware (with Home-Assistant integration): https://github.com/kevinkk525/pysmartnode

hklang
Posts: 6
Joined: Mon Nov 30, 2020 11:21 pm

Re: Is there an updated guide about how to use esp-open-sdk?

Post by hklang » Tue Mar 30, 2021 5:17 pm

Sorry, wasn't clear about the changes made - references to 2_1 changed to 2_3 and references to 2.1 changed to 2.3

Code: Select all

# expat config file

choice
    bool
    prompt "expat version"
# Don't remove next line
# CT_INSERT_VERSION_BELOW

config EXPAT_V_2_3_0
    bool
    prompt "2.3.0"

endchoice

config EXPAT_VERSION
    string
# Don't remove next line
# CT_INSERT_VERSION_STRING_BELOW
    default "2.3.0" if EXPAT_V_2_3_0



Post Reply