Compiling firmware with pfalcon fork https://github.com/mongoose-os/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.
User avatar
hcet14
Posts: 34
Joined: Sat Dec 19, 2020 12:59 am

Compiling firmware with pfalcon fork https://github.com/mongoose-os/esp-open-sdk

Post by hcet14 » Sat Jun 26, 2021 9:49 pm

Hi,

I would like to start with my ESP8266 after half a year not touching it.

But I do remember having a hard time to compile the firmware. Docker didn't work at all. https://github.com/pfalcon/esp-open-sdk was very hard.

My question now is, if someone here tried the pfalcon fork https://github.com/mongoose-os/esp-open-sdk? Looks like it is living and maintained.

Thanks.

hcet14
I'm a beginner with this stuff and no programmer at all.

User avatar
mattyt
Posts: 410
Joined: Mon Jan 23, 2017 6:39 am

Re: Compiling firmware with pfalcon fork https://github.com/mongoose-os/esp-open-sdk

Post by mattyt » Sun Jun 27, 2021 7:41 am

Most people here will be using mainline MicroPython; what was difficult about it? Perhaps we can help if you explain the issues you were seeing...

davef
Posts: 811
Joined: Thu Apr 30, 2020 1:03 am
Location: Christchurch, NZ

Re: Compiling firmware with pfalcon fork https://github.com/mongoose-os/esp-open-sdk

Post by davef » Sun Jun 27, 2021 8:15 am

Same here and about 6 months ago. I had problems using esp-open-sdk but with 6 month experience building custom code for the ESP32 maybe I'd be able to work out where I was going wrong.

However, I would also be interested if there is another way to build code for the ESP8266. Is there a tutorial somewhere?

Thanks

User avatar
hcet14
Posts: 34
Joined: Sat Dec 19, 2020 12:59 am

Re: Compiling firmware with pfalcon fork https://github.com/mongoose-os/esp-open-sdk

Post by hcet14 » Sun Jun 27, 2021 9:44 am

kevinscorpionfox stated here viewtopic.php?f=16&t=10617, that he got the toolchain running with ESP8266_RTOS_SDK. Since ESP8266_NONOS_SDK is not supported anymore, just bugfixes, i would like to use ESP8266_RTOS_SDK.
kevinscorpionfox wrote:
Wed Jun 02, 2021 4:54 pm
I just want to tell you guys, I just try the toolchain from esp-open-sdk, version=4.8.x , now it's working for me
The guys who support the fork went back to 2.2.x ESP8266_NONOS_SDK https://github.com/mongoose-os/esp-open ... 0b13112-r9

hcet14
I'm a beginner with this stuff and no programmer at all.

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

Re: Compiling firmware with pfalcon fork https://github.com/mongoose-os/esp-open-sdk

Post by kevinkk525 » Sun Jun 27, 2021 12:41 pm

I have the esp8266 micropython build with the pfalcon esp-open-sdk working in this script: https://github.com/kevinkk525/pysmartno ... ository.sh

I should point out that this thread is only about the esp-open-sdk and has nothing to do with the pfalcon micropython fork!
Even for the main micropython the esp-open-sdk repository of pfalcon is being used.

And personally it also bothered me that that repository hasn't had any commits recently and I'd be interested in getting a more up to date esp-open-sdk working on the esp8266 (I would expect newer sdk versions to contain improvements, bugfixes, security fixes etc, but maybe my expectation is wrong).
Kevin Köck
Micropython Smarthome Firmware (with Home-Assistant integration): https://github.com/kevinkk525/pysmartnode

davef
Posts: 811
Joined: Thu Apr 30, 2020 1:03 am
Location: Christchurch, NZ

Re: Compiling firmware with pfalcon fork https://github.com/mongoose-os/esp-open-sdk

Post by davef » Sun Jun 27, 2021 6:45 pm

Hi Kevin,

Thank you for your script. One question ... line 22 <make axtls> is just to confirm everything is OK or is this step absolutely required?

User avatar
hcet14
Posts: 34
Joined: Sat Dec 19, 2020 12:59 am

Re: Compiling firmware with pfalcon fork https://github.com/mongoose-os/esp-open-sdk

Post by hcet14 » Sun Jun 27, 2021 7:42 pm

mattyt wrote:
Sun Jun 27, 2021 7:41 am
Most people here will be using mainline MicroPython; what was difficult about it? Perhaps we can help if you explain the issues you were seeing...
I can't remember anymore. I remember, that I was just one time successful compiling the firmware for my ESP8266. I was using https://github.com/dmascord/micropython since I need a UART. I tried again, but failed. Damien (dmascord) is going to help me with the UART, so I have to get that running again. I'm thinking about trying kevinkk525's script with https://github.com/mongoose-os/esp-open-sdk.

Thanks to all.
I'm a beginner with this stuff and no programmer at all.

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

Re: Compiling firmware with pfalcon fork https://github.com/mongoose-os/esp-open-sdk

Post by kevinkk525 » Sun Jun 27, 2021 8:47 pm

davef wrote:
Sun Jun 27, 2021 6:45 pm
One question ... line 22 <make axtls> is just to confirm everything is OK or is this step absolutely required?
Unless the dependencies changed, this line is required. It might be possible to not need it if all tls/ssl modules are disabled but I'm not sure about that.
Kevin Köck
Micropython Smarthome Firmware (with Home-Assistant integration): https://github.com/kevinkk525/pysmartnode

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

Re: Compiling firmware with pfalcon fork https://github.com/mongoose-os/esp-open-sdk

Post by kevinkk525 » Sun Jun 27, 2021 8:49 pm

hcet14 wrote:
Sun Jun 27, 2021 7:42 pm
I was using https://github.com/dmascord/micropython since I need a UART. I tried again, but failed. Damien (dmascord) is going to help me with the UART, so I have to get that running again.
Can you explain the differences between this fork and the main micropython? The uart on the esp8266 is available too in main micropython?
Kevin Köck
Micropython Smarthome Firmware (with Home-Assistant integration): https://github.com/kevinkk525/pysmartnode

User avatar
hcet14
Posts: 34
Joined: Sat Dec 19, 2020 12:59 am

Re: Compiling firmware with pfalcon fork https://github.com/mongoose-os/esp-open-sdk

Post by hcet14 » Sun Jun 27, 2021 9:57 pm

Can you explain the differences between this fork and the main micropython? The uart on the esp8266 is available too in main micropython?
If I remember right, ESP8266 has got 1,5 hard UARTs. One UART is used for the REPL. The 2nd (just TX) is usually used for debugging. Micropython supports the hard UARTs, the fork also supports a soft UART.

The soft UART from the fork is not working with my sensor. Communication is wrong, you may read my old posts for further information.
I'm a beginner with this stuff and no programmer at all.

Post Reply