Hello,
I found a way to start my haas on ARM64 (with minor problems: esphome compilations and so on) but see neither docker nor VM images for RISC-V64 platform.
Is there a plans for porting haas to this hardware platform as well?
Hello,
I found a way to start my haas on ARM64 (with minor problems: esphome compilations and so on) but see neither docker nor VM images for RISC-V64 platform.
Is there a plans for porting haas to this hardware platform as well?
Add riscv64 release · Issue #363 · home-assistant/supervised-installer · GitHub was closed as not planned because Home Assistant does not support riscv64 architecture
Further Add riscv64 release · Issue #191 · home-assistant/os-agent · GitHub was closed as not planned because Home Assistant RISC-V “is not an architecture we are currently willing to support.”
I have setup a container that has the core and it should be the fastest way to install it.
It is quite large since (for now) the container includes developer tools. Most python modules do not have whl packages, so they have to be compiled locally and this changes an installation process that would last only a couple of minutes, to several hours.
Yet, so far is working fine and fast in multiple riscv64 hardware I own so hopefully more people can install it and test it.
Since it’s a container it should work in many SBCs as well as larger hardware like the milkv pioneer (64-cores, 128G ram). Please feel free to request any features or to let me know about any bugs.
Note: It’s based on Debian as there is no Ubuntu 24.04 container, yet.
https://hub.docker.com/repository/docker/fede2/riscv64-homeassistant/general
Very nice, thanks for sharing the docker container.
The architecture riscv64 would need to be added as an architecture decision record; prerequisite discussion begins at Supported boards/hardware/machines: riscv64 · home-assistant/architecture · Discussion #1107 · GitHub
Can you try from the upstream repos?:
git clone https://github.com/home-assistant/docker-base.git ha-docker-base.git
curl https://freeshell.de/e/riscv64/0001-Update-alpine-Dockerfile-to-build-tempio.patch | git -C ha-docker-base.git am
docker build -t ha-base-alpine --build-arg BUILD_FROM=riscv64/alpine:3.21 --build-arg BUILD_ARCH=riscv64 --build-arg BASHIO_VERSION=0.16.2 --build-arg TEMPIO_VERSION=2024.11.2 --build-arg S6_OVERLAY_VERSION=3.1.6.2 --build-arg JEMALLOC_VERSION=5.3.0 ha-docker-base.git/alpine
docker build -t ha-base-python --build-arg BUILD_FROM=ha-base-alpine --build-arg PYTHON_VERSION=3.13.1 --build-arg PIP_VERSION=24.3.1 --build-arg GPG_KEY=7169605F62C751356D054A26A821E680E5FA6305 ha-docker-base.git/python/3.13
git clone https://github.com/home-assistant/docker.git ha-docker.git
curl https://freeshell.de/e/riscv64/0001-Build-requirements.txt-dependencies.patch | git -C ha-docker.git am
docker build -t ha-docker --build-arg BUILD_FROM=ha-base-python --build-arg BUILD_ARCH=riscv64 --build-arg SSOCR_VERSION=2.23.1 --build-arg LIBCEC_VERSION=6.0.2 --build-arg TELLDUS_COMMIT=2598bbed16ffd701f2a07c99582f057a3decbaf3 --build-arg PICOTTS_HASH=e3ba46009ee868911fa0b53db672a55f9cc13b1c ha-docker.git
git clone https://github.com/home-assistant/wheels.git ha-wheels.git
docker build -t ha-wheels --build-arg BUILD_FROM=ha-base-python --build-arg BUILD_ARCH=riscv64 --build-arg CPYTHON_ABI=cp313 ha-wheels.git
git clone https://github.com/home-assistant/core.git ha-core.git
curl https://freeshell.de/e/riscv64/0001-Modification-to-allow-riscv64-architecture-build.patch | git -C ha-core.git am
docker build -t ha-core --build-arg BUILD_FROM=ha-docker --build-arg BUILD_ARCH=riscv64 ha-core.git
# alternate without using (missing?) init
mkdir $HOME/home-assistant-config
docker run -d --name="hass-core" -e "TZ=America/Los_Angeles" -v $HOME/home-assistant-config:/config --net=host ha-core hass