back m64 lichee configuration and create new a new one from p4

Signed-off-by: August <mingxin.android@gmail.com>
This commit is contained in:
August 2018-07-25 21:17:36 +08:00
parent 709ee13d63
commit a525d3c506
10 changed files with 4609 additions and 791 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 MiB

File diff suppressed because it is too large Load diff

View file

@ -1,18 +1,18 @@
;---------------------------------------------------------------------------------------------------------
;---------------------------------------------------------------------------------------------------
; 说明: 脚本中的字符串区分大小写,用户可以修改"="后面的数值,但是不要修改前面的字符串
;---------------------------------------------------------------------------------------------------------
;---------------------------------------------------------------------------------------------------
;--------------------------------------------------------------------------------------------------
;---------------------------------------------------------------------------------------------------
; 固件下载参数配置
;--------------------------------------------------------------------------------------------------
;****************************************************
;---------------------------------------------------------------------------------------------------
;***************************************************************************************************
; mbr的大小, 以Kbyte为单位
;****************************************************
;***************************************************************************************************
[mbr]
size = 16384
;********************************************************************************************************
;***************************************************************************************************
; 分区配置
;
;
@ -23,14 +23,14 @@ size = 16384
; downloadfile = "123.fex" ; //下载文件的路径和名称可以使用相对路径相对是指相对于image.cfg文件所在分区。也可以使用绝对路径
; keydata = 1 ; //私有数据分区,重新量产数据将不丢失
; encrypt = 1 ; //采用加密方式烧录,将提供数据加密,但损失烧录速度
; = ? ; //私有用法
; user_type = ? ; //私有用法
; verify = 1 ; //要求量产完成后校验是否正确
;
; 注1、name唯一, 不允许同名
; 2、name最大12个字符
; 3、size = 0, 将创建一个无大小的空分区
; 4、为了安全和效率考虑分区大小最好保证为16M字节的整数倍
;********************************************************************************************************
;***************************************************************************************************
[partition_start]
;------------------------------>mmcblk0p2/nanda
@ -50,7 +50,7 @@ size = 16384
;------------------------------>mmcblk0p6/nandc
[partition]
name = boot
size = 32768
size = 65536
downloadfile = "boot.fex"
user_type = 0x8000
@ -61,60 +61,74 @@ size = 16384
downloadfile = "system.fex"
user_type = 0x8000
;------------------------------>mmcblk0p8/nande
;[partition]
; name = data
; size = 2097152
; user_type = 0x8000
;
;------------------------------>mmcblk0p9/nandf
;------------------------------>
[partition]
name = vendor
size = 614400
downloadfile = "vendor.fex"
user_type = 0x8000
;------------------------------>
[partition]
name = misc
size = 32768
user_type = 0x8000
;------------------------------>mmcblk0p10/nandg
;------------------------------>
[partition]
name = recovery
size = 65536
downloadfile = "recovery.fex"
user_type = 0x8000
;------------------------------>mmcblk0p11/nandh
;------------------------------>
[partition]
name = cache
size = 1572864
size = 1048576
user_type = 0x8000
;------------------------------nandi, store encryptable
;------------------------------>store encryptable
[partition]
name = metadata
size = 32768
user_type = 0x8000
;------------------------------>nandj, data image private
name = metadata
size = 32768
user_type = 0x8000
;------------------------------>data image private
[partition]
name = private
size = 32768
ro = 0
user_type = 0x8000
;------------------------------>nandk, save kernel panic log
;------------------------------>frp
[partition]
name = klog
size = 32768
name = frp
size = 1024
ro = 0
user_type = 0x8000
keydata = 0x8000
;------------------------------>nandl, save android log
;------------------------------>empty
[partition]
name = alog
size = 131072
name = empty
size = 31744
ro = 0
user_type = 0x8000
;------------------------------>nandm, UDISK
;------------------------------>device tree overlay
[partition]
name = dto
size = 32768
user_type = 0x8000
;------------------------------>media_data
[partition]
name = media_data
size = 32768
user_type = 0x8000
;------------------------------>UDISK
[partition]
name = UDISK
downloadfile = "diskfs.fex"
;verify = 0
user_type = 0x8100

View file

@ -42,9 +42,9 @@ activated = 1
program = "memtester.sh"
category = 0
run_type = 1
dram_size = 1024
dram_size = 1024
test_size = 8
platform = "a64"
platform = "sun50iw1p1"
[rtc]
display_name= "时钟"
@ -54,10 +54,8 @@ category = 0
run_type = 1
;-------------------------------------------------------------------------------
; module_path
; The full path of wifi module file.
; module_args
; The arguments of wifi module.
; module_path: The full path of wifi module file
; module_args: The arguments of wifi module (brcm module need this arg)
;-------------------------------------------------------------------------------
[wifi]
display_name= "网络"
@ -66,8 +64,8 @@ program = "wifitester.sh"
category = 0
run_type = 1
module_count= 1
module_path = "/system/vendor/modules/bcmdhd.ko"
module_args = "nvram_path=/system/vendor/modules/nvram_ap6335.txt"
module_path = "/system/vendor/modules/8723cs.ko"
module_args =
;-------------------------------------------------------------------------------
; module_path
@ -79,7 +77,7 @@ module_args = "nvram_path=/system/vendor/modules/nvram_ap6335.txt"
display_name= "重力感应器"
activated = 1
program = "gsensortester.sh"
category = 0f
category = 0
run_type = 1
module_count= 1
module1_path= "/system/vendor/modules/bma250.ko"
@ -93,7 +91,7 @@ device_name = "bma250"
;-------------------------------------------------------------------------------
[gyro]
display_name= "陀螺仪"
activated = 1
activated = 0
program = "gyrotester.sh"
category = 0
run_type = 1
@ -109,12 +107,12 @@ device_name = "lsm9ds0_gyr"
;-------------------------------------------------------------------------------
[compass]
display_name= "指南针"
activated = 1
activated = 0
program = "compasstester.sh"
category = 0
run_type = 1
module_count= 1
module1_path=
module1_path=
device_name = "lsm9ds0_mag"
;-------------------------------------------------------------------------------
@ -123,7 +121,7 @@ device_name = "lsm9ds0_mag"
;-------------------------------------------------------------------------------
[nand]
display_name= "闪存"
activated = 1
activated = 0
program = "nandtester.sh"
category = 0
run_type = 1
@ -132,12 +130,20 @@ test_size = 16
[emmc]
display_name= "emmc闪存"
activated = 0
activated = 1
program = "emmctester.sh"
category = 0
run_type = 1
test_size = 128
;-------------------------------------------------------------------------------
; dst_bt: The destination bt device to search when run test (not essential)
; module_path: The full path of bt module file (brcm module need this arg)
; device_node: The AP's hardware communication port to bt module
; baud_rate: The baud_rate of bt module when run test (not essential)
; bt_vnd: The bt module vendor, support broadcom/realtek
; rtk_bt_chip: The bt chip name (rtk module need this arg)
;-------------------------------------------------------------------------------
[bluetooth]
display_name= "蓝牙"
activated = 1
@ -146,17 +152,18 @@ test_time = 3
category = 0
dst_bt = ":"
run_type = 1
module_path = "/system/vendor/modules/bcm4339a0.hcd"
module_path =
device_node = "/dev/ttyS1"
baud_rate = 1500000
baud_rate =
bt_vnd = "realtek"
rtk_bt_chip = "rtl8723cs_xx"
[mmc]
display_name= "SD"
display_name= "SDCard"
activated = 1
program = "mmctester.sh"
category = 1
run_type = 1
nr = 1
[udisk]
display_name= "U盘"
@ -191,10 +198,10 @@ run_type = 1
; samplerate
; The samplerate of sound file.
; support_mode
; 0 : 480I
; 1 : 576I
; 2 : 480P
; 3 : 576P
; 0 : 480I
; 1 : 576I
; 2 : 480P
; 3 : 576P
; 4 : 720P 50HZ
; 5 : 720P 60HZ
; 6 : 1080I 50HZ
@ -213,7 +220,7 @@ sound_file = "/dragonboard/data/test48000.pcm"
samplerate = 48000
support_mode= 2
module_count= 1
module1_path= "/system/vendor/modules/hdcp.ko"
module1_path= "/system/vendor/modules/hdmi.ko"
;-------------------------------------------------------------------------------
; module_path
; The full path of key module file.
@ -224,6 +231,7 @@ activated = 1
program = "keytester"
category = 1
run_type = 1
module_path = "/system/vendor/modules/sunxi-keyboard.ko"
;-------------------------------------------------------------------------------
; module_path
@ -270,9 +278,9 @@ samplerate = 48000
mic1_used = 1
mic2_used = 0
mic1_gain = 1
mic2_gain = 1
mic1_threshold =16383
mic2_threshold =16383
mic2_gain = 1
mic1_threshold =8191
mic2_threshold =8191
;-------------------------------------------------------------------------------
; type
; 0: rtp
@ -283,8 +291,8 @@ mic2_threshold =16383
[tp]
display_name= "触摸"
type = 1
module_path = "/system/vendor/modules/gt82x.ko"
device_name = "gt82x"
module_path = "/system/vendor/modules/ft5x16_ts.ko"
device_name = "ft5x_ts"
;-------------------------------------------------------------------------------
; module_count
@ -295,17 +303,17 @@ device_name = "gt82x"
[camera]
activated = 1
module_count= 8
module1_path= "/system/vendor/modules/videobuf-core.ko"
module2_path= "/system/vendor/modules/videobuf-dma-contig.ko"
module3_path= "/system/vendor/modules/cci.ko"
module4_path= "/system/vendor/modules/vfe_os.ko"
module5_path= "/system/vendor/modules/vfe_subdev.ko"
module6_path= "/system/vendor/modules/hi253.ko"
module7_path= "/system/vendor/modules/ov8858_4lane.ko"
module1_path= "/system/vendor/modules/videobuf2-core.ko"
module2_path= "/system/vendor/modules/videobuf2-memops.ko"
module3_path= "/system/vendor/modules/videobuf2-v4l2.ko"
module4_path= "/system/vendor/modules/videobuf2-dma-contig.ko"
module5_path= "/system/vendor/modules/vfe_io.ko"
module6_path= "/system/vendor/modules/gc0328c.ko"
module7_path= "/system/vendor/modules/gc2145.ko"
module8_path= "/system/vendor/modules/vfe_v4l2.ko"
dev_cnt = 2
csi_cnt = 1
fps = 15
fps = 10
;-------------------------------------------------------------------------------
; manual_menu_name

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 MiB

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,120 @@
;---------------------------------------------------------------------------------------------------------
; 说明: 脚本中的字符串区分大小写,用户可以修改"="后面的数值,但是不要修改前面的字符串
;---------------------------------------------------------------------------------------------------------
;--------------------------------------------------------------------------------------------------
; 固件下载参数配置
;--------------------------------------------------------------------------------------------------
;****************************************************
; mbr的大小, 以Kbyte为单位
;****************************************************
[mbr]
size = 16384
;********************************************************************************************************
; 分区配置
;
;
; partition 定义范例:
; [partition] ; //表示是一个分区
; name = USERFS2 ; //分区名称
; size = 16384 ; //分区大小 单位: 扇区.分区表示个数最多2^31 * 512 = 2T
; downloadfile = "123.fex" ; //下载文件的路径和名称可以使用相对路径相对是指相对于image.cfg文件所在分区。也可以使用绝对路径
; keydata = 1 ; //私有数据分区,重新量产数据将不丢失
; encrypt = 1 ; //采用加密方式烧录,将提供数据加密,但损失烧录速度
; = ? ; //私有用法
; verify = 1 ; //要求量产完成后校验是否正确
;
; 注1、name唯一, 不允许同名
; 2、name最大12个字符
; 3、size = 0, 将创建一个无大小的空分区
; 4、为了安全和效率考虑分区大小最好保证为16M字节的整数倍
;********************************************************************************************************
[partition_start]
;------------------------------>mmcblk0p2/nanda
[partition]
name = bootloader
size = 65536
downloadfile = "boot-resource.fex"
user_type = 0x8000
;------------------------------>mmcblk0p5/nandb
[partition]
name = env
size = 32768
downloadfile = "env.fex"
user_type = 0x8000
;------------------------------>mmcblk0p6/nandc
[partition]
name = boot
size = 32768
downloadfile = "boot.fex"
user_type = 0x8000
;------------------------------>mmcblk0p7/nandd
[partition]
name = system
size = 3145728
downloadfile = "system.fex"
user_type = 0x8000
;------------------------------>mmcblk0p8/nande
;[partition]
; name = data
; size = 2097152
; user_type = 0x8000
;
;------------------------------>mmcblk0p9/nandf
[partition]
name = misc
size = 32768
user_type = 0x8000
;------------------------------>mmcblk0p10/nandg
[partition]
name = recovery
size = 65536
downloadfile = "recovery.fex"
user_type = 0x8000
;------------------------------>mmcblk0p11/nandh
[partition]
name = cache
size = 1572864
user_type = 0x8000
;------------------------------nandi, store encryptable
[partition]
name = metadata
size = 32768
user_type = 0x8000
;------------------------------>nandj, data image private
[partition]
name = private
size = 32768
ro = 0
user_type = 0x8000
;------------------------------>nandk, save kernel panic log
[partition]
name = klog
size = 32768
user_type = 0x8000
;------------------------------>nandl, save android log
[partition]
name = alog
size = 131072
ro = 0
user_type = 0x8000
;------------------------------>nandm, UDISK
[partition]
name = UDISK
downloadfile = "diskfs.fex"
;verify = 0
user_type = 0x8100

View file

@ -0,0 +1,379 @@
;-------------------------------------------------------------------------------
; 测试模块配置示例
;
; [example]
; display_name= "Example"
; activated = 1
; program = "example.sh"
; category = 0
; run_type = 1
;
; display_name
; 显示到界面的名称,字符串类型,如果需要显示双引号,可以使用以下语法:
; display_name= string:"Example"
; 区别在于后者会显示"string:"后面所有的字符,包括空格和制表符。该项能够容纳
; 64个英文字符32个中文字符。如果display_name为空测试程序不会运行。
;
; activated
; 0: 不测试该模块
; 1: 测试该模块
;
; program
; 模块的测试程序该项能够容纳16个英文字符。
;
; category
; 0: 自动化测试模块
; 1: 手动测试模块
;
; run_type
; 0: 等待当前模块的测试程序执行完毕再运行下一个模块的测试程序
; 1: 不等待当前模块的测试程序执行完毕
; 一般为了提高整体的测试速度对于耗时较长的测试程序建议填0反之填1注意
; category = 1即手动测试模块时该项无效。
;-------------------------------------------------------------------------------
;-------------------------------------------------------------------------------
; test_size
; unit: MB
;-------------------------------------------------------------------------------
[dram]
display_name= "内存"
activated = 1
program = "memtester.sh"
category = 0
run_type = 1
dram_size = 1024
test_size = 8
platform = "a64"
[rtc]
display_name= "时钟"
activated = 1
program = "rtctester.sh"
category = 0
run_type = 1
;-------------------------------------------------------------------------------
; module_path
; The full path of wifi module file.
; module_args
; The arguments of wifi module.
;-------------------------------------------------------------------------------
[wifi]
display_name= "网络"
activated = 1
program = "wifitester.sh"
category = 0
run_type = 1
module_count= 1
module_path = "/system/vendor/modules/bcmdhd.ko"
module_args = "nvram_path=/system/vendor/modules/nvram_ap6335.txt"
;-------------------------------------------------------------------------------
; module_path
; The full path of g-sensor module file.
; device_name
; The name of g-sensor device.
;-------------------------------------------------------------------------------
[gsensor]
display_name= "重力感应器"
activated = 1
program = "gsensortester.sh"
category = 0f
run_type = 1
module_count= 1
module1_path= "/system/vendor/modules/bma250.ko"
device_name = "bma250"
;-------------------------------------------------------------------------------
; module_path
; The full path of gyro module file.
; device_name
; The name of gyro device.
;-------------------------------------------------------------------------------
[gyro]
display_name= "陀螺仪"
activated = 1
program = "gyrotester.sh"
category = 0
run_type = 1
module_count= 1
module1_path= "/system/vendor/modules/lsm9ds0_gyr.ko"
device_name = "lsm9ds0_gyr"
;-------------------------------------------------------------------------------
; module_path
; The full path of e-compass module file.
; device_name
; The name of e-compass device.
;-------------------------------------------------------------------------------
[compass]
display_name= "指南针"
activated = 1
program = "compasstester.sh"
category = 0
run_type = 1
module_count= 1
module1_path=
device_name = "lsm9ds0_mag"
;-------------------------------------------------------------------------------
; test_size
; Test size for nand read and write test.
;-------------------------------------------------------------------------------
[nand]
display_name= "闪存"
activated = 1
program = "nandtester.sh"
category = 0
run_type = 1
module_path= "/system/vendor/modules/nand.ko"
test_size = 16
[emmc]
display_name= "emmc闪存"
activated = 0
program = "emmctester.sh"
category = 0
run_type = 1
test_size = 128
[bluetooth]
display_name= "蓝牙"
activated = 1
program = "bttester.sh"
test_time = 3
category = 0
dst_bt = ":"
run_type = 1
module_path = "/system/vendor/modules/bcm4339a0.hcd"
device_node = "/dev/ttyS1"
baud_rate = 1500000
[mmc]
display_name= "SD卡"
activated = 1
program = "mmctester.sh"
category = 1
run_type = 1
nr = 1
[udisk]
display_name= "U盘"
activated = 1
program = "udisktester.sh"
category = 1
run_type = 1
[Usb_HOST1]
display_name= "USB主机1"
activated = 0
program = "host1tester.sh"
category = 1
run_type = 1
[Usb_HOST2]
display_name= "USB主机2"
activated = 0
program = "host2tester.sh"
category = 1
run_type = 1
[Usb_OTG]
display_name= "USB_OTG"
activated = 0
program = "otgtester.sh"
category = 1
run_type = 1
;-------------------------------------------------------------------------------
; sound_file
; The full path of sound file.
; samplerate
; The samplerate of sound file.
; support_mode
; 0 : 480I
; 1 : 576I
; 2 : 480P
; 3 : 576P
; 4 : 720P 50HZ
; 5 : 720P 60HZ
; 6 : 1080I 50HZ
; 7 : 1080I 60HZ
; 8 : 1080P 24HZ
; 9 : 1080P 50HZ
; 10: 1080P 60HZ
;-------------------------------------------------------------------------------
[hdmi]
display_name= "HDMI"
activated = 0
program = "hdmitester.sh"
category = 1
run_type = 1
sound_file = "/dragonboard/data/test48000.pcm"
samplerate = 48000
support_mode= 2
module_count= 1
module1_path= "/system/vendor/modules/hdcp.ko"
;-------------------------------------------------------------------------------
; module_path
; The full path of key module file.
;-------------------------------------------------------------------------------
[key]
display_name= "按键"
activated = 1
program = "keytester"
category = 1
run_type = 1
;-------------------------------------------------------------------------------
; module_path
; The full path of ir module file.
;-------------------------------------------------------------------------------
[ir]
display_name= "红外"
activated = 0
program = "irtester"
category = 1
run_type = 1
module_path = "/system/vendor/modules/sunxi-ir-rx.ko"
;-------------------------------------------------------------------------------
; delay
; delay ? second before recording
; volume:
; the output volume,range from 0 to 63
; music_playtime:
; music playback time in secend before recording
; sound_file:
; the sound_file you want to play
; samplerate:
; the sound file samplerate
; micx_gain:
; input gain for mic1 or mic2
; 0:0db,1:35db;2:38db;3:41db
; micx_used:
; the mic you want to test
; micx_threshold:
; the mic data threshold.the test will be pass when the capture data above this value
;------------------------------------------------------------------------------------
[mic]
display_name= "录音耳机"
activated = 1
program = "mictester"
category = 1
run_type = 1
delay = 3
volume = 40
music_playtime =10
music_file = "/dragonboard/data/test48000.pcm"
samplerate = 48000
mic1_used = 1
mic2_used = 0
mic1_gain = 1
mic2_gain = 1
mic1_threshold =16383
mic2_threshold =16383
;-------------------------------------------------------------------------------
; type
; 0: rtp
; 1: ctp
; module_path
; The full path of tp module.
;-------------------------------------------------------------------------------
[tp]
display_name= "触摸"
type = 1
module_path = "/system/vendor/modules/gt82x.ko"
device_name = "gt82x"
;-------------------------------------------------------------------------------
; module_count
; The number of module need to be insmod.
; modulex_path
; 'x' is the index of module, starts from 0.
;-------------------------------------------------------------------------------
[camera]
activated = 1
module_count= 8
module1_path= "/system/vendor/modules/videobuf-core.ko"
module2_path= "/system/vendor/modules/videobuf-dma-contig.ko"
module3_path= "/system/vendor/modules/cci.ko"
module4_path= "/system/vendor/modules/vfe_os.ko"
module5_path= "/system/vendor/modules/vfe_subdev.ko"
module6_path= "/system/vendor/modules/hi253.ko"
module7_path= "/system/vendor/modules/ov8858_4lane.ko"
module8_path= "/system/vendor/modules/vfe_v4l2.ko"
dev_cnt = 2
csi_cnt = 1
fps = 15
;-------------------------------------------------------------------------------
; manual_menu_name
; manual test case menu name, 32bytes.
; auto_menu_name
; auto test case menu name, 32bytes.
; clear_button_name
; clear screen button name, 8bytes.
; font_size
; test case font display size, valid value: 20pixel(default), 24pixel.
;
; Color Index
; 0: White
; 1: Yellow
; 2: Green
; 3: Cyan
; 4: Magenta
; 5: Red
; 6: Blue
; 7: Black
; 8: Beauty
; menu_bgcolor
; The background color index of test case category menu.
; menu_fgcolor
; The foreground color index of test case category menu.
; item_init_bgcolor
; The background color index of test case item init status.
; item_init_fgcolor
; The foreground color index of test case item init status.
; item_ok_bgcolor
; The background color index of test case item OK status.
; item_ok_fgcolor
; The foreground color index of test case item OK status.
; item_fail_bgcolor
; The background color index of test case item fail status.
; item_fail_fgcolor
; The foreground color index of test case item fail status.
;
; pass_str
; The string display after test case display_name when test OK.
; fail_str
; The string display after test case display_name when test Fail.
;-------------------------------------------------------------------------------
[df_view]
tv_scale_factor = 95
manual_menu_name = "手动测试项"
auto_menu_name = "自动测试项"
clear_button_name = "清屏"
wifi_menu_name = "wifi热点列表"
font_size = 20
menu_bgcolor = 1
menu_fgcolor = 7
item_init_bgcolor = 7
item_init_fgcolor = 0
item_ok_bgcolor = 7
item_ok_fgcolor = 6
item_fail_bgcolor = 7
item_fail_fgcolor = 5
tp_draw_color = 0
;item_init_bgcolor = 0
;item_init_fgcolor = 7
;item_ok_bgcolor = 0
;item_ok_fgcolor = 6
;item_fail_bgcolor = 0
;item_fail_fgcolor = 5
;tp_draw_color = 7
pass_str = "通过"
fail_str = "失败"