platform-espressif32 icon indicating copy to clipboard operation
platform-espressif32 copied to clipboard

Feature Request: Toolchain-xtensa-esp32s2 for linux_aarch64

Open maedball opened this issue 2 years ago • 24 comments

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

maedball avatar Jan 04 '22 10:01 maedball

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

homonto avatar Jan 04 '22 16:01 homonto

the same problem affects esp32-c3

hmax42 avatar Jan 05 '22 06:01 hmax42

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

DonBosserez avatar Jan 05 '22 14:01 DonBosserez

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 ;)

GNAKACH avatar Jan 12 '22 15:01 GNAKACH

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 ;-)

homonto avatar Jan 12 '22 15:01 homonto

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.

maedball avatar Jan 12 '22 15:01 maedball

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

homonto avatar Jan 12 '22 15:01 homonto

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.

rbray89 avatar Jan 18 '22 04:01 rbray89

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

Jason2866 avatar Jan 23 '22 17:01 Jason2866

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?

homonto avatar Jan 23 '22 18:01 homonto

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.

Jason2866 avatar Jan 23 '22 18:01 Jason2866

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

Opened ;-)

maedball avatar Jan 25 '22 13:01 maedball

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

quentinmit avatar Feb 28 '22 06:02 quentinmit

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

Jason2866 avatar Apr 14 '22 18:04 Jason2866

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

platima avatar May 03 '22 23:05 platima

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: @.***>

GNAKACH avatar May 04 '22 07:05 GNAKACH

Note had to set

  platformio_options:
    board_build.flash_mode: dio

platima avatar May 04 '22 10:05 platima

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

Jason2866 avatar May 04 '22 13:05 Jason2866

@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

platima avatar May 09 '22 02:05 platima

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.

Jason2866 avatar May 09 '22 08:05 Jason2866

Good to know! Thanks mate

platima avatar May 09 '22 08:05 platima

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.

stale[bot] avatar Jul 30 '22 18:07 stale[bot]

Supported. Use latest Platform-espressif32 release.

Jason2866 avatar Aug 10 '22 10:08 Jason2866

Sweet! Thansk

platima avatar Aug 13 '22 00:08 platima