Skip to content

elf2bin.py: Unable to find entry point in file ".../bootloaders/eboot/eboot.elf" #8727

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

Open
shansamp opened this issue Nov 23, 2022 · 7 comments

Comments

@shansamp
Copy link

shansamp commented Nov 23, 2022

I am getting the below error sporadically when I try to compile for esp8266.
Exception: Unable to find entry point in file "C:\Users\shans\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2/bootloaders/eboot/eboot.elf"

@shansamp
Copy link
Author

image

@mcspr
Copy link
Collaborator

mcspr commented Nov 24, 2022

Unable to reproduce. No version of IDE was specified, assuming it is 2.0.2

Quick google of "Unable to find entry point" esp8266 has some results related to our script, but nothing conclusive.
#7253 may be related, but same as above - not something we are able to reproduce (at all; on available hardware, or in CI). Failure in the issue is related to some other .exe, so we are just happen to sometimes fail to launch things properly. We are missing communicate() call at the very least.
https://docs.python.org/3/library/subprocess.html#subprocess.Popen.communicate
https://github.com/python/cpython/blob/b5b3904f05e77f044f158307bc6bdd2bc1b670a2/Lib/subprocess.py#L506-L573


Other than that, make sure that there is C:\Users\shans\AppData\Local\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\3.0.4-gcc10.3-1757bed and you are able to call C:\Users\shans\AppData\Local\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\3.0.4-gcc10.3-1757bed\bin\xtensa-lx106-elf-readelf.exe (Win+r -> cmd.exe; or, any other terminal app)

You should be able to repeat what elf2bin script tries to do

> C:\Users\shans\AppData\Local\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\3.0.4-gcc10.3-1757bed\bin\xtensa-lx106-elf-readelf.exe -h C:\Users\shans\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\bootloaders\eboot\eboot.elf
ELF Header:
  Magic:   7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00
  Class:                             ELF32
  Data:                              2's complement, little endian
  Version:                           1 (current)
  OS/ABI:                            UNIX - System V
  ABI Version:                       0
  Type:                              EXEC (Executable file)
  Machine:                           Tensilica Xtensa Processor
  Version:                           0x1
  Entry point address:               0x4010f494
  Start of program headers:          52 (bytes into file)
  Start of section headers:          88296 (bytes into file)
  Flags:                             0x300
  Size of this header:               52 (bytes)
  Size of program headers:           32 (bytes)
  Number of program headers:         5
  Size of section headers:           40 (bytes)
  Number of section headers:         17
  Section header string table index: 16

@mcspr mcspr changed the title Exception: Unable to find entry point in file "C:\Users\shans\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2/bootloaders/eboot/eboot.elf" elf2bin.py: Unable to find entry point in file ".../bootloaders/eboot/eboot.elf" Nov 28, 2022
@panakos
Copy link

panakos commented Dec 18, 2022

I have the same problem at my desktop with esp8266. I have tried clean install , deleted all files , rebooted and then installed again. It works with version 2.5.0 but not with any newer including 3.0.2. It used to work at my desktop untill one day it stopped. Laptop has the same setup but is working fine. No matter what I tried desktop keeps coming back with the same problem.

esp32 is working fine

Arduino IDE 2.0.3 but same problem had at 2.0.2 and 1.8.19

@Dimasikkk1
Copy link

Dimasikkk1 commented Jan 10, 2023

Same problem. Arduino IDE 1.8.19.
Traceback (most recent call last): File "C:\Users\mrdim\Documents\ArduinoData\packages\esp8266\hardware\esp8266\2.7.4/tools/elf2bin.py", line 182, in <module> sys.exit(main()) File "C:\Users\mrdim\Documents\ArduinoData\packages\esp8266\hardware\esp8266\2.7.4/tools/elf2bin.py", line 166, in main to_addr=4096 File "C:\Users\mrdim\Documents\ArduinoData\packages\esp8266\hardware\esp8266\2.7.4/tools/elf2bin.py", line 161, in wrapper write_bin(out=out, args=args, **kwargs) File "C:\Users\mrdim\Documents\ArduinoData\packages\esp8266\hardware\esp8266\2.7.4/tools/elf2bin.py", line 68, in write_bin entry = int(get_elf_entry( elf, args.path )) File "C:\Users\mrdim\Documents\ArduinoData\packages\esp8266\hardware\esp8266\2.7.4/tools/elf2bin.py", line 44, in get_elf_entry raise Exception('Unable to find entry point in file "' + elf + '"') Exception: Unable to find entry point in file "C:\Users\mrdim\Documents\ArduinoData\packages\esp8266\hardware\esp8266\2.7.4/bootloaders/eboot/eboot.elf" exit status 1

@panakos
Copy link

panakos commented Jan 10, 2023

If you have Citrix Workspace installed, try updating it or remove it. That was my problem, I updated it to teh latest version and it fixed it

@Dimasikkk1
Copy link

Dimasikkk1 commented Jan 12, 2023

I upgraded citrix from 2206 to 2212, it didn't help.

@panakos
Copy link

panakos commented Jan 12, 2023

I don't remember which version I have, but I updated it just before Christmas. It's worth trying to uninstall it completely and try

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

4 participants