Home Assistant on Rock pi 4

Have you got it up and running?

I ported Home Assistant OS to the Rock Pi 4: GitHub - citruz/haos-rockpi: Home Assistant OS for Rock Pi 4B+
It’s tested on the 4B+, should work with 4B and maybe 4SE.
Just install like you would the normal HAOS by flashing to an SD card. Happy to hear your feedback.
I can also add support for more Rock Pi boards if someone is willing to debug things.

6 Likes

I tried to install ‚your‘ ported Home assistant version on an OKdo rock 4c+. It didn‘t start the installation for some reason. I would be very greatful if you could adapt the OS so that it is working with the rock c+.

Did you have any output on serial or HDMI?

Did you get it to work on your c+? I recently picked one up aswell.

@citruz I haven’t tried installing it yet, has any modifications been made since?

No, nothing has been changed in the meantime.
If you can provide debug logs, I am happy to assist with making it work.

I am a bit confused though. Is OKdo Rock the same as Radxa’s RockPi? It looks like that since they are linking to the Radxa site for downloading an OS image :thinking:

@citruz Went through the install, added a few stuff and it seems to work as intended so far! Will let you know if any hickups occur, thanks for your contribution! :100:

2 Likes

Awesome! I will add a list of supported devices to the GitHub repo. Looks like it is compatible with more rk3399 boards than I thought.

Hello,

I don’t know if this can help, I was using a rockpi to do it :

Hi! I tried for some time and decided to send it back and got a RaspPi 4B. Since I had HA running on a RaspPi 3B I was able to transfer all data via backup to the RaspPi 4. That suited me best….

Super. Thanks for the image file.

I am a bit new in this sphere and was trying to install with an installation guide to a “normal” Raspberry Pi, it didnt work. I am curious to why it did not work and what you had to do, in laymans terms, to get a working installation image?

Hey, Im trying to edit the config.txt file for an add-on.
I can’t seem to find it on SD card after flashing the image.
Any idea how I can do this?

Not sure if I follow. Did you try to flash the image to a Raspberry Pi or did you follow instructions which are meant for a Raspberry Pi but flash to a Rock Pi?
I assume the latter. Which steps did you do exactly? What does not work?

There is no config.txt, only haos-config.txt. But currently there is nothing to configure there.
What you want to do?

I am trying to set up Raspbee 2 HAT unit [RaspBee II Overview].

This requires putting in two lines of code in /boot/config.txt to disable bluetooth on the GPIO to make way for the Raspbee 2.

enable_uart=1
dtoverlay=disable-bt

I have seen the haos-config.txt file and tried to put the code there…doesnt seem to work. Are these the same config files or is haos-config something else?

Hello, didnt see there were two answers here.

I flashed your image for Rock 4 SE onto a SD card - and then inserted it in the SD slot of the Rock 4.
Home Assistant works perfectly.

Then as I described earlier, I am supposed to edit /boot/config.txt in relation to a configuration of Raspbee 2 Zigbee controller…but I can not find this file on the SD card with your Home Assistant.

These instructions are for a Raspberry Pi specifically and can’t be applied like that to another board. Do you know whether the Raspbee 2 is compatible with Rock Pi?
I could try to provide you with similar devicetree overlays but it seems like the module requires additional kernel drivers and other software which will be hard to get into the image. Is the Raspbee 2 supported by HAOS?

Raspbee 2 is supported by HAOS, doesnt seem to require much tinkering to work with a normal Pi.

Rock Pi is not on the official Raspbee 2, but I got an email from Raspbee support that with the correct configuration it should work, but they cannot dig into it. They sent me this link for innstall guide / configuration:

I picked up this qoute from another message board regarding Home Assistant + Rock Pi:

“Probably you know Rock Pi 4 doesn’t work out-of-box with HATs talk on RX/TX, actually neither Raspberry Pi 3. They have different problem but all have the same symptoms, RX/TX are occupied by other functions, on Raspberry Pi 3 it’s the Bluetooth, on Rock Pi 4 it’s the FIQ debugger.”

Was wondering if the Rock Pi needs an overlay to “unoccupy” the RX/TX…but not the same as a normal Pi…FIQ debugger???

Reply above…:slight_smile:

I think they are referring to pin 8 and 10 which are by default mapped as serial2 and used as the main serial output. It should be possible to create an overlay which undoes that and makes the pins available for the Raspbee.
Maybe it is even enough to modify the kernel commandline (cmdline.txt) and remove both of these arguments:

earlycon=uart8250,mmio32,0xff1a0000 console=ttyS2,115200n8

Then, the kernel would not occupy the serial port anymore and that may be enough. But that is hard for me to verify without the hardware.