Hi3556V200
常用日志打印:
Linux端常用日志打印语句
MLOGD("VcapDev[%d] Disable\n", vcapDevAttr->devHdl);
MLOGI("InitMedia called!, dispType= %d, frame=%d,resolution=%d\n", dispType,frame,resolution);
// 带颜色的日志输出
MLOGI(LIGHT_BLUE"Vpss VpssHdl[%d] Nr enCompressMode[%d]\n"NONE,
vpssAttr->vpssHdl, stVpssAttr.stNrAttr.enCompressMode);
MLOGI(YELLOW" VpssHdl[%d] VcapPipeHdl[%d] PipeChnHdl[%d]"NONE"\n",1,2,3);
// 直接printf日志输出。
printf("监听%d端口\n",PORT); // 监听6001端口
/** general product log macro define */
#define MLOGF(fmt, args...) HI_LOG_Print(HI_LOG_LEVEL_FATAL, HI_MODULE, __FUNCTION__, __LINE__,fmt, ##args)
#define MLOGE(fmt, args...) HI_LOG_Print(HI_LOG_LEVEL_ERROR, HI_MODULE, __FUNCTION__, __LINE__,fmt, ##args)
#define MLOGW(fmt, args...) HI_LOG_Print(HI_LOG_LEVEL_WARNING,HI_MODULE, __FUNCTION__, __LINE__,fmt, ##args)
#define MLOGI(fmt, args...) HI_LOG_Print(HI_LOG_LEVEL_INFO, HI_MODULE, __FUNCTION__, __LINE__,fmt, ##args)
#define HI_LOG_FuncEnter() MLOGD(" =====>[Enter]\n")
#define HI_LOG_FuncExit() MLOGD(" =====>[Exit]\n")
#define HI_LOG_PrintS32(val) MLOGD("%s = %d\n",#val,val)
#define HI_LOG_PrintU32(val) MLOGD("%s = %u\n",#val,val)
#define HI_LOG_PrintS64(val) MLOGD("%s = %lld\n",#val,val)
#define HI_LOG_PrintU64(val) MLOGD("%s = %llu\n",#val,val)
#define HI_LOG_PrintH32(val) MLOGD("%s = 0x%08X\n",#val,val)
#define HI_LOG_PrintH64(val) MLOGD("%s = 0x%016llX\n",#val,val)
#define HI_LOG_PrintStr(val) MLOGD("%s = %s\n",#val,val)
#define HI_LOG_PrintVoid(val) MLOGD("%s = %p\n",#val,val)
#define HI_LOG_PrintFloat(val) MLOGD("%s = %f\n",#val,val)
#define HI_LOG_PrintInfo(val) MLOGD("<%s>\n",val)
-----------Linux端启动日志------------------------------------------------
mount: mounting ubi1:ubifs on /app failed: No such device
BT656 out // s10mpp
[gpio_ioctl 163]gpio_request fail! gpio_num=1 //---
gpio_ioctl Compiled at 2024/09/05 18:19:29 // vio_main.c
[00:00:00:876 INFO-]:HI_UARTMSG_Init[422]:uart init ok, /dev/ttyAMA1 // hi_uartmsg.c ->HI_UARTMSG_Init()
[Error]InitGPIO(98): ioctl ret =-1 // hi_gpio.c
hibvt-i2c 120b3000.i2c: wait idle abort!, RIS: 0x611 // linux-4.9.37.patch
GM7122_Init fd= 10 // vio_main.c-> GM7122_Init()
[00:00:00:878 INFO-]:GM7122_Init[332]:PAhibvt-i2c 120b3000.i2c: wait idle abort!, RIS: 0x611 // linux-4.9.37.patch
L_GM7122_Init starting! // vio_main.c-> GM7122_Init()
set i2c device address Success! 140 // vio_main.c-> GM7122_Init()
i2c write error! line no: 298! // vio_main.c-> HAL_PAL_Write
[00:00:01:021 INFO-]:GM7122_Init[365]:PAL_GM7122_Init finished // vio_main.c-> GM7122_Init()
[00:00:01:022 INFO-]:HI_PARAM_GetMediaCfg[703]:snsCfg[0]: size[1920x1080] mode[0] maxframerate[30.000000] wdrmode[0] // vio_param.c-> HI_PARAM_GetMediaCfg()
[00:00:01:022 INFO-]:GenerateVcapAttr[235]:Pipe[0]Chn[0] destSize[1920x1080] // vio_param.c-> GenerateVcapAttr()
[00:00:01:022 INFO-]:GenerateDisplayCfg[652]: Wnd[0] hdl[0] Pos[0,0] Size[720x576] Rotation[0] // vio_param.c-> GenerateDisplayCfg()
[00:00:01:022 INFO-]:GenerateVbCfg[189]:VBConfigure: // vio_param.c-> GenerateVbCfg()
[00:00:01:023 INFO-]:GenerateVbCfg[191]: [0] BlkSize[3136384] BlkCnt[6]
[00:00:01:023 INFO-]:GenerateVbCfg[191]: [1] BlkSize[635904] BlkCnt[3]
[00:00:01:023 INFO-]:HI_PDT_MEDIA_Init[80]:ViVpssMode[0] 0 // hi_product_media_comm.c-> HI_PDT_MEDIA_Init()
[00:00:01:023 INFO-]:HI_PDT_MEDIA_Init[80]:ViVpssMode[1] 0
[00:00:01:024 INFO-]:HI_PDT_MEDIA_Init[80]:ViVpssMode[2] 0
[00:00:01:024 INFO-]:HI_PDT_MEDIA_Init[80]:ViVpssMode[3] 0
[00:00:01:024 INFO-]:HI_PDT_MEDIA_Init[89]:VBPool[0] BlkSize[3136384] BlkCnt[6]
[00:00:01:024 INFO-]:HI_PDT_MEDIA_Init[89]:VBPool[1] BlkSize[635904] BlkCnt[3]
[00:00:01:028 INFO-]:InitSensor[118]:VcapDevHdl[0] Size[1920x1080] SnsMode[0] WdrMode[0] // hi_product_media_comm->InitSensor()
[00:00:01:030 INFO-]:SwitchVcapAttr[172]:Pipe[0] Enable[1] // hi_product_media_comm->SwitchVcapAttr()
[00:00:01:030 INFO-]:SwitchVcapAttr[191]: IspBypass[0] PipeBypassMode[0] PipeType[0] // hi_product_media_comm->SwitchVcapAttr()
[00:00:01:030 INFO-]:SwitchVcapAttr[172]:Pipe[1] Enable[0]
[00:00:01:031 INFO-]:StartVcapDev[293]:StartChn: DevHdl[0] PipeHdl[0] PipeChnHdl[0] // hi_product_media_comm->StartVcapDev()
[00:00:01:031 INFO-]:StartVcapDev[297]: destSize[1920x1080] framerate[-1,-1] pixelfmt[0]
==========ddd======>HI_MAPI_VCAP_StartISP[HI_MAPI_VCAP_StartISP,583,0] // mapi_vcap_client.c-> HI_MAPI_VCAP_StartISP()
[00:00:01:302 DEBUG-]:InitSensor[112]:VcapDev[0] Disable // hi_product_media_comm.c-> InitSensor()
[00:00:01:302 INFO-]:SwitchVpssAttr[357]: VpssHdl[0] VcapPipeHdl[0] PipeChnHdl[0] // hi_product_media_comm.c-> SwitchVpssAttr()
[00:00:01:302 INFO-]:SwitchVpssAttr[361]: MaxW[1920] MaxH[1080] srcFrmRate[-1] dstFrmRate[-1] PixedFmt[26] bNr[1] NrType[2]
[00:00:01:302 INFO-]:InitVpss[455]:Vpss VpssHdl[0] Nr enCompressMode[4] // hi_product_media_comm.c-> InitVpss()
[00:00:01:304 INFO-]:SetVpssPort[387]:VpssHdl[0] portHdl[1] // hi_product_media_comm.c-> SetVpssPort()
[00:00:01:304 INFO-]:SwitchVpssPortAttr[378]: Resoluton[720x576] srcFrmRate[-1] dstFrmRate[-1] // hi_product_media_comm.c-> SwitchVpssPortAttr()
[00:00:01:304 INFO-]:SwitchVpssPortAttr[380]: VideoFmt[0] PixelFmt[26]
监听6001端口 // hi_product_media_comm.c-> hi_ImageMode_proc() 监听端口
[00:00:01:304 INFO-]:HI_PDT_MEDIA_VideoInit[539]:Success // hi_product_media_comm.c
[00:00:01:305 INFO-]:HI_PDT_MEDIA_VideoOutInit[576]:Success // ...
[00:00:01:306 INFO-]:HI_PDT_MEDIA_VideoOutStart[774]:Success // ...
E0 05 F2 00 F7 send frame // hi_uartmsg.c-> HI_UARTMSG_SendMsg()-> UARTMSG_DebugDump()
---------LiteOS日志--------------------------------------------------
osMemNoAccessSet:startaddr:0,length:100000
********Hello Huawei LiteOS********
version : Huawei LiteOS V200R002C00B063
open-version : Huawei LiteOS 3.0.7
build data : Aug 9 2024 16:37:05
**********************************
osAppInit
<ipcm> ##message recv thread run
<ipcm> ipcm detecting thread running!
[ERR] No console dev used.
Huawei LiteOS # Mount procfs finished.
[INFO-Init]:system_clk_cfg[608]:
==========chip: hi3556v200========== // hi_product_init_hi3559v200.c-> system_clk_cfg()
osal_proc_mkdir - parent is NULL! proc=0x87af5470 // litos/*/osal_proc.c-> osal_proc_mkdir()
[INFO-Init]:MMZ_init[703]:mmz_start=0x82a00000, mmz_size=0x4800000 // hi_product_init_hi3559v200.c-> MMZ_init()
[INFO-Init]:MMZ_init[704]:mapmmz_start=0x87200000, mmz_size=0x200000 // ...
[INFO-Init]:MMZ_init[705]:mmz param=anonymous,0,0x82a00000,73728K // ...
<6>Hisilicon Media Memory Zone Manager // media-mem.c-> media_mem_init()
load sys.ko for Hi3559V200...OK!
load region.ko for Hi3559V200...OK!
load gdc.ko for Hi3559V200...OK!
load vgs.ko for Hi3559V200...OK!
load vi.ko for Hi3559V200...OK !
ISP Mod init! //isp.c-> ISP_ModInit()
load vpss.ko for Hi3559V200...OK!
load vo.ko for Hi3559V200...OK!
load rc.ko for Hi3559V200...OK!
load venc.ko for Hi3559V200...OK!
load chnl.ko for Hi3559V200...OK!
load vedu.ko for Hi3559V200...OK!
load h264e.ko for Hi3559V200...OK!
load h265e.ko for Hi3559V200...OK!
load jpege.ko for Hi3559V200...OK!
load jpegd.ko ....OK!
load vdec.ko ....OK
load mipi_rx driver successful! // mipi_rx.c-> mipi_rx_mod_init()
load pm.ko for Hi3559V200...OK! // pm.c-> PM_ModInit()
[INFO-Init]:sensor_driver_load[754]:sensor[yx2m4u] set hi_sensor_i2c_init success! // hi_product_inithi3559v200.c-> sensor_driver_load()
[INFO-Init]:sensor_clock_config[791]:Set g_stSensorCfg[0].SensorClk = 0xa success ! // hi_product_inithi3559v200.c-> sensor_clock_config()
[INFO-Init]:sensor_clock_config[791]:Set g_stSensorCfg[1].SensorClk = 0 success ! // ...
[VCAP_S] [PeripheralMngSetAttr][ 28][Info]:vcapdev:0 used sensorType:30 // mapi_vcap_peripheral.c-> PeripheralMngSetAttr()
i,g_stVcapGlobAttr.astGlobDevAttr[ViDev].u32PipeBindNu[0,1] // mapi_vcap.c-> HI_MAPI_VCAP_StartDev()
i,g_stVcapGlobAttr.astGlobDevAttr[ViDev].u32PipeBindNu[1,1] // ...
i,g_stVcapGlobAttr.astGlobDevAttr[ViDev].u32PipeBindNu[2,1] // ...
i,g_stVcapGlobAttr.astGlobDevAttr[ViDev].u32PipeBindNu[3,1] // ...
VcapPipeHdl[HI_MAPI_VCAP_StartISP,3549,0] // mapi_vcap.c-> HI_MAPI_VCAP_StartISP()
[1350] u8Mode = 0 // yx2m4u_cmos.c-> cmos_set_wdr_mode()
cmos_set_wdr_mode,linear mode // yx2m4u_cmos.c-> cmos_set_wdr_mode()
i2c[/dev/i2c-0] // yx2m4u_sensor_ctl.c-> yx2m4u_i2c_init()
yx2m4u_init 463 t**enWDRMode,u8ImgMode [0,1], 2** // yx2m4u_sensor_ctl.c-> yx2m4u_init()
I2C_READ reg: 0x3018 data: 0x33 // yx2m4u_sensor_ctl.c-> yx2m4u_read_register()
=== lsj hi3556 2M4U 1080P 25fps 12bit 2Lane Mode Init OK build time :Aug 9 2024 16:44:01 !=== // yx2m4u_2lane_1080P_25_12bit_init()
value = 3 // yx2m4u_sensor_ctl.c-> yx2m4u_init()
==HI_MPI_VPSS_SetChnLDCAttr // mapi_vcap.c-> MAPI_VCAP_SetLDC()
PDT_SCENE_LoadParam, 1553 // hi_pruduct_scene.c-> PDT_SCENE_LoadParam()
open SCENEAUTO_PARAM_PATH succeed [25] // ...
Load param from sceneauto.bin 88 // ...
PDT_SCENE_LoadParam, 1569 // ...
===>PDT_SCENE_PIPETYPE_CNT,u32Num[PDT_SCENE_SetPipeParam,1366, 4,4] // product_scene_setparam.c-> PDT_SCENE_SetPipeParam()
=666=>pstSceneMode->astPipeAttr[i].bEnable[PDT_SCENE_SetStatic3DNR,717,1] // hi_product_scene_setparam_hi3559v200.c-> PDT_SCENE_SetStatic3DNR()
===VIVIVIVIV=> enter PDT_SCENE_SetVI3DNRParam succeed! // hi_product_scene_setparam_hi3559v200.c-> PDT_SCENE_SetVI3DNRParam()
====> pstSceneParam[u8Index].stStatic3DNR.u323DNRCount [12] // hi_product_scene_setparam_hi3559v200.c-> PDT_SCENE_SetVI3DNRParam()
stNRX.stNRXParamV2.stNRXAutoV2.pau32ISO[0] [100] // ...
stNRX.stNRXParamV2.stNRXAutoV2.pau32ISO[1] [200]
stNRX.stNRXParamV2.stNRXAutoV2.pau32ISO[2] [400]
stNRX.stNRXParamV2.stNRXAutoV2.pau32ISO[3] [800]
stNRX.stNRXParamV2.stNRXAutoV2.pau32ISO[4] [1600]
stNRX.stNRXParamV2.stNRXAutoV2.pau32ISO[5] [3400]
stNRX.stNRXParamV2.stNRXAutoV2.pau32ISO[6] [6400]
stNRX.stNRXParamV2.stNRXAutoV2.pau32ISO[7] [16000]
stNRX.stNRXParamV2.stNRXAutoV2.pau32ISO[8] [40000]
stNRX.stNRXParamV2.stNRXAutoV2.pau32ISO[9] [60000]
stNRX.stNRXParamV2.stNRXAutoV2.pau32ISO[10] [70000]
stNRX.stNRXParamV2.stNRXAutoV2.pau32ISO[11] [100000]
==VIVIVIVVIVI==>Set HI_MPI_VI_SetPipeNRXParam succeed! // ...
===VIVIVIVIV=> enter PDT_SCENE_SetVI3DNRParam stViPipeAttr.bNrEn [1!] // ...
=666==>pstSceneMode->astPipeAttr[i].bEnable[PDT_SCENE_SetStatic3DNR,730,1,0] // hi_product_scene_setparam_hi3559v200.c->PDT_SCENE_SetStatic3DNR()
========VPSS VPASS=======>HI_MPI_VPSS_SetGrpNRXParam . // .../-> PDT_SCENE_SetVPSS3DNRParam()
=========VPSS VPASS=======>HI_MPI_VPSS_SetGrpNRXParam succeed.stVpssGrpAttr.bNrEn [1] // .../-> PDT_SCENE_SetVPSS3DNRParam()
Taday date is Aug 9 2024 16:47:08 // hi_product_init_service.c-> HI_PDT_INIT_SCENE_MODE()
stExpAttr.stAuto.u16BlackSpeedBias=144 // hi_ispproc.c-> ae_adjust()
stExpAttr.stAuto.u8Speed=64 // hi_ispproc.c-> ae_adjust()
==88888=>PDT_SCENE_SetStaticAE[ae_adjust,66,56448,1024,32256,1024] // hi_ispproc.c-> ae_adjust()
------End------