- Dec 20, 2015
- 13
- 1
Hey everyone,
Bit of a long shot, but as Hikvision support have been monumentally unhelpful despite having non grey-import cameras, figured I might try my luck here.
I have a DS-2CD2132F-I camera that fails to boot properly. Running 5.2.0 firmware, the unit boots linux ok but won't start the davinci process to bring the various services (web, etc) online.
Below is a log from the davinci process that I managed to get by modifying the initrun.sh script to get it to log to a file on temporary storage.
As the davinci process doesn't seem to start, the camera ends up rebooting after a few minutes. Looking at the filesystem and process list, there is apparently some sort of watchdog process that causes this.
Interestingly, while iptables locks down SSH and the like, the same can't be said for IPv6, where the firewall rules are left entirely blank and open. Convenient way to get around the fact that davinci doesn't get to assigning an IP address from config.
If anyone has any ideas other than RMA (the camera is 30ft above the ground, so retrieving it is not easy), I'm listening... I've tried the SADP tool already (finds nothing), and a variety of different firmwares but all have failed to boot completely with the same failure in davinci.
Bit of a long shot, but as Hikvision support have been monumentally unhelpful despite having non grey-import cameras, figured I might try my luck here.
I have a DS-2CD2132F-I camera that fails to boot properly. Running 5.2.0 firmware, the unit boots linux ok but won't start the davinci process to bring the various services (web, etc) online.
Below is a log from the davinci process that I managed to get by modifying the initrun.sh script to get it to log to a file on temporary storage.
davinci receive cmd_query_davinci_param.
S: cmd_query_davinci_param
========capture_mode_pal=17, capture_mode_ntsc=18===============.
powerLineFrequencyMode = 0
@@@motion PAL!!!!!!!!!!!!!!!!!
davinci receive cmd_query_davinci_param.
S: cmd_query_davinci_param
get samplerate [2]
get samplerate [2]
get samplerate [2]
get samplerate [2]
get samplerate [2]
get samplerate [2]
get samplerate [2]
get samplerate [2]
davinci receive cmd_query_davinci_param.
S: cmd_query_davinci_param
get 0-0-0-0.000000-0-0-0
[12-21 23:18:13][pid:839][SYSINIT][ERROR]device not support RS485
[12-21 23:18:13][pid:839][HW_IF][ERROR]transfer_485_config_options error [options:57]
davinci receive cmd_query_davinci_param.
S: cmd_query_davinci_param
davinci receive cmd_query_davinci_param.
S: cmd_query_davinci_param
davinci receive cmd_query_davinci_param.
S: cmd_query_davinci_param
davinci receive cmd_query_davinci_param.
S: cmd_query_davinci_param
davinci receive cmd_query_davinci_param.
S: cmd_query_davinci_param
davinci receive cmd_query_davinci_param.
S: cmd_query_davinci_param
<DSP> DBG:init_dsp_lib() begin
<DSP> DBG:init_dsp_lib() end
[12-21 23:18:18][pid:839][DSP][ERROR][2]g_pdsp->audioTBShare.frameLen=80, g_pdsp->audioTBShare.totalFrame=128..
davinci receive cmd_query_davinci_param.
S: cmd_query_davinci_param
[12-21 23:18:18][pid:839][HW_IF][ERROR]<read_fixed_noise_info_from_flash> (CFG_MAGIC != read.magicNumber(ffffffff)
<DSP> DBG:setup_dsp() begin
<DSP> DBG:init_cmem_module:cached_size=33030144(31M),noncached_size=6815744(6M)
init_cmem_module:CMEM_cmdline=insmod /dav/cmemk.ko phys_start=0xc6600000 phys_end=0xc8c00000 pools=1x33030144,1x6815744
davinci receive cmd_query_davinci_param.
S: cmd_query_davinci_param
gdma Init Successful
b_fd=0,b_smd=1,b_scd=0
channel 1 is not 1 or 2<DSP> DBGSP start with Vout:Enabled,Audioisabled,VTisabled,MD:Enabled, vsync_guard:Enabled,vout_osd: Disabled, oversamplingisabled, roi: Enabled, primacy: Disabled . hdr mode Enabled qr Disabled
<DSP> DBG:dsp_object.device_mode 0
<DSP> DBG:enc channel cnt 2, delay mode 0
Use CMEM buffer!
goto_idle done
pDspInitPara->VideoInitParam.capture_mode 134414356
find_video_mode sucusss!! mode 134414356 p_mode_table.vin_mode 13 vin_object.vin_fps 20.000000 vin w 2048 h 1536
set mode 13 type 21
vin_mode 2048*1536 vin_mode_temp 2048*1536 vin_mode_temp2 2048*1536#######pDspInitPara vout enable 1
<VidThrd> DBG:update_encode_fps_ctrl: Begin chan=0,maxRate(maxFps)=20.000000,fps=0x1
<VidThrd> DBG:update_encode_fps_ctrl: f_frame_rate=1.000000,clockStep=45000
<VidThrd> DBG:update_encode_fps_ctrl:Finally chan=0,fps=0x1,fpsFlg=0x1,frmPerSec=1,fpsCounter=0,fpsCycle=20,g_md_interval 5 ms
<VidThrd> DBG:update_encode_fps_ctrl: Begin chan=1,maxRate(maxFps)=20.000000,fps=0x14
<VidThrd> DBG:update_encode_fps_ctrl: f_frame_rate=20.000000,clockStep=2250
<VidThrd> DBG:update_encode_fps_ctrl:f_frame_rate=20.000000,[20].clockStep=2250,[20]
<VidThrd> DBG:update_encode_fps_ctrl:Finally chan=1,fps=0x14,fpsFlg=0xfffff,frmPerSec=20,fpsCounter=0,fpsCycle=20,g_md_interval 5 ms
<VidThrd> DBG:update_video_config_param: chan=1,encode_type=1, (2048x1536), mirror type0, I inerval 50, bps 3010,quality 60 i_quant 29, complexity 1 rate_type 0,p_encode_param->f_frame_rate 20.000000,svc mode 0 qp 6
<chan 1> in None MotionJPEG, skip!
<VidThrd> DBG:update_encode_fps_ctrl: Begin chan=2,maxRate(maxFps)=20.000000,fps=0x14
<VidThrd> DBG:update_encode_fps_ctrl: f_frame_rate=20.000000,clockStep=2250
<VidThrd> DBG:update_encode_fps_ctrl:f_frame_rate=20.000000,[20].clockStep=2250,[20]
<VidThrd> DBG:update_encode_fps_ctrl:Finally chan=2,fps=0x14,fpsFlg=0xfffff,frmPerSec=20,fpsCounter=0,fpsCycle=20,g_md_interval 5 ms
<VidThrd> DBG:update_video_config_param: chan=2,encode_type=1, (352x288), mirror type0, I inerval 50, bps 752,quality 60 i_quant 29, complexity 1 rate_type 0,p_encode_param->f_frame_rate 20.000000,svc mode 0 qp 6
<chan 2> in None MotionJPEG, skip!
overlay: start = 0x43b1f000, total size = 0x100000 ( bytes)
b_rotate 0 overlay_level64 width 2048 height 1536
osd_width 1280 osd_scale_first 64 total 81920
b_rotate 0 overlay_level16 width 352 height 288
osd_width 256 osd_scale_first 16 sub total 4096
init osd area success
init osd memory ok
<OSD> DBG:Left=0 pChar->pos=4000000
<SetOsd()> line=0 y=64 line_char_count=16, valid char count 24,osd_lines 0
<SetOsd()> line=1 y=0 line_char_count=0, valid char count 0,osd_lines 0
<SetOsd()> line=2 y=0 line_char_count=0, valid char count 0,osd_lines 0
<SetOsd()> line=3 y=0 line_char_count=0, valid char count 0,osd_lines 0
<SetOsd()> line=4 y=0 line_char_count=0, valid char count 0,osd_lines 0
<SetOsd()> line=5 y=0 line_char_count=0, valid char count 0,osd_lines 0
<SetOsd()> line=6 y=0 line_char_count=0, valid char count 0,osd_lines 0
<SetOsd()> line=7 y=0 line_char_count=0, valid char count 0,osd_lines 0
chan 1, osd size 0 osd_size_changed 1
chan 2, osd size 0 osd_size_changed 1
b_rotate 0 overlay_level16 width 2048 height 1536
osd_width 1280 osd_scale_first 16 total 20480
b_rotate 0 overlay_level16 width 352 height 288
osd_width 256 osd_scale_first 16 sub total 4096
init osd area success
<OSD> DBG:setosd ok
<OSD> DBG:setosd:END. chan=0,flgOsd=0x1, bStart=1
<OSD> DBG:Left=0 pChar->pos=4000000
<SetOsd()> line=0 y=64 line_char_count=16, valid char count 24,osd_lines 0
<SetOsd()> line=1 y=0 line_char_count=0, valid char count 0,osd_lines 0
<SetOsd()> line=2 y=0 line_char_count=0, valid char count 0,osd_lines 0
<SetOsd()> line=3 y=0 line_char_count=0, valid char count 0,osd_lines 0
<SetOsd()> line=4 y=0 line_char_count=0, valid char count 0,osd_lines 0
<SetOsd()> line=5 y=0 line_char_count=0, valid char count 0,osd_lines 0
<SetOsd()> line=6 y=0 line_char_count=0, valid char count 0,osd_lines 0
<SetOsd()> line=7 y=0 line_char_count=0, valid char count 0,osd_lines 0
chan 1, osd size 0 osd_size_changed 0
chan 2, osd size 0 osd_size_changed 0
<OSD> DBG:setosd ok
<OSD> DBG:setosd:END. chan=1,flgOsd=0x3, bStart=1
<OSD> DBG:Left=0 pChar->pos=4000000
<SetOsd()> line=0 y=64 line_char_count=16, valid char count 24,osd_lines 0
<SetOsd()> line=1 y=0 line_char_count=0, valid char count 0,osd_lines 0
<SetOsd()> line=2 y=0 line_char_count=0, valid char count 0,osd_lines 0
<SetOsd()> line=3 y=0 line_char_count=0, valid char count 0,osd_lines 0
<SetOsd()> line=4 y=0 line_char_count=0, valid char count 0,osd_lines 0
<SetOsd()> line=5 y=0 line_char_count=0, valid char count 0,osd_lines 0
<SetOsd()> line=6 y=0 line_char_count=0, valid char count 0,osd_lines 0
<SetOsd()> line=7 y=0 line_char_count=0, valid char count 0,osd_lines 0
chan 1, osd size 0 osd_size_changed 0
chan 2, osd size 0 osd_size_changed 0
<OSD> DBG:setosd ok
<OSD> DBG:setosd:END. chan=2,flgOsd=0x7, bStart=1
init osd success
<VidThrd> DBG:setup_video_input begin
davinci receive cmd_query_davinci_param.
S: cmd_query_davinci_param
<VidThrd> DBG:set framerate 20.000000
<VidThrd> DBG:set framerate 25600000
<VidThrd> DBG:init_vin done
sink 2 is DBus-LCD
sink_type 1, chan 1, sink_info type 2 sink_info.source_id 1
sink 1 is DBus-All
sink_type 1, chan 1, sink_info type 2 sink_info.source_id 0
sink 0 is CVBS
sink_type 1, chan 1, sink_info type 1 sink_info.source_id 1
sinkid 0
<config_vout_flip> rotate_type 0
<DspThrd> DBG:#######vout enable 1
sink 2 is DBus-LCD
sink_type 2, chan 0, sink_info type 2 sink_info.source_id 1
sink 1 is DBus-All
sink_type 2, chan 0, sink_info type 2 sink_info.source_id 0
sink 0 is CVBS
sink_type 2, chan 0, sink_info type 1 sink_info.source_id 1
sinkid 1
<config_vout_flip> rotate_type 0
<DspThrd> DBG:#######vout enable 1
init_vout0 done
bsb_mem = 0x43e03000, size = 0x400000
<VidThrd> DBG:Stream [0] change frame rate 1/20
h264 main profile !
<VidThrd> DBG:Stream [1] change frame rate 20/20
h264 main profile !
<VidThrd> DBG:Stream [2] change frame rate 20/20
davinci receive cmd_query_davinci_param.
S: cmd_query_davinci_param
davinci receive cmd_query_davinci_param.
S: cmd_query_davinci_param
davinci receive cmd_query_davinci_param.
S: cmd_query_davinci_param
davinci receive cmd_query_davinci_param.
S: cmd_query_davinci_param
davinci receive cmd_query_davinci_param.
S: cmd_query_davinci_param
davinci receive cmd_query_davinci_param.
S: cmd_query_davinci_param
davinci receive cmd_query_davinci_param.
S: cmd_query_davinci_param
davinci receive cmd_query_davinci_param.
S: cmd_query_davinci_param
davinci receive cmd_query_davinci_param.
S: cmd_query_davinci_param
davinci receive cmd_query_davinci_param.
S: cmd_query_davinci_param
davinci receive cmd_query_davinci_param.
S: cmd_query_davinci_param
S: cmd_query_davinci_param
========capture_mode_pal=17, capture_mode_ntsc=18===============.
powerLineFrequencyMode = 0
@@@motion PAL!!!!!!!!!!!!!!!!!
davinci receive cmd_query_davinci_param.
S: cmd_query_davinci_param
get samplerate [2]
get samplerate [2]
get samplerate [2]
get samplerate [2]
get samplerate [2]
get samplerate [2]
get samplerate [2]
get samplerate [2]
davinci receive cmd_query_davinci_param.
S: cmd_query_davinci_param
get 0-0-0-0.000000-0-0-0
[12-21 23:18:13][pid:839][SYSINIT][ERROR]device not support RS485
[12-21 23:18:13][pid:839][HW_IF][ERROR]transfer_485_config_options error [options:57]
davinci receive cmd_query_davinci_param.
S: cmd_query_davinci_param
davinci receive cmd_query_davinci_param.
S: cmd_query_davinci_param
davinci receive cmd_query_davinci_param.
S: cmd_query_davinci_param
davinci receive cmd_query_davinci_param.
S: cmd_query_davinci_param
davinci receive cmd_query_davinci_param.
S: cmd_query_davinci_param
davinci receive cmd_query_davinci_param.
S: cmd_query_davinci_param
<DSP> DBG:init_dsp_lib() begin
<DSP> DBG:init_dsp_lib() end
[12-21 23:18:18][pid:839][DSP][ERROR][2]g_pdsp->audioTBShare.frameLen=80, g_pdsp->audioTBShare.totalFrame=128..
davinci receive cmd_query_davinci_param.
S: cmd_query_davinci_param
[12-21 23:18:18][pid:839][HW_IF][ERROR]<read_fixed_noise_info_from_flash> (CFG_MAGIC != read.magicNumber(ffffffff)
<DSP> DBG:setup_dsp() begin
<DSP> DBG:init_cmem_module:cached_size=33030144(31M),noncached_size=6815744(6M)
init_cmem_module:CMEM_cmdline=insmod /dav/cmemk.ko phys_start=0xc6600000 phys_end=0xc8c00000 pools=1x33030144,1x6815744
davinci receive cmd_query_davinci_param.
S: cmd_query_davinci_param
gdma Init Successful
b_fd=0,b_smd=1,b_scd=0
channel 1 is not 1 or 2<DSP> DBGSP start with Vout:Enabled,Audioisabled,VTisabled,MD:Enabled, vsync_guard:Enabled,vout_osd: Disabled, oversamplingisabled, roi: Enabled, primacy: Disabled . hdr mode Enabled qr Disabled
<DSP> DBG:dsp_object.device_mode 0
<DSP> DBG:enc channel cnt 2, delay mode 0
Use CMEM buffer!
goto_idle done
pDspInitPara->VideoInitParam.capture_mode 134414356
find_video_mode sucusss!! mode 134414356 p_mode_table.vin_mode 13 vin_object.vin_fps 20.000000 vin w 2048 h 1536
set mode 13 type 21
vin_mode 2048*1536 vin_mode_temp 2048*1536 vin_mode_temp2 2048*1536#######pDspInitPara vout enable 1
<VidThrd> DBG:update_encode_fps_ctrl: Begin chan=0,maxRate(maxFps)=20.000000,fps=0x1
<VidThrd> DBG:update_encode_fps_ctrl: f_frame_rate=1.000000,clockStep=45000
<VidThrd> DBG:update_encode_fps_ctrl:Finally chan=0,fps=0x1,fpsFlg=0x1,frmPerSec=1,fpsCounter=0,fpsCycle=20,g_md_interval 5 ms
<VidThrd> DBG:update_encode_fps_ctrl: Begin chan=1,maxRate(maxFps)=20.000000,fps=0x14
<VidThrd> DBG:update_encode_fps_ctrl: f_frame_rate=20.000000,clockStep=2250
<VidThrd> DBG:update_encode_fps_ctrl:f_frame_rate=20.000000,[20].clockStep=2250,[20]
<VidThrd> DBG:update_encode_fps_ctrl:Finally chan=1,fps=0x14,fpsFlg=0xfffff,frmPerSec=20,fpsCounter=0,fpsCycle=20,g_md_interval 5 ms
<VidThrd> DBG:update_video_config_param: chan=1,encode_type=1, (2048x1536), mirror type0, I inerval 50, bps 3010,quality 60 i_quant 29, complexity 1 rate_type 0,p_encode_param->f_frame_rate 20.000000,svc mode 0 qp 6
<chan 1> in None MotionJPEG, skip!
<VidThrd> DBG:update_encode_fps_ctrl: Begin chan=2,maxRate(maxFps)=20.000000,fps=0x14
<VidThrd> DBG:update_encode_fps_ctrl: f_frame_rate=20.000000,clockStep=2250
<VidThrd> DBG:update_encode_fps_ctrl:f_frame_rate=20.000000,[20].clockStep=2250,[20]
<VidThrd> DBG:update_encode_fps_ctrl:Finally chan=2,fps=0x14,fpsFlg=0xfffff,frmPerSec=20,fpsCounter=0,fpsCycle=20,g_md_interval 5 ms
<VidThrd> DBG:update_video_config_param: chan=2,encode_type=1, (352x288), mirror type0, I inerval 50, bps 752,quality 60 i_quant 29, complexity 1 rate_type 0,p_encode_param->f_frame_rate 20.000000,svc mode 0 qp 6
<chan 2> in None MotionJPEG, skip!
overlay: start = 0x43b1f000, total size = 0x100000 ( bytes)
b_rotate 0 overlay_level64 width 2048 height 1536
osd_width 1280 osd_scale_first 64 total 81920
b_rotate 0 overlay_level16 width 352 height 288
osd_width 256 osd_scale_first 16 sub total 4096
init osd area success
init osd memory ok
<OSD> DBG:Left=0 pChar->pos=4000000
<SetOsd()> line=0 y=64 line_char_count=16, valid char count 24,osd_lines 0
<SetOsd()> line=1 y=0 line_char_count=0, valid char count 0,osd_lines 0
<SetOsd()> line=2 y=0 line_char_count=0, valid char count 0,osd_lines 0
<SetOsd()> line=3 y=0 line_char_count=0, valid char count 0,osd_lines 0
<SetOsd()> line=4 y=0 line_char_count=0, valid char count 0,osd_lines 0
<SetOsd()> line=5 y=0 line_char_count=0, valid char count 0,osd_lines 0
<SetOsd()> line=6 y=0 line_char_count=0, valid char count 0,osd_lines 0
<SetOsd()> line=7 y=0 line_char_count=0, valid char count 0,osd_lines 0
chan 1, osd size 0 osd_size_changed 1
chan 2, osd size 0 osd_size_changed 1
b_rotate 0 overlay_level16 width 2048 height 1536
osd_width 1280 osd_scale_first 16 total 20480
b_rotate 0 overlay_level16 width 352 height 288
osd_width 256 osd_scale_first 16 sub total 4096
init osd area success
<OSD> DBG:setosd ok
<OSD> DBG:setosd:END. chan=0,flgOsd=0x1, bStart=1
<OSD> DBG:Left=0 pChar->pos=4000000
<SetOsd()> line=0 y=64 line_char_count=16, valid char count 24,osd_lines 0
<SetOsd()> line=1 y=0 line_char_count=0, valid char count 0,osd_lines 0
<SetOsd()> line=2 y=0 line_char_count=0, valid char count 0,osd_lines 0
<SetOsd()> line=3 y=0 line_char_count=0, valid char count 0,osd_lines 0
<SetOsd()> line=4 y=0 line_char_count=0, valid char count 0,osd_lines 0
<SetOsd()> line=5 y=0 line_char_count=0, valid char count 0,osd_lines 0
<SetOsd()> line=6 y=0 line_char_count=0, valid char count 0,osd_lines 0
<SetOsd()> line=7 y=0 line_char_count=0, valid char count 0,osd_lines 0
chan 1, osd size 0 osd_size_changed 0
chan 2, osd size 0 osd_size_changed 0
<OSD> DBG:setosd ok
<OSD> DBG:setosd:END. chan=1,flgOsd=0x3, bStart=1
<OSD> DBG:Left=0 pChar->pos=4000000
<SetOsd()> line=0 y=64 line_char_count=16, valid char count 24,osd_lines 0
<SetOsd()> line=1 y=0 line_char_count=0, valid char count 0,osd_lines 0
<SetOsd()> line=2 y=0 line_char_count=0, valid char count 0,osd_lines 0
<SetOsd()> line=3 y=0 line_char_count=0, valid char count 0,osd_lines 0
<SetOsd()> line=4 y=0 line_char_count=0, valid char count 0,osd_lines 0
<SetOsd()> line=5 y=0 line_char_count=0, valid char count 0,osd_lines 0
<SetOsd()> line=6 y=0 line_char_count=0, valid char count 0,osd_lines 0
<SetOsd()> line=7 y=0 line_char_count=0, valid char count 0,osd_lines 0
chan 1, osd size 0 osd_size_changed 0
chan 2, osd size 0 osd_size_changed 0
<OSD> DBG:setosd ok
<OSD> DBG:setosd:END. chan=2,flgOsd=0x7, bStart=1
init osd success
<VidThrd> DBG:setup_video_input begin
davinci receive cmd_query_davinci_param.
S: cmd_query_davinci_param
<VidThrd> DBG:set framerate 20.000000
<VidThrd> DBG:set framerate 25600000
<VidThrd> DBG:init_vin done
sink 2 is DBus-LCD
sink_type 1, chan 1, sink_info type 2 sink_info.source_id 1
sink 1 is DBus-All
sink_type 1, chan 1, sink_info type 2 sink_info.source_id 0
sink 0 is CVBS
sink_type 1, chan 1, sink_info type 1 sink_info.source_id 1
sinkid 0
<config_vout_flip> rotate_type 0
<DspThrd> DBG:#######vout enable 1
sink 2 is DBus-LCD
sink_type 2, chan 0, sink_info type 2 sink_info.source_id 1
sink 1 is DBus-All
sink_type 2, chan 0, sink_info type 2 sink_info.source_id 0
sink 0 is CVBS
sink_type 2, chan 0, sink_info type 1 sink_info.source_id 1
sinkid 1
<config_vout_flip> rotate_type 0
<DspThrd> DBG:#######vout enable 1
init_vout0 done
bsb_mem = 0x43e03000, size = 0x400000
<VidThrd> DBG:Stream [0] change frame rate 1/20
h264 main profile !
<VidThrd> DBG:Stream [1] change frame rate 20/20
h264 main profile !
<VidThrd> DBG:Stream [2] change frame rate 20/20
davinci receive cmd_query_davinci_param.
S: cmd_query_davinci_param
davinci receive cmd_query_davinci_param.
S: cmd_query_davinci_param
davinci receive cmd_query_davinci_param.
S: cmd_query_davinci_param
davinci receive cmd_query_davinci_param.
S: cmd_query_davinci_param
davinci receive cmd_query_davinci_param.
S: cmd_query_davinci_param
davinci receive cmd_query_davinci_param.
S: cmd_query_davinci_param
davinci receive cmd_query_davinci_param.
S: cmd_query_davinci_param
davinci receive cmd_query_davinci_param.
S: cmd_query_davinci_param
davinci receive cmd_query_davinci_param.
S: cmd_query_davinci_param
davinci receive cmd_query_davinci_param.
S: cmd_query_davinci_param
davinci receive cmd_query_davinci_param.
S: cmd_query_davinci_param
As the davinci process doesn't seem to start, the camera ends up rebooting after a few minutes. Looking at the filesystem and process list, there is apparently some sort of watchdog process that causes this.
Interestingly, while iptables locks down SSH and the like, the same can't be said for IPv6, where the firewall rules are left entirely blank and open. Convenient way to get around the fact that davinci doesn't get to assigning an IP address from config.
If anyone has any ideas other than RMA (the camera is 30ft above the ground, so retrieving it is not easy), I'm listening... I've tried the SADP tool already (finds nothing), and a variety of different firmwares but all have failed to boot completely with the same failure in davinci.