Home assistant core installation on risc-v

Hi,
I am trying to use risc-v sbc (visionfive2) to run home assistant core (no supervisor).
Iit clearly has enough cpu power to do it well. So far I have successfully run zigbee2mqtt with mqtt broker on it.

Python works well on risc-v therefore it shouldn’t be a problem to run home assistant core.
The only problem I have faced during installation is orjson dependency. This json library is written in rust and there is no rust for risc-v yet and it doesn’t look like it will appear soon.

Is possible to run home assistant with other json library?

Thanks

Actually I was wrong. There is a build of the rust compiler available for risc-v. It comes with 1GB of dependencies, but I have tried it and it works. I have now successfully built and run home assistant core on risc-v. Core runs but I am having some runtime errors related with cryptography package.

2023-01-15 22:49:09.057 ERROR (MainThread) [homeassistant.setup] Setup failed for cloud: Unable to import component: /srv/homeassistant/lib/python3.10/site-packages/cryptography/hazmat/bindings/_openssl.abi3.so: undefined symbol: EVP_PKEY_id

did you install openssl-dev?

you can also try to install HA with
export CRYPTOGRAPHY_DONT_BUILD_RUST=1

I have tried your suggestion. Didn’t help, I believe rust is now mandatory and there is no such package openssl-dev, only openssl in debian. This package includes everything.

mine arrived today so starting to play did you ever get this sorted?

Anyone manage to get HA Running yet?

I think a challenge with debian is that there is a bug on usb support, usb devices not showing in /dev/tty*. which may rule out using a zigbee dongle.

Thanks for your sharing your detailed experience with us! I’m also very curious how you already managed to use the Debian installer images.
How did you fire up the installer on the Mars CM Lite? Or did you fetch a root filesystem somehow, and placed the vendor-supplied SDK kernel next to it?

In the feature request forum I have added some information about a container I have built to make the installation easier on riscv64. Since it’s container based it should work on any distribution with OCI support, and this should include the mars and vf2.

Please up-vote in the feature request forum if you feel this is a feature that you desire from HA, and of course test it and let me know if it’s useful so far or if you need any help getting it to work.

https://hub.docker.com/repository/docker/fede2/riscv64-homeassistant/general

Today I was able to get HA running on my VisionFive2 running Gentoo. The only problem I had was with webrtc-noise-gain for risc64.

But a genius Gentoo expert wrote a patch for the ebuild:

HA looks now promising on the VF2.

HA has worked quite a while for me on the VisionFive2. But with the latest version of HA it tries to install av==13.1.0 which fails because the required ffmpeg is not available for VisionFive2 and Gentoo. This is very annoying and I’m thinking about going back to a Raspberry Pi for HA. RISC-V support for a lot of use cases seems to be not around in the near future … :frowning: