Hikvision DS-2CD2132F-IS bricked, in search of help

Billkater

Young grasshopper
Joined
Jul 5, 2014
Messages
86
Reaction score
1
Sitting here at work thinking. If I upgrade to 5.3.0, will I be able to go back to 5.2.5?

I am about ready to try anything about now.
 

whoslooking

IPCT Contributor
Joined
Oct 3, 2014
Messages
1,524
Reaction score
548
Location
London
You have nothing to lose, if you brick it you can ftp in
Just follow my guide on how to unbrick.
 
Last edited by a moderator:

alastairstevenson

Staff member
Joined
Oct 28, 2014
Messages
15,973
Reaction score
6,798
Location
Scotland
Yes, exactly the same problem - the Linux kernel does not like the contents of the block of firmware that holds the initial ramdisk - looking for the structures associated with an initramfs, not finding it, and not trying for the alternate initrd format as it normally would.
<6>Unpacking initramfs...
<0>Initramfs unpacking failed: junk in compressed archive
<6>Freeing initrd memory: 4096K
<0>[ kernel version: svn-83192 ]
The cause and solution has got us all stumped.

*edit*
This is the same section from my 2014 manufactured 2132 with firmware 5.2.3 installed.
<6>[ 0.401161] Trying to unpack rootfs image as initramfs...
<6>[ 0.403771] rootfs image is not initramfs (no cpio magic); looks like an initrd
<6>[ 0.438521] Freeing initrd memory: 4096K
<0>[ 0.441554] [ kernel version: svn-97978 ]
 

Billkater

Young grasshopper
Joined
Jul 5, 2014
Messages
86
Reaction score
1
Just came back in to do a little work. Found that SADP has seen the camera as DS-2cd-Min..... I pulled a log from it as I could use PuTTy and hook right to it without any problems. I rebooted the camera and SADP saw it aftre about 10 minutes. The log still shows

6>Unpacking initramfs...
<0>Initramfs unpacking failed: junk in compressed archive
<6>Freeing initrd memory: 4096K
I used the 5.3.0 firmware from http://overseas.hikvision.com/en/download_89.html#prettyPhoto. It was the Baseline Firmware_IPC_En_V5.3.0 150327 (2XX0)(New) version.

This just has me stumped. I am going to plug it into my lan and see if I can access it though a 192.168.x.x address. Any clue which one it will be?
 

Attachments

richisup

n3wb
Joined
Apr 17, 2015
Messages
18
Reaction score
6
Just came back in to do a little work. Found that SADP has seen the camera as DS-2cd-Min..... I pulled a log from it as I could use PuTTy and hook right to it without any problems. I rebooted the camera and SADP saw it aftre about 10 minutes. The log still shows



I used the 5.3.0 firmware from http://overseas.hikvision.com/en/download_89.html#prettyPhoto. It was the Baseline Firmware_IPC_En_V5.3.0 150327 (2XX0)(New) version.

This just has me stumped. I am going to plug it into my lan and see if I can access it though a 192.168.x.x address. Any clue which one it will be?

This is the same stage i am at - it lets me set an ip address and tftp also works but that's about it.. not tried connecting through the serial connector as I am unsure what could be achieved if anything
 

alastairstevenson

Staff member
Joined
Oct 28, 2014
Messages
15,973
Reaction score
6,798
Location
Scotland
This is @iTuneDVR view of what may be the problem - could be correct
I think it's RAM trouble and need to return this IPC to seller, get money back and forget about it!
as the primary flash area for the initrd has been re-written and the problem persists.
It's possible it gets loaded into memory and corrupted.
On the other hand - the bootstrap works OK, the kernel loads, firmware update works, so no evidence of memory problems there.
 
Last edited by a moderator:

iTuneDVR

Pulling my weight
Joined
Aug 23, 2014
Messages
849
Reaction score
156
Location
Россия
alastairstevenson!
TFTP 5.2.5 must reflash mtd10 and mtd11 correctly!
Yes bootstap is ok, but use different part of memory.

I saw it many times in other hikvision IPC model, older and more newer.
In one case i rebuild firmware (do smaller) and TFTP work correctly, but with the original firmware TFTP does't work.
Here is other situation, but the ploblem the same. I think so!
 

Billkater

Young grasshopper
Joined
Jul 5, 2014
Messages
86
Reaction score
1
alastairstevenson!
TFTP 5.2.5 must reflash mtd10 and mtd11 correctly!
Yes bootstap is ok, but use different part of memory.

I saw it many times in other hikvision IPC model, older and more newer.
In one case i rebuild firmware (do smaller) and TFTP work correctly, but with the original firmware TFTP does't work.
Here is other situation, but the ploblem the same. I think so!
So, are you suggesting a hardware problem. Namely a memory problem?
 

richisup

n3wb
Joined
Apr 17, 2015
Messages
18
Reaction score
6
Yes.
If you did everything right and nothing else from you does not depend on, it means that a problem with the hardware.
Thanks Itune

I guess this is viable - we usually expect around a 5% failure on flash memory sold in our shop + even PC's suffer from similar problems, often a faulty memory stick will only cause problems on installation of the O/S which is a tricky one to explain to the customer..

One last thing to try is a stable power supply - I tested a couple of supplies of which I found can be quite a bit off the 12v they are rated at.. I have read posts where people have found this to be an issue when flashing the F/W.

It didn't help me but it's worth checking
 

iTuneDVR

Pulling my weight
Joined
Aug 23, 2014
Messages
849
Reaction score
156
Location
Россия
I guess this is viable - we usually expect around a 5% failure on flash memory sold in our shop + even PC's suffer from similar problems, often a faulty memory stick will only cause problems on installation of the O/S which is a tricky one to explain to the customer..
One last thing to try is a stable power supply - I tested a couple of supplies of which I found can be quite a bit off the 12v they are rated at.. I have read posts where people have found this to be an issue when flashing the F/W.
It didn't help me but it's worth checking
As i said If you did everything right and nothing else from you does not depend on......
If you look closely you will see that mtdblock10,11,12 -is in usual format, but 13-16 is in ubifs.
Of course, the possible failure flash memory, but your IPC has worked in the beginning!
But i think it's RAM problem.
In any case, do not come back and spend your time on it!
 

Billkater

Young grasshopper
Joined
Jul 5, 2014
Messages
86
Reaction score
1
Thank you all for your hard work on this. I will pitch it in my junk pile and maybe someday figure out a solution.
 

Q™

IPCT Contributor
Joined
Feb 16, 2015
Messages
4,990
Reaction score
3,991
Location
Megatroplis, USA
Better to send it to alastairstevenson so that he might experiment for the betterment of ipcomeradom.
 

alastairstevenson

Staff member
Joined
Oct 28, 2014
Messages
15,973
Reaction score
6,798
Location
Scotland
I'd thought about that too - in the interests of academic research.
Would have been an interesting idea - but we're in different countries quite some miles apart.
ipcomeradom
Interesting word - I'll need to look it up lol.
 

alastairstevenson

Staff member
Joined
Oct 28, 2014
Messages
15,973
Reaction score
6,798
Location
Scotland
@Billkater - This may be a dead topic for you now - or maybe not if your junk pile is bugging you. But may be of interest to others.
With the many problems being seen by people updating the new-manufacture 2-series Hikvision cameras I felt a bit helpless not having one to play with and try things out for myself. So I bought another 2CD3332N-I from CSST, arrived in 9 days.
Label 5.2.8 03/2015, apparent actual 5.2.5, so in the ball park for problems if updated. The camera works fine, connects to both 7816N-E2 NVRs, language=1 in prtHardInfo, 0x02 in mtdblock5&6, CCCH in the serial number. So Chinese under the covers.
So the first thing I did (after step 0 which was to make a copy of all the flash mtdblock segments ...) was to change the language byte from 0x02 to 0x01 in all the hardware descriptor blocks of mtdblock5 & 6 with a compensating change in the bytes that set the MAC address.
All was good after the reboot - no obvious changes. But it was still running the hacked firmware that masquerades the language to English.
The next thing I did was a planned empirical (suck it and see) exploration of which parts of the hardware descriptor block are covered by the checksum.
As expected, on the first single byte change, the camera bricked and bootlooped.
To get it back, I used TFTP with a 5.2.5 English digicap.dav (@whoslooking published) and left TFTP running after the file download and 'upgrade success' message, at which point telnet to 192.0.0.64 is available.
And here is the point of posting this here, as there may be some commonality with your problem:

Inspecting the kernel log (cat /proc/kmsg) showed the reason bootup was incomplete - no ramdisk. This is the symptom your camera has.
<6>Unpacking initramfs...
<0>Initramfs unpacking failed: junk in compressed archive
<6>Freeing initrd memory: 4096K
<0>[ kernel version: svn-83192 ]
I grabbed a copy of mtdblock11, which holds initrd, the ramdisk, to check out later. But all I'd changed was one byte in mtdblock6 to cause the camera to brick, so unlikely mtdblock11 was bad.
I put the previous (language-changed) copy of mtdblock6 back, and the camera booted up OK, though back to default settings, and with the 5.2.5 firmware installed.

So I'm wondering if the entry in the kernel log "Initramfs unpacking failed: junk in compressed archive" may be a deliberate red herring to cover what in reality is a checksum integrity failure.
I'll know more as I continue the journey of discovery.
 

Billkater

Young grasshopper
Joined
Jul 5, 2014
Messages
86
Reaction score
1
I would be glad to hear what you find out. Maybe my junk pile will get a little smaller if you find the answer
 
Top