DS2CD2132-I language mismatch after upgrade to v5.4.41

lcoulon

n3wb
Dec 9, 2017
16
1
Hello

I've upgraded my DS2CD2132-I to firmware v5.4.41

and now when i try to connect it through web interface, i get this message :

Access Error: 404 -- Not Found

firmware language mismatch: /home/webLib



Now, the cam is only visible with Hikavision Tools v1.2.1.2

Can you please tell me how i could get it back working ?
 
Can you please tell me how i could get it back working ?
Presumably the camera had CCCH in its serial number?
If so, the camera is part bricked due to applying EN/ML firmware to a CN camera.
Unfortunately, there is a 'downgrade block' in the firmware of 5.4.0 and higher that will prevent you from going back to earlier versions of firmware.
If you want to convert the camera to full English to remove it's CN origins you could do the brick-fix and 'enhanced mtd hack' from here :
Unbrick and fully upgrade your R0 / DS-2CD2x32 IP cameras -
R0 / DS-2CD2x32 BrickfixV2 brick recovery and full upgrade tool - enhanced.
 
  • Like
Reactions: lcoulon
You are right, the cam has a CCCH serial .

I tried to follow the Brick recovery steps , but i'm facing outstanding issue after getting the cam flashed with TFTP :
I 'm able to connect it through Telnet : 192.0.0.64 with credentials but the script fails, it is not able to export any file to TFTP

Here is the log i get :

Code:
(none) login: root
Password:
login: can't chdir to home directory '/root/'
# # /dav/fixup.sh
# This is the brick-fix and update script which will help you to extract,
-sh: This: not found
# modify and replace mtdblock6 to fix the downgrade block and convert this camer
a
                                                                               t
o English updateable.
-sh: modify: not found
#
# ** It is no longer necessary to make any changes to mtdblock1 - these have bee
n
                                                                               p
rocessed already **
./VERSION: line 1: 70824: not found
# .
# The whole process takes 3 stages.
-sh: The: not found
# Stage 1 - mtdblock6 is extracted and sent via tftp to your PC for you to modif
y.
-sh: Stage: not found
# Stage 2 - the modified mtdblock6 is retrieved by tftp from your PC and applied
 t
                                                                               o
 the camera.
-sh: Stage: not found
# Stage 3 - the '5.3.0 to 5.2.5 downgrader' firmware is retrieved by tftp from y
ou
                                                                               r
 PC and used to update the camera.
-sh: Stage: not found
# At this point the web GUI in English will be available and allow
-sh: At: not found
# you to do progressive updates from 5.2.5 to 5.3.0 to 5.4.0 to 5.4.5
-sh: you: not found
# .
# In each stage, check the content of the logfile fixup_log.txt for the actions
ta
                                                                               k
en and the status.
-sh: In: not found
# Good luck!
-sh: Good: not found
# .
# Checking that tftp works OK ...
-sh: Checking: not found
# [ INFO][MIN]TFTP: tftp: server error: (0) No such file or directory
-sh: syntax error: unexpected "("
# Extracted the original mtdblock6 as mtd6ro_orig
-sh: Extracted: not found
# Extracted the original mtdblock1 as mtd1ro_orig
-sh: Extracted: not found
# Transferring out mtd6ro_orig via tftp ...
-sh: Transferring: not found
# .
# [ INFO][MIN]TFTP: tftp: server error: (0) No such file or directory
-sh: syntax error: unexpected "("
#
# *** error transferring mtd6ro_orig via tftp to the PC. ****
./VERSION: line 1: 70824: not found
# .
# .
# Each stage of the process is carried out by a run of the /dav/fixup.sh script
..
                                                                               .
-sh: Each: not found
# The next stage is :
-sh: The: not found
# -rw-r--r--    1        50 Dec  9 14:42 /dav/fixup_stage1.txt
-sh: -rw-r--r--: not found
# .
# .
#
# [ INFO][MIN]TFTP: tftp: server error: (0) No such file or directory
-sh: syntax error: unexpected "("
#
# *** An error has occurred. Check the on-screen messages and the contents of th
e
                                                                               l
ogfile   ***
./VERSION: line 1: 70824: not found
# *** fixup_log.txt that was transferred to your PC and after correcting the cau
se

of the   ***
./VERSION: line 1: 70824: not found
# *** error re-run the script /dav/fixup.sh to resume.


         ***
./VERSION: line 1: 70824: not found
# # /dav/fixup.sh
# This is the brick-fix and update script which will help you to extract,
-sh: This: not found
# modify and replace mtdblock6 to fix the downgrade block and convert this camer
a
                                                                               t
o English updateable.
-sh: modify: not found
#
# ** It is no longer necessary to make any changes to mtdblock1 - these have bee
n
                                                                               p
rocessed already **
./VERSION: line 1: 70824: not found
# .
# The whole process takes 3 stages.
-sh: The: not found
# Stage 1 - mtdblock6 is extracted and sent via tftp to your PC for you to modif
y.
-sh: Stage: not found
# Stage 2 - the modified mtdblock6 is retrieved by tftp from your PC and applied
 t
                                                                               o
 the camera.
-sh: Stage: not found
# Stage 3 - the '5.3.0 to 5.2.5 downgrader' firmware is retrieved by tftp from y
ou
                                                                               r
 PC and used to update the camera.
-sh: Stage: not found
# At this point the web GUI in English will be available and allow
-sh: At: not found
# you to do progressive updates from 5.2.5 to 5.3.0 to 5.4.0 to 5.4.5
-sh: you: not found
# .
#

Here is TFTP warning about "mtd6ro_orig" :

TFTP_capture.png


So i'm stuck at
# Stage 1

Can you help me please ?
 
Can you help me please ?
That's bizzarre!
The script is not executing normally. It's not clear to me why.
You do still have the Hikvision tftp updater running, based on your screenshot, but I don't see why that should affect the normal running of the script. It would just complain about not being able to upload any files.

Can I just check the steps carried out:
With either the brickfixV2EN.dav or brickfixV2CN.dav renamed as digicap.dav applied with the Hikvision tftp updater.
Then the tftp updater shut down, and the camera power cycled.
Then telnet access to 192.0.0.64 with admin/12345 login.
Press Return a couple of times, to confirm there is a # prompt.
Then start the normal tftp server (maybe the jounin.net one linked to).
And then, at the # shell prompt of the camera, use the command
/dav/fixup.sh
 
Thanks, now i was able to go ahead in next steps.

I did the checksum calculation with HxD, but the result got on the bottom of the screen looks to be the same in 0x04 - 0x05
Should i leave as it is , i did not understood was i'm supposed to do next with checksum.

Here is screen capture, no modification was made so far :

HxD.png


Since it looks that no change are needed in that file, i proceeded with next step :

Here is the log i get :
Code:
[Brick-fix tool] Initialising fixup_log.txt
Payload dropped, rollback re-enabled
Initialising fixup current status to stage1
[Brick-fix tool] Initiating reboot into min-system
Checking that tftp works OK ...
Extracting the original mtdblocks ...
Extracted the original mtdblock6 as mtd6ro_orig
Extracted the original mtdblock1 as mtd1ro_orig
Transferring out mtd6ro_orig via tftp ...
*** error transferring mtd6ro_orig via tftp to the PC. ****
End of script - ready for the next run.
.
Checking that tftp works OK ...
Extracting the original mtdblocks ...
Extracted the original mtdblock6 as mtd6ro_orig
Extracted the original mtdblock1 as mtd1ro_orig
Transferring out mtd6ro_orig via tftp ...
*** error transferring mtd6ro_orig via tftp to the PC. ****
End of script - ready for the next run.
.
[Brick-fix tool] Initiating reboot into min-system
Checking that tftp works OK ...
[stage start] fixup_log.txt successfully transferrred to the PC via tftp
Extracting the original mtdblocks ...
Extracted the original mtdblock6 as mtd6ro_orig
Extracted the original mtdblock1 as mtd1ro_orig
Transferring out mtd6ro_orig via tftp ...
Successfully transferred out mtd6ro_orig via tftp
Transferring out mtd1ro_orig via tftp ...
Successfully transferred out mtd1ro_orig via tftp
Fixup Stage1 is completed - Extracted the original mtdblocks
End of script - ready for the next run.
.
Checking that tftp works OK ...
[stage start] fixup_log.txt successfully transferrred to the PC via tftp
*** error transferring mtd6ro_mod via tftp from the PC. ****
End of script - ready for the next run.
.
Checking that tftp works OK ...
[stage start] fixup_log.txt successfully transferrred to the PC via tftp
Successfully transferred in mtd6ro_mod via tftp
Written mtd6ro_mod to mtdblock6 ...
Initialising fixup next status to stage3 ...
End of script - ready for the next run.
.
Checking that tftp works OK ...
[stage start] fixup_log.txt successfully transferrred to the PC via tftp
*** error transferring digicap.dav via tftp from the PC. ****
End of script - ready for the next run.
.

I do not know if all is finish or if i need to do more things .
Is it normal that "mtd6ro_mod" may not require any changes ?

So far, after a power cycle the cam is not visible with Hikavision Tools, and DHCP router did not assign an IP to it.
 
Last edited:
I did the checksum calculation with HxD, but the result got on the bottom of the screen looks to be the same in 0x04 - 0x05
Should i leave as it is , i did not understood was i'm supposed to do next with checksum.
Is it normal that "mtd6ro_mod" may not require any changes ?
If it didn't need any changes - your camera would be running normally with the new firmware instead of complaining about a language mismatch.

You haven't yet changed the language byte in location 10 from 02 (Chinese) to 01 (English).
That will drop the needed checksum value in location 04 from 91 to 90.
So far, after a power cycle the cam is not visible with Hikavision Tools, and DHCP router did not assign an IP to it.
That's normal - it will appear inert until the process is complete. It's running in min-system mode just now.
Is it normal that "mtd6ro_mod" may not require any changes ?
You do need to change the language byte in location 10 - and then the checksum as explained above.
You'll need to repeat Stage 2 so that you can get the correctly modified mtd6ro_mod in to the camera.
You can cheat if you use these 2 commands :

rm /dav/fixup_stage*
echo "Get me back to Stage 2" > /dav/fixup_stage2.txt

and then run
/dav/fixup.sh
again.
Then when you've done that, drop a copy of the digicap.dav that you want to update to into the working folder and run the script again, which will do stage 3.
It's looking like going straight to the 5.4.5 version works OK for the fixup script.

It's interesting that the checksum was actually correct. That, and the fact that the language byte is 02 (Chinese) explains why you just got a part brick - a language mismatch.
Thanks, now i was able to go ahead in next steps.
But I'm quite intrigued - the fixup script is working normally now - what's changed to get over the problem you saw originally?

Good luck!
 
Okay, i just noticed while you were probably writting back to me that i forgot to change 0x10 = 01

Here is what i did, the checksum is now indeed 90 0C

HxD.png


I will now try the cheat you described to redo the file transfer, i will you know the results asap.
 
I confirm i was able to fix the language issue, the last step ( firmware upgrade ) passed straight away at v5.4.5

Thank you very much Alistair, now my cam is rescued !

thank_you.png
 
Did you ever get this to work?


I'm stuck with an error

*** error transferring mtd6ro_mod via tftp from the PC. ****


Here is TFTP warning about "mtd6ro_orig" :

TFTP_capture.png


So i'm stuck at
# Stage 1

Can you help me please ?[/QUOTE]