请问哪吒 D1 开发板拔插 HDMI 显示器, 提示sink do not support this mode 是什么问题? 换了两台显示器了.
-
[ 117.150633] HDMI cable is connected [ 118.050843] error: invalid cea_vic code:0 [ 118.055448] [HDMI2 error]: sink do not support this mode:0
请问哪吒 D1 开发板拔插 HDMI 显示器, 提示sink do not support this mode 是什么问题? 换了两台显示器了.
-
@tigger
哈,有点像是EDID读取到的VID 不支持,每个VID应该对应一种制式,这里可能有两种情况
要么HDMI线的I2C通道异常,读取不到正确的EDID,要么是运气太差,用的两台显示器默认制式不包含在支持列表之内。 -
@caozilong 在 请问哪吒 D1 开发板拔插 HDMI 显示器, 提示sink do not support this mode 是什么问题? 换了两台显示器了. 中说:
@tigger
哈,有点像是EDID读取到的VID 不支持,每个VID应该对应一种制式,这里可能有两种情况
要么HDMI线的I2C通道异常,读取不到正确的EDID,要么是运气太差,用的两台显示器默认制式不包含在支持列表之内。这就尴尬了,一度以为不支持hdmi输出。
这样的话回去我再换两台hdmi设备试一试。
-
@tigger 你的是不是4K显示器?
-
@xiaowenge 在 请问哪吒 D1 开发板拔插 HDMI 显示器, 提示sink do not support this mode 是什么问题? 换了两台显示器了. 中说:
@tigger 你的是不是4K显示器?
不是,两个都是最大支持 1920*1080。
-
@tigger /sys/devices/virtual/hdmi/hdmi/attr是hdmi的调试节点,可以在这里看下hdmi_sink节点,正常会有类似输出
root@TinaLinux:~# cat /sys/class/hdmi/hdmi/attr/hdmi_sink Video Mode: 640x480P 720x480P 720x480P 1080I60 480I 480I 1080P60 576P 576P 720P50 1080I50 576I 576I 1080P50 720P60 Only Support YUV420: Also Support YUV420: Pixel Format: RGB YUV444 YUV422 Deep Color: Basic Audio Support: YES Audio Code: LPCM HDCP Tpye:
-
@tigger 默认应该是MIPI输出,切到HDMI输出就好了:
cd /sys/kernel/debug/dispdbg echo disp0 > name; echo switch1 > command; echo 4 10 0 0 0x4 0x101 0 0 0 8 > param; echo 1 > start;
-
@anruliu 请问要如何修改源代码,才能让固件的默认显示是从HDMI输出呢?
现在的最新版本的源代码,应该是MIPI输出。我把dts里的screen0_output_type改成了3,我看到注释里写就3是HDMI。但是开机的时候哪吒的logo还是没有从HDMI输出,我想起这个开机LOGO可能是在uboot里就显示的,所以我把configs/nezha/uboot-board.dts文件里的screen0_output_type配置也改了,并重新编译了uboot替换到bin下,但还是不生效。
另外就是我知道了这个logo是放在device/config/chips/d1/configs/nezha/configs下的,我有没有办法在不修改图片片源的情况下,把logo拉到自动适应满hdmi屏幕呢?
-
搞定,谢谢大佬:
-
@tigger 在 请问哪吒 D1 开发板拔插 HDMI 显示器, 提示sink do not support this mode 是什么问题? 换了两台显示器了. 中说:
搞定,谢谢大佬:
怎么设置hdmi分辨率呢?还是自动检测的? -
echo 4 10 0 0 0x4 0x101 0 0 0 8 > param;
这里第二个参数是分辨率,按照.dts注释里写的:
0screenx_output_mode (used for hdmi output, 0:480i 1:576i 2:480p 3:576p 4:720p50 5:720p60 6:1080i50 7:1080i60 8:1080p24 9:1080p50 10:1080p60 )
-
证明一下我重新编译并替换了uboot
yida@AwExdroid89:~/workspace/d_tina_d1_open_v1.0$ cbin yida@AwExdroid89:~/workspace/d_tina_d1_open_v1.0/device/config/chips/d1/bin$ ll total 1432 drwxrwxr-x 2 yida yida 4096 May 28 11:04 ./ drwxrwxr-x 7 yida yida 4096 Apr 30 19:42 ../ -rw-rw-r-- 1 yida yida 65536 Jul 14 16:01 boot0_nand_sun20iw1p1.bin -rw-rw-r-- 1 yida yida 65536 Jul 14 16:01 boot0_sdcard_sun20iw1p1.bin -rw-rw-r-- 1 yida yida 49152 Jul 14 16:01 boot0_spinor_sun20iw1p1.bin -rwxrwxr-x 1 yida yida 263580 Apr 30 19:42 dsp0.bin* -rw-rw-r-- 1 yida yida 42336 Jul 14 16:01 fes1_sun20iw1p1.bin -rwxrwxr-x 1 yida yida 62008 May 28 11:04 opensbi_sun20iw1p1.bin* -rw-rw-r-- 1 yida yida 898563 Aug 3 11:40 u-boot-sun20iw1p1.bin yida@AwExdroid89:~/workspace/d_tina_d1_open_v1.0/device/config/chips/d1/bin$ ckernel yida@AwExdroid89:~/workspace/d_tina_d1_open_v1.0/lichee/linux-5.4$ muboot d1_nezha d1 d1-nezha build_boot platform:sun20iw1p1 o_option:uboot Prepare toolchain ... build for sun20iw1p1_defconfig ... CHK include/config/uboot.release CHK include/generated/timestamp_autogenerated.h CHK include/config.h CFG u-boot.cfg CHK include/generated/version_autogenerated.h CHK include/generated/generic-asm-offsets.h CHK include/generated/asm-offsets.h OBJCOPY u-boot.srec OBJCOPY u-boot-nodtb.bin ‘/home/yida/workspace/d_tina_d1_open_v1.0/device/config/chips/d1/configs/nezha/uboot-board.dts’ -> ‘/home/yida/workspace/d_tina_d1_open_v1.0/lichee/brandy-2.0/u-boot-2018/arch/riscv/dts/.board-uboot.dts’ SYM u-boot.sym DTC arch/riscv/dts/sun20iw1p1-soc-system.dtb SHIPPED dts/dt.dtb FDTGREP dts/dt-spl.dtb ./scripts/dtc/dtc -W no-unit_address_vs_reg -W no-unit_address_format -W no-simple_bus_reg -W no-pwms_property -I dtb -O dts /home/yida/workspace/d_tina_d1_open_v1.0/lichee/brandy-2.0/u-boot-2018/arch/riscv/dts/"sun20iw1p1-soc-system".dtb > u-boot-dtb.dts CAT u-boot-dtb.bin COPY u-boot.dtb COPY u-boot.bin ‘u-boot.bin’ -> ‘u-boot-sun20iw1p1.bin’ ‘u-boot-sun20iw1p1.bin’ -> ‘./../../../device/config/chips/d1/bin/u-boot-sun20iw1p1.bin’ CFGCHK u-boot.cfg muboot success! yida@AwExdroid89:~/workspace/d_tina_d1_open_v1.0/lichee/linux-5.4$ cbin yida@AwExdroid89:~/workspace/d_tina_d1_open_v1.0/device/config/chips/d1/bin$ ll total 1432 drwxrwxr-x 2 yida yida 4096 May 28 11:04 ./ drwxrwxr-x 7 yida yida 4096 Apr 30 19:42 ../ -rw-rw-r-- 1 yida yida 65536 Jul 14 16:01 boot0_nand_sun20iw1p1.bin -rw-rw-r-- 1 yida yida 65536 Jul 14 16:01 boot0_sdcard_sun20iw1p1.bin -rw-rw-r-- 1 yida yida 49152 Jul 14 16:01 boot0_spinor_sun20iw1p1.bin -rwxrwxr-x 1 yida yida 263580 Apr 30 19:42 dsp0.bin* -rw-rw-r-- 1 yida yida 42336 Jul 14 16:01 fes1_sun20iw1p1.bin -rwxrwxr-x 1 yida yida 62008 May 28 11:04 opensbi_sun20iw1p1.bin* -rw-rw-r-- 1 yida yida 898563 Aug 3 14:17 u-boot-sun20iw1p1.bin yida@AwExdroid89:~/workspace/d_tina_d1_open_v1.0/device/config/chips/d1/bin$ croot yida@AwExdroid89:~/workspace/d_tina_d1_open_v1.0$ pack --==========-- PACK_CHIP sun20iw1p1 PACK_PLATFORM tina PACK_BOARD d1-nezha PACK_KERN PACK_DEBUG uart0 PACK_SIG none PACK_SECURE none PACK_MODE normal PACK_FUNC android PACK_PROGRAMMER none PACK_TAR_IMAGE none PACK_TOPDIR /home/yida/workspace/d_tina_d1_open_v1.0 --==========-- No kernel param, parse it from d1 copying tools file copying configs file storage_type value is 5 rm /home/yida/workspace/d_tina_d1_open_v1.0/out/d1-nezha/image/sys_partition_nor.fex rm /home/yida/workspace/d_tina_d1_open_v1.0/out/d1-nezha/image/image_nor.cfg copying boot resource LZMA 4.65 : Igor Pavlov : Public domain : 2009-02-03 copying boot file make user resource for : /home/yida/workspace/d_tina_d1_open_v1.0/out/d1-nezha/image/sys_partition.fex handle partition user-res no user resource partitions APP_PART_DOWNLOAD_FILE = /home/yida/workspace/d_tina_d1_open_v1.0/out/d1-nezha/image/app.fex Need size of filesystem no data resource partitions don't build dtbo ... update_chip pack boot package GetPrivateProfileSection read to end content_count=3 LICHEE_REDUNDANT_ENV_SIZE config in BoardConfig.mk --mkenvimage create redundant env data!-- ---redundant env data size 0x20000--- packing for tina linux normal this is not a partition key gpt_head->header_crc32 = 0x5277aea2 GPT----part num 8--- gpt_entry: 128 gpt_header: 92 GPT:boot-resource: 1f8 2177 GPT:env : 2178 236f GPT:env-redund : 2370 2567 GPT:boot : 2568 761f GPT:rootfs : 7620 11597 GPT:dsp0 : 11598 11987 GPT:recovery : 11988 187c7 GPT:UDISK : 187c8 187d7 update gpt file ok update mbr file ok ==================================== show "sys_partition_for_dragon.fex" message ------------------------------------ [mbr] mbr_size : 252 Kbyte ------------------------------------ partition_name : boot-resource partition_size : 8064 downloadfile : boot-resource.fex boot-resource.fex size : 3.0M byte ------------------------------------ partition_name : env partition_size : 504 downloadfile : env.fex env.fex size : 128K byte ------------------------------------ partition_name : env-redund partition_size : 504 downloadfile : env.fex env.fex size : 128K byte ------------------------------------ partition_name : boot partition_size : 20664 downloadfile : boot.fex boot.fex -> /home/yida/workspace/d_tina_d1_open_v1.0/out/d1-nezha/boot.img boot.img size : 9.1M byte ------------------------------------ partition_name : rootfs partition_size : 40824 downloadfile : rootfs.fex rootfs.fex -> /home/yida/workspace/d_tina_d1_open_v1.0/out/d1-nezha/rootfs.img rootfs.img size : 16M byte ------------------------------------ partition_name : dsp0 partition_size : 1008 downloadfile : dsp0.fex dsp0.fex size : 258K byte ------------------------------------ partition_name : recovery partition_size : 28224 ------------------------------------ /home/yida/workspace/d_tina_d1_open_v1.0/out/host/bin/ /home/yida/workspace/d_tina_d1_open_v1.0/out/d1-nezha/image Begin Parse sys_partion.fex Add partion boot-resource.fex BOOT-RESOURCE_FEX Add partion very boot-resource.fex BOOT-RESOURCE_FEX FilePath: boot-resource.fex FileLength=2f8c00Add partion env.fex ENV_FEX000000000 Add partion very env.fex ENV_FEX000000000 FilePath: env.fex FileLength=20000Add partion env.fex ENV_FEX000000000 Add partion very env.fex ENV_FEX000000000 FilePath: env.fex FileLength=20000Add partion boot.fex BOOT_FEX00000000 Add partion very boot.fex BOOT_FEX00000000 FilePath: boot.fex FileLength=912000Add partion rootfs.fex ROOTFS_FEX000000 Add partion very rootfs.fex ROOTFS_FEX000000 FilePath: rootfs.fex FileLength=fa0000Add partion dsp0.fex DSP0_FEX00000000 Add partion very dsp0.fex DSP0_FEX00000000 FilePath: dsp0.fex FileLength=4059csys_config.fex Len: 0x4ebe config.fex Len: 0x6c00 board.fex Len: 0x400 split_xxxx.fex Len: 0x200 sys_partition.fex Len: 0xbe3 sunxi.fex Len: 0xd400 boot0_nand.fex Len: 0x10000 boot0_sdcard.fex Len: 0x10000 u-boot.fex Len: 0xdc000 u-boot-crash.fex Len: 0x25 toc1.fex Len: 0x8 toc0.fex Len: 0x8 fes1.fex Len: 0xa560 boot_package.fex Len: 0xfc000 usbtool.fex Len: 0x24e00 usbtool_crash.fex Len: 0x1ec00 aultools.fex Len: 0x28a73 aultls32.fex Len: 0x25205 cardtool.fex Len: 0x11e00 cardscript.fex Len: 0x6de sunxi_gpt.fex Len: 0x2000 sunxi_mbr.fex Len: 0x10000 dlinfo.fex Len: 0x4000 arisc.fex Len: 0xf vmlinux.fex Len: 0x8 tinaconf.fex Len: 0xcd05 boot-resource.fex Len: 0x2f8c00 Vboot-resource.fex Len: 0x4 env.fex Len: 0x20000 Venv.fex Len: 0x4 env.fex Len: 0x20000 Venv.fex Len: 0x4 boot.fex Len: 0x912000 Vboot.fex Len: 0x4 rootfs.fex Len: 0xfa0000 Vrootfs.fex Len: 0x4 dsp0.fex Len: 0x4059c Vdsp0.fex Len: 0x4 BuildImg 0 Dragon execute image.cfg SUCCESS ! ----------image is for nand/emmc---------- ----------image is at---------- /home/yida/workspace/d_tina_d1_open_v1.0/out/d1-nezha/tina_d1-nezha_uart0.img
-
为了不影响楼主的时间线,重开一贴提问:
D1哪吒开发板默认输出改成HDMI -
@tigger 请问你是怎么解决这个问题的,我也碰到同样的问题啦sink do not support this mode,能参考一下你的dts吗?
-
后来改成启动默认就是HDMI:
【固件发布】D1哪吒HDMI测试固件20210804(开机HDMI就有小企鹅启动logo)
https://bbs.aw-ol.com/topic/297/share/2
Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号