Navigation

    全志在线开发者论坛

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • 在线文档
    • 社区主页

    请问大家 D1 的 TV 输出可以用吗?

    MR Series
    2
    4
    2155
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      memory LV 7 last edited by whycan

      tina 1.0

      执行

      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;

      出错:

      root@TinaLinux:/sys/kernel/debug/dispdbg#
      root@TinaLinux:/sys/kernel/debug/dispdbg#
      root@TinaLinux:/sys/kernel/debug/dispdbg# cd /sys/kernel/debug/dispdbg
      root@TinaLinux:/sys/kernel/debug/dispdbg# echo disp0 > name; echo switch1 > comm
      and; echo 4 10 0 0 0x4 0x101 0 0 0 8 > param; echo 1 > start;
      [ 1262.544174] disp:0 type:4 mode:10 format:0 bits:0 eotf:4 cs:257 ouputmode:0 range:0 scan:0 aspect_ratio:8
      [ 1262.655370] ------------[ cut here ]------------
      [ 1262.660521] tcon-tv already disabled
      [ 1262.664547] WARNING: CPU: 0 PID: 125 at drivers/clk/clk.c:960 clk_core_disable+0x80/0x84
      [ 1262.673566] Modules linked in: xt_time xt_multiport xt_mark xt_mac xt_limit xt_comment xt_TCPMSS xt_LOG xr829 iptable_filter ipt_REJECT uvcvideo videobuf2_vmalloc videobuf2_memops fuse
      [ 1262.691919] CPU: 0 PID: 125 Comm: ash Tainted: G        W         5.4.61 #376
      [ 1262.699872] sepc: ffffffe0002ad182 ra : ffffffe0002ad182 sp : ffffffe03bdebbf0
      [ 1262.707921]  gp : ffffffe0008d332c tp : ffffffe03d86eb80 t0 : ffffffe0008e1ad0
      [ 1262.715970]  t1 : 0000000000000064 t2 : 0000000000000000 s0 : ffffffe03bdebc10
      [ 1262.724019]  s1 : ffffffe03d805900 a0 : 0000000000000018 a1 : 000000000000000a
      [ 1262.732068]  a2 : 000000000000010c a3 : ffffffe000840ea0 a4 : ffffffe000840e08
      [ 1262.740118]  a5 : 0000000000000001 a6 : 00000000000001e2 a7 : 0000000000000000
      [ 1262.748167]  s2 : ffffffe03d805900 s3 : ffffffe03ceba800 s4 : ffffffe03d9ce800
      [ 1262.756214]  s5 : ffffffe03ce8ad00 s6 : ffffffe03bdebe98 s7 : 0000000000000007
      [ 1262.764262]  s8 : 0000000000000000 s9 : 0000000029a03d50 s10: ffffffffffffffff
      [ 1262.772311]  s11: 000000000000002d t3 : ffffffe0008dcb00 t4 : 0000000000001df8
      [ 1262.780359]  t5 : 0000000000001df8 t6 : ffffffe0008dd07f
      [ 1262.786276] sstatus: 0000000200000100 sbadaddr: 0000000000000000 scause: 0000000000000003
      [ 1262.795389] ---[ end trace 999517c0954d9de5 ]---
      [ 1262.800969] ------------[ cut here ]------------
      [ 1262.806237] tcon-tv already unprepared
      [ 1262.810578] WARNING: CPU: 0 PID: 125 at drivers/clk/clk.c:819 clk_core_unprepare+0xb4/0xce
      [ 1262.820017] Modules linked in: xt_time xt_multiport xt_mark xt_mac xt_limit xt_comment xt_TCPMSS xt_LOG xr829 iptable_filter ipt_REJECT uvcvideo videobuf2_vmalloc videobuf2_memops fuse
      [ 1262.838654] CPU: 0 PID: 125 Comm: ash Tainted: G        W         5.4.61 #376
      [ 1262.846722] sepc: ffffffe0002ad0e8 ra : ffffffe0002ad0e8 sp : ffffffe03bdebc00
      [ 1262.855046]  gp : ffffffe0008d332c tp : ffffffe03d86eb80 t0 : 0000000000000000
      [ 1262.863199]  t1 : 0000000001806000 t2 : 0000000000000000 s0 : ffffffe03bdebc20
      [ 1262.871444]  s1 : ffffffe03d805900 a0 : 000000000000001a a1 : ffffffe03d86eb80
      [ 1262.879616]  a2 : 0000000000000890 a3 : ffffffe00083ff40 a4 : ffffffe000840e08
      [ 1262.887932]  a5 : 0000000000000000 a6 : 00000000000100ce a7 : 0000000000000065
      [ 1262.896096]  s2 : ffffffe03ceba400 s3 : ffffffe03ceba800 s4 : ffffffe03d9ce800
      [ 1262.904411]  s5 : ffffffe03ce8ad00 s6 : ffffffe03bdebe98 s7 : 0000000000000007
      [ 1262.912512]  s8 : 0000000000000000 s9 : 0000000029a03d50 s10: ffffffffffffffff
      [ 1262.920818]  s11: 000000000000002d t3 : 0000003fd042dcc0 t4 : 0000000000000000
      [ 1262.929098]  t5 : 0000000000000008 t6 : 0000000000040000
      [ 1262.935306] sstatus: 0000000200000120 sbadaddr: 0000000000000000 scause: 0000000000000003
      [ 1262.944520] ---[ end trace 999517c0954d9de6 ]---
      [ 1262.949873] ------------[ cut here ]------------
      [ 1262.955024] bus-tcon-tv already disabled
      [ 1262.959436] WARNING: CPU: 0 PID: 125 at drivers/clk/clk.c:960 clk_core_disable+0x80/0x84
      [ 1262.968455] Modules linked in: xt_time xt_multiport xt_mark xt_mac xt_limit xt_comment xt_TCPMSS xt_LOG xr829 iptable_filter ipt_REJECT uvcvideo videobuf2_vmalloc videobuf2_memops fuse
      [ 1262.986810] CPU: 0 PID: 125 Comm: ash Tainted: G        W         5.4.61 #376
      [ 1262.994762] sepc: ffffffe0002ad182 ra : ffffffe0002ad182 sp : ffffffe03bdebbf0
      [ 1263.002811]  gp : ffffffe0008d332c tp : ffffffe03d86eb80 t0 : ffffffe0008e2720
      [ 1263.010860]  t1 : 0000000000000064 t2 : 0000000000000000 s0 : ffffffe03bdebc10
      [ 1263.018910]  s1 : ffffffe03d805b00 a0 : 000000000000001c a1 : 000000000000000a
      [ 1263.026958]  a2 : 0000000000000139 a3 : ffffffe000840ea0 a4 : ffffffe000840e08
      [ 1263.035004]  a5 : 0000000000000001 a6 : 0000000000000206 a7 : 0000000000000000
      [ 1263.043052]  s2 : ffffffe03d805b00 s3 : ffffffe03ceba800 s4 : ffffffe03d9ce800
      [ 1263.051101]  s5 : ffffffe03ce8ae00 s6 : ffffffe03bdebe98 s7 : 0000000000000007
      [ 1263.059148]  s8 : 0000000000000000 s9 : 0000000029a03d50 s10: ffffffffffffffff
      [ 1263.067197]  s11: 000000000000002d t3 : ffffffe0008dcb00 t4 : 00000000000011b0
      [ 1263.075245]  t5 : 00000000000011b0 t6 : ffffffe0008dd083
      [ 1263.081162] sstatus: 0000000200000100 sbadaddr: 0000000000000000 scause: 0000000000000003
      [ 1263.090277] ---[ end trace 999517c0954d9de7 ]---
      [ 1263.099349] ------------[ cut here ]------------
      [ 1263.104618] bus-tcon-tv already unprepared
      [ 1263.109450] WARNING: CPU: 0 PID: 125 at drivers/clk/clk.c:819 clk_core_unprepare+0xb4/0xce
      [ 1263.118793] Modules linked in: xt_time xt_multiport xt_mark xt_mac xt_limit xt_comment xt_TCPMSS xt_LOG xr829 iptable_filter ipt_REJECT uvcvideo videobuf2_vmalloc videobuf2_memops fuse
      [ 1263.137506] CPU: 0 PID: 125 Comm: ash Tainted: G        W         5.4.61 #376
      [ 1263.145566] sepc: ffffffe0002ad0e8 ra : ffffffe0002ad0e8 sp : ffffffe03bdebc00
      [ 1263.162959]  gp : ffffffe0008d332c tp : ffffffe03d86eb80 t0 : 0000000000000000
      [ 1263.181267]  t1 : 0000000001806000 t2 : 0000000000000000 s0 : ffffffe03bdebc20
      [ 1263.191410]  s1 : ffffffe03d805b00 a0 : 000000000000001e a1 : ffffffe03d86eb80
      [ 1263.211686]  a2 : 0000000000000890 a3 : ffffffe00083ff40 a4 : ffffffe000840e08
      [ 1263.223073]  a5 : 0000000000000000 a6 : 00000000000100ce a7 : 0000000000000065
      [ 1263.231128]  s2 : ffffffe03ceba400 s3 : ffffffe03ceba800 s4 : ffffffe03d9ce800
      [ 1263.257502]  s5 : ffffffe03ce8ae00 s6 : ffffffe03bdebe98 s7 : 0000000000000007
      [ 1263.265774]  s8 : 0000000000000000 s9 : 0000000029a03d50 s10: ffffffffffffffff
      [ 1263.274004]  s11: 000000000000002d t3 : 0000003fd042dcc0 t4 : 0000000000000000
      [ 1263.282199]  t5 : 0000000000000008 t6 : 0000000000040000
      [ 1263.288299] sstatus: 0000000200000120 sbadaddr: 0000000000000000 scause: 0000000000000003
      [ 1263.297616] ---[ end trace 999517c0954d9de8 ]---
      [ 1263.322998] [HDMI receive params]: tv mode: 0xa format:0x0 data bits:0x0 eotf:0x4 cs:0x101 dvi_hdmi:2 range:0 scan:0 aspect_ratio:8
      [ 1264.402987] disp_al_manager_apply ouput_type:0
      [ 1264.408371] disp_al_hdmi_cfg
      [ 1264.523781] HDMI Audio Enable Successfully
      [ 1264.528533] [DISP] disp_device_attached_and_enable,line:233:
      [ 1264.528539] attached ok, mgr0<-->dev0
      [ 1264.539215] [DISP] disp_device_attached_and_enable,line:236:
      [ 1264.539226] type:4,mode:10,fmt:rgb,bits:8bits,eotf:4,cs:257 dvi_hdmi:2, range:0 scan:0 ratio:8
      root@TinaLinux:/sys/kernel/debug/dispdbg#
      
      1 Reply Last reply Reply Quote Share 1
      • M
        memory LV 7 last edited by

        修改 device/config/chips/d1-h/configs/nezha/linux-5.4/config-5.4

        勾选:

        CONFIG_TV_DISP2_SUNXI=y

        发现编译都过不了:

        make[4]: Entering directory '/opt/D1/tina_d1_open_v2/lichee/linux-5.4'
          INSTALL /opt/D1/tina_d1_open_v2/out/d1-h-nezha/compile_dir/target/linux-d1-h-nezha/linux-5.4.61/user_headers/include
        make[4]: Leaving directory '/opt/D1/tina_d1_open_v2/lichee/linux-5.4'
        . /opt/D1/tina_d1_open_v2/build/shell.sh; grep '=[ym]' /opt/D1/tina_d1_open_v2/out/d1-h-nezha/compile_dir/target/linux-d1-h-nezha/linux-5.4.61/.config.set | LC_ALL=C sort | md5s > /opt/D1/tina_d1_open_v2/out/d1-h-nezha/compile_dir/target/linux-d1-h-nezha/linux-5.4.61/.vermagic
        touch /opt/D1/tina_d1_open_v2/out/d1-h-nezha/compile_dir/target/linux-d1-h-nezha/linux-5.4.61/.configured
        rm -f /opt/D1/tina_d1_open_v2/out/d1-h-nezha/compile_dir/target/linux-d1-h-nezha/symtab.h
        touch /opt/D1/tina_d1_open_v2/out/d1-h-nezha/compile_dir/target/linux-d1-h-nezha/symtab.h
        make -C /opt/D1/tina_d1_open_v2/out/d1-h-nezha/compile_dir/target/linux-d1-h-nezha/linux-5.4.61 HOSTCFLAGS="-O2 -I/opt/D1/tina_d1_open_v2/out/host/include -I/opt/D1/tina_d1_open_v2/out/host/usr/include  -Wall -Wmissing-prototypes -Wstrict-prototypes" CROSS_COMPILE="riscv64-unknown-linux-gnu-" ARCH="riscv" KBUILD_HAVE_NLS=no KBUILD_BUILD_USER="" KBUILD_BUILD_HOST="" CONFIG_SHELL="bash" V=''  EXTRA_LDSFLAGS="-I/opt/D1/tina_d1_open_v2/out/d1-h-nezha/compile_dir/target/linux-d1-h-nezha -include symtab.h" CC="riscv64-unknown-linux-gnu-gcc" vmlinux
        make[4]: Entering directory '/opt/D1/tina_d1_open_v2/lichee/linux-5.4'
        scripts/Makefile.asm-generic:25: redundant generic-y found in arch/riscv/include/asm/Kbuild: device.h
          CALL    scripts/checksyscalls.sh
          CALL    scripts/atomic/check-atomics.sh
          CHK     include/generated/compile.h
          CC      drivers/video/fbdev/sunxi/disp2/tv/drv_tv.o
        In file included from drivers/video/fbdev/sunxi/disp2/tv/drv_tv.c:15:
        drivers/video/fbdev/sunxi/disp2/tv/drv_tv.h:15:10: fatal error: asm/memory.h: No such file or directory
         #include <asm/memory.h>
                  ^~~~~~~~~~~~~~
        compilation terminated.
        scripts/Makefile.build:286: recipe for target 'drivers/video/fbdev/sunxi/disp2/tv/drv_tv.o' failed
        make[9]: *** [drivers/video/fbdev/sunxi/disp2/tv/drv_tv.o] Error 1
        scripts/Makefile.build:556: recipe for target 'drivers/video/fbdev/sunxi/disp2/tv' failed
        make[8]: *** [drivers/video/fbdev/sunxi/disp2/tv] Error 2
        scripts/Makefile.build:556: recipe for target 'drivers/video/fbdev/sunxi' failed
        make[7]: *** [drivers/video/fbdev/sunxi] Error 2
        scripts/Makefile.build:556: recipe for target 'drivers/video/fbdev' failed
        make[6]: *** [drivers/video/fbdev] Error 2
        scripts/Makefile.build:556: recipe for target 'drivers/video' failed
        make[5]: *** [drivers/video] Error 2
        Makefile:1810: recipe for target 'drivers' failed
        make[4]: *** [drivers] Error 2
        make[4]: Leaving directory '/opt/D1/tina_d1_open_v2/lichee/linux-5.4'
        Makefile:28: recipe for target '/opt/D1/tina_d1_open_v2/out/d1-h-nezha/compile_dir/target/linux-d1-h-nezha/symtab.h' failed
        make[3]: *** [/opt/D1/tina_d1_open_v2/out/d1-h-nezha/compile_dir/target/linux-d1-h-nezha/symtab.h] Error 2
        make[3]: Leaving directory '/opt/D1/tina_d1_open_v2/target/allwinner/d1-h-nezha'
        Makefile:13: recipe for target 'install' failed
        make[2]: *** [install] Error 2
        make[2]: Leaving directory '/opt/D1/tina_d1_open_v2/target/allwinner'
        target/Makefile:21: recipe for target 'target/allwinner/install' failed
        make[1]: *** [target/allwinner/install] Error 2
        make[1]: Leaving directory '/opt/D1/tina_d1_open_v2'
        /opt/D1/tina_d1_open_v2/build/toplevel.mk:304: recipe for target 'target/allwinner/install' failed
        make: *** [target/allwinner/install] Error 2
        
        #### make failed to build some targets (47 seconds) ####
        
        memory@ubuntu:/opt/D1/tina_d1_open_v2$
        

        TV OUT 支持应该是不行的。

        1 Reply Last reply Reply Quote Share 1
        • M
          memory LV 7 last edited by

          tina 1.0
          tina 1.0.1
          tina 2.0

          都是这种情况,围观群众先散了吧。

          1 Reply Last reply Reply Quote Share 0
          • YuzukiTsuru
            柚木 鉉 LV 9 last edited by

            测试不行,等大佬

            1 Reply Last reply Reply Quote Share 0
            • 1 / 1
            • First post
              Last post

            Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号

            行为准则 | 用户协议 | 隐私权政策