[ 0.047861] pwm-mediatek 10048000.pwm: clock: top fail: -517
Your pwm controller is not setup right, 517 should be deferred probe (try later because depencies missing),but i do not see a later attempt…there are also pcie errors…
Have you same errors on official openwrt or only on the lede-fork?
Maybe you miss clock driver?
pwm0 on r3 is mapped to fan-socket (aquired pwm-fan) via dts, pwm1 is exposed on gpio-header
WHICH file and which line should I modify? there are so many clocks in different line and diffrent file.
Search for infracfg CLK_INFRA_PWM_HCK and nothing returns.
I saw it in openwrt/target/linux/mediatek/files-5.15/arch/arm64/boot/dts/mediatek/mt7986a.dtsi. But the firmware I used is being built with this patch.
Kernel 6.x is bad, it has a lot of terrible bugs in kernel code, plenty of APIs, such as net, has been modifid. It means there are so many broken drivers as they can not build successfully with this kind of kernel.
Ok,maybe 6.1 is not yet supported by openwrt. In theory it should be possible to boot openwrt with external kernel (to use my kernel) but it will be more work to get some special things like overlayfs working. Some time ago i used openwrt rootfs as initrd.