Skip to content

Core 2.6.0 SDK2.2.2 does not boot with changes of 2019-04-10 #5974

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
4 of 6 tasks
TD-er opened this issue Apr 10, 2019 · 10 comments
Closed
4 of 6 tasks

Core 2.6.0 SDK2.2.2 does not boot with changes of 2019-04-10 #5974

TD-er opened this issue Apr 10, 2019 · 10 comments

Comments

@TD-er
Copy link
Contributor

TD-er commented Apr 10, 2019

Basic Infos

  • This issue complies with the issue POLICY doc.
  • I have read the documentation at readthedocs and the issue is not addressed there.
  • I have tested that the issue is present in current master branch (aka latest git).
  • I have searched the issue tracker for a similar issue.
  • If there is a stack dump, I have decoded it.
  • I have filled out all fields below.

Platform

  • Hardware: [ESP-12]
  • Core Version: [f950d53]
  • Development Env: [Platformio]
  • Operating System: [Windows]

Settings in IDE

  • Module: [Generic ESP8266 Module]
  • Flash Mode: [dio]
  • Flash Size: [4MB]
  • lwip Variant: [v2 Lower Memory low flash]
  • Reset Method: [nodemcu]
  • Flash Frequency: [40Mhz]
  • CPU Frequency: [80Mhz]
  • Upload Using: [OTA|SERIAL] (both)
  • Upload Speed: [115200] (serial upload only)

Problem Description

Node built using latest merges does not boot anymore.
It keeps outputting garbage in the serial console.

Build flags:
"PIO_FRAMEWORK_ARDUINO_ESPRESSIF_SDK22x",
PlatformIO platform: https://github.com/platformio/platform-espressif8266.git#feature/stage (thus latest master branch of this repo)

Edit:
Also tested with core 2.6.0 SDK 3. Only difference is that it does not output lots of the same strings, but just one string and then halts.
Still not usable.

Am now also testing build made under Linux to see if that fails also.

I also removed all the downloaded framework directories in the .platformio/packages directories, just to make sure it was not a build error.
Also cleared the node by writing a blank image to it (containing only 0xFF)

Edit2: Also made a test build in Linux and core 2.6.0 builds are failing to boot.
Not really a small test set, but just as a reference the test build I just made
I also built a few tests based on the same code as used for ESPeasy's last nightly build. The binaries in the last nightly build are working just fine, but with the mentioned git version it is no longer possible to boot core 2.6.0 builds.

@d-a-v
Copy link
Collaborator

d-a-v commented Apr 10, 2019

It could be that PR and this specific commit missing from pio build process (elf -> bin conversion)
13d7a4d

@TD-er
Copy link
Contributor Author

TD-er commented Apr 10, 2019

That updated version of the elf2bin.py file is present in my framework directory
C:\Users\gijs\.platformio\packages\framework-arduinoespressif8266@src-31d658a59f41540201fc3726a1394910\tools

Can it be anything else?
Or is this more PlatformIO specific @ivankravets ?

@d-a-v
Copy link
Collaborator

d-a-v commented Apr 10, 2019

Could you try with #5922 only reverted from current master ?

$ cd esp8266-arduino-root
$ git diff fa0db2e3ab6c8cb9640e003c3adab81b49131994..0f4c9f710318ab9199714b9adcdd9701d78d264e | patch -p1 -R

@TD-er
Copy link
Contributor Author

TD-er commented Apr 11, 2019

Took a while before I could test it, but this is indeed a patch to make it boot again.

@d-a-v
Copy link
Collaborator

d-a-v commented Apr 11, 2019

@ivankravets Can you have a look to PIO's esp8266 elf->bin process and this specific change 13d7a4d ?

@earlephilhower
Copy link
Collaborator

@TD-er, I just opened an issue in PIO. I think it's a minor change in a single file to make it work, would you be able to try my suggested fix and comment on it in the PIO issue above? Simply adding the .text1 segment after .text, assuming the PIO bootloader has some intelligence, may fix everything.

@Jason2866
Copy link
Contributor

@earlephilhower The suggested change in PIO from you does work.
Use it in my fork to build Tasmota which wasnt booting as ESPeasy

@TD-er
Copy link
Contributor Author

TD-er commented Apr 14, 2019

@earlephilhower I did make a test build with that change you suggested.
The node then boots and seems to work just fine.

@ivankravets
Copy link
Collaborator

Thanks for your PRs. The changes were applied to feature/stage branch of espresssif 8266 dev/platform. Please re-start a CI build.

@TD-er
Copy link
Contributor Author

TD-er commented Apr 15, 2019

I've been running tests today and the latest builds work just fine, so I consider it fixed.

@TD-er TD-er closed this as completed Apr 15, 2019
ivankravets referenced this issue in platformio/platform-espressif8266 Apr 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants