colorchord
colorchord copied to clipboard
Missing image.elf and image.elf-0x10000.bin
Just fixed one issue and back with another. I have been following the proper instruction but both of these files seem to not be in the downloaded directories. Are they in this?: https://github.com/cnlohr/colorchord/releases/tag/v2.0.1 or am I just having another dumb issue?
Unfortunately that release only has the desktop version of colorchord.
image.elf and image.elf-0x10000.bin are generated by running make all
in the embedded8266 directory. What output do you get when you run that?
when I run make all i get this: esp82xx/common.mf:40: Warning: No shell variable 'ESP_ROOT', using '/home/pi/esp8266/esp-open-sdk' /home/pi/esp8266/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc -mlongcalls -Os -I/home/pi/colorchord/embedded8266/esp82xx/toolchain/esp_nonos_sdk/include -Iesp82xx/include -I. -Iesp82xx/fwsrc -Iuser -I../embeddedcommon -DUSE_OPTIMIZE_PRINTF -DMFS_PAGE_OFFSET=532480 -DICACHE_FLASH -DDISABLE_CHARRX -DQUIET_REFLASH -DWS2812_FOUR_SAMPLE -DDISABLE_NET_REFLASH -DSOFTAP_CHANNEL=6 -DWEB_PORT=80 -DCOM_PORT=7777 -DBACKEND_PORT=7878 -DSLOWTICK_MS=50 -DVERSSTR='"Version: v2.0.1-8-g79c2a-dev - Build Sat, Feb 26 2022, 20:43:14 +0000 with -DUSE_OPTIMIZE_PRINTF -DMFS_PAGE_OFFSET=532480 -DICACHE_FLASH -DDISABLE_CHARRX -DQUIET_REFLASH -DWS2812_FOUR_SAMPLE -DDISABLE_NET_REFLASH -DSOFTAP_CHANNEL=6 -DWEB_PORT=80 -DCOM_PORT=7777 -DBACKEND_PORT=7878 -DSLOWTICK_MS=50"' -g esp82xx/fwsrc/uart.c esp82xx/fwsrc/esp82xxutil.c esp82xx/fwsrc/flash_rewriter.c esp82xx/fwsrc/http.c esp82xx/fwsrc/commonservices.c esp82xx/fwsrc/http_custom.c esp82xx/fwsrc/mdns.c esp82xx/fwsrc/mfs.c user/custom_commands.c user/user_main.c user/ws2812_i2s.c user/hpatimer.c user/adc.c ../embeddedcommon/DFT32.c ../embeddedcommon/embeddednf.c ../embeddedcommon/embeddedout.c -flto -Wl,--relax -Wl,--gc-sections -nostdlib -L/home/pi/colorchord/embedded8266/esp82xx/toolchain/esp_nonos_sdk/lib -Lesp82xx/libgcc_stripped.a /home/pi/colorchord/embedded8266/esp82xx/toolchain/esp_nonos_sdk/lib/libmain.a /home/pi/colorchord/embedded8266/esp82xx/toolchain/esp_nonos_sdk/lib/liblwip.a /home/pi/colorchord/embedded8266/esp82xx/toolchain/esp_nonos_sdk/lib/libssl.a /home/pi/colorchord/embedded8266/esp82xx/toolchain/esp_nonos_sdk/lib/libupgrade.a /home/pi/colorchord/embedded8266/esp82xx/toolchain/esp_nonos_sdk/lib/libnet80211.a /home/pi/colorchord/embedded8266/esp82xx/toolchain/esp_nonos_sdk/lib/libwpa.a /home/pi/colorchord/embedded8266/esp82xx/toolchain/esp_nonos_sdk/lib/libphy.a /home/pi/colorchord/embedded8266/esp82xx/toolchain/esp_nonos_sdk/lib/liblwip.a /home/pi/colorchord/embedded8266/esp82xx/toolchain/esp_nonos_sdk/lib/libcrypto.a /home/pi/colorchord/embedded8266/esp82xx/toolchain/esp_nonos_sdk/lib/libc.a /home/pi/colorchord/embedded8266/esp82xx/toolchain/esp_nonos_sdk/lib/libespnow.a /home/pi/colorchord/embedded8266/esp82xx/toolchain/esp_nonos_sdk/lib/libpp.a esp82xx/libgcc_stripped.a -T /home/pi/colorchord/embedded8266/esp82xx/toolchain/esp_nonos_sdk/ld/eagle.app.v6.ld -T /home/pi/colorchord/embedded8266/esp82xx/toolchain/esp_nonos_sdk/ld/eagle.rom.addr.v6.ld -Wl,-Map,output.map -B/home/pi/colorchord/embedded8266/esp82xx/toolchain/esp_nonos_sdk/lib -o image.elf /home/pi/esp8266/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc: 1: /home/pi/esp8266/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc: ELF: not found /home/pi/esp8266/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc: 5: /home/pi/esp8266/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc: Syntax error: "(" unexpected (expecting ")") esp82xx/main.mf:129: recipe for target 'image.elf' failed make: * [image.elf] Error 2
I think I know what the issue is, you are running on a raspberry pi (ARM) and the precompiled toolchain is for x86 (Confirming right now with Charles). I will try to post binaries in a release.
Ah, I was trying to do it on the pi because Linux just seemed simpler. Being able to do it all on the pi would be really nice. I am trying to have the end result be as small as possible because it will be wired into a bass guitar for performances.
I've never seen an issue like that - are you following the instructions on https://github.com/cnlohr/esp82xx ? it matters that you use specific versions of packages instead of the newest as they've broken a lot of the features we use in newer builds/libraries.
@sellicott pointed out on the Discord that you are using a raspberry pi and there isn't a prebuilt binary for ARM. I regret I can't do much to help you there :(
Alright, I guess I will have to try through my Windows machine then. Thanks again for the help thus far. I would be going insane otherwise. lol
Pre-built esp8266 binaries are now available in the releases.
Thanks for having provided the precompiled bin and sorry for asking on a closed issue! I was trying to flash it using the nodemcu flasher and didn't find instructions for setting up the 5 bin files with their respective memory addresses. I tried a few combinations but have had no luck so far. I also tried the configuration with old bins compiled in 2015 but no luck either. I am not sure if issue "#11 Workaround for ESP bootloader flash erase bug?" could be a cause.
Here is what I tried:
Any suggestions?
Thank you!
@Fireflaker
Have you tried putting 0x00000.bin at 0x00000
, and 0x10000
at 0x10000
. And, also, doing a full-chip-erase first?
You also might need to flash your init data. esp_init_data_default_v08.bin
needs to be placed at 0x3FC000
Using the Makefile, you can say make burnitall