platformio / platform-espressif32

Espressif 32: development platform for PlatformIO
https://registry.platformio.org/platforms/platformio/espressif32
Apache License 2.0
899 stars 606 forks source link

Feature Request: Toolchain-xtensa-esp32s2 for linux_aarch64 #699

Open maedball opened 2 years ago

maedball commented 2 years ago

Hiho,

i would be super helpful for all Homeassistant Blue users with ESP home to have the toolchain-xtensa-esp32s2 available in linux_aarch64.

Would it be possible to make this available?

Thanks

homonto commented 2 years ago

+1 from me - I have a bunch of ESP32-S2 and I cannot use them with ESPHome that is on Raspberry Pi

hmax42 commented 2 years ago

the same problem affects esp32-c3

DonBosserez commented 2 years ago

+1 for me - also running HASS on Odroid hardware.

GNAKACH commented 2 years ago

Hi Same problem for me; Same configuration: Homme assistant running on a raspberry Pi 4 with Home assistant add on. It is really a fantastic tool. alas, I cannot use my ESP32-S2 as the platform is missing:( I hope the implementation arrives soon ;)

homonto commented 2 years ago

Hi Same problem for me; Same configuration: Homme assistant running on a raspberry Pi 4 with Home assistant add on. It is really a fantastic tool. alas, I cannot use my ESP32-S2 as the platform is missing:( I hope the implementation arrives soon ;)

I "solved" this problem by programming in Arduino for the boards that are not supported But pain is there, and instead of native ESPHome protocol I am using MQTT of course At least I can learn more about C and MQTT while waiting for ESPHome supporting new boards on arm64 ;-)

maedball commented 2 years ago

Hi Same problem for me; Same configuration: Homme assistant running on a raspberry Pi 4 with Home assistant add on. It is really a fantastic tool. alas, I cannot use my ESP32-S2 as the platform is missing:( I hope the implementation arrives soon ;)

I "solved" this problem by programming in Arduino for the boards that are not supported But pain is there, and instead of native ESPHome protocol I am using MQTT of course At least I can learn more about C and MQTT while waiting for ESPHome supporting new boards on arm64 ;-)

You can also use ESPHOME installed on a normal x64 linux as a workaround.

homonto commented 2 years ago

You can also use ESPHOME installed on a normal x64 linux as a workaround.

I thought about it but I have at home only arm based computers: RPi and Macbooks So not even VM will help

rbray89 commented 2 years ago

Same. Been running on a docker instance on an x86 -64 machine to get around this. With RPI4 being aarch64, you'd think this would be more urgent.

Jason2866 commented 2 years ago

Toolchains are directly provided (since a while) from espressif to the Platformio Registry. The feature request is better placed in the corresponding espressif github. https://registry.platformio.org/tools/espressif/toolchain-xtensa-esp32/compatibility https://github.com/espressif/crosstool-NG.git

homonto commented 2 years ago

Toolchains are directly provided (since a while) from espressif to the Platformio Registry. The feature request is better placed in the corresponding espressif github. https://registry.platformio.org/tools/espressif/toolchain-xtensa-esp32/compatibility https://github.com/espressif/crosstool-NG.git

you are saying: there is not toolchain for arm64? so how is this working on Arduino?

Jason2866 commented 2 years ago

I just say if you want to use a toolchain from espressif for platformio you have to ask espressif. Not more not less. Idk if there is a toolchain or not.

maedball commented 2 years ago

https://github.com/espressif/crosstool-NG/issues/21

Opened ;-)

quentinmit commented 2 years ago

As a workaround you can invoke platformio or esphome with linux32, which will cause platformio to think it's running in 32-bit mode:

# If not already enabled on your system
sudo dpkg --add-architecture armel
sudo apt update
sudo apt install libc6:armel libstdc++6:armel
# Now build hello world
mkdir /tmp/test
cd /tmp/test
pio project init --board esp32-c3-devkitm-1
linux32 pio run
Jason2866 commented 2 years ago

I have builded a aarch64 toolchain set for Linux aarch64 useable with Platformio https://github.com/Jason2866/crosstool-NG/releases

platima commented 2 years ago

I have builded a aarch64 toolchain set for Linux aarch64 useable with Platformio https://github.com/Jason2866/crosstool-NG/releases

You are an amazing person <3

GNAKACH commented 2 years ago

Brilliant! A million thanks!

On Wed, 4 May 2022, 00:22 platima, @.***> wrote:

I have builded a aarch64 toolchain set for Linux aarch64 useable with Platformio https://github.com/Jason2866/crosstool-NG/releases

You are an amazing person <3

— Reply to this email directly, view it on GitHub https://github.com/platformio/platform-espressif32/issues/699#issuecomment-1116751704, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJIIHBYHFDPV3LKOJFXPEU3VIGYK3ANCNFSM5LHESXAQ . You are receiving this because you commented.Message ID: @.***>

platima commented 2 years ago

Note had to set

  platformio_options:
    board_build.flash_mode: dio
Jason2866 commented 2 years ago

@platima Option is in no way related to the toolchain. "Just" the board

platima commented 2 years ago

@platima Option is in no way related to the toolchain. "Just" the board

Oh, would not all esp32s2's be flashed that same way then? I thought it was a chip specification, not board!

Cheers

Jason2866 commented 2 years ago

No, since it is a option for the flash chip and how it is connected to the esp32s2 There are different options for the flash chip and how it is connected.

platima commented 2 years ago

Good to know! Thanks mate

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. Please provide more details or it will be closed if no further activity occurs. Thank you for your contributions.

Jason2866 commented 2 years ago

Supported. Use latest Platform-espressif32 release.

platima commented 2 years ago

Sweet! Thansk