You can try to modify the uboot source code following this
diff --git a/board/khadas/configs/kvim.h b/board/khadas/configs/kvim.h
index 8f7a3e4..bafc4b6 100644
--- a/board/khadas/configs/kvim.h
+++ b/board/khadas/configs/kvim.h
@@ -76,6 +76,7 @@
"loadaddr=1080000\0"\
"outputmode=1080p60hz\0" \
"hdmimode=1080p60hz\0" \
+ "cvbsmode=576cvbs\0" \
"display_width=1920\0" \
"display_height=1080\0" \
"display_bpp=16\0" \
@@ -97,6 +98,7 @@
"EnableSelinux=disabled\0"\
"recovery_part=recovery\0"\
"recovery_offset=0\0"\
+ "cvbs_drv=0\0"\
"initargs="\
"rootfstype=ramfs init=/init console=ttyS0,115200 no_console_suspend earlyprintk=aml-ua
"\0"\
@@ -304,7 +306,7 @@
#define CONFIG_CMD_BMP 1
#if defined(CONFIG_AML_VOUT)
-#undef CONFIG_AML_CVBS
+#define CONFIG_AML_CVBS
#endif
/* USB
diff --git a/common/cmd_hdmitx.c b/common/cmd_hdmitx.c
index 5ca80f3..f8e11eb 100644
--- a/common/cmd_hdmitx.c
+++ b/common/cmd_hdmitx.c
@@ -35,12 +35,12 @@ static int do_hpd_detect(cmd_tbl_t *cmdtp, int flag, int argc,
if (st) {
setenv("outputmode", getenv("hdmimode"));
- #ifdef CONFIG_AML_CVBS
} else {
+ #ifdef CONFIG_AML_CVBS
setenv("outputmode", getenv("cvbsmode"));
- #endif
- } else {
+ #else
setenv("outputmode", "1080p60hz");
+ #endif
}
return st;
}
BTW, you need to build update image again.
$ cd PATH_YOUR_PROJECT
$ cd uboot
$ make distclean
$ make CROSS_COMPILE=aarch64-linux-gnu- kvim_defconfig
$ make CROSS_COMPILE=aarch64-linux-gnu-
$ cd PATH_YOUR_PROJECT
$ source build/envsetup.sh
$ lunch 9
$ make otapackage