Jump to content

Overlays do not apply even when selected in armbian-config and then rebooting


Recommended Posts

Posted (edited)
find /boot/overlay-user -type f
/boot/overlay-user/pwm.dtbo
/boot/overlay-user/pwm.dts

 

 

So, using the included /boot/dtb/rockchip/overlay/ files like rk3308-b@1.3ghz.dtbo, rk3308-s0-ext-antenna.dtbo and rk3308-sdio@10mhz.dtbo
and my own overlay in /boot/overlay-user/ named pwm.dtbo
The ONLY way it works is this:

(important lines in /boot/armbianEnv.txt):

 

overlay_prefix=rk3308
.
.
.
user_overlays=pwm
overlays=b@1.3ghz s0-ext-antenna sdio@10mhz

 

Edited by Meestor_X
Posted

Hi all,
I'm new here, but I know armbian since years ago.
I have a Rock3A and I downloaded the latest Armbian 25.2.3 bookworm, at the first try armbian-config worked.
But after an update I had a problem with armbian-config, I reinstalled this tools that was corrupted.
Here are the problems with Invalid overlay_prefix, and after searching everywhere and doing some tests I found the solution, here it is:


mkdir /boot/dtb/overlay
cp -r /boot/dtb/rockchip/overlay/. /boot/dtb/overlay/.

 

cat /boot/armbianEnv.txt
verbosity=1
bootlogo=false
console=serial
extraargs=cma=256M
overlay_prefix=rockchip
overlays=rk3568-pwm8-m0-fan
fdtfile=rockchip/rk3568-rock-3a.dtb
rootdev=UUID=194f1dc9-d186-438e-b1fd-064e3e8b1304
rootfstype=ext4
usbstoragequirks=0x2537:0x1066:u,0x2537:0x1068:u

 

my files start with overlay_prefix=rockchip, then armbian-config and now your overlays selection works. The folder basically needs to be moved, hopefully that will be done in the next image.
I hope it can be helpful for those who have the same problem.

 

In my case I have not yet solved the fan operation on pwm8, which works with S.O. Radxa.
I also tried to compile the dts downloaded from Armbian, but there must be some problem on the kernel that has not been solved.
If anyone has managed to get the fan to work on the Rock3A connector, I would be grateful for any help1

 

Thanks
Tony

Posted
57 minutes ago, Tonydee said:

The folder basically needs to be moved


That is wrong approach as we follow kernel source / standards:
image.png

 

and this (boot script) contains the mechanism for loading it:
https://github.com/armbian/build/blob/main/config/bootscripts/boot-rk35xx.cmd

 

It should work:

https://github.com/armbian/build/blob/main/config/bootscripts/boot-rk35xx.cmd#L51-L52

 

Is your image an upgrade from some old one? As we indeed have issues with this at some point.

Posted

Unfortunately all these solutions did not work.

But by installing the latest Armbian Noble Gnome installation, and changing the overlay_prefix=rockchip line in the armbianEnv.txt file
I can select the overlays.
Evidently my image was corrupted, or the upgrade failed.

 

Now, I have a bigger problem is to enable the fan on Rock-3A, and it does not work even loading the PWM8 overlay of radxa.
Then I did a bit of research and since the Armbian dts change a bit, and I spent hours rebuilding this driver, but it does not work.
I do not know if anyone has enabled the fan on the dedicated connector of the Rock-3A. Here is my dts:

 

/dts-v1/;
/plugin/;

/ {
metadata {
title = "Enable PWM8-M0";
compatible = "radxa,rock-3a", "radxa,rock-3b";
category = "misc";
exclusive = "GPIO3_B1";
description = "Enable PWM8-M0.
On Radxa ROCK 3A <= this is pin 16.
On Radxa ROCK 3A >= this is pin 16.
On Radxa ROCK 3B this is pin 16.";
};
};

&pwm8 {
status = "okay";
pinctrl-names = "active";
pinctrl-0 = <&pwm8m0_pins>;
};

 

This doesn't work, maybe because I read somewhere that Linux 6.xx has problems with PWM ?

 

For now I'm happy with setting GPIO3_B1 pin to 1, and the fan works, but if I run this:
#Fan controller
echo 0 > /sys/devices/platform/fe6f0000.pwm/pwm/pwmchip0/export
echo 10000 > /sys/devices/platform/fe6f0000.pwm/pwm/pwmchip0/pwm0/period
echo 5000 > /sys/devices/platform/fe6f0000.pwm/pwm/pwmchip0/pwm0/duty_cycle
echo normal > /sys/devices/platform/fe6f0000.pwm/pwm/pwmchip0/pwm0/polarity
echo 1 > /sys/devices/platform/fe6f0000.pwm/pwm/pwmchip0/pwm0/enable

 

The fan doesn't work, the pin is that one and radxa recommends PWM8.
For now I have to give up on the silent fan, then if there are updates I'll try.

 

Thank you very much for your help

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines