sync(system): sync system changes.

This commit is contained in:
kangjun 2024-07-18 14:32:02 +08:00
parent db0777c83d
commit cb4e8e6605
116 changed files with 31484 additions and 84 deletions

16
.gitignore vendored
View File

@ -76,3 +76,19 @@ all.config
# Kdevelop4 # Kdevelop4
*.kdev4 *.kdev4
out/*
tmp/*
# SDK files
dl/*
tools/*
prebuilt/*
toolchain/*
lichee/xr806/tools/*
lichee/melis-v3.0/toolchain/*
lichee/melis-v3.0/tools/*
lichee/brandy-2.0/tools/*
external/eyesee-mpp/middleware/sun8iw21/sample/*
external/eyesee-mpp/external/civetweb/*
package/*

Binary file not shown.

View File

@ -10,7 +10,7 @@
#include <dt-bindings/sunxi/sun8iw21-share-irq.h> #include <dt-bindings/sunxi/sun8iw21-share-irq.h>
/{ /{
compatible = "allwinner,sun8iw21p1", "arm,sun8iw21p1", "allwinner,v851s"; compatible = "allwinner,sun8iw21p1", "arm,sun8iw21p1", "allwinner,v851s3";
reg_usb_vbus: usb-vbus { reg_usb_vbus: usb-vbus {
compatible = "regulator-fixed"; compatible = "regulator-fixed";
gpio = <&pio PH 2 1 2 0 1>; gpio = <&pio PH 2 1 2 0 1>;
@ -24,7 +24,7 @@
/*bootargs = "earlyprintk=sunxi-uart,0x02500000 clk_ignore_unused initcall_debug=0 console=ttyS0,115200 loglevel=1 lpj=240000 root=/dev/mtdblock4 rootwait init=/files/pseudo_init rdinit=/rdinit partitions=env@mtdblock1:env-redund@mtdblock2:boot@mtdblock3:rootfs@mtdblock4:extend@mtdblock5:rootfs_data@mtdblock6:UDISK@mtdblock7 coherent_pool=16K androidboot.hardware=sun8iw21p1 boot_type=3 androidboot.boot_type=3 gpt=1 mbr_offset=2080768 bootreason=unknow";*/ /*bootargs = "earlyprintk=sunxi-uart,0x02500000 clk_ignore_unused initcall_debug=0 console=ttyS0,115200 loglevel=1 lpj=240000 root=/dev/mtdblock4 rootwait init=/files/pseudo_init rdinit=/rdinit partitions=env@mtdblock1:env-redund@mtdblock2:boot@mtdblock3:rootfs@mtdblock4:extend@mtdblock5:rootfs_data@mtdblock6:UDISK@mtdblock7 coherent_pool=16K androidboot.hardware=sun8iw21p1 boot_type=3 androidboot.boot_type=3 gpt=1 mbr_offset=2080768 bootreason=unknow";*/
/* for OTA AB system:(kernel rootfs extend) */ /* for OTA AB system:(kernel rootfs extend) */
bootargs = "earlyprintk=sunxi-uart,0x02500000 clk_ignore_unused initcall_debug=0 console=ttyS0,115200 loglevel=8 lpj=240000 root=/dev/mtdblock4 rootwait init=/files/pseudo_init rdinit=/rdinit partitions=env@mtdblock1:env-redund@mtdblock2:boot@mtdblock3:rootfs@mtdblock4:extend@mtdblock5:recovery@mtdblock6:rootfs_data@mtdblock7:UDISK@mtdblock8 coherent_pool=16K androidboot.hardware=sun8iw21p1 boot_type=3 androidboot.boot_type=3 gpt=1 mbr_offset=2080768 bootreason=unknow"; bootargs = "earlyprintk=sunxi-uart,0x02500000 clk_ignore_unused initcall_debug=0 console=ttyS0,115200 loglevel=1 lpj=240000 root=/dev/mtdblock4 rootwait init=/files/pseudo_init rdinit=/rdinit partitions=env@mtdblock1:env-redund@mtdblock2:boot@mtdblock3:rootfs@mtdblock4:extend@mtdblock5:recovery@mtdblock6:rootfs_data@mtdblock7:UDISK@mtdblock8 coherent_pool=16K androidboot.hardware=sun8iw21p1 boot_type=3 androidboot.boot_type=3 gpt=1 mbr_offset=2080768 bootreason=unknow";
/* for OTA AB system:(kernel rootfs extend) */ /* for OTA AB system:(kernel rootfs extend) */
/*bootargs = "earlyprintk=sunxi-uart,0x02500000 clk_ignore_unused initcall_debug=0 console=ttyS0,115200 loglevel=1 lpj=240000 root=/dev/mtdblock3 rootwait init=/files/pseudo_init rdinit=/rdinit partitions=boot@mtdblock1:boot_backup@mtdblock2:rootfs@mtdblock3:rootfs_backup@mtdblock4:extend@mtdblock5:extend_backup@mtdblock6:rootfs_data@mtdblock7:env@mtdblock8:UDISK@mtdblock9 coherent_pool=16K androidboot.hardware=sun8iw21p1 boot_type=3 androidboot.boot_type=3 gpt=1 mbr_offset=2080768 bootreason=unknow";*/ /*bootargs = "earlyprintk=sunxi-uart,0x02500000 clk_ignore_unused initcall_debug=0 console=ttyS0,115200 loglevel=1 lpj=240000 root=/dev/mtdblock3 rootwait init=/files/pseudo_init rdinit=/rdinit partitions=boot@mtdblock1:boot_backup@mtdblock2:rootfs@mtdblock3:rootfs_backup@mtdblock4:extend@mtdblock5:extend_backup@mtdblock6:rootfs_data@mtdblock7:env@mtdblock8:UDISK@mtdblock9 coherent_pool=16K androidboot.hardware=sun8iw21p1 boot_type=3 androidboot.boot_type=3 gpt=1 mbr_offset=2080768 bootreason=unknow";*/
@ -126,7 +126,7 @@
memory@40000000 { memory@40000000 {
device_type = "memory"; device_type = "memory";
reg = <0x00000000 0x40000000 0x00000000 0x04000000>; reg = <0x00000000 0x40000000 0x00000000 0x08000000>;
}; };
reserved-memory { reserved-memory {
@ -385,7 +385,7 @@
sensor0:sensor@0 { sensor0:sensor@0 {
device_type = "sensor0"; device_type = "sensor0";
sensor0_mname = "gc2053_mipi"; sensor0_mname = "gc2083_mipi";
sensor0_twi_cci_id = <1>; sensor0_twi_cci_id = <1>;
sensor0_twi_addr = <0x6e>; sensor0_twi_addr = <0x6e>;
sensor0_mclk_id = <0>; sensor0_mclk_id = <0>;
@ -402,8 +402,8 @@
/* sensor0_dvdd-supply = <&reg_dldo2>; */ /* sensor0_dvdd-supply = <&reg_dldo2>; */
/* sensor0_dvdd_vol = <1200000>; */ /* sensor0_dvdd_vol = <1200000>; */
/* sensor0_power_en = <>; */ /* sensor0_power_en = <>; */
sensor0_reset = <&pio PA 10 1 0 1 0>; /* sensor0_reset = <&pio PA 10 1 0 1 0>; */
sensor0_pwdn = <&pio PA 11 1 0 1 0>; sensor0_pwdn = <&pio PA 9 1 0 1 0>;
sensor0_sm_hs = <>; sensor0_sm_hs = <>;
sensor0_sm_vs = <>; sensor0_sm_vs = <>;
sensor0_power_en = <>; sensor0_power_en = <>;
@ -941,16 +941,16 @@
}; };
twi1_pins_a: twi1@0 { twi1_pins_a: twi1@0 {
allwinner,pins = "PE2", "PE3"; allwinner,pins = "PA6", "PA7";
allwinner,pname = "twi1_scl", "twi1_sda"; allwinner,pname = "twi1_scl", "twi1_sda";
allwinner,function = "twi1"; allwinner,function = "twi1";
allwinner,muxsel = <8>; allwinner,muxsel = <4>;
allwinner,drive = <1>; allwinner,drive = <1>;
allwinner,pull = <1>; allwinner,pull = <1>;
}; };
twi1_pins_b: twi1@1 { twi1_pins_b: twi1@1 {
allwinner,pins = "PE2", "PE3"; allwinner,pins = "PA6", "PA7";
allwinner,function = "io_disabled"; allwinner,function = "io_disabled";
allwinner,muxsel = <0xf>; allwinner,muxsel = <0xf>;
allwinner,drive = <1>; allwinner,drive = <1>;
@ -1135,16 +1135,16 @@
}; };
csi_mclk0_pins_a: csi_mclk0@0 { csi_mclk0_pins_a: csi_mclk0@0 {
allwinner,pins = "PE12"; allwinner,pins = "PA10";
allwinner,pname = "mipi_csi_mclk0"; allwinner,pname = "mipi_csi_mclk0";
allwinner,function = "mipi_csi_mclk0"; allwinner,function = "mipi_csi_mclk0";
allwinner,muxsel = <5>; allwinner,muxsel = <4>;
allwinner,drive = <2>; allwinner,drive = <2>;
allwinner,pull = <0>; allwinner,pull = <0>;
}; };
csi_mclk0_pins_b: csi_mclk0@1 { csi_mclk0_pins_b: csi_mclk0@1 {
allwinner,pins = "PE12"; allwinner,pins = "PA10";
allwinner,pname = "mipi_csi_mclk0"; allwinner,pname = "mipi_csi_mclk0";
allwinner,function = "io_disabled"; allwinner,function = "io_disabled";
allwinner,muxsel = <0xf>; allwinner,muxsel = <0xf>;

View File

@ -53,7 +53,7 @@ size = 16
[partition] [partition]
name = rootfs name = rootfs
size = 4352 size = 10752
downloadfile = "rootfs.fex" downloadfile = "rootfs.fex"
user_type = 0x8000 user_type = 0x8000
@ -65,7 +65,7 @@ size = 16
[partition] [partition]
name = recovery name = recovery
size = 4864 size = 4992
downloadfile = "recovery.fex" downloadfile = "recovery.fex"
user_type = 0x8000 user_type = 0x8000

View File

@ -114,29 +114,27 @@ jtag_di = port:PH12<3><default><default><default>
;***************************************************************************** ;*****************************************************************************
[dram_para] [dram_para]
dram_clk = 533 dram_clk = 936
dram_type = 2 dram_type = 3
dram_zq = 0x7b7bf9 dram_zq = 0x7b7bfb
dram_odt_en = 0x0 dram_odt_en = 0x1
dram_para1 = 0x00d2 dram_para1 = 0x0010f2
dram_para2 = 0x0 dram_para2 = 0x0
dram_mr0 = 0xe73 dram_mr0 = 0x1c70
dram_mr1 = 0x02 dram_mr1 = 0x42
dram_mr2 = 0x0 dram_mr2 = 0x18
dram_mr3 = 0x0 dram_mr3 = 0x0
dram_tpr0 = 0x00471992 dram_tpr0 = 0x004A2195
dram_tpr1 = 0x0131a10c dram_tpr1 = 0x02423190
dram_tpr2 = 0x00057041 dram_tpr2 = 0x0008B061
dram_tpr3 = 0xb4787896 dram_tpr3 = 0xB4787896
dram_tpr4 = 0x0 dram_tpr4 = 0x1000
dram_tpr5 = 0x48484848 dram_tpr5 = 0x48484848
dram_tpr6 = 0x48 dram_tpr6 = 0x48
dram_tpr7 = 0x1621121e dram_tpr7 = 0x1621121e
dram_tpr8 = 0x0 dram_tpr8 = 0x0
dram_tpr9 = 0x0 dram_tpr9 = 0x0
dram_tpr10 = 0x00000000 dram_tpr10 = 0x0
dram_tpr11 = 0x00000022 dram_tpr11 = 0x00120000
dram_tpr12 = 0x00000077 dram_tpr12 = 0x00000057
dram_tpr13 = 0x34000100 dram_tpr13 = 0x34080100

View File

@ -53,7 +53,7 @@ size = 16
[partition] [partition]
name = rootfs name = rootfs
size = 14336 size = 20480
downloadfile = "rootfs.fex" downloadfile = "rootfs.fex"
user_type = 0x8000 user_type = 0x8000
@ -83,7 +83,7 @@ size = 16
[partition] [partition]
name = rootfs_data name = rootfs_data
size = 1024 size = 2048
user_type = 0x8000 user_type = 0x8000

View File

@ -218,9 +218,8 @@ CONFIG_ISP_NUMBER=1
# #
# CONFIG_SENSOR_GC1054_MIPI is not set # CONFIG_SENSOR_GC1054_MIPI is not set
# CONFIG_SENSOR_GC1084_MIPI is not set # CONFIG_SENSOR_GC1084_MIPI is not set
CONFIG_SENSOR_GC2053_MIPI=y # CONFIG_SENSOR_GC2053_MIPI is not set
# CONFIG_SENSOR_GC2053_8BIT_MIPI is not set CONFIG_SENSOR_GC2083_MIPI=y
# CONFIG_SENSOR_GC2083_MIPI is not set
# CONFIG_SENSOR_GC4663_MIPI is not set # CONFIG_SENSOR_GC4663_MIPI is not set
# CONFIG_SENSOR_SC2355_MIPI is not set # CONFIG_SENSOR_SC2355_MIPI is not set
# CONFIG_SENSOR_SC2336_MIPI is not set # CONFIG_SENSOR_SC2336_MIPI is not set

View File

@ -11,8 +11,8 @@
;twi0_sda = port:PA17<4><1><default><default> ;twi0_sda = port:PA17<4><1><default><default>
[twi1] [twi1]
twi1_scl = port:PE02<8><1><default><default> twi1_scl = port:PA06<4><1><default><default>
twi1_sda = port:PE03<8><1><default><default> twi1_sda = port:PA07<4><1><default><default>
;[twi2] ;[twi2]
;twi2_scl = port:PH05<4><1><default><default> ;twi2_scl = port:PH05<4><1><default><default>
@ -47,7 +47,7 @@ uart_rx = port:PE01<7><1><default><default>
[sensor0] [sensor0]
used0 = 1 used0 = 1
reset0 = port:PA10<1><1><default><default> reset0 = port:PA11<1><1><default><default>
pwdn0 = port:PA11<1><1><default><default> pwdn0 = port:PA09<1><1><default><default>
mclk0 = port:PE12<5><1><default><default> mclk0 = port:PA10<4><1><default><default>

View File

@ -27,7 +27,8 @@
#define SENSOR_NAME "gc2083_mipi" #define SENSOR_NAME "gc2083_mipi"
#define SENSOR_NAME_2 "gc2083_mipi_2" #define SENSOR_NAME_2 "gc2083_mipi_2"
#define GC2083_1920X1080_15FPS #define GC2083_1920X1088_15FPS
//#define GC2083_1920X1088_20FPS
#define SENSOR_FRAME_RATE 15 #define SENSOR_FRAME_RATE 15
static int sensor_power_count[2]; static int sensor_power_count[2];
@ -44,7 +45,7 @@ static struct regval_list sensor_default_regs[] = {
}; };
#if defined CONFIG_ISP_READ_THRESHOLD || defined CONFIG_ISP_ONLY_HARD_LIGHTADC #if defined CONFIG_ISP_READ_THRESHOLD || defined CONFIG_ISP_ONLY_HARD_LIGHTADC
#ifdef GC2083_1920X1080_20FPS #ifdef GC2083_1920X1088_20FPS
static struct regval_list sensor_1080p20_regs[] = { static struct regval_list sensor_1080p20_regs[] = {
//version 1.0 //version 1.0
//mclk 27Mhz //mclk 27Mhz
@ -119,7 +120,7 @@ static struct regval_list sensor_1080p20_regs[] = {
{0x008d, 0xff}, {0x008d, 0xff},
/*gain*/ /*gain*/
{0x007a, 0x78}, //global gain {0x007a, 0x50}, //global gain
{0x00d0, 0x00}, {0x00d0, 0x00},
{0x0dc1, 0x00}, {0x0dc1, 0x00},
@ -191,7 +192,7 @@ static struct regval_list sensor_1080p20_regs[] = {
{0x0192, 0x00}, {0x0192, 0x00},
{0x0194, 0x00}, {0x0194, 0x00},
{0x0195, 0x04}, {0x0195, 0x04},
{0x0196, 0x38}, {0x0196, 0x40},
{0x0197, 0x07}, {0x0197, 0x07},
{0x0198, 0x80}, {0x0198, 0x80},
@ -205,11 +206,11 @@ static struct regval_list sensor_1080p20_regs[] = {
{0x0215, 0x10}, {0x0215, 0x10},
{0x0229, 0x05}, {0x0229, 0x05},
{0x0237, 0x03}, {0x0237, 0x03},
// {0x023e, 0x99} {0x023e, 0x99}
}; };
#endif #endif
#ifdef GC2083_1920X1080_15FPS #ifdef GC2083_1920X1088_15FPS
static struct regval_list sensor_1080p15_regs[] = { static struct regval_list sensor_1080p15_regs[] = {
{0x03fe, 0xf0}, {0x03fe, 0xf0},
{0x03fe, 0xf0}, {0x03fe, 0xf0},
@ -252,7 +253,7 @@ static struct regval_list sensor_1080p15_regs[] = {
{0x0076, 0x00}, {0x0076, 0x00},
{0x0d76, 0x00}, {0x0d76, 0x00},
{0x0d41, 0x05}, {0x0d41, 0x05},
{0x0d42, 0x8b}, {0x0d42, 0x46},
{0x0d7a, 0x10}, {0x0d7a, 0x10},
{0x0d19, 0x31}, {0x0d19, 0x31},
@ -272,11 +273,11 @@ static struct regval_list sensor_1080p15_regs[] = {
{0x0db6, 0x3d}, {0x0db6, 0x3d},
{0x00d2, 0xbc}, {0x00d2, 0xbc},
{0x0d66, 0x42}, {0x0d66, 0x42},
{0x008c, 0x06}, // dynamic range 0x05 -> 0x06 {0x008c, 0x05},
{0x008d, 0xff}, {0x008d, 0xff},
/*gain*/ /*gain*/
{0x007a, 0x98}, //global gain, orign = 0x50 {0x007a, 0x50}, //global gain
{0x00d0, 0x00}, {0x00d0, 0x00},
{0x0dc1, 0x00}, {0x0dc1, 0x00},
@ -345,10 +346,10 @@ static struct regval_list sensor_1080p15_regs[] = {
{0x04e0, 0x18}, {0x04e0, 0x18},
/*window*/ /*window*/
{0x0192, 0x04}, {0x0192, 0x00},
{0x0194, 0x04}, {0x0194, 0x04},
{0x0195, 0x04}, {0x0195, 0x04},
{0x0196, 0x38}, {0x0196, 0x40},
{0x0197, 0x07}, {0x0197, 0x07},
{0x0198, 0x80}, {0x0198, 0x80},
@ -362,7 +363,7 @@ static struct regval_list sensor_1080p15_regs[] = {
{0x0215, 0x10}, {0x0215, 0x10},
{0x0229, 0x05}, {0x0229, 0x05},
{0x0237, 0x03}, {0x0237, 0x03},
// {0x023e, 0x99} {0x023e, 0x99}
}; };
#endif #endif
@ -754,7 +755,7 @@ static struct sensor_format_struct sensor_formats[] = {
{ {
.mbus_code = MEDIA_BUS_FMT_SRGGB10_1X10, /*.mbus_code = MEDIA_BUS_FMT_SBGGR10_1X10, */ .mbus_code = MEDIA_BUS_FMT_SRGGB10_1X10, /*.mbus_code = MEDIA_BUS_FMT_SBGGR10_1X10, */
.width = 1920, .width = 1920,
.height = 1080, .height = 1088,
.hoffset = 0, .hoffset = 0,
.voffset = 0, .voffset = 0,
.hts = 2932, .hts = 2932,
@ -774,21 +775,21 @@ static struct sensor_format_struct sensor_formats[] = {
}, },
#endif #endif
#ifdef GC2083_1920X1080_15FPS #ifdef GC2083_1920X1088_15FPS
{ {
.mbus_code = MEDIA_BUS_FMT_SRGGB10_1X10, /*.mbus_code = MEDIA_BUS_FMT_SBGGR10_1X10, */ .mbus_code = MEDIA_BUS_FMT_SRGGB10_1X10, /*.mbus_code = MEDIA_BUS_FMT_SBGGR10_1X10, */
.width = 1920, .width = 1920,
.height = 1080, .height = 1088,
.hoffset = 0, .hoffset = 0,
.voffset = 0, .voffset = 0,
.hts = 3140, .hts = 3140,
.vts = 1419, .vts = 1350,
.pclk = 63600000, .pclk = 63600000,
.mipi_bps = 318 * 1000 * 1000, .mipi_bps = 318 * 1000 * 1000,
.fps_fixed = 15, .fps_fixed = 15,
.bin_factor = 1, .bin_factor = 1,
.intg_min = 1 << 4, .intg_min = 1 << 4,
.intg_max = (1419 - 16) << 4, .intg_max = (1350 - 16) << 4,
.gain_min = 1 << 4, .gain_min = 1 << 4,
.gain_max = 110 << 4, .gain_max = 110 << 4,
.offs_h = 0, .offs_h = 0,
@ -882,7 +883,7 @@ static struct sensor_format_struct switch_sensor_formats[] = {
{ {
.mbus_code = MEDIA_BUS_FMT_SRGGB10_1X10, .mbus_code = MEDIA_BUS_FMT_SRGGB10_1X10,
.width = 1920, .width = 1920,
.height = 1080, .height = 1088,
.hoffset = 0, .hoffset = 0,
.voffset = 0, .voffset = 0,
.hts = 2932, .hts = 2932,

View File

@ -62,6 +62,9 @@ struct sensor_cfg_array sensor_array[] = {
{"ov02b10_mipi", &ov02b10_core}, {"ov02b10_mipi", &ov02b10_core},
{"ov02b1b_mipi", &ov02b10_core}, {"ov02b1b_mipi", &ov02b10_core},
#endif #endif
#ifdef CONFIG_SENSOR_GC2083_MIPI
{"gc2083_mipi", &gc2083_core},
#endif
}; };
struct sensor_fuc_core *find_sensor_func(char *sensor_name) struct sensor_fuc_core *find_sensor_func(char *sensor_name)

View File

@ -89,13 +89,13 @@ struct vin_mipi_gpio_info vin_mipi_gpio[VIN_MAX_MIPI] = {
struct sensor_list global_sensors_list[2][MAX_DETECT_SENSOR] = { struct sensor_list global_sensors_list[2][MAX_DETECT_SENSOR] = {
[0]= { [0]= {
[0] = { [0] = {
.sensor_name = "gc2053_mipi", .sensor_name = "gc2083_mipi",
.sensor_twi_addr = 0x6e, .sensor_twi_addr = 0x6e,
.sensor_twi_id = 1, .sensor_twi_id = 1,
.mclk_id = 0, .mclk_id = 0,
.use_isp = 1, .use_isp = 1,
.id = 0, .id = 0,
.addr_width = 8, .addr_width = 16,
.data_width = 8, .data_width = 8,
.reset_gpio = GPIOA(11), .reset_gpio = GPIOA(11),
.pwdn_gpio = GPIOA(9), .pwdn_gpio = GPIOA(9),
@ -121,13 +121,13 @@ struct sensor_list global_sensors_list[2][MAX_DETECT_SENSOR] = {
}, },
[1]= { [1]= {
[0] = { [0] = {
.sensor_name = "gc2053_mipi", .sensor_name = "gc2083_mipi",
.sensor_twi_addr = 0x6e, .sensor_twi_addr = 0x6e,
.sensor_twi_id = 0, .sensor_twi_id = 0,
.mclk_id = 1, .mclk_id = 1,
.use_isp = 1, .use_isp = 1,
.id = 0, .id = 0,
.addr_width = 8, .addr_width = 16,
.data_width = 8, .data_width = 8,
.reset_gpio = GPIOE(8), .reset_gpio = GPIOE(8),
.pwdn_gpio = GPIOE(9), .pwdn_gpio = GPIOE(9),
@ -211,9 +211,24 @@ struct sensor_list global_sensors[VIN_MAX_CSI] = {
.ir_cut_gpio[0] = GPIOD(18), /*-cut*/ .ir_cut_gpio[0] = GPIOD(18), /*-cut*/
.ir_cut_gpio[1] = GPIOD(8), /*+cut*/ .ir_cut_gpio[1] = GPIOD(8), /*+cut*/
.ir_led_gpio = 0xffff, //GPIOE(10) .ir_led_gpio = 0xffff, //GPIOE(10)
#elif defined(CONFIG_SENSOR_GC2083_MIPI)
.used = 1,
.sensor_name = "gc2083_mipi",
.sensor_twi_addr = 0x6e,
.sensor_twi_id = 1,
.mclk_id = 0,
.use_isp = 1,
.id = 0,
.addr_width = 16,
.data_width = 8,
.reset_gpio = GPIOA(11),
.pwdn_gpio = GPIOA(9),
.ir_cut_gpio[0] = GPIOD(18), /*-cut*/
.ir_cut_gpio[1] = GPIOD(8), /*+cut*/
.ir_led_gpio = 0xffff, //GPIOE(10)
#else //CONFIG_SENSOR_GC2053_MIPI #else //CONFIG_SENSOR_GC2053_MIPI
.used = 1, .used = 1,
.sensor_name = "gc2053_mipi", .sensor_name = "gc2083_mipi",
.sensor_twi_addr = 0x6e, .sensor_twi_addr = 0x6e,
.sensor_twi_id = 1, .sensor_twi_id = 1,
.mclk_id = 0, .mclk_id = 0,
@ -450,7 +465,7 @@ struct sensor_list global_sensors[VIN_MAX_CSI] = {
.ir_led_gpio = GPIOF(3), .ir_led_gpio = GPIOF(3),
#else #else
.used = 1, .used = 1,
.sensor_name = "gc2053_mipi", .sensor_name = "gc2083_mipi",
.sensor_twi_addr = 0x6e, .sensor_twi_addr = 0x6e,
.sensor_twi_id = 1, .sensor_twi_id = 1,
.mclk_id = 0, .mclk_id = 0,
@ -458,8 +473,8 @@ struct sensor_list global_sensors[VIN_MAX_CSI] = {
.id = 0, .id = 0,
.addr_width = 8, .addr_width = 8,
.data_width = 8, .data_width = 8,
.reset_gpio = GPIOE(6), .reset_gpio = GPIOA(11),
.pwdn_gpio = GPIOE(7), .pwdn_gpio = GPIOA(9),
.ir_cut_gpio[0] = 0xffff,/*-cut*/ .ir_cut_gpio[0] = 0xffff,/*-cut*/
.ir_cut_gpio[1] = 0xffff,/*+cut*/ .ir_cut_gpio[1] = 0xffff,/*+cut*/
.ir_led_gpio = 0xffff, .ir_led_gpio = 0xffff,
@ -499,7 +514,7 @@ struct sensor_list global_sensors[VIN_MAX_CSI] = {
.ir_led_gpio = 0xffff, .ir_led_gpio = 0xffff,
#else #else
.used = 1, .used = 1,
.sensor_name = "gc2053_mipi", .sensor_name = "gc2083_mipi",
.sensor_twi_addr = 0x6e, .sensor_twi_addr = 0x6e,
.sensor_twi_id = 0, .sensor_twi_id = 0,
.mclk_id = 1, .mclk_id = 1,

View File

@ -37,7 +37,7 @@
#if (ISP_VERSION >= 600) #if (ISP_VERSION >= 600)
#if defined CONFIG_SENSOR_GC2053_MIPI || defined CONFIG_SENSOR_GC4663_MIPI || defined CONFIG_SENSOR_SC5336_MIPI || \ #if defined CONFIG_SENSOR_GC2053_MIPI || defined CONFIG_SENSOR_GC4663_MIPI || defined CONFIG_SENSOR_SC5336_MIPI || \
defined CONFIG_SENSOR_GC1084_MIPI || CONFIG_SENSOR_BF2257CS_MIPI || CONFIG_SENSOR_SC2355_MIPI || CONFIG_SENSOR_F37P_MIPI || \ defined CONFIG_SENSOR_GC1084_MIPI || CONFIG_SENSOR_BF2257CS_MIPI || CONFIG_SENSOR_SC2355_MIPI || CONFIG_SENSOR_F37P_MIPI || \
defined CONFIG_SENSOR_F355P_MIPI || CONFIG_SENSOR_OV02B10_MIPI defined CONFIG_SENSOR_F355P_MIPI || CONFIG_SENSOR_OV02B10_MIPI || CONFIG_SENSOR_GC2083_MIPI
#ifdef CONFIG_SENSOR_GC4663_MIPI #ifdef CONFIG_SENSOR_GC4663_MIPI
#include "SENSOR_H/gc4663_mipi_default_ini_v853.h" #include "SENSOR_H/gc4663_mipi_default_ini_v853.h"
#include "SENSOR_H/gc4663_120fps_mipi_default_ini_v853.h" #include "SENSOR_H/gc4663_120fps_mipi_default_ini_v853.h"
@ -105,9 +105,15 @@
//#include "SENSOR_H/ov02b10_mipi_isp600_20240423_135454_rgb.h" //#include "SENSOR_H/ov02b10_mipi_isp600_20240423_135454_rgb.h"
//#include "SENSOR_H/ov02b10_mipi_isp600_20240423_133842_ir.h" //#include "SENSOR_H/ov02b10_mipi_isp600_20240423_133842_ir.h"
#include "SENSOR_H/ov02b1b_mipi_isp600_20240613_color.h" #include "SENSOR_H/ov02b1b_mipi_isp600_20240613_color.h"
#include "SENSOR_H/ov02b10_mipi_isp600_20240613_ir.h" // #include "SENSOR_H/ov02b10_mipi_isp600_20240613_ir.h"
#include "SENSOR_H/ov02a10_mipi_isp600_20240619_ir.h"
#endif // CONFIG_SENSOR_OV02B10_MIPI #endif // CONFIG_SENSOR_OV02B10_MIPI
#ifdef CONFIG_SENSOR_GC2083_MIPI
#include "SENSOR_H/gc2083_mipi_2_isp600_20231212_103735_gj_rgb.h"
#include "SENSOR_H/gc2083_mipi_2_isp600_20230913_015805_gj_ir.h"
#endif
#else #else
#include "SENSOR_H/gc2053_mipi_default_ini_v853.h" #include "SENSOR_H/gc2053_mipi_default_ini_v853.h"
#endif #endif
@ -122,7 +128,7 @@ struct isp_cfg_array cfg_arr[] = {
#if (ISP_VERSION >= 600) #if (ISP_VERSION >= 600)
#if defined CONFIG_SENSOR_GC2053_MIPI || defined CONFIG_SENSOR_GC4663_MIPI || defined CONFIG_SENSOR_SC5336_MIPI || \ #if defined CONFIG_SENSOR_GC2053_MIPI || defined CONFIG_SENSOR_GC4663_MIPI || defined CONFIG_SENSOR_SC5336_MIPI || \
defined CONFIG_SENSOR_GC1084_MIPI || CONFIG_SENSOR_BF2257CS_MIPI || CONFIG_SENSOR_SC2355_MIPI || CONFIG_SENSOR_F37P_MIPI || \ defined CONFIG_SENSOR_GC1084_MIPI || CONFIG_SENSOR_BF2257CS_MIPI || CONFIG_SENSOR_SC2355_MIPI || CONFIG_SENSOR_F37P_MIPI || \
defined CONFIG_SENSOR_F355P_MIPI || CONFIG_SENSOR_OV02B10_MIPI defined CONFIG_SENSOR_F355P_MIPI || CONFIG_SENSOR_OV02B10_MIPI || CONFIG_SENSOR_GC2083_MIPI
#ifdef CONFIG_SENSOR_GC2053_MIPI #ifdef CONFIG_SENSOR_GC2053_MIPI
{"gc2053_mipi", "gc2053_mipi_isp600_20231212_111630_day", 1920, 1088, 20, 0, 0, &gc2053_mipi_v853_isp_cfg}, {"gc2053_mipi", "gc2053_mipi_isp600_20231212_111630_day", 1920, 1088, 20, 0, 0, &gc2053_mipi_v853_isp_cfg},
@ -180,10 +186,15 @@ struct isp_cfg_array cfg_arr[] = {
//{"ov02b10_mipi", "ov02b10_mipi_isp600_20240423_133842_ir", 1600, 1200, 30, 1, 0, &ov02b10_mipi_isp_ir_cfg}, //{"ov02b10_mipi", "ov02b10_mipi_isp600_20240423_133842_ir", 1600, 1200, 30, 1, 0, &ov02b10_mipi_isp_ir_cfg},
{"ov02b1b_mipi", "ov02b1b_mipi_isp600_20240613_color", 1600, 1200, 30, 0, 0, &ov02b1b_mipi_isp_cfg}, {"ov02b1b_mipi", "ov02b1b_mipi_isp600_20240613_color", 1600, 1200, 30, 0, 0, &ov02b1b_mipi_isp_cfg},
{"ov02b1b_mipi", "ov02b1b_mipi_isp600_20240613_color", 1600, 1200, 30, 1, 0, &ov02b1b_mipi_isp_cfg}, {"ov02b1b_mipi", "ov02b1b_mipi_isp600_20240613_color", 1600, 1200, 30, 1, 0, &ov02b1b_mipi_isp_cfg},
{"ov02b10_mipi", "ov02b10_mipi_isp600_20240613_ir", 1600, 1200, 30, 0, 0, &ov02b10_mipi_isp_cfg}, {"ov02b10_mipi", "ov02a10_mipi_isp600_20240619_ir", 1600, 1200, 30, 0, 0, &ov02a10_mipi_isp_cfg},
{"ov02b10_mipi", "ov02b10_mipi_isp600_20240613_ir", 1600, 1200, 30, 1, 0, &ov02b10_mipi_isp_cfg}, {"ov02b10_mipi", "ov02a10_mipi_isp600_20240619_ir", 1600, 1200, 30, 1, 0, &ov02a10_mipi_isp_cfg},
#endif // CONFIG_SENSOR_OV02B10_MIPI #endif // CONFIG_SENSOR_OV02B10_MIPI
#ifdef CONFIG_SENSOR_GC2083_MIPI
{"gc2083_mipi", "gc2083_mipi_2_isp600_20231212_103735_gj_rgb", 1920, 1088, 15, 0, 0, &gc2083_mipi_rgb_isp_cfg},
{"gc2083_mipi", "gc2083_mipi_2_isp600_20230913_015805_gj_ir", 1920, 1088, 15, 0, 1, &gc2083_mipi_ir_isp_cfg},
#endif
#ifdef CONFIG_SENSOR_GC1084_MIPI #ifdef CONFIG_SENSOR_GC1084_MIPI
{"gc1084_mipi", "gc1084_mipi_v853_20230410_164555_day", 1280, 720, 15, 0, 0, &gc1084_mipi_v853_isp_cfg}, {"gc1084_mipi", "gc1084_mipi_v853_20230410_164555_day", 1280, 720, 15, 0, 0, &gc1084_mipi_v853_isp_cfg},
#ifdef CONFIG_ENABLE_AIISP #ifdef CONFIG_ENABLE_AIISP

9
packet_ota_image.sh Executable file
View File

@ -0,0 +1,9 @@
#!/bin/bash
cp out/v851s-fastboot_sl100_back/boot.img /home/huangjituan/SmartLock/src/back_board/sl100_ota/back/sl100_ota/has_tool/has_makeimage/
cp out/v851s-fastboot_sl100_back/rootfs.img /home/huangjituan/SmartLock/src/back_board/sl100_ota/back/sl100_ota/has_tool/has_makeimage/
cp out/v851s-fastboot_sl100_back/usr.img /home/huangjituan/SmartLock/src/back_board/sl100_ota/back/sl100_ota/has_tool/has_makeimage/
cd /home/huangjituan/SmartLock/src/back_board/sl100_ota/back/sl100_ota/has_tool/has_makeimage
./MakeImg.sh
cd -

BIN
scripts/config/conf Executable file

Binary file not shown.

BIN
scripts/config/mconf Executable file

Binary file not shown.

View File

242
scripts/config/zconf.hash.c Normal file
View File

@ -0,0 +1,242 @@
/* ANSI-C code produced by gperf version 3.0.3 */
/* Command-line: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/gperf */
/* Computed positions: -k'1,3' */
#if !((' ' == 32) && ('!' == 33) && ('"' == 34) && ('#' == 35) \
&& ('%' == 37) && ('&' == 38) && ('\'' == 39) && ('(' == 40) \
&& (')' == 41) && ('*' == 42) && ('+' == 43) && (',' == 44) \
&& ('-' == 45) && ('.' == 46) && ('/' == 47) && ('0' == 48) \
&& ('1' == 49) && ('2' == 50) && ('3' == 51) && ('4' == 52) \
&& ('5' == 53) && ('6' == 54) && ('7' == 55) && ('8' == 56) \
&& ('9' == 57) && (':' == 58) && (';' == 59) && ('<' == 60) \
&& ('=' == 61) && ('>' == 62) && ('?' == 63) && ('A' == 65) \
&& ('B' == 66) && ('C' == 67) && ('D' == 68) && ('E' == 69) \
&& ('F' == 70) && ('G' == 71) && ('H' == 72) && ('I' == 73) \
&& ('J' == 74) && ('K' == 75) && ('L' == 76) && ('M' == 77) \
&& ('N' == 78) && ('O' == 79) && ('P' == 80) && ('Q' == 81) \
&& ('R' == 82) && ('S' == 83) && ('T' == 84) && ('U' == 85) \
&& ('V' == 86) && ('W' == 87) && ('X' == 88) && ('Y' == 89) \
&& ('Z' == 90) && ('[' == 91) && ('\\' == 92) && (']' == 93) \
&& ('^' == 94) && ('_' == 95) && ('a' == 97) && ('b' == 98) \
&& ('c' == 99) && ('d' == 100) && ('e' == 101) && ('f' == 102) \
&& ('g' == 103) && ('h' == 104) && ('i' == 105) && ('j' == 106) \
&& ('k' == 107) && ('l' == 108) && ('m' == 109) && ('n' == 110) \
&& ('o' == 111) && ('p' == 112) && ('q' == 113) && ('r' == 114) \
&& ('s' == 115) && ('t' == 116) && ('u' == 117) && ('v' == 118) \
&& ('w' == 119) && ('x' == 120) && ('y' == 121) && ('z' == 122) \
&& ('{' == 123) && ('|' == 124) && ('}' == 125) && ('~' == 126))
/* The character set is not based on ISO-646. */
#error "gperf generated tables don't work with this execution character set. Please report a bug to <bug-gnu-gperf@gnu.org>."
#endif
struct kconf_id;
/* maximum key range = 47, duplicates = 0 */
#ifdef __GNUC__
__inline
#else
#ifdef __cplusplus
inline
#endif
#endif
static unsigned int
kconf_id_hash (register const char *str, register unsigned int len)
{
static unsigned char asso_values[] =
{
49, 49, 49, 49, 49, 49, 49, 49, 49, 49,
49, 49, 49, 49, 49, 49, 49, 49, 49, 49,
49, 49, 49, 49, 49, 49, 49, 49, 49, 49,
49, 49, 49, 49, 49, 49, 49, 49, 49, 49,
49, 49, 49, 49, 49, 49, 49, 49, 49, 49,
49, 49, 49, 49, 49, 49, 49, 49, 49, 49,
49, 49, 49, 49, 49, 49, 49, 49, 49, 49,
49, 49, 49, 49, 49, 49, 49, 49, 49, 49,
49, 49, 49, 49, 49, 49, 49, 49, 49, 49,
49, 49, 49, 49, 49, 49, 49, 20, 40, 5,
0, 0, 5, 49, 5, 20, 49, 49, 5, 20,
5, 0, 35, 49, 0, 15, 0, 10, 15, 49,
25, 49, 49, 49, 49, 49, 49, 49, 49, 49,
49, 49, 49, 49, 49, 49, 49, 49, 49, 49,
49, 49, 49, 49, 49, 49, 49, 49, 49, 49,
49, 49, 49, 49, 49, 49, 49, 49, 49, 49,
49, 49, 49, 49, 49, 49, 49, 49, 49, 49,
49, 49, 49, 49, 49, 49, 49, 49, 49, 49,
49, 49, 49, 49, 49, 49, 49, 49, 49, 49,
49, 49, 49, 49, 49, 49, 49, 49, 49, 49,
49, 49, 49, 49, 49, 49, 49, 49, 49, 49,
49, 49, 49, 49, 49, 49, 49, 49, 49, 49,
49, 49, 49, 49, 49, 49, 49, 49, 49, 49,
49, 49, 49, 49, 49, 49, 49, 49, 49, 49,
49, 49, 49, 49, 49, 49, 49, 49, 49, 49,
49, 49, 49, 49, 49, 49
};
register unsigned int hval = len;
switch (hval)
{
default:
hval += asso_values[(unsigned char)str[2]];
/*FALLTHROUGH*/
case 2:
case 1:
hval += asso_values[(unsigned char)str[0]];
break;
}
return hval;
}
struct kconf_id_strings_t
{
char kconf_id_strings_str2[sizeof("on")];
char kconf_id_strings_str5[sizeof("endif")];
char kconf_id_strings_str6[sizeof("option")];
char kconf_id_strings_str7[sizeof("endmenu")];
char kconf_id_strings_str8[sizeof("optional")];
char kconf_id_strings_str9[sizeof("endchoice")];
char kconf_id_strings_str10[sizeof("range")];
char kconf_id_strings_str11[sizeof("choice")];
char kconf_id_strings_str12[sizeof("default")];
char kconf_id_strings_str13[sizeof("def_bool")];
char kconf_id_strings_str14[sizeof("help")];
char kconf_id_strings_str16[sizeof("config")];
char kconf_id_strings_str17[sizeof("def_tristate")];
char kconf_id_strings_str18[sizeof("env")];
char kconf_id_strings_str19[sizeof("defconfig_list")];
char kconf_id_strings_str20[sizeof("reset")];
char kconf_id_strings_str21[sizeof("string")];
char kconf_id_strings_str22[sizeof("if")];
char kconf_id_strings_str23[sizeof("int")];
char kconf_id_strings_str26[sizeof("select")];
char kconf_id_strings_str27[sizeof("modules")];
char kconf_id_strings_str28[sizeof("tristate")];
char kconf_id_strings_str29[sizeof("menu")];
char kconf_id_strings_str31[sizeof("source")];
char kconf_id_strings_str32[sizeof("comment")];
char kconf_id_strings_str33[sizeof("hex")];
char kconf_id_strings_str35[sizeof("menuconfig")];
char kconf_id_strings_str37[sizeof("visible")];
char kconf_id_strings_str38[sizeof("allnoconfig_y")];
char kconf_id_strings_str41[sizeof("prompt")];
char kconf_id_strings_str42[sizeof("depends")];
char kconf_id_strings_str44[sizeof("bool")];
char kconf_id_strings_str47[sizeof("boolean")];
char kconf_id_strings_str48[sizeof("mainmenu")];
};
static struct kconf_id_strings_t kconf_id_strings_contents =
{
"on",
"endif",
"option",
"endmenu",
"optional",
"endchoice",
"range",
"choice",
"default",
"def_bool",
"help",
"config",
"def_tristate",
"env",
"defconfig_list",
"reset",
"string",
"if",
"int",
"select",
"modules",
"tristate",
"menu",
"source",
"comment",
"hex",
"menuconfig",
"visible",
"allnoconfig_y",
"prompt",
"depends",
"bool",
"boolean",
"mainmenu"
};
#define kconf_id_strings ((const char *) &kconf_id_strings_contents)
struct kconf_id *
kconf_id_lookup (register const char *str, register unsigned int len)
{
enum
{
TOTAL_KEYWORDS = 34,
MIN_WORD_LENGTH = 2,
MAX_WORD_LENGTH = 14,
MIN_HASH_VALUE = 2,
MAX_HASH_VALUE = 48
};
static struct kconf_id wordlist[] =
{
{-1}, {-1},
{offsetof(struct kconf_id_strings_t, kconf_id_strings_str2), T_ON, TF_PARAM},
{-1}, {-1},
{offsetof(struct kconf_id_strings_t, kconf_id_strings_str5), T_ENDIF, TF_COMMAND},
{offsetof(struct kconf_id_strings_t, kconf_id_strings_str6), T_OPTION, TF_COMMAND},
{offsetof(struct kconf_id_strings_t, kconf_id_strings_str7), T_ENDMENU, TF_COMMAND},
{offsetof(struct kconf_id_strings_t, kconf_id_strings_str8), T_OPTIONAL, TF_COMMAND},
{offsetof(struct kconf_id_strings_t, kconf_id_strings_str9), T_ENDCHOICE, TF_COMMAND},
{offsetof(struct kconf_id_strings_t, kconf_id_strings_str10), T_RANGE, TF_COMMAND},
{offsetof(struct kconf_id_strings_t, kconf_id_strings_str11), T_CHOICE, TF_COMMAND},
{offsetof(struct kconf_id_strings_t, kconf_id_strings_str12), T_DEFAULT, TF_COMMAND, S_UNKNOWN},
{offsetof(struct kconf_id_strings_t, kconf_id_strings_str13), T_DEFAULT, TF_COMMAND, S_BOOLEAN},
{offsetof(struct kconf_id_strings_t, kconf_id_strings_str14), T_HELP, TF_COMMAND},
{-1},
{offsetof(struct kconf_id_strings_t, kconf_id_strings_str16), T_CONFIG, TF_COMMAND},
{offsetof(struct kconf_id_strings_t, kconf_id_strings_str17), T_DEFAULT, TF_COMMAND, S_TRISTATE},
{offsetof(struct kconf_id_strings_t, kconf_id_strings_str18), T_OPT_ENV, TF_OPTION},
{offsetof(struct kconf_id_strings_t, kconf_id_strings_str19), T_OPT_DEFCONFIG_LIST,TF_OPTION},
{offsetof(struct kconf_id_strings_t, kconf_id_strings_str20), T_RESET, TF_COMMAND},
{offsetof(struct kconf_id_strings_t, kconf_id_strings_str21), T_TYPE, TF_COMMAND, S_STRING},
{offsetof(struct kconf_id_strings_t, kconf_id_strings_str22), T_IF, TF_COMMAND|TF_PARAM},
{offsetof(struct kconf_id_strings_t, kconf_id_strings_str23), T_TYPE, TF_COMMAND, S_INT},
{-1}, {-1},
{offsetof(struct kconf_id_strings_t, kconf_id_strings_str26), T_SELECT, TF_COMMAND},
{offsetof(struct kconf_id_strings_t, kconf_id_strings_str27), T_OPT_MODULES, TF_OPTION},
{offsetof(struct kconf_id_strings_t, kconf_id_strings_str28), T_TYPE, TF_COMMAND, S_TRISTATE},
{offsetof(struct kconf_id_strings_t, kconf_id_strings_str29), T_MENU, TF_COMMAND},
{-1},
{offsetof(struct kconf_id_strings_t, kconf_id_strings_str31), T_SOURCE, TF_COMMAND},
{offsetof(struct kconf_id_strings_t, kconf_id_strings_str32), T_COMMENT, TF_COMMAND},
{offsetof(struct kconf_id_strings_t, kconf_id_strings_str33), T_TYPE, TF_COMMAND, S_HEX},
{-1},
{offsetof(struct kconf_id_strings_t, kconf_id_strings_str35), T_MENUCONFIG, TF_COMMAND},
{-1},
{offsetof(struct kconf_id_strings_t, kconf_id_strings_str37), T_VISIBLE, TF_COMMAND},
{offsetof(struct kconf_id_strings_t, kconf_id_strings_str38), T_OPT_ALLNOCONFIG_Y,TF_OPTION},
{-1}, {-1},
{offsetof(struct kconf_id_strings_t, kconf_id_strings_str41), T_PROMPT, TF_COMMAND},
{offsetof(struct kconf_id_strings_t, kconf_id_strings_str42), T_DEPENDS, TF_COMMAND},
{-1},
{offsetof(struct kconf_id_strings_t, kconf_id_strings_str44), T_TYPE, TF_COMMAND, S_BOOLEAN},
{-1}, {-1},
{offsetof(struct kconf_id_strings_t, kconf_id_strings_str47), T_TYPE, TF_COMMAND, S_BOOLEAN},
{offsetof(struct kconf_id_strings_t, kconf_id_strings_str48), T_MAINMENU, TF_COMMAND}
};
if (len <= MAX_WORD_LENGTH && len >= MIN_WORD_LENGTH)
{
unsigned int key = kconf_id_hash (str, len);
if (key <= MAX_HASH_VALUE)
{
register int o = wordlist[key].name;
if (o >= 0)
{
register const char *s = o + kconf_id_strings;
if (*str == *s && !strncmp (str + 1, s + 1, len - 1) && s[len] == '\0')
return &wordlist[key];
}
}
}
return 0;
}

2474
scripts/config/zconf.lex.c Normal file

File diff suppressed because it is too large Load Diff

2554
scripts/config/zconf.tab.c Normal file

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,252 @@
########### paramter (ref to tulip_cedarx.conf)############
[parameter]
dev_name = /dev/video1
# pic_format is UVC_YUY2, UVC_NV12, UVC_H264, UVC_MJPEG
pic_format = UVC_MJPEG
capture_videobufcnt = 5
capture_width = 800
capture_height = 480
capture_framerate = 30
decode_out_width = 1280
decode_out_height = 720
display_x = 0
display_y = 0
display_width = 720
display_height = 1280
# VI and VENC Config
online_en = 0 #在线编码 0:disable, 1:enable
online_share_buf_num = 2 #only for online enable, 1:one buf, 2:two buf
#vipp dev
vipp_id = 0
#vipp wdr setting, 1:enable, 0:disable(default)
wdr_en = 0
#drop frame num, offline: vipp drop frm, online: ve drop frm.
drop_frm_num = 0
##### 1280x720->720p, 1920x1080->1080p, 2560×1440->2k, 3840x2160->4k, 7680x4320->8k
src_width = 1920
src_height = 1080
src_framerate = 20
vi_buffer_num = 3
#saturation, [-256, 512]
saturation_change = 0
#Normal: nv21(yvu420sp), yu12(yuv420p), yv12, nv12
#only for jpeg/mjpeg: nv61, nv16
#LBC: aw_lbc_2_0x, aw_lbc_2_5x, aw_lbc_1_5x, aw_lbc_1_0x
src_pixfmt = "nv21"
#color space: jpeg, rec709, rec709_part_range
color_space = "rec709_part_range"
#venc dev channel id.
venc_ch_id = 0
video_framerate = 20
video_bitrate = 1572864
##### 1280x720->720p, 1920x1080->1080p, 2304x1296->3M, 2560×1440->2k, 3840x2160->4k, 7680x4320->8k
video_width = 1920
video_height = 1080
#H.264; H.265; MJPEG
video_encoder = "H.264"
#####use pfrofile, for h264: 0 -> base; 1 -> main; 2 -> high(suggested);
##### for h265: 0 -> main(suggested); 1 -> main10; 2 -> sti11
profile = 0
#LBC: aw_lbc_2_0x, aw_lbc_2_5x, aw_lbc_1_5x, aw_lbc_no_lossy
ve_ref_lbc_mode = "aw_lbc_1_5x"
#product_mode: 0:static ipc, 1:moving ipc, 2: doorbell, 3:cdr, 4:sdv, 5:projection, 6:UAV(Unmanned Aerial Vehicle)
product_mode = 0
#key frame interval, 0:=frameRate, >0:interval
key_frame_interval = 100
#Enable GDC, 0:disable(default), 1:enable.
enable_gdc = 0
#rc_mode for H264/H265 0:CBR 1:VBR 2:FIXQP(only for debug) 3:ABR(not support)
rc_mode = 1
init_qp = 37
min_i_qp = 25
max_i_qp = 45
min_p_qp = 25
max_p_qp = 45
moving_th = 20
mb_qp_limit_en = 1
quality = 1
p_bits_coef = 10
i_bits_coef = 10
#gop mode is 0:NormalP(only support normalP)
gop_mode = 0
#H265 gop_size should be [1, 63]
gop_size = 2
#Advanced Reference
AdvancedRef_Base = 0 #0 is disable advanced reference, >0 is enable, 10 is default.
AdvancedRef_Enhance = 5
AdvancedRef_RefBaseEn = 0
#fast encoder enable
enable_fast_enc = 0
#smart function
enable_smart = 0
#svc, layer=0,2,3,4
svc_layer=0
#encode rotate, 0, 90, 180, 270, clockwise.
encode_rotate = 90
#encode mirror
mirror = 0 #0: disable, 1: enable
color2grey = "no" #yes or no
2dnr_en = 1
2dnr_strength_y = 127 #[0, 255]
2dnr_strength_c = 127 #[0, 255]
2dnr_threshold_y = 11 #[0, 15]
2dnr_threshold_c = 7 #[0, 15]
3dnr_en = 1
3dnr_pix_level_en = 0
3dnr_smooth_en = 1
3dnr_pix_diff_th = 6 #[0, 31]
3dnr_max_mv_th = 8 #[0, 63]
3dnr_max_mad_th = 11 #[0, 63]
3dnr_min_coef = 13 #[0, 3dnr_max_coef]
3dnr_max_coef = 16 #[3dnr_min_coef, 16]
#roi test
roi_num = 0 # [0, 8]
roi_qp = 50 # (0, 51)
roi_BgFrameRateEnable = 0 # if enable roi, decide if enable BgFrateRate to low non-roi area encode frame rate.
roi_BgFrameRateAttenuation = 3 # n: The ROI dst BgFrameRate is 1/n of the ROI src BgFrameRate.
#PIntraRefresh
IntraRefresh_BlockNum = 0 #0:disable
#ORL(Object Rectangle Label) test
orl_num = 0 # [0,16]
#config vbvBufferSize and threshSize, unit:Byte/s
vbvBufferSize = 0 #0:middleware decide itself, >0:app decide. suggest: 933882(1.5Mbps@20fps)
vbvThreshSize = 0 #0:middleware decide itself, >0:app decide. suggest: 147450(1.5Mbps@20fps)
#MBSuminfoOutput config
mbsuminfo_enable = 0 #0:disable, 1: enable
#crop config
crop_en = 0 #0: disable, 1: enable
crop_rect_x = 0
crop_rect_y = 0
crop_rect_w = 720
crop_rect_h = 1280
vui_timing_info_present_flag = 0
encpp_enable = 1
isp_ve_linkage_enable = 1
camera_adaptive_moving_and_static_enable = 0
ve_lens_moving_max_qp = 40
ve_rec_ref_buf_reduce_enable = 0
super_frm_mode = -1 #-1:use default, 0:none, 1:discarded, 2:re-encode
super_max_rencode_times = 3
super_max_p2i_frm_bitsratio = 0.33
super_i_frm_bits_thr = 0 #0:use default, >0: user specified.
super_p_frm_bits_thr = 0 #0:use default, >0: user specified.
bits_clip_dis_default = 0 #[0, 1]
bits_clip_mode = 1 #[0, 1]
bits_clip_en_gop_clip = 0 #[0, 1]
bits_clip_gop_bit_ratio_th[0] = 0.58 #[0, inf) float
bits_clip_gop_bit_ratio_th[1] = 0.64 #[0, inf) float
bits_clip_gop_bit_ratio_th[2] = 1.25 #[0, inf) float
bits_clip_coef[0][0] = -0.5 #[-0.5, 3] float
bits_clip_coef[0][1] = 0.2 #[bits_clip_p_coef[0][0], 3] float
bits_clip_coef[1][0] = -0.3 #[-0.5, 3] float
bits_clip_coef[1][1] = 0.3 #[bits_clip_p_coef[1][0], 3] float
bits_clip_coef[2][0] = -0.3 #[-0.5, 3] float
bits_clip_coef[2][1] = 0.3 #[bits_clip_p_coef[2][0], 3] float
bits_clip_coef[3][0] = -0.5 #[-0.5, 3] float
bits_clip_coef[3][1] = 0.5 #[bits_clip_p_coef[3][0], 3] float
bits_clip_coef[4][0] = 0.4 #[-0.5, 3] float
bits_clip_coef[4][1] = 0.7 #[bits_clip_p_coef[4][0], 3] float
en_ifrm_mb_rc_move_status_enable = 0
en_ifrm_mb_rc_move_status = 3 #[0, 4]
i_p_target_bits_ratio_enable = 0
i_p_target_bits_ratio_scene_coef[0] = 20
i_p_target_bits_ratio_scene_coef[1] = 17
i_p_target_bits_ratio_scene_coef[2] = 15
i_p_target_bits_ratio_move_coef[0] = 1
i_p_target_bits_ratio_move_coef[1] = 0.75
i_p_target_bits_ratio_move_coef[2] = 0.5
i_p_target_bits_ratio_move_coef[3] = 0.25
i_p_target_bits_ratio_move_coef[4] = 0.25
req_idr_enable = 0
dynamic_set_ve_ref_lbc_mode_en = 0
region_d3d_en = 0
region_d3d_result_en = 0
chroma_qp_offset_enable = 0
chroma_qp_offset = -4 #[-12,12]
h264_constraint_flag_enable = 0
h264_constraint_flag_bit0 = 1 #[0, 1]
h264_constraint_flag_bit1 = 1 #[0, 1]
h264_constraint_flag_bit2 = 1 #[0, 1]
h264_constraint_flag_bit3 = 0 #[0, 1]
h264_constraint_flag_bit4 = 0 #[0, 1]
h264_constraint_flag_bit5 = 0 #[0, 1]
ve2isp_d2d_limit_enable = 0
ve2isp_d2d_limit_d2d_level0 = 768 #[1, 1024]
ve2isp_d2d_limit_d2d_level1 = 640 #[1, 1024]
ve2isp_d2d_limit_d2d_level2 = 512 #[1, 1024]
ve2isp_d2d_limit_d2d_level3 = 448 #[1, 1024]
ve2isp_d2d_limit_d2d_level4 = 384 #[1, 1024]
ve2isp_d2d_limit_d2d_level5 = 320 #[1, 1024]
#AI and AENC 音频输入和编码
ai_encoder_type = "aac" #aac, pcm, g711a, g711u, g726a, g726u
ai_sample_rate = 16000
ai_channel_cnt = 1
ai_bit_width = 16
ai_frame_size = 1024
ai_dev_volume = 100
# ADEC and AO 音频解码和输出
ao_decoder_type = "aac" #aac, pcm, g711a, g711u, g726a, g726u
ao_sample_rate = 16000
ao_channel_cnt = 1
ao_bit_width = 16
ao_frame_size = 1024
ao_dev_volume = 100

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 607 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 589 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1006 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 674 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 857 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 725 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 824 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 987 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 825 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 837 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 692 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 993 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

View File

@ -87,4 +87,6 @@ run_usb_adb
#l-sen #l-sen
echo "show ls value" echo "show ls value"
cat /sys/class/gpadc/data cat /sys/class/gpadc/data
/APP/SL100BACKPANEL &

View File

@ -87,4 +87,6 @@ run_usb_adb
#l-sen #l-sen
echo "show ls value" echo "show ls value"
cat /sys/class/gpadc/data cat /sys/class/gpadc/data
/APP/SL100BACKPANEL &

View File

@ -4,6 +4,7 @@
# #
CONFIG_MODULES=y CONFIG_MODULES=y
CONFIG_HAVE_DOT_CONFIG=y CONFIG_HAVE_DOT_CONFIG=y
# CONFIG_TARGET_v851s_fastboot_h13_pv is not set
CONFIG_TARGET_v851s_fastboot_sl100_back=y CONFIG_TARGET_v851s_fastboot_sl100_back=y
# CONFIG_TARGET_v851s3_fastboot_sl100_front is not set # CONFIG_TARGET_v851s3_fastboot_sl100_front is not set
CONFIG_TARGET_v851s_fastboot_sl100_back_=y CONFIG_TARGET_v851s_fastboot_sl100_back_=y
@ -169,7 +170,7 @@ CONFIG_KERNEL_PRINTK=y
# CONFIG_KERNEL_PROVE_LOCKING is not set # CONFIG_KERNEL_PROVE_LOCKING is not set
CONFIG_KERNEL_PRINTK_TIME=y CONFIG_KERNEL_PRINTK_TIME=y
# CONFIG_KERNEL_SLABINFO is not set # CONFIG_KERNEL_SLABINFO is not set
# CONFIG_KERNEL_PROC_PAGE_MONITOR is not set CONFIG_KERNEL_PROC_PAGE_MONITOR=y
CONFIG_KERNEL_PROC_SYSCTL=y CONFIG_KERNEL_PROC_SYSCTL=y
# CONFIG_KERNEL_KEXEC is not set # CONFIG_KERNEL_KEXEC is not set
# CONFIG_USE_RFKILL is not set # CONFIG_USE_RFKILL is not set
@ -2201,7 +2202,6 @@ CONFIG_PACKAGE_wifimanager-v2.0=y
# Wifimanager-v2.0 Configuration # Wifimanager-v2.0 Configuration
# #
# CONFIG_WMG_PROTOCOL_SOFTAP is not set # CONFIG_WMG_PROTOCOL_SOFTAP is not set
# CONFIG_WMG_PROTOCOL_BLE is not set
# CONFIG_WMG_PROTOCOL_XCONFIG is not set # CONFIG_WMG_PROTOCOL_XCONFIG is not set
# CONFIG_WMG_PROTOCOL_SOUNDWAVE is not set # CONFIG_WMG_PROTOCOL_SOUNDWAVE is not set
# CONFIG_WMG_PLATFORM_LINUX is not set # CONFIG_WMG_PLATFORM_LINUX is not set
@ -4619,6 +4619,7 @@ CONFIG_PACKAGE_mtd-utils-mkfs.jffs2=y
# CONFIG_PACKAGE_prlimit is not set # CONFIG_PACKAGE_prlimit is not set
# CONFIG_PACKAGE_procps is not set # CONFIG_PACKAGE_procps is not set
# CONFIG_PACKAGE_procps-ng is not set # CONFIG_PACKAGE_procps-ng is not set
# CONFIG_PACKAGE_procrank_linux is not set
# CONFIG_PACKAGE_px5g is not set # CONFIG_PACKAGE_px5g is not set
# CONFIG_PACKAGE_px5g-standalone is not set # CONFIG_PACKAGE_px5g-standalone is not set
# CONFIG_PACKAGE_qrencode is not set # CONFIG_PACKAGE_qrencode is not set

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 420 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 252 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 355 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 593 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 987 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 186 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 665 B

Some files were not shown because too many files have changed in this diff Show More