Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
wanglixiang90 opened this issue Jul 2, 2024 · 15 comments
Closed

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

wanglixiang90 opened this issue Jul 2, 2024 · 15 comments
Labels
documentation Improvements or additions to documentation new box Research Fills in the Blanks support This need is supported

Comments

@wanglixiang90
Copy link

Device Information | 设备信息

  • SOC: rk3399
  • Model tpm312-main

Armbian Version | 系统版本

  • Kernel Version: 6.6.33
  • Release: armbian/bookworm + Armbian/noble

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 ophub added documentation Improvements or additions to documentation support This need is supported new box Research Fills in the Blanks labels Jul 3, 2024
@ophub
Copy link
Owner

ophub commented Jul 3, 2024

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

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

@ophub
Copy link
Owner

ophub commented Jul 3, 2024

/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
Copy link
Author

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

@wanglixiang90
Copy link
Author

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

@wanglixiang90
Copy link
Author

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

@wanglixiang90
Copy link
Author

@ophub
Copy link
Owner

ophub commented Jul 4, 2024

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

rk3399-tpm312.dts.zip

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

@xiaomeng9597
Copy link

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

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

@robinZhao
Copy link
Contributor

robinZhao commented Aug 1, 2024

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
Copy link
Owner

ophub commented Aug 1, 2024

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
Copy link
Contributor

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
Copy link
Owner

ophub commented Aug 2, 2024

无线不使用就关闭了

@robinZhao
Copy link
Contributor

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修改不成功,总是花屏闪烁,找不到问题

@ophub ophub closed this as completed Aug 9, 2024
@Angel0726
Copy link

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

rk3399-tpm312.dts.zip

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

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

@Angel0726
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation new box Research Fills in the Blanks support This need is supported
Projects
None yet
Development

No branches or pull requests

5 participants