How to config Bananapi pro AV output as default video signal ?

来源:互联网 发布:java string replace 编辑:程序博客网 时间:2024/06/03 19:01

How to config Bananapi pro AV output as default video signal ?

To get the tools, go to the git repository at
https://github.com/linux-sunxi/sunxi-tools/

and download the ZIP file 

unzip the file on Ubuntu desktop
the folder call is:
"sunxi-tools-master"


Open terminal and type:

$ sudo apt-get install libusb-1.0-0-dev


then go to directory:

$ cd Desktop)
$ cd sunxi-tools-master


copy the file script.bin from SD of Banana Pi,
and paste on "sunxi-tools-master" (folder)

on terminal type:

$ make bin2fex
$ ./bin2fex script.bin >./script.fex


The script.fex file has created on sunxi-tools-master
then open with a text editor

find this line:
[disp_init]


there paste & replace  (http://wiki.lemaker.org/index.ph ... n#Porting_AV_driver):

[disp_init]
disp_init_enable = 1
disp_mode = 0
screen0_output_type = 2
screen0_output_mode = 11
screen1_output_type = 0
screen1_output_mode = 4
fb0_width = 1024
fb0_height = 768
fb0_framebuffer_num = 2
fb0_format = 10
fb0_pixel_sequence = 0
fb0_scaler_mode_enable = 0
fb1_width = 1024
fb1_height = 768
fb1_framebuffer_num = 2
fb1_format = 10
fb1_pixel_sequence = 0
fb1_scaler_mode_enable = 0
lcd0_backlight = 197
lcd1_backlight = 197
lcd0_bright = 50
lcd0_contrast = 50
lcd0_saturation = 57
lcd0_hue = 50
lcd1_bright = 50
lcd1_contrast = 50
lcd1_saturation = 57
lcd1_hue = 50
 



go to terminal again type:

$ make fex2bin

$ ./fex2bin script.fex >./script.bin



copy the file script.bin from sunxi-tools-master (folder)
go to SD card paste & replace the script.bin file

That's all.
0 0
原创粉丝点击