Unable to flash original firmware - DVR

H4MZ4

n3wb
Joined
Oct 29, 2018
Messages
1
Reaction score
0
Location
UK
I have a generic H264 DVR - 00000117(AHB7004T-EL)

It seems a standard firmware update using USB on the DVR caused the system to brick giving me the issue of the DVR resetting to default, not pickup the cameras, and every option on the GUI menu will freeze the DVR and restart it. I'm guessing the firmware is corrupt, and since I couldn't access the update menu or network menu then I couldn't fix it by standard ways.

I bought a UART USB so I could console directly to the motherboard of the DVR and it uses U-Boot 2010.06-svn342 as the bootloader.

I picked up the correct firmware here: 00000117(AHB7004T-EL) and I extracted all the .img from the .bin and setup a TFTP server on the host.

I used these commands to get the firmware onto the DVR via TFTP:

Code:
setenv ipaddr 192.168.0.61
setenv serverip 192.168.0.28
setenv gatewayip 192.168.0.1
setenv subnetmask 255.255.255.0
saveenv

du=mw.b 0x82000000 ff 0x1000000;tftp 0x82000000 user-x.cramfs.img;sf probe 0;flwrite
dr=mw.b 0x82000000 ff 0x1000000;tftp 0x82000000 romfs-x.cramfs.img;sf probe 0;flwrite
dw=mw.b 0x82000000 ff 0x1000000;tftp 0x82000000 web-x.cramfs.img;sf probe 0;flwrite
dl=mw.b 0x82000000 ff 0x1000000;tftp 0x82000000 logo-x.cramfs.img;sf probe 0;flwrite
dc=mw.b 0x82000000 ff 0x1000000;tftp 0x82000000 custom-x.cramfs.img;sf probe 0;flwrite
up=mw.b 0x82000000 ff 0x1000000;tftp 0x82000000 update.img;sf probe 0;flwrite
All the commands worked fine and I assume that the firmware is now fresh, but when I booted back the DVR, I see the Boot Logo changed to the generic one from the firmware file, but the same issue of the DVR freezing when any menu option is selected still occurred.

Is there something I'm missing when it comes to restoring the firmware? Or is there another way to clear the config of the DVR? Usually I would've been able to do it over network using DeviceManager (a tool to update firmware for the DVRs) but I cannot access the network menu on the DVR as it will just freeze.
 

Nike

n3wb
Joined
Nov 21, 2018
Messages
20
Reaction score
5
Location
Canada
Where is the kernel file?

maybe something like kernel-x.cramfs.img?
 
Top