技术专栏
rk3399pro 修改配置HDMI显示
rk3399pro原厂的开发板是带屏幕的,默认buildroot SDK是用eDp屏幕显示,需要HDMI进行显示的话,需要修改一些配置,下面来看下。
1 S50launcher的修改
app/QLauncher下的S50launcher添加两处配置:
export WESTON_DRM_PRIMARY=HDMI-A-1 #指定主显为HDMI-A-1
export WESTON_DRM_MIRROR=1 #使用镜像模式(多屏同显),不设置此环境变量即为异显
运行下面的命令删掉之前编译生成的,然后重新编译rootfs:
rm buildroot/output/rockchip_rk3399pro_combine/build/QLauncher-1.0 -rf
2 weston.ini的修改
设置输出节点及拉伸,并设置放大倍数:
buildroot/board/rockchip/common/base/etc/xdg/weston/weston.ini
添加:
[output]
name=HDMI-A-1
transform=normal
scale=1
# 需为整数倍数,支持应用内部实现缩放
运行下面的命令删掉之前编译生成的,然后重新编译rootfs:
rm buildroot/output/rockchip_rk3399pro_combine/build/weston-8.0.0/ -rf
3 kernel内核的修改
更换开机画面,解决开机画面黑屏,修改如下:
zl@zl-Lenovo:~/workspace_rk/rk3399pro/rk3399pro-linux/kernel$ git status
HEAD detached at 50e652d
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
modified: arch/arm64/boot/dts/rockchip/rk3399-linux.dtsi
modified: arch/arm64/boot/dts/rockchip/rk3399pro-evb-v11-linux.dts
modified: logo.bmp
modified: logo_kernel.bmp
no changes added to commit (use "git add" and/or "git commit -a")
zl@zl-Lenovo:~/workspace_rk/rk3399pro/rk3399pro-linux/kernel$ git diff .
diff --git a/arch/arm64/boot/dts/rockchip/rk3399-linux.dtsi b/arch/arm64/boot/dts/rockchip/rk3399-linux.dtsi
index db45778..5dafbbf 100644
--- a/arch/arm64/boot/dts/rockchip/rk3399-linux.dtsi
+++ b/arch/arm64/boot/dts/rockchip/rk3399-linux.dtsi
@@ -166,7 +166,7 @@
logo,kernel = "logo_kernel.bmp";
logo,mode = "center";
charge_logo,mode = "center";
- connect = <&vopb_out_hdmi>;
+ connect = <&vopl_out_hdmi>;
};
route_dsi: route-dsi {
@@ -184,7 +184,7 @@
logo,kernel = "logo_kernel.bmp";
logo,mode = "center";
charge_logo,mode = "center";
- connect = <&vopl_out_edp>;
+ connect = <&vopb_out_edp>;
};
};
};
diff --git a/arch/arm64/boot/dts/rockchip/rk3399pro-evb-v11-linux.dts b/arch/arm64/boot/dts/rockchip/rk3399pro-evb-v11-linux.dts
index 2231a14..18bcaa8 100644
--- a/arch/arm64/boot/dts/rockchip/rk3399pro-evb-v11-linux.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3399pro-evb-v11-linux.dts
@@ -143,7 +143,7 @@
ports {
panel_in: endpoint {
- remote-endpoint = <&edp_out>;
+ remote-endpoint = <&hdmi_out>;
};
};
};
@@ -285,7 +285,7 @@
};
&edp {
- status = "okay";
+ status = "disabled";
force-hpd;
ports {
@@ -299,7 +299,7 @@
};
};
-&edp_in_vopb {
+&edp_in_vopl {
status = "disabled";
};
@@ -341,9 +341,18 @@
<297000000 0x8039 0x0005 0x028d>,
<594000000 0x8039 0x0000 0x00f6>,
<000000000 0x0000 0x0000 0x0000>;
+ ports {
+ port@0 {
+ reg = <0>;
+
+ hdmi_out: endpoint {
+ remote-endpoint = <&panel_in>;
+ };
+ };
+ };
};
-&hdmi_in_vopl {
+&hdmi_in_vopb {
status = "disabled";
};
@@ -993,6 +1002,10 @@
status = "okay";
};
+&route_hdmi {
+ status = "okay";
+};
+
&saradc {
status = "okay";
vref-supply = <&vcc_1v8>;
diff --git a/logo.bmp b/logo.bmp
index 750a0bb..f0a0384 100644
Binary files a/logo.bmp and b/logo.bmp differ
diff --git a/logo_kernel.bmp b/logo_kernel.bmp
index 1afef1e..f0a0384 100644
Binary files a/logo_kernel.bmp and b/logo_kernel.bmp differ
4总结
将内核和文件系统的配置修改并重新编译之后,需要重新烧录,然后进行测试,可以看到HDMI可以正常显示了。
声明:本文内容由易百纳平台入驻作者撰写,文章观点仅代表作者本人,不代表易百纳立场。如有内容侵权或者其他问题,请联系本站进行删除。
红包
点赞
收藏
评论
打赏
- 分享
- 举报
评论
0个
手气红包
暂无数据
相关专栏
-
浏览量:648次2023-12-21 18:17:30
-
浏览量:669次2023-12-21 18:18:43
-
浏览量:2270次2022-05-17 09:00:33
-
浏览量:2582次2023-12-29 17:55:25
-
浏览量:861次2023-12-07 01:07:22
-
浏览量:894次2023-12-26 18:03:31
-
浏览量:975次2023-12-16 16:39:06
-
浏览量:1567次2024-02-04 17:13:47
-
浏览量:3641次2018-02-20 00:36:12
-
浏览量:4823次2021-07-22 18:16:29
-
浏览量:1588次2023-02-08 08:57:31
-
浏览量:1431次2024-02-05 10:41:25
-
浏览量:1685次2024-01-22 17:46:51
-
浏览量:907次2023-10-16 17:32:09
-
浏览量:2988次2022-05-17 09:00:35
-
浏览量:2185次2022-10-09 10:41:47
-
浏览量:6815次2020-12-17 09:45:27
-
浏览量:2161次2020-08-05 21:02:35
-
浏览量:3582次2021-04-02 11:52:25
置顶时间设置
结束时间
删除原因
-
广告/SPAM
-
恶意灌水
-
违规内容
-
文不对题
-
重复发帖
打赏作者
林
您的支持将鼓励我继续创作!
打赏金额:
¥1
¥5
¥10
¥50
¥100
支付方式:
微信支付
打赏成功!
感谢您的打赏,如若您也想被打赏,可前往 发表专栏 哦~
举报反馈
举报类型
- 内容涉黄/赌/毒
- 内容侵权/抄袭
- 政治相关
- 涉嫌广告
- 侮辱谩骂
- 其他
详细说明
审核成功
发布时间设置
发布时间:
请选择发布时间设置
是否关联周任务-专栏模块
审核失败
失败原因
请选择失败原因
备注
请输入备注