ophub / amlogic-s9xxx-armbian

Support for Armbian in Amlogic, Rockchip and Allwinner boxes. Support a311d, s922x, s905x3, s905x2, s912, s905d, s905x, s905w, s905, s905l, rk3588, rk3568, rk3399, rk3328, h6, etc.
GNU General Public License v2.0
6.22k stars 1.99k forks source link

请求 增加适配 rk3399-tpm312-main #2403

Closed wanglixiang90 closed 3 months ago

wanglixiang90 commented 4 months ago

Device Information | 设备信息

Armbian Version | 系统版本

Describe the bug | 问题描述 请求 增加 适配 这个rk3399硬件 dtb 文件下载地址: https://github.com/Lemon1151/rk33xx-armbian/blob/main/build-armbian/armbian-files/platform-files/rockchip/bootfs/dtb/rockchip/rk3399-tpm312.dtb 编译仓库:https://github.com/Lemon1151/rk33xx-armbian

板子照片 123456

问题: hdmi 无显示输出,需要调整dtb显示输出端口; minipcie 需要开启使能。

ophub commented 4 months ago

根据你的反馈,我添加了这个设备,你有空的时候到releases里下载测试下:

https://github.com/ophub/amlogic-s9xxx-armbian/releases

ophub commented 4 months ago
/dts-v1/;
#include <dt-bindings/pwm/pwm.h>
#include <dt-bindings/input/input.h>
#include <dt-bindings/interrupt-controller/irq.h>
#include "rk3399.dtsi"
#include "rk3399-opp.dtsi"

/ {
    model = "RK3399 TPM312";
    compatible = "rk3399,tpm312", "rockchip,rk3399";

    /delete-node/ display-subsystem;

    aliases {
        ethernet0 = &gmac;
        mmc0 = &sdhci;
        mmc1 = &sdmmc;
        mmc2 = &sdio0;
    };

    chosen {
        bootargs = "earlycon=uart8250,mmio32,0xff1a0000 swiotlb=1 coherent_pool=1m";
        stdout-path = "serial2:1500000n8";
    };

在dts里,作者删除了显示支持,原因未知:/delete-node/ display-subsystem;

下面的这个是我删除了这个禁用显示节点设置后编译的,下载解压缩,覆盖/boot/dtb/rockchip下的同名文件,重启试试。

rk3399-tpm312.dtb.zip

wanglixiang90 commented 4 months ago

用了 你的 dtb 后,led 灯恢复了,但是 hdmi 线有信号,但是无显示输出,rk3399 vop / hdmi 还是没有启用,可能是没开启成功,也有可能是系统显卡驱动这个问题。

wanglixiang90 commented 4 months ago

有时间的话可以在内核中增加 2.5G 网卡驱动 [e.g. realtek 8125 8152 8156(usb) . intel i225 i226 ... ]

wanglixiang90 commented 4 months ago

在你提供的dtb 基础上 修改并开启 fdi / hdmi / vop,设置 status = "okay" 后 可以开启 hdmi 显示,但是显示效果比较差(画面比较浑浊,可能是gpu/hdmi 驱动没有适配好),另外此版本的 wifi 网卡没了,得恢复 wlan0 网卡。 rk3399-tpm312-new.zip

wanglixiang90 commented 4 months ago

Rockchip RK3399 - Mali-T860 GPU驱动(mesa+Panfrost)

ophub commented 4 months ago

我在这个仓库找到一个dts源文件,可以在源文件基础上修改,进行编译测试。

rk3399-tpm312.dts.zip

https://github.com/xiaomeng9597/iStoreOS-For-RK33XX/blob/main/configfiles/rk3399-tpm312.dts

xiaomeng9597 commented 4 months ago

在你提供的dtb 基础上 修改并开启 fdi / hdmi / vop,设置 status = "okay" 后 可以开启 hdmi 显示,但是显示效果比较差(画面比较浑浊,可能是gpu/hdmi 驱动没有适配好),另外此版本的 wifi 网卡没了,得恢复 wlan0 网卡。 rk3399-tpm312-new.zip

请发修改过的原始dts文件出来

robinZhao commented 3 months ago

tpm312 tpm312hdmi显示浑浊的问题已经解决,dtb是通过反编译原始android dtb改造的 https://github.com/ophub/amlogic-s9xxx-armbian/pull/2457 有两个问题,一个是dmesg中有如下报错,可能和i2s声音接口有关 [ 20.013909] rockchip-i2s: probe of ff880000.i2s failed with error -2 [ 20.037244] rockchip-i2s: probe of ff8a0000.i2s failed with error -2 另外一个是每隔几分钟报个无线网卡的错误,估计得更新驱动解决 [ 440.467545] rtw_8821cu 2-1.1:1.2: failed to download firmware [ 440.485324] rtw_8821cu 2-1.1:1.2: leave idle state failed [ 440.509189] rtw_8821cu 2-1.1:1.2: failed to leave ips state [ 440.514908] rtw_8821cu 2-1.1:1.2: failed to leave idle state 期待有大佬继续优化

ophub commented 3 months ago

https://github.com/unifreq/linux-6.6.y/blob/main/arch/arm64/boot/dts/rockchip/rk3399-tpm312.dts

在这个源码里,你改动了什么地方,提交到上游f大的这个内核仓库里,每次更新以这里编译的为准。

https://github.com/ophub/kernel/blob/571280fe3e19adba194c737e6fa513b9d79f1a23/kernel-config/release/general/config-6.6#L3284 https://github.com/ophub/firmware/tree/main/firmware/rtw88

rtw8821cu驱动和固件都有,查查什么原因导致无法加载的

robinZhao commented 3 months ago

tpm312 tpm312hdmi显示浑浊的问题已经解决,dtb是通过反编译原始android dtb改造的 https://github.com/ophub/amlogic-s9xxx-armbian/pull/2457 有两个问题,一个是dmesg中有如下报错,可能和i2s声音接口有关 [ 20.013909] rockchip-i2s: probe of ff880000.i2s failed with error -2 [ 20.037244] rockchip-i2s: probe of ff8a0000.i2s failed with error -2 另外一个是每隔几分钟报个无线网卡的错误,估计得更新驱动解决 [ 440.467545] rtw_8821cu 2-1.1:1.2: failed to download firmware [ 440.485324] rtw_8821cu 2-1.1:1.2: leave idle state failed [ 440.509189] rtw_8821cu 2-1.1:1.2: failed to leave ips state [ 440.514908] rtw_8821cu 2-1.1:1.2: failed to leave idle state 期待有大佬继续优化

驱动应该是加载了,wifi功能也正常,就是会一会报一下这个错误,可能和wifi的休眠功能有关

ophub commented 3 months ago

无线不使用就关闭了

robinZhao commented 3 months ago

https://github.com/unifreq/linux-6.6.y/blob/main/arch/arm64/boot/dts/rockchip/rk3399-tpm312.dts

在这个源码里,你改动了什么地方,提交到上游f大的这个内核仓库里,每次更新以这里编译的为准。

https://github.com/ophub/kernel/blob/571280fe3e19adba194c737e6fa513b9d79f1a23/kernel-config/release/general/config-6.6#L3284 https://github.com/ophub/firmware/tree/main/firmware/rtw88

rtw8821cu驱动和固件都有,查查什么原因导致无法加载的

提交了,dtb反编译修改的,不是很易读,用仓库的dts修改不成功,总是花屏闪烁,找不到问题

Angel0726 commented 2 months ago

我在这个仓库找到一个dts源文件,可以在源文件基础上修改,进行编译测试。

rk3399-tpm312.dts.zip

https://github.com/xiaomeng9597/iStoreOS-For-RK33XX/blob/main/configfiles/rk3399-tpm312.dts

能够将hdmi等修改好的版本,至今release发布吗

Angel0726 commented 2 months ago

Rockchip RK3399 - Mali-T860 GPU驱动(mesa+Panfrost)

这个怎么用