Drive failure with no error message. Failed to boot

Bradnvr

n3wb
Joined
Feb 3, 2018
Messages
26
Reaction score
9
I thought something serious had happened to the NVR last night. I had just packed it away and put away my RS232 cable and to sleep. at 5am the device started beeping and rebooting every few minutes. This morning I turned on it's physical monitor to discover a blank screen - no video. Great...

I plugged in the serial connection and watched it boot. no joy. So I TFTP'd the firmware. Nothing.

It was hanging while reading SDA. (see image) No error message, not even completing the GUI load, just hanging.

I unplugged the first SATA cable, and turned it back on, it booted right up. Then I restored the devCfg.bin file to it's location and one would have never known it was broken

Here is a comparison between THE END of a normal boot (on the left), and the boot with a bad HD (on the right).

boot.jpg

for search purposes, here is the bad boot reference data:
Code:
U-Boot 2010.03 (2012-11-30 - 01:11:11)

/nand/devCfg.bin isn't exsiting! err = -13
umount /nand/ success!
Hit ctrl+u to stop autoboot:  0
version.bin not found on /nand/flash_sys0
umount /nand/ success!
Wrong Image Format for bootm command
ERROR: can't get kernel image!
Info:partition 0 is broken, then we startup from partition 1...
version.bin not found on /nand/flash_sys0
umount /nand/ success!
version.bin not found on /nand/flash_sys1
umount /nand/ success!
Wrong Image Format for bootm command
ERROR: can't get kernel image!

This program will upgrade software.
*******************************************************
*  ATTENTION!! PLEASE READ THIS NOTICE CAREFULLY!     *
*  Don't reset machine,or anything that interrupt it. *
*  The upgrade process must finish in 10 minutes!     *
*  If this program fails,machine might be unusable,   *
*  and you will need to reflash again.                *
*  If you find this too risky,power off machine now.  *
*******************************************************

Now press [u/U] key to upgrade software: u
Checking device file system...

Please input ip address of device: 192.168.1.98
Please input ip address of upgrade server: 192.168.1.108
Confirm?(y/n): y
Using DaVinci EMAC device
TFTP from server 192.168.1.108; our IP address is 192.168.1.98
Filename 'digicap.mav'.
Load address: 0x84500000
Loading: #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         ###################
done
Bytes transferred = 26716462 (197a92e hex)
The number of correct packet is: 0
start to erase nand flash addr: 0x0, len: 0x8000000 ...
Erasing at 0x7fe0000 -- 100% complete.
OK

start to write files to partition 0...
13-1.  write /nand/uImage len: 2599972
13-2.  write /nand/rootfs.img len: 771627
13-3.  write /nand/initrun.sh len: 695
13-4.  write /nand/guirc.tar.gz len: 12458119
13-5.  write /nand/webs.tar.gz len: 2379510
13-6.  write /nand/disknoLink.bmp len: 6966
13-7.  write /nand/diskOK.bmp len: 6966
13-8.  write /nand/logo.bmp len: 2359350
13-9.  write /nand/logo_nvr.bmp len: 2359350
13-10.  write /nand/vps_logo.bin len: 92208
13-11.  write /nand/mux_top.bit len: 801572
13-12.  write /nand/ds_80101.bit len: 2879535
13-13.  write flag file /nand/version.bin len: 4
update partition 0 success!
umount /nand/ success!

start to write files to partition 1...
13-1.  write /nand/uImage len: 2599972
13-2.  write /nand/rootfs.img len: 771627
13-3.  write /nand/initrun.sh len: 695
13-4.  write /nand/guirc.tar.gz len: 12458119
13-5.  write /nand/webs.tar.gz len: 2379510
13-6.  write /nand/disknoLink.bmp len: 6966
13-7.  write /nand/diskOK.bmp len: 6966
13-8.  write /nand/logo.bmp len: 2359350
13-9.  write /nand/logo_nvr.bmp len: 2359350
13-10.  write /nand/vps_logo.bin len: 92208
13-11.  write /nand/mux_top.bit len: 801572
13-12.  write /nand/ds_80101.bit len: 2879535
13-13.  write flag file /nand/version.bin len: 4
update partition 1 success!
umount /nand/ success!

Upgrade success!
Press ENTER key to reboot

resetting ...


U-Boot 2010.03 (2012-11-30 - 01:11:11)

/nand/devCfg.bin isn't exsiting! err = -13
umount /nand/ success!
Hit ctrl+u to stop autoboot:  0
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
  ##############udev rules not changed#################
Starting udev:      [ OK ]
decompress application package done.
decompress IE control done.

Can't open parameter file on flash, errno=0x2.
Can't open parameter file on flash, errno=0x2.
getPPPOECfg: Open config file /dav2/devCfg.bin error=2.
getPPPOECfg: from /dav2/devCfg.bin error.
getPPPOECfg: Open config file /dav2/devCfg.bin error=2.
getPPPOECfg: from /dav2/devCfg_backup.bin error.
pppoed==>pppoed ret -1.
iSCSI daemon with pid=85 started!chown: /opt/webs: No such file or directory
/*********************init_global_error_lib*/, init_global_error_lib start!


BusyBox v1.2.1 (2013.11.14-03:03+0000) Built-in shell (ash)
Enter 'help' for a list of davinci system commands.



BusyBox v1.2.1 (2013.11.14-03:03+0000) Built-in shell (ash)
Enter 'help' for a list of davinci system commands.

$ <MEGA_CFG_INFO>Enter @[mega_cfg_reset_plat_param]
<MEGA_CFG_INFO>Reset[0] Platform Param.
<MEGA_CFG_INFO>mega cfg init false, can't reset.
<MEGA_CFG_INFO>Exit @[mega_cfg_reset_plat_param]
<MEGA_DSP>[mega_get_dsp_enc_mux_type_by_mega_dsp_config:1599] fopen file[/opt/dvrCmd/megaDspConfig] faild, errno[0x2].
<MEGA_DSP>av_stream_main_mux_type[0x2][0x10].
<MEGA_DSP>av_stream_sub_mux_type[0x2][0x10].
<MEGA_DSP>av_audio_enc_type[0x1][0x1011].
<MEGA_DSP>vt_audio_enc_type[0x1][0x1011].
<MEGA_DSP>Need PS System Header[0].
<lib>AllocShareBuf: idx=1,phyAddr=0xa0000000,vaddr=0x40515000,size=0x400000
<lib>AllocShareBuf: idx=2,phyAddr=0x40800000,vaddr=0x40915000,size=0x40000
<lib>AllocShareBuf: idx=3,phyAddr=0x55020000,vaddr=0x40955000,size=0x40000
<lib>pDspInitPara->dspMemSize=864M
<lib>Netra to host share virt address.......40515000
encChanNums=0, flgEncChanEnable=0x0, chipRev = 33125
g_pDspInitPara->decChanCnt=16
g_pDspInitPara->ipcChanCnt=16, flgIpcChanEnable=0xffff
dspmeminfo, phyaddr:0x82000000, virtaddr:0x40995000, memsize:167772160
<lib>-----getHostStreamBufAddr,cnt 4 phyAddr=0x82000000,vaddr=0x40995000,size=0xa000000------
<lib>start to load c674 core.
C674 buildTime : 2014-07-01 14:55:44
<lib>load c674 core is ok.err=0
<lib>start to load vid core.
VID buildTime : 2014-01-07 11:46:49
<lib>load vid core is ok.err=0
<lib>start to load vps core.
VPS buildTime : 2014-01-07 11:46:42
<lib>load vps core is ok.err=0
<lib>-----InitShareMemHeap,cnt 5 phyAddr=0xa7200000,vaddr=0x4a995000,size=0x10e00000------
<lib>-----InitShareMemHeap,cnt 6 phyAddr=0xa5400000,vaddr=0x5b795000,size=0x1c00000------
phy=4080aaa0, virt=4091faa0, data=00000020 00000000 0000008e 000b7000
phy=5503d440, virt=40972440, data=00000004 00000000 00000013 0001b800
phy=55053540, virt=40988540, data=00000004 00000000 00000007 00005e00
<lib>Cache seg 0 start 0x40995000 0x82000000 len 0xa000000
<lib>Cache seg 1 start 0x4a995000 0xa7200000 len 0x10e00000
<lib>Cache seg 2 start 0x5b795000 0xa5400000 len 0x1c00000
main stream pPhysAddr[16] = 0xab142980
sub stream pPhysAddr[32] = 0xad2f7180
main stream pPhysAddr[17] = 0xab35de00
sub stream pPhysAddr[33] = 0xad472600
main stream pPhysAddr[18] = 0xab579280
sub stream pPhysAddr[34] = 0xad5eda80
main stream pPhysAddr[19] = 0xab794700
sub stream pPhysAddr[35] = 0xad768f00
main stream pPhysAddr[20] = 0xab9afb80
sub stream pPhysAddr[36] = 0xad8e4380
main stream pPhysAddr[21] = 0xabbcb000
sub stream pPhysAddr[37] = 0xada5f800
main stream pPhysAddr[22] = 0xabde6480
sub stream pPhysAddr[38] = 0xadbdac80
main stream pPhysAddr[23] = 0xac001900
sub stream pPhysAddr[39] = 0xadd56100
main stream pPhysAddr[24] = 0xac21cd80
sub stream pPhysAddr[40] = 0xaded1580
main stream pPhysAddr[25] = 0xac438200
sub stream pPhysAddr[41] = 0xae04ca00
main stream pPhysAddr[26] = 0xac653680
sub stream pPhysAddr[42] = 0xae1c7e80
main stream pPhysAddr[27] = 0xac86eb00
sub stream pPhysAddr[43] = 0xae343300
main stream pPhysAddr[28] = 0xaca89f80
sub stream pPhysAddr[44] = 0xae4be780
main stream pPhysAddr[29] = 0xacca5400
sub stream pPhysAddr[45] = 0xae639c00
main stream pPhysAddr[30] = 0xacec0880
sub stream pPhysAddr[46] = 0xae7b5080
main stream pPhysAddr[31] = 0xad0dbd00
sub stream pPhysAddr[47] = 0xae930500
DSP START OK
=================starting DHCP... over eth0
clientid malloc addr 0x23623e8 len 9
vendorclass malloc addr 0x2367418 len 18
panelFd[15].................
init_stor_system maxEnChanNo = 0 maxIPCount 16
part /dev/sda stor_get_db_total_files alloc 698 byte mem.

eth0: ip = 192.168.1.119, subnet = 255.255.255.0, router = 192.168.1.1, dns = 192.168.1.1
do_iproute_del 127.0.0.0/8.
RTNETLINK answers: No such process
do_iproute_del default.
RTNETLINK answers: No such process
RTNETLINK answers: No such file or directory
do_iproute_add 192.168.1.1.
do_iproute_add 192.168.1.1.
netAddr: 192.168.1.0/24
do_iproute_add 127.0.0.0/8.
do_iproute_add 192.168.1.0/24.
 

Bradnvr

n3wb
Joined
Feb 3, 2018
Messages
26
Reaction score
9
Sorry to resurrect this thread from a year and a half ago... but this is my thread and I wanted to give the full story with an update to what happened so others would know if they searched. :goodpost:

I had 4 drives, and one by one each one began to fail like the message above. If you read my older post, about forcing the latest Hikvision OS/firmware, this happened after I installed the latest firmware from Hikvision onto my white labeled Hikvision hardware (by Alibi). I believe this must have been a bug, or a conflict in how the system writes data to the drives.

I ended up re-flashing the hardware with the original Alibi operating system. After that, everything worked fine.

Sad... because I really want the functionality of the new fisheye cameras on my NVR, the kind that warps the image so you can see it without warping your mind, or spinning your monitor to understand what's happening in all corners of your home..
 

Bradnvr

n3wb
Joined
Feb 3, 2018
Messages
26
Reaction score
9
I think I'm going to attempt the upgrade again, like I did in this thread, since there is a newer version out... O.O

Info for me to remember:

I own the:
Alibi ALI-NVR5116P and now the Alibi ALI-NVR5132P

Which I think is the white labeled version of:
Hikvision DS-7716NI-SP and Hikvision DS-7732NI-SP

They currently have this white labeled firmware from Alibi:
V3.3.4_160719
which is the latest firmware from the white labeled seller (found here: Learning Center - Alibi Firmware and Manuals - Alibi Recorder Firmware and Manuals)

Latest firmware from Hikvision wholesaler is the:
V4.21.005_190509 (must have 3.4.92 or 3.4.93 before attempting v4 from here: Firmware)
and contains lots of really cool features:
So I will need to upgrade to 3.4.92/93 first, and the upgrade to 4.21
 
Last edited:

Bradnvr

n3wb
Joined
Feb 3, 2018
Messages
26
Reaction score
9
yeeep.. that didn't work. I tried using Hikvision's tFTP server, and that hit the 32MB limit... but I didn't give up. I found the tFTP server from Ph. Jounin and tried it out. I also saw a Python script that may have worked.... but I don't think I care enough to try to get my windows machine to run python.

In the code below you will notice the error i get is:

Bytes transferred = 42724204 (28beb6c hex)
file header error
So, i guess it doesn't like the firmware's header... THAT doesn't make sense.
I mean, I get it if it does a check on some hardware specs, and decides it's not going to install because it's not the newest hardware... but... file header error? What's that???

If anyone has any ideas on what to do from here... I'm all ears. I'm not to worried about bricking it. I'd like to attempt to force it to install the latest firmware... but I'm out of ideas.

any ideas @alastairstevenson ?

Code:
Please input ip address of device: Please input ip address of upgrade server:
Confirm?(y/n): n

Please input ip address of device: 192.168.1.90
Please input ip address of upgrade server: 192.168.1.99
Confirm?(y/n): y
Using DaVinci EMAC device
TFTP from server 192.168.1.99; our IP address is 192.168.1.90
Filename 'digicap.mav'.
Load address: 0x84500000
Loading: #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         ###################################################
done
Bytes transferred = 42724204 (28beb6c hex)
file header error

Upgrade failed!

Please input ip address of device:

U-Boot 2010.03 (2012-11-30 - 01:11:11)

/nand/devCfg.bin isn't exsiting! err = -13
umount /nand/ success!▒
Hit ctrl+u to stop autoboot:  0
version.bin not found on /nand/flash_sys0
umount /nand/ success!
Wrong Image Format for bootm command
ERROR: can't get kernel image!
Info:partition 0 is broken, then we startup from partition 1...
version.bin not found on /nand/flash_sys0
umount /nand/ success!
version.bin not found on /nand/flash_sys1
umount /nand/ success!
Wrong Image Format for bootm command
ERROR: can't get kernel image!

This program will upgrade software.
*******************************************************
*  ATTENTION!! PLEASE READ THIS NOTICE CAREFULLY!     *
*  Don't reset machine,or anything that interrupt it. *
*  The upgrade process must finish in 10 minutes!     *
*  If this program fails,machine might be unusable,   *
*  and you will need to reflash again.                *
*  If you find this too risky,power off machine now.  *
*******************************************************

Now press [u/U] key to upgrade software:
 
Last edited:
Top