Meestor_X Posted January 6 Posted January 6 (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 January 6 by Meestor_X 0 Quote
Tonydee Posted April 20 Posted April 20 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 0 Quote
Igor Posted April 20 Posted April 20 57 minutes ago, Tonydee said: The folder basically needs to be moved That is wrong approach as we follow kernel source / standards: 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. 0 Quote
Tonydee Posted April 21 Posted April 21 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 0 Quote
Tonydee Posted April 22 Posted April 22 Ok, this morning apt-get upgrade tells me that there is armbian-config to update. Done and now solved the overlay issue also on my old image Thanks 0 Quote
Wizbandit Posted 17 hours ago Posted 17 hours ago armbianEnv.txt seem is not being loaded. I am trying to get i2c-1 up and I have it checked in armbian-config but all I get is i2c-2 showing. Loading the overlay manually gets the device to show up but not after a reboot. What am I doing wrong? ChatGPT sends me on a wild ride trying to fix. /boot/armbianEnv.txt rootfstype=ext4 overlays=i2c1 i2c-rtc ds3231 ds1307 usbstoragequirks=0x2537:0x1066:u,0x2537:0x1068:u 0 Quote
SteeMan Posted 16 hours ago Posted 16 hours ago 45 minutes ago, Wizbandit said: Loading the overlay manually gets the device to show What steps are you doing to get this working manually? What is the overlay file you are loading (trying to load), and where does that file exist on the system? 0 Quote
Recommended Posts
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.