Joshua-Riek / ubuntu-rockchip

Ubuntu for Rockchip RK35XX Devices
https://joshua-riek.github.io/ubuntu-rockchip-download/
GNU General Public License v3.0
2.17k stars 237 forks source link

Information to Dev A chinese webpage for OrangePi-3b Panfrost Enabling #954

Closed defencedog closed 1 month ago

defencedog commented 1 month ago

I have recently seen this webpage (translated pdf attached)

One of the steps author did is different & not documented anywhere.

rk35xx/arch/arm64/boot/dts/rockchip/rk3566-orangepi-3b.dts"修改如下:

删除第1075行:cursor-win-id = <ROCKCHIP_VOP2_CLUSTER0>;
在340行下面:&gpu {
增加第341行:clock-names = "gpu", "bus";
增加第342行:interrupt-names = "gpu", "mmu", "job";
-----------------------

Orangepi-3B rk3566 编译5.10.160内核panfrost驱动 - 哔哩哔哩.pdf

defencedog commented 1 month ago

Another interesting thing I found by this author. According to the image attached some modifications are to be done kernel/orange-pi-5.10-rk35xx/arch/arm64/boot/dts/rockchip/rk3568.dtsi

Have to comment out // lines 1391、1396、1401、1406、1415、1424 having content opp-support-hw = <0xfb 0xffff>

This will remove following dmesg errors

Jul  8 01:05:20 orangepicm4 kernel: 【    7.148588】 panfrost fde60000.gpu: clock rate = 594000000
Jul  8 01:05:20 orangepicm4 kernel: 【    7.148608】 panfrost fde60000.gpu: bus_clock rate = 500000000
Jul  8 01:05:20 orangepicm4 kernel: 【    7.149663】 panfrost fde60000.gpu: Looking up mali-supply from device tree
Jul  8 01:05:20 orangepicm4 kernel: 【    7.149893】 panfrost fde60000.gpu: _of_add_opp_table_v2: no supported OPPs
Jul  8 01:05:20 orangepicm4 kernel: 【    7.150872】 panfrost fde60000.gpu: devfreq init failed -2
Jul  8 01:05:20 orangepicm4 kernel: 【    7.150893】 panfrost fde60000.gpu: Fatal error during GPU init
Jul  8 01:05:20 orangepicm4 kernel: 【    7.151072】 panfrost: probe of fde60000.gpu failed with error -2

bug

defencedog commented 1 month ago

Detailed instruction & prebuilt .deb available [here](https://github.com/defencedog/orangepi3b_v2.1/tree/main/Orangepi-3B rk3566-5.10.160-panfrost)