Dahua NVR Update Failed - Should I be worried about this error message?

Joined
Sep 7, 2017
Messages
10
Reaction score
0
Location
Warwick, UK
I have a DH-NVR5216-4KS2 that I bought back in 2017 from Andy, along with 8 x Dahua IPC cameras of various types.

All cameras are on the IPC-HX5X3X-Rhea_MultiLang_PN_Stream3_V2.800.0000013.0.R.191202 firmware (so latest, I believe).

I decided to update the NVR to the DH_NVR5XXX-4KS2_MultiLang_V4.001.0000003.2.R.201010 firmware (it was on: DH_NVR5XXX-4KS2_Eng_V3.215.0000000.3.R.20171211, so a little behind latest V3.216....)

Anyway, during the update clearly something went wrong and I ended up in the loop of V4 screen showing up & then rebooting...

I bought a USB to RS232 cable (I had a 3.3v / 5v USB to serial, but the NVR5216 clearly needed the full volts of RS232 to communicate) and then swapped TX/RX and got it showing up in Putty.

I managed to reflash using TFTP to DH_NVR5XXX-4KS2_MultiLang_V4.001.0000003.2.R.201010 firmware and it came up again just fine. It then appeared to be showing a bunch of error messages in the console when booting (things like using slave due to errors), so I used the web interface to roll it back to DH_NVR5XXX-4KS2_MultiLang_V3.216.0000006.0.R.20190223 and then after rebooting successfully under V3.216...6, used the web interface to upgrade to V4.001...3 again, which this time worked. Most of the error messages had by now gone away.

The console now shows the following when booting up (everything seems to be working OK):

Code:
Spi(cs1) ID: 0xEF 0x40 0x13 0x00 0x00 0x00
Special NAND id table Version 1.36
Nand ID: 0xEF 0xF1 0x80 0x95 0x00 0x00 0x00 0x00
stmmac_init,568,0x70431,3
MAC:   00-00-23-34-45-66
U-Boot 2010.06-svn4783 (Jun 22 2020 - 22:18:37)
In:    serial
Out:   serial
Err:   serial
ver is not set set and save it
squashfs use gzip
SCU:   load slave image OK
spi env sysbackup=0
Read backup misc byte ... no env and backup env tc !!!
ok!
index 109 len 22
Erasing Nand...
Writing to Nand... done
restore backup to env!
GpioI2cMcuRecvAck 114 err
__FUNCTION__ = GpioI2cReadByteMcu, __LINE__ = 244
GpioI2cReadByteMcu faield
[is2uProduct] get failed
PRODUCT:1U
stmmac_init,692,0x70431,3
Hit any key to stop autoboot:  0
stmmac_init,692,0x70431,3
stmmac_init,692,0x70431,3
NET_autoLipDetect timeout
stmmac_init,692,0x70431,3
ARP Retry count exceeded; starting again
## Booting kernel from Legacy Image at 42000000 ...
   Image Name:   Linux-3.10.0_hi3536
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3000104 Bytes = 2.9 MiB
   Load Address: 40008000
   Entry Point:  40008000
   Loading Kernel Image ... OK
OK
Starting kernel ...
Uncompressing Linux... done, booting the kernel.
Should I be worried by the 'err/failed' lines in the middle of this?
 

DanTav

n3wb
Joined
Mar 13, 2021
Messages
3
Reaction score
0
Location
Cape Verde
Hello, MarkMiwurds.
How did you manage to reflash the DH_NVR5XXX-4KS2_MultiLang_V4.001.0000003.2.R.201010 firmware?

I have the same DVR. I tried to do the same upgrade and I am at the point that it reboots itself after the V4 screen.
I am using Putty and SolarWinds TFTp Server.
Using Putty, when I get to the prompt I do:
hisilicon # setenv serverip 192.168.1.200 (set ip address of TFTP server)
hisilicon # setenv ipaddr 192.168.1.11 (set ip address of DVR)
hisilicon # saveenv (save environment variables)
hisilicon # ping 192.168.1.200 (ping TFTP server. Its alive)

Then I try to do the upgrade but without success:
hisilicon # run dc (to download customs… from TFTP server)
It does not work:
stmmac_init,692,0x70431,3
T T T T T
Retry count exceeded; starting again
do_tftp_secure failed

Afterwards I understand I am supposed to do:
hisilicon # run dr
hisilicon # run up (to upgrade)

Could you please share the steps you follow to flash the new firmware?
Thank you!
 
Joined
Sep 7, 2017
Messages
10
Reaction score
0
Location
Warwick, UK
Did you ’unzip’ the bin file using 7zip and put these files in the directory on the TFTP server?

I also did these two commands before the saveenv (not sure if they would change your outcome)
  • setenv gatewayip 192.168.1.1
  • setenv netmask 255.255.255.0
When I was doing it, I stepped through the ‘run’ commands in order, some of them worked and some of them didn’t. It seemed to reboot between each one and always went back into the reboot loop.

run dr
run dk
run du
run dw
run dp
run dc

To be honest, I didn’t expect it to recover, but bizarrely, when I ran the one that does the web interface (run dw), it did actually come up and reboot correctly (apart from the error message above) - so I stopped running them then. I then used the web interface to reinstall v3.216 and then updated again to this one that you’re using.

All I can say is, don’t give up! Hope that this helps
 

kobebeef

Pulling my weight
Joined
Mar 13, 2016
Messages
207
Reaction score
229
Did you ’unzip’ the bin file using 7zip and put these files in the directory on the TFTP server?

I also did these two commands before the saveenv (not sure if they would change your outcome)
  • setenv gatewayip 192.168.1.1
  • setenv netmask 255.255.255.0
When I was doing it, I stepped through the ‘run’ commands in order, some of them worked and some of them didn’t. It seemed to reboot between each one and always went back into the reboot loop.

run dr
run dk
run du
run dw
run dp
run dc

To be honest, I didn’t expect it to recover, but bizarrely, when I ran the one that does the web interface (run dw), it did actually come up and reboot correctly (apart from the error message above) - so I stopped running them then. I then used the web interface to reinstall v3.216 and then updated again to this one that you’re using.

All I can say is, don’t give up! Hope that this helps
If you upgrade v3.2 to v4.0 without flashing u-boot (run da), you can flash back to v3.2
But v4.0 must be flashed u-boot(run da) before it can be used normally
 
Joined
Sep 7, 2017
Messages
10
Reaction score
0
Location
Warwick, UK
Hi @kobebeef When you use the web interface to apply DH_NVR5XXX-4KS2_MultiLang_V4.001.0000003.2.R.201010.bin as an update, I assume that it also updates u-boot?
 

kobebeef

Pulling my weight
Joined
Mar 13, 2016
Messages
207
Reaction score
229
Except for updating using TFTP.
if you use web upgrade also updates u-boot.
 

jtipguy

n3wb
Joined
Jan 8, 2017
Messages
8
Reaction score
0
Hello, MarkMiwurds.
How did you manage to reflash the DH_NVR5XXX-4KS2_MultiLang_V4.001.0000003.2.R.201010 firmware?

I have the same DVR. I tried to do the same upgrade and I am at the point that it reboots itself after the V4 screen.
I am using Putty and SolarWinds TFTp Server.
Using Putty, when I get to the prompt I do:
hisilicon # setenv serverip 192.168.1.200 (set ip address of TFTP server)
hisilicon # setenv ipaddr 192.168.1.11 (set ip address of DVR)
hisilicon # saveenv (save environment variables)
hisilicon # ping 192.168.1.200 (ping TFTP server. Its alive)

Then I try to do the upgrade but without success:
hisilicon # run dc (to download customs… from TFTP server)
It does not work:
stmmac_init,692,0x70431,3
T T T T T
Retry count exceeded; starting again
do_tftp_secure failed

Afterwards I understand I am supposed to do:
hisilicon # run dr
hisilicon # run up (to upgrade)

Could you please share the steps you follow to flash the new firmware?
Thank you!
Know this thread is old....

Replaced a bad HDD in same model NVR, decided to upgrade from 3.x firmware to 4.x firmware. Same boot loop. Should have known better!

Having a hard time finding the 3.x firmware....sent a message to dahua support nothing yet and probably won't respond...Any place to grab a 3.x FW?

Thanks,
Jeff
 

wslyseereg

n3wb
Joined
Mar 20, 2023
Messages
1
Reaction score
0
Location
.
Last edited:

almack

n3wb
Joined
Mar 19, 2024
Messages
4
Reaction score
0
Location
EU
Know this thread is old....

Replaced a bad HDD in same model NVR, decided to upgrade from 3.x firmware to 4.x firmware. Same boot loop. Should have known better!

Having a hard time finding the 3.x firmware....sent a message to dahua support nothing yet and probably won't respond...Any place to grab a 3.x FW?

Thanks,
Jeff

Hi I have the same issue. Did you fix it?

Thx,
Al
 
Top