RaZberry HAT & Bullseye

Hi Everyone,

I just got my RockPi4. It works fine so far and I use it as a server for my smarthome.
It has Dietpi installed, which is based on Debian Bullseye.

Now the problem:
I’d like to use a RaZberry-HAT, which is for Z-Wave.
But when I attach the hat, the RockPi will not boot-up. I found this to be a well-known problem.
(See here: https://wiki.radxa.com/Rockpi4/hardware/HATs)

Obviously I need to tweak my config, but here is the problem:

There is no suitable repository for Bullseye :frowning:

Do you guys have any idea how I could make this work with any other steps or what else I could do? This is a discussion that the a.m. link refers to: Configuring kernel before building)

Any help would be much appreciated!


First, without any software modification, attach the HAT and power on the board, can it boot?

No, just the Network will blink like crazy…
That is the reason I asked here - I had tried it before :slight_smile:

Hello? Any update on this?

Hello? You are from Raxda, please take care of this problem!

Please check about my question / problem. @jack

Okay - is the service this bad? Or @jack, what is the reason you ask once and don’t care any further?

Hi, @maeffjus

Somehow I missed this post.

First, check your power supply, does it support 9V or more? Which RaZberry-HAT model are you using?

Hi Jack,
yes - power is sufficient! It does 5,9 & 12V.
I think the problem is, that there is something I need to disable in the kernel. There are drivers and modules (see the second link in my first post), but these are not available & not for bullseye (like the hardware-overlays).
So I can not use them at all. :frowning:
As far as I understood, the HAT is using pins that relate to a serial console of the RockPi. But I can not disable the console, so it will not boot with the hat attached.


I believe Dietpi runs mainline kernel, do you know if it supports device tree overlay? If not, you will have to edit the dts to disable the default serial console(uart2). I think two lines should be edited:

  1. remove this: https://github.com/torvalds/linux/blob/master/arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4.dtsi#L20
	chosen {
		stdout-path = "serial2:1500000n8";
  1. disable this: https://github.com/torvalds/linux/blob/master/arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4.dtsi#L718
&uart2 {
	status = "disabled";
1 Like

The DietPi Bullseye uses the Armbian kernel (mainline) and loads device tree overlay in the same way as Armbian.

Please refer to https://docs.armbian.com/User-Guide_Allwinner_overlays/ , but edit the /boot/dietpiEnv.txt file.

1 Like

Hey Setq,
I only have the armbianEnv.txt, is that the same file?
How can I easily switch-off from there?
Is there any way at all?
This is the content of the file:


And if the a.m. is not an option @jack: Maybe it looks like I’m an idiot, but the lines you mentioned are on Github, where are these on my Rockpi4?

I only have the armbianEnv.txt, is that the same file?

Yes, it’s the same file.

How can I easily switch-off from there?

Please refer to https://docs.armbian.com/User-Guide_Allwinner_overlays

Thanks so much - but probably I’m an complete idiot, but I can not find how to enable UART2 on this board.
In all specs and files, they only mention UART4.
I have searche on Google, but I have not found ANY useful stuff…

overlays=w1-gpio uart1 i2c0 spi-spidev

Do I just have to write uart2 instead of uart1 in the line above?
I don’t want to mess with the board, since I’m running some productive system on it.