In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article introduces you how to configure and debug RK3288 HDMI, the content is very detailed, interested friends can refer to, hope to be helpful to you.
The maximum output resolution of RK3288 is 3840x2160
The HDMI driver code is located in the kernel/drivers/video/rockchip/hdmi/rockchip-hdmiv2 directory
1. Set the default output resolution
The resource on the Internet is to modify the rockchip-hdmi.h file in kernel/drivers/video/rockchip/hdmi/rockchip-hdmiv2.
/ * HDMI default vide mode * /
# define HDMI_VIDEO_DEFAULT_MODE HDMI_1280X720P_60HZ
The official document is to modify the board-level dts file, the path is kernel\ arch\ arm\ boot\ dts\ xxx.dts
Add rockchip,defaultmode = to the hdmi node, and the value can be found in the hdmi_video_infomation_code of rockchip-hdmi.h.
Hdmi_video_infomation_code is an enumerated array, starting from 1, which resolution you want to set, the value value will fill in the serial number of that resolution.
This resolution must be supported before setting it. View supported resolutions: cat / sys/class/display/HDMI/modes
For example, set the default resolution to 1280x720P60Hz output:
/ / path: kernel\ arch\ arm\ boot\ dts\ xxx.dts
& hdmi {
Status = "okay"
Rockchip,hdmi_video_source =
Rockchip,defaultmode =
}
/ / path: kernel\ drivers\ video\ rockchip\ hdmi\ rockchip-hdmi.h
/ * HDMI video information code according CEA-861-F * /
Enum hdmi_video_infomation_code {
HDMI_640X480P_60HZ = 1
HDMI_720X480P_60HZ_4_3
HDMI_720X480P_60HZ_16_9
HDMI_1280X720P_60HZ
...
}
2. Debugging method
View the EDID information of the sink device, including raw data and parsed information.
Cat / sys/class/display/HDMI/debug
Shell@xxx:/ $cat / sys/class/display/HDMI/debug
/ / EDID status
EDID status:Okay
/ / original data
Raw Data:
0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x05, 0xe3, 0x80, 0x22, 0xfd, 0x05, 0x00, 0x00
0x0e, 0x1a, 0x01, 0x03, 0xa0, 0x30, 0x1b, 0x78, 0xba, 0x5a, 0x65, 0xa7, 0x56, 0x52, 0x9c, 0x27
0x0f, 0x50, 0x54, 0xbf, 0xef, 0x00, 0xd1, 0xc0, 0xb3, 0x00, 0x95, 0x00, 0x81, 0x80, 0x81, 0x40
0x81, 0xc0, 0x01, 0x01, 0x01, 0x01, 0x02, 0x3a, 0x80, 0x18, 0x71, 0x38, 0x2d, 0x40, 0x58, 0x2c
0x45, 0x00, 0xdd, 0x0c, 0x11, 0x00, 0x00, 0x1e, 0x00, 0x00, 0x00, 0xfd, 0x00, 0x32, 0x4c, 0x1e
0x53, 0x11, 0x00, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x00, 0x00, 0x00, 0xfc, 0x00, 0x32
0x32, 0x38, 0x30, 0x57, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x00, 0x00, 0x00, 0xff
0x00, 0x41, 0x42, 0x38, 0x30, 0x36, 0x31, 0x34, 0x5a, 0x30, 0x31, 0x35, 0x33, 0x33, 0x01, 0xa8
0x02, 0x03, 0x1b, 0x71, 0x23, 0x09, 0x07, 0x07, 0x83, 0x01, 0x00, 0x00, 0x67, 0x03, 0x0c, 0x00
0x10, 0x00, 0x80, 0x21, 0x43, 0x01, 0x10, 0x84, 0xe2, 0x00, 0x0f, 0x01, 0x1d, 0x00, 0x72, 0x51
0xd0, 0x1e, 0x20, 0x6e, 0x28, 0x55, 0x00, 0x81, 0x49, 0x00, 0x00, 0x00, 0x1e, 0x00, 0x00, 0x00
0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xbf
* Show Sink Info *
/ / maximum tmds channel clock frequency
Max tmds clk is 0
/ / supported resolution
Support video mode:
1920x1080p@60Hz
1280x720p@60Hz
/ / supported video color mode
Support video color mode: RGB YCbCr422 YCbCr444
/ / supported video color bit depth
Support video color depth: 24bit
/ / supported audio types
Support audio type: LPCM
/ / the largest audio channel supported
Support max audio channel is 2
/ / supported audio sampling rate
Support audio sample rate: 32000 44100 48000
/ / supported audio word length
Support audio word lenght: 16bit 20bit 24bit
View supported resolutions
$cat / sys/class/display/HDMI/modes
View current resolution
$cat / sys/class/display/HDMI/mode
Toggle resolution
$echo 1920x1080p-60 > / sys/class/display/HDMI/mode
Check if HDMI is connected
$cat / sys/class/display/HDMI/connect
View HDMI enable statu
$cat / sys/class/display/HDMI/enable
Set HDMI to enable. 0 or 1 is preferred. 0 means off and 1 means on.
$echo > / sys/class/display/HDMI/enable
Modify output color
$echo mode= > / sys/class/display/HDMI/color
Mode = 0 is the automatic mode, and the priority is:
YCbCr444 > YCbCr422 > RGB > RGB
Mode = 1 is RGB [0255]
Mode = 2 is RGB [16-235]
Mode = 3 is YCbCr444 [16-235]
Mode = 4 is YCbCr422 [16-235]
View 3D mode
$cat / sys/class/display/HDMI/3dmode
Set 3D mode
$echo > / sys/class/display/HDMI/3dmode
You can take the following values:
0:Frame packing
6:Top and Bottom
8:Side by Side Half
Open the kernel Debug option in make menuconfig to see more Log information.
Device Drivers->
Graphics support->
[*] Rockchip HDMI support->
[*] Rockchip HDMI Debugging
On how to configure and debug RK3288 HDMI to share here, I hope that the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.