Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Esphome Addon - Compile Fail - Segmentation Errror (Raspbian on RP4) #905
Operating environment/Installation (Hass.io/Docker/pip/etc.):
Raspberry Pi 4 Running Hassio ESPHome addon
Description of problem:
I found that I need to update firmware of the Pi which I did, however cmd uname -a shows still the old one. The rpi-update saying I have the latest.
To be sure I used that tool on SSD I am running system from plus from SD card. Both boots are updated but I still obtain the error in compilation of binary.
Problem-relevant YAML-configuration entries:
esphome: name: tt platform: ESP8266 board: esp01_1m wifi: ssid: "" password: "" # Enable fallback hotspot (captive portal) in case wifi connection fails ap: ssid: "Tt Fallback Hotspot" password: "2z7JDI3ZY5zq" captive_portal: # Enable logging logger: # Enable Home Assistant API api: ota:
Logs (if applicable):
Additional information and things you've tried:
I assume the referenced issue is #677 ?
The other option is that it's just the RPi running out of memory. So please also check if the RPi has low memory while executing the compiler.
Also, I'm not sure if the fix described in #677 also applies for RPi 4s. The messages posted there look like it was exclusive to the RPi 3 (the RPi 4 uses a different chipset, so the fix by the rpi team may not be applicable to both RPis)
Solved by using another approach of setting the SSD as boot device https://jamesachambers.com/raspberry-pi-4-usb-boot-config-guide-for-ssd-flash-drives/
The following guide does not correctly update firmware when using rpi-update, so use the first one: https://www.stewright.me/2019/10/run-raspbian-from-a-usb-or-ssd-on-a-raspberry-pi-4/