Hi,我在论坛上看了很多AGX Orin HDMI不显示的帖子,都依次试过了,还是解决不了HDMI不显示的问题,请@WayneWWW 等大神解答下,非常感谢。
下面是我的实验过程:
1. 底板是我们自己做的,设计截图如下:
- bootloader的dtsi和kernel的dts也在烧录时确认过了,版本R35.2.1,修改如下:
diff --git a/bootloader/t186ref/BCT/tegra234-mb1-bct-pinmux-p3701-0000-a04.dtsi b/bootloader/t186ref/BCT/tegra234-mb1-bct-pinmux-p3701-0000-a04.dtsi
index 90735c5..b91f1e0 100644
--- a/bootloader/t186ref/BCT/tegra234-mb1-bct-pinmux-p3701-0000-a04.dtsi
+++ b/bootloader/t186ref/BCT/tegra234-mb1-bct-pinmux-p3701-0000-a04.dtsi
@@ -378,7 +378,7 @@
dp_aux_ch0_hpd_pm0 {
nvidia,pins = "dp_aux_ch0_hpd_pm0";
- nvidia,function = "dp";
+ nvidia,function = "rsvd1";
nvidia,pull = <TEGRA_PIN_PULL_NONE>;
nvidia,tristate = <TEGRA_PIN_ENABLE>;
nvidia,enable-input = <TEGRA_PIN_ENABLE>;
diff --git a/bootloader/tegra234-mb1-bct-gpio-p3701-0000-a04.dtsi b/bootloader/tegra234-mb1-bct-gpio-p3701-0000-a04.dtsi
index ed4dc08..75157d7 100644
--- a/bootloader/tegra234-mb1-bct-gpio-p3701-0000-a04.dtsi
+++ b/bootloader/tegra234-mb1-bct-gpio-p3701-0000-a04.dtsi
@@ -55,6 +55,7 @@
TEGRA234_MAIN_GPIO(Q, 6)
TEGRA234_MAIN_GPIO(Q, 7)
TEGRA234_MAIN_GPIO(R, 1)
+ TEGRA234_MAIN_GPIO(M, 0)
TEGRA234_MAIN_GPIO(N, 4)
TEGRA234_MAIN_GPIO(N, 1)
TEGRA234_MAIN_GPIO(G, 0)
source/hardware/nvidia/platform/t23x/concord/kernel-dts/tegra234-p3701-0004-p3737-0000.dts
+ #include "tegra234-dcb-p3701-0000-a02-p3737-0000-a01_hdmi.dtsi"
display@13800000 {
status = "okay";
+ os_gpio_hotplug_a = <&tegra_main_gpio TEGRA234_MAIN_GPIO(M, 0) GPIO_ACTIVE_HIGH>;
};
-
我用dcb_tool工具生成tegra234-dcb-p3701-0000-a02-p3737-0000-a01_hdmi.dtsi文件,
./tools/dcb_tool/dcb_tool -r tegra234-dcb-p3701-0000-a02-p3737-0000-a01_hdmi.dtsi信息如下:
=== Reading DCB blob ===
########## Tegra DCB BLOB ###############
########### Display Devices #############
Display Devices::
Display Devices : [0]
Type : [TMDS]
CCB : [0]
Heads : 0:[Y] 1:[Y]
Sor : [0 ]
HDMI capable : [1]
Connector : [0]
Bus : [0]
############### CCB Entries ###############
CCB::
*CCB entries that have both I2C and AUX ports unused (value = 31) are not displayed
CCB Index : 0
I2C Port : [6]
AUX Port : [0]
########### Connector entries #############
Connectors::
Connector Index : 0x0
Type : [HDMI]
Hotplug : A:[Y]
################# ******* #################
4. 完整烧录:
sudo ./flash.sh jetson-agx-orin-devkit mmcblk0p1
上电启动后,串口终端输入:
export DISPLAY=:0
xrandr
显示如下:
Screen 0: minimum 8 x 8, current 640 x 480, maximum 32767 x 32767
5. 重新depmod 之后重启:
sudo depmod -a
sudo reboot
启动后,再次:
export DISPLAY=:0
xrandr
显示如下:
Screen 0: minimum 8 x 8, current 1920 x 1080, maximum 32767 x 32767
HDMI-0 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 708mm x 398mm
1920x1080 60.00*+ 59.94
3840x2160 29.98
6. console终端一直打印下面信息
[ 355.688534] WARNING: CPU: 0 PID: 0 at drivers/gpio/gpio-tegra186.c:937 tegra186_gpio_irq+0x1ac/0x1f0
[ 355.698334] ---[ end trace baa5504be64afcb0 ]---
[ 356.387780] WARNING: CPU: 0 PID: 0 at drivers/gpio/gpio-tegra186.c:937 tegra186_gpio_irq+0x1ac/0x1f0
[ 356.397593] ---[ end trace baa5504be64afcb1 ]---
[ 356.674322] WARNING: CPU: 0 PID: 0 at drivers/gpio/gpio-tegra186.c:937 tegra186_gpio_irq+0x1ac/0x1f0
[ 356.683914] ---[ end trace baa5504be64afcb2 ]---
[ 356.688702] WARNING: CPU: 0 PID: 0 at drivers/gpio/gpio-tegra186.c:937 tegra186_gpio_irq+0x1ac/0x1f0
[ 356.698235] ---[ end trace baa5504be64afcb3 ]---
[ 356.703044] nvidia-modeset: WARNING: GPU:0: Unable to read EDID for display device LTM LONTIUM (HDMI-0)
[ 357.373753] WARNING: CPU: 0 PID: 0 at drivers/gpio/gpio-tegra186.c:937 tegra186_gpio_irq+0x1ac/0x1f0
[ 357.383552] ---[ end trace baa5504be64afcb4 ]---
7. 修改/etc/X11/xorg.conf文件,reboot:
Section “Device”
Option “ModeDebug”
…
/var/log/Xorg.0.log文件内容如下
Xorg.0.log (279.6 KB)
另外,显示器和HDMI线都检验过了,没有问题。