Error compiling esp-open-sdk [SOLVED]

All ESP8266 boards running MicroPython.
Official boards are the Adafruit Huzzah and Feather boards.
Target audience: MicroPython users with an ESP8266 board.
Post Reply
VladVons
Posts: 58
Joined: Sun Feb 12, 2017 6:49 pm
Location: Ukraine

Error compiling esp-open-sdk [SOLVED]

Post by VladVons » Thu Jan 21, 2021 6:26 pm

#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 ?
Last edited by VladVons on Fri Jan 22, 2021 5:28 pm, edited 1 time in total.

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

Re: Error compiling esp-open-sdk

Post by kevinkk525 » Thu Jan 21, 2021 6:54 pm

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

VladVons
Posts: 58
Joined: Sun Feb 12, 2017 6:49 pm
Location: Ukraine

Re: Error compiling esp-open-sdk

Post by VladVons » Fri Jan 22, 2021 12:01 am

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.

VladVons
Posts: 58
Joined: Sun Feb 12, 2017 6:49 pm
Location: Ukraine

Re: Error compiling esp-open-sdk

Post by VladVons » Fri Jan 22, 2021 5:28 pm

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 !

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

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

Post by kevinkk525 » Fri Jan 22, 2021 7:04 pm

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.
Kevin Köck
Micropython Smarthome Firmware (with Home-Assistant integration): https://github.com/kevinkk525/pysmartnode

VladVons
Posts: 58
Joined: Sun Feb 12, 2017 6:49 pm
Location: Ukraine

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

Post by VladVons » Mon Jan 25, 2021 8:03 am

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

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

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

Post by kevinkk525 » Mon Jan 25, 2021 6:58 pm

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.
Kevin Köck
Micropython Smarthome Firmware (with Home-Assistant integration): https://github.com/kevinkk525/pysmartnode

Post Reply