Restoring DS-7216 Firmware using TFTP when no magic handshake

aptsys

n3wb
Joined
Aug 6, 2020
Messages
2
Reaction score
0
Location
UK
This may be useful to someone, but I bought a non-working DS-7216HUHI-K2 from eBay. Turns out something had occurred during firmware update to brick this unit, however using Scott Lamb's Python script the DVR didn't ever do any handshake to start the firmware transfer over TFTP.

Using the UART on the motherboard highlighted the issue was "cramfs load error<ffffffff> for uimage".

It looks like you can prompt the TFTP download in this situation with the following commands at the HKVS$ prompt:

setenv ipaddr 192.0.0.64
setenv serverip 192.0.0.128
setenv bootargs console=ttyS2,115200n8 root=/dev/ram0 rw initrd=0x42000000
setenv bootcmd 'tftp 0xc0700000 uImage; tftp 0x42000000 digicap.dav; boot 0xc0700000'

Immediately transfer using TFTP commences!

I noted a few people had mentioned the python script would just sit there, so hopefully this is of use to someone.

Thanks :)
 
Last edited:

alastairstevenson

Staff member
Joined
Oct 28, 2014
Messages
15,962
Reaction score
6,794
Location
Scotland
setenv bootcmd 'tftp 0xc0700000 uImage; tftp 0x42000000 digicap.dav; boot 0xc0700000'

Immediately transfer using TFTP commences!
Yes, but doesn't that simply boot over the network? Which requires that the tftp server is always available.
Did you then use the now-available web GUI to do a firmware update that made the change permanent?
Or did you use the update command at the bootloader to do the firmware update?
 

aptsys

n3wb
Joined
Aug 6, 2020
Messages
2
Reaction score
0
Location
UK
Yes, but doesn't that simply boot over the network? Which requires that the tftp server is always available.
Did you then use the now-available web GUI to do a firmware update that made the change permanent?
Or did you use the update command at the bootloader to do the firmware update?
The firmware file it downloaded after the final command became permanent.
 
Top