1#!/bin/sh 2# 3 4#vi_aging adjust 5#io -4 0xfe801048 0x40 6 7#export VIV_VX_ENABLE_NN_DDR_BURST_SIZE_256B=0 8#export VIV_VX_MAX_SOC_OT_NUMBER=16 9 10if [ -e /sys/firmware/devicetree/base/__symbols__/gc4c33 ] ;then 11 echo "isp sensor is gc4c33,disable HDR" 12 export HDR_MODE=0 13else 14if [ -e /sys/firmware/devicetree/base/__symbols__/ov5695 ] ;then 15 echo "isp sensor is ov5695,disable HDR" 16 export HDR_MODE=0 17else 18if [ -e /sys/firmware/devicetree/base/__symbols__/os04a10 ] ;then 19 echo "isp sensor is os04a10,enable HDR" 20 export HDR_MODE=1 21else 22if [ -e /sys/firmware/devicetree/base/__symbols__/imx347 ] ;then 23 echo "isp sensor is imx347,enable HDR" 24 export HDR_MODE=1 25else 26if [ -e /sys/firmware/devicetree/base/__symbols__/ov4689 ] ;then 27 echo "isp sensor is ov4689,enable HDR" 28 export HDR_MODE=1 29else 30 echo "unkonw sensor,disable HDR default" 31 export HDR_MODE=0 32fi 33fi 34fi 35fi 36fi 37 38#init sysconfig.db 39if [ ! -e "/data/sysconfig.db" ] ;then 40 cp -rf /oem/sysconfig.db /data/sysconfig.db 41fi 42 43camera_max_width=`media-ctl -p | grep crop|head -1|awk -F '[/@x]' '{print $2}'` 44camera_max_height=`media-ctl -p | grep crop|head -1|awk -F '[/@x]' '{print $3}'` 45 46echo "camera_max_width= ${camera_max_width}" 47echo "camera_max_height= ${camera_max_height}" 48export CAMERA_MAX_WIDTH=${camera_max_width} 49export CAMERA_MAX_HEIGHT=${camera_max_height} 50 51#line config 52isp_line=0 #$((${camera_max_height} / 2)) 53ispp_line=0 #$((${camera_max_height} / 4 * 3 )) #no fec 54cif_line=$((${camera_max_height} / 4 * 3 )) 55echo "isp_line= $isp_line , ispp_line= $isp_line, cif_line= $cif_line" 56echo $isp_line > /sys/module/video_rkisp/parameters/wait_line 57echo $ispp_line > /sys/module/video_rkispp/parameters/wait_line 58echo $cif_line > /sys/devices/platform/rkcif_mipi_lvds/wait_line 59 60#rockit log level ctrl: 1:fatal error; 2: error; 3: warning; 4:infomational; 5:debug level; 6:verbose 61export rt_log_level=3 62#export uvc_app_log_level=3 63 64#export ENABLE_EPTZ=1 65 66/oem/aicamera.sh & 67