Page 1 of 1

Error compiling esp-open-sdk [SOLVED]

Posted: Thu Jan 21, 2021 6:26 pm
by VladVons
#Ubuntu 20.04
#git clone --recursive https://github.com/pfalcon/esp-open-sdk.git
#cd esp-open-sdk
#git pull
#git submodule sync
#git submodule update --init

make
....
make[2]: Entering directory esp-open-sdk/crosstool-NG'
make[2]: -c: Command not found
make[2]: -c: Command not found
make[2]: *** No rule to make target 'xtensa-lx106-elf'. Stop.

what is wrong ?

Re: Error compiling esp-open-sdk

Posted: Thu Jan 21, 2021 6:54 pm
by kevinkk525

Re: Error compiling esp-open-sdk

Posted: Fri Jan 22, 2021 12:01 am
by VladVons
Thanks for script.

Finally, after long compilation i have got a hand made firmware-combined.bin (641276K)
But it doesnt work.
No python prompt. Only garbage in terminal.

Re: Error compiling esp-open-sdk

Posted: Fri Jan 22, 2021 5:28 pm
by VladVons
While looking for esp-open-sdk compilation issue i installed many packages which caused invalid custom firmware.
I reinstalled Ubuntu and now everything is ok.

Note: To avoid many errors don't use python virtualenv.

Thanks kevinkk525 once more !

Re: Error compiling esp-open-sdk [SOLVED]

Posted: Fri Jan 22, 2021 7:04 pm
by kevinkk525
Glad you got it working! There is also a docker option but I never played with that one as I'm building in ubuntu wsl.

Re: Error compiling esp-open-sdk [SOLVED]

Posted: Mon Jan 25, 2021 8:03 am
by VladVons
docker mentioned in official documentation.
sudo docker run --rm -v $HOME:$HOME -u $UID -w $PWD larsks/esp-open-sdk
docker: Error response from daemon: No command specified.
so i went your path using git

I also visited your project pysmartnode and found there a script for esp32 firmware compilation.
https://github.com/kevinkk525/pysmartno ... ository.sh

thanks for tip

Re: Error compiling esp-open-sdk [SOLVED]

Posted: Mon Jan 25, 2021 6:58 pm
by kevinkk525
there is, but I'm not sure the esp32 script still works.. there are always changes and something always breaks.. I gave up on building esp32 firmware and only use official ones and copy the prebuilt .mpy files onto it. It has enough RAM to do it this way and it makes it easier to update my files.