在MPSoC ZCU106单板的HDMI-Tx上基于eglfs_kms的运行QT应用程序

按照在mpsoc上运行基于eglfs_kms的qt应用程序, 可以在mpsoc zcu106单板的dp上基于eglfs_kms的运行qt应用程序。按照在vcutrd 2020.1 里设置hdmi-tx显示qt界面, 可以在mpsoc zcu106单板的hdmi-tx上基于x11的运行qt应用程序。在hdmi-tx上,基于eglfs_kms的运行qt应用程序,遇到了下列两个错误。
错误1
qstandardpaths: xdg_runtime_dir not set, defaulting to '/var/volatile/tmp/runtime-root'setting framebuffer size is only available with drm atomic apiattribute qt::aa_shareopenglcontexts must be set before qcoreapplication is created.could not queue drm page flip on screen hdmi1 (invalid argument)could not queue drm page flip on screen hdmi1 (invalid argument) 错误2
qstandardpaths: xdg_runtime_dir not set, defaulting to '/var/volatile/tmp/runtime-root'framebuffer size format is invalid.attribute qt::aa_shareopenglcontexts must be set before qcoreapplication is created.failed to commit atomic request (code=-22) 基于在vcutrd 2020.1 里设置hdmi-tx显示qt界面做更改后,执行下列命令,可以在mpsoc zcu106单板的dp上基于eglfs_kms的运行qt应用程序。其中的$display_device和$connector_id,需要根据单板更改。display_device一般是类似a0070000.v_mix的格式,可以通过“dmesg | grep v_mix”查到。$connector_id,可以在“modetest -d $display_device”的输出里查找, 也可以根据检查linux drm显示设备id的脚本 得到。
update-alternatives --install /usr/lib/libmali.so.9.0 libmali /usr/lib/wayland/libmali.so.9.0 90echo y > /sys/module/xlnx_mixer/parameters/mixer_primary_enablemodetest -d $display_device -s $connector_id:1920x1080-60@ar24killall xorgcat /run/kms.confexport qt_qpa_platforexport qt_qpa_eglfs_kms_atomic=1export qt_qpa_eglfs_integratioexport qt_qpa_eglfs_kms_confiexport qt_qpa_eglfs_debuexport qt_qpa_eglfs_force888=1# chmod +x /run/qt5everywheredemo-1.0/qtdemo# /run/qt5everywheredemo-1.0/qtdemols -l /usr/share/examples/opengl//usr/share/examples/opengl/cube/cube/usr/share/examples/opengl/textures/textures 如果运行失败,有时执行“ctrl+c”还不能退出qt应用程序cube和textures,还需要执行命令“kill -9 ”, 或者“killall -9 cube”,才能让其退出。
上述的/run/kms.conf内容如下:

时钟信号抖动怎么办?串行端接、下拉电阻、电阻桥、LVPECL来帮忙
LED显示屏报价包含的各项费用介绍
M480安全功能-XOM仅可执行内存
诺基亚8真旗舰再次曝光,配置如此彪悍,你让华为P10小米6怎么办?
飞凌嵌入式——基于RK3568的红外热成像体温检测系统
在MPSoC ZCU106单板的HDMI-Tx上基于eglfs_kms的运行QT应用程序
嵌入式系统应用-巴西上空的蜻蜓
NB需求不退 国内面板厂奋力抢食力争上游
GrabCAD Print软件现已能够导入3D可打印的3MF文件
基于ST的L4986A的1kw无桥CCM-PFC预稳压器的电源方案
设备管理系统建设的目标及意义
“新基建”按下加速键,企业如何选择存储系统?
智慧农业的定义/作用/现状/趋势
二次电池的主要充电方法
都2023年了,原来TWS蓝牙耳机还可以这么玩
为微型大脑打造的微型脑电图电极帽
基于AT89C51单片机和传感器实现家庭安全报警系统的设计
Gartner: 2010年及未来四大关键趋势及预测
TCP0030A电流探头的性能指标及应用范围
固态继电器的结构及电参数说明