Page 1 of 1
Is there an updated guide about how to use esp-open-sdk?
Posted: Wed Mar 24, 2021 11:46 pm
by Drakoky
I had many problems with
esp-open-skd, follow the guide on the GitHub repo.
- 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.
- Apparently, this repo doesn't work properly on newest version of Linux, doesn't detect bash v5. Already solve changing one line of code
- 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.
Re: Is there an updated guide about how to use esp-open-sdk?
Posted: Thu Mar 25, 2021 7:56 am
by kevinkk525
Re: Is there an updated guide about how to use esp-open-sdk?
Posted: Sun Mar 28, 2021 9:12 pm
by hklang
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/
Re: Is there an updated guide about how to use esp-open-sdk?
Posted: Mon Mar 29, 2021 7:06 am
by kevinkk525
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?
Re: Is there an updated guide about how to use esp-open-sdk?
Posted: Tue Mar 30, 2021 3:48 pm
by hklang
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
Re: Is there an updated guide about how to use esp-open-sdk?
Posted: Tue Mar 30, 2021 4:14 pm
by kevinkk525
oh, then my chain might have pulled that version before it got removed. Thanks for reporting the needed change.
Re: Is there an updated guide about how to use esp-open-sdk?
Posted: Tue Mar 30, 2021 5:17 pm
by hklang
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