Difference between revisions of "CVBS"

From FriendlyELEC WiKi
Jump to: navigation, search
(Created page with "===H3主线内核配置CVBS输出=== 修改 /lichee/tools/pack/chips/sun8iw7p1/configs/nanopi-h3/board/sys_config_nanopi-duo2.fex 里的配置,可以参考文档 /lichee/doc...")
 
(updated by API)
 
(12 intermediate revisions by 3 users not shown)
Line 1: Line 1:
===H3主线内核配置CVBS输出===
+
[[CVBS/zh|查看中文]]
修改 /lichee/tools/pack/chips/sun8iw7p1/configs/nanopi-h3/board/sys_config_nanopi-duo2.fex 里的配置,可以参考文档 /lichee/doc/<H3 sys_config.fex使用配置说明V1.1.pdf>
+
 
 +
==H3==
 +
===Linux-3.4===
 +
FriendlyElec's image for H3 Linux-3.4 works with the NanoPi M1 Plus / NanoPi M1 / NanoPi Duo2 and it supports CVBS output. This image supports either HDMI or CVBS output. For the NanoPi M1 Plus/M1 by default HDMI is enabled and CVBS is disabled. For the NanoPi Duo2 by default CVBS is enabled and HDMI is disabled.
 +
 
 +
Refer to the following steps to manually enable CVBS for The NanoPi M1 Plus / M1.
 +
 
 +
====Reference====
 +
<syntaxhighlight lang="bash">
 +
$ git clone https://github.com/friendlyarm/h3_lichee.git lichee --depth 1
 +
$ ls lichee/doc/H3 sys_config.fex使用配置说明V1.1.pdf。
 +
</syntaxhighlight>
 +
 
 +
====Edit sys_config====
 +
Let's take the NanoPi M1 Plus as an example to show how to edit the sys_config file. This applies to the NanoPi M1 too.<br>
 +
The sys_config file is in the directory shown as follows:
 +
<syntaxhighlight lang="bash">
 +
$ ls lichee/tools/pack/chips/sun8iw7p1/configs/nanopi-h3/board/sys_config_nanopi-m1-plus.fex
 +
</syntaxhighlight>
 +
 
 +
Disable HDMI and enable CVBS:
 +
<syntaxhighlight lang="bash">
 +
[disp_init]
 +
disp_init_enable = 1
 +
disp_mode = 1
 +
screen0_output_type = 3
 +
screen0_output_mode = 5
 +
screen1_output_type = 2
 +
screen1_output_mode = 14
 +
fb0_format = 0
 +
fb0_width = 0
 +
fb0_height = 0
 +
fb1_format = 0
 +
fb1_width = 0
 +
fb1_height = 0
 +
 
 +
[hdmi_para]
 +
hdmi_used = 0
 +
hdmi_power = "vcc-hdmi-18"
 +
 
 +
[tv_para]
 +
tv_used = 1
 +
tv_dac_used = 1
 +
tv_dac_src0 = 0
 +
</syntaxhighlight>
 +
 
 +
====Compile and Update====
 +
Compile lichee:
 +
<syntaxhighlight lang="bash">
 +
$ cd lichee/fa_tools
 +
$ ./build.sh -b nanopi-m1-plus -p linux -t all
 +
</syntaxhighlight>
 +
 
 +
Update the image in an SD card with an existing image:
 +
<syntaxhighlight lang="bash">
 +
$ cd lichee/fa_tools
 +
$ ./fuse.sh -d /dev/sdX -p linux -t u-boot
 +
</syntaxhighlight>
 +
Note: you need to change "/dev/sdX" to the actual device name recognized in your system.

Latest revision as of 09:21, 11 January 2019

查看中文

1 H3

1.1 Linux-3.4

FriendlyElec's image for H3 Linux-3.4 works with the NanoPi M1 Plus / NanoPi M1 / NanoPi Duo2 and it supports CVBS output. This image supports either HDMI or CVBS output. For the NanoPi M1 Plus/M1 by default HDMI is enabled and CVBS is disabled. For the NanoPi Duo2 by default CVBS is enabled and HDMI is disabled.

Refer to the following steps to manually enable CVBS for The NanoPi M1 Plus / M1.

1.1.1 Reference

$ git clone https://github.com/friendlyarm/h3_lichee.git lichee --depth 1
$ ls lichee/doc/H3 sys_config.fex使用配置说明V1.1.pdf。

1.1.2 Edit sys_config

Let's take the NanoPi M1 Plus as an example to show how to edit the sys_config file. This applies to the NanoPi M1 too.
The sys_config file is in the directory shown as follows:

$ ls lichee/tools/pack/chips/sun8iw7p1/configs/nanopi-h3/board/sys_config_nanopi-m1-plus.fex

Disable HDMI and enable CVBS:

[disp_init]
disp_init_enable = 1
disp_mode = 1
screen0_output_type = 3
screen0_output_mode = 5
screen1_output_type = 2
screen1_output_mode = 14
fb0_format = 0
fb0_width = 0
fb0_height = 0
fb1_format = 0
fb1_width = 0
fb1_height = 0
 
[hdmi_para]
hdmi_used = 0
hdmi_power = "vcc-hdmi-18"
 
[tv_para]
tv_used = 1
tv_dac_used = 1
tv_dac_src0 = 0

1.1.3 Compile and Update

Compile lichee:

$ cd lichee/fa_tools
$ ./build.sh -b nanopi-m1-plus -p linux -t all

Update the image in an SD card with an existing image:

$ cd lichee/fa_tools
$ ./fuse.sh -d /dev/sdX -p linux -t u-boot

Note: you need to change "/dev/sdX" to the actual device name recognized in your system.