A40i(工业级) & T3(车规级) 开机自启与屏幕配置 小窍门

本章主要介绍 飞凌OKA40i-C / OKT3-C 开发板 开机自启动应用与LCD屏幕配置的方法,其它平台请参考使用。

两款板卡均采用国产芯片设计研发,OKT3-C开发板基于全志四核车载导航处理器设计开发,OKA40i-C开发板基于全志 四核工业级处理器设计开发


一、开机自启动方法


开机自启动脚本为/autorun.sh,可以将开机需要进行设置的命令可以在此脚本中加入。假设开机时自动执行/root/loop.sh,在/autorun.sh中加入:

source /root/loop.sh &

关闭开机启动qt程序。

修改/etc/init.d/rcS 注释掉runqt。

 


二、 LCD配置简介


针对A40i配置

RGB24 1024x600屏幕配置文件:

tools/pack/chips/sun8iw11p1/configs/OKA40i_C/sys_config1024x600.fex

LVDS 1280x800屏幕配置文件:

tools/pack/chips/sun8iw11p1/configs/OKA40i_C/sys_config1280x800.fex

MIPI1024x600屏幕配置文件:

tools/pack/chips/sun8iw11p1/configs/OKA40i_C/sys_config1024x600mipi.fex

RGB24 800x480屏幕配置文件:

tools/pack/chips/sun8iw11p1/configs/OKA40i_C/sys_config800x480.fex

hdmi独立显示 屏幕参数:

tools/pack/chips/sun8iw11p1/configs/OKA40i_C/sys_config1080p.fex

Ø 针对T3配置

RGB24 1024x600屏幕配置文件:

tools/pack/chips/sun8iw11p1/configs/ OKT3_C/sys_config1024x600.fex

LVDS 1280x800屏幕配置文件:

tools/pack/chips/sun8iw11p1/configs/ OKT3_C/sys_config1280x800.fex

MIPI1024x600屏幕配置文件:

tools/pack/chips/sun8iw11p1/configs/ OKT3_C/sys_config1024x600mipi.fex

RGB24 800x480屏幕配置文件:

tools/pack/chips/sun8iw11p1/configs/ OKT3_C/sys_config800x480.fex

hdmi独立显示 屏幕参数:

tools/pack/chips/sun8iw11p1/configs/ OKT3_C/sys_config1080p.fex

Ø 屏幕配置lcd0小节

[lcd0]

lcd_used            = 1

 

lcd_driver_name     = "default_lcd"

lcd_backlight       = 255

lcd_if              = 0

lcd_x               = 1024

lcd_y               = 600

lcd_width           =

lcd_height          =

lcd_dclk_freq       = 51

lcd_pwm_used        = 1

lcd_pwm_ch          = 0

lcd_pwm_freq        = 50000

lcd_pwm_pol         = 0

lcd_pwm_max_limit   = 255

lcd_hbp             = 320

lcd_ht              = 1505

lcd_hspw            = 1

lcd_vbp             = 35

lcd_vt              = 648

lcd_vspw            = 1

lcd_lvds_if         = 0

lcd_lvds_colordepth = 0

lcd_lvds_mode       = 0

lcd_frm             = 0

lcd_hv_clk_phase    = 0

lcd_hv_sync_polarity= 0

lcd_gamma_en        = 0

lcd_bright_curve_en = 0

lcd_cmap_en         = 0

 

deu_mode            = 0

lcdgamma4iep        = 22

smart_color         = 90