Hikvision - Clearing Passwords and/or Loading Firmware via TTL Serial

m-blue

n3wb
Joined
Aug 7, 2018
Messages
14
Reaction score
2
Location
Poland
it is not geting echo;/ I can type something, but after enter it is going back on the begining of the line. leds are blinking when I am typing something ( tx led and rx led). I have converter like this: https://stak.com/image/cache/data/products/237/237977/237977-800x800.png Works fine with ESP modules.

I checked 2 convertors, one was brand new. Before connected I checked + and - on socket -about 3,3V, the same was set on converer.
 
Last edited:

alastairstevenson

Staff member
Joined
Oct 28, 2014
Messages
15,930
Reaction score
6,778
Location
Scotland
I can type something, but after enter it is going back on the begining of the line.
It sounds like it may have a 'hidden' command to enable or activate normal command mode.
If it's echoing what you type - the connections and the serial TTL convertor are OK.
The bootloader interface is just ignoring the commands, maybe until it gets that 'activation' command.

As a long shot try 'su' as a command.
 

m-blue

n3wb
Joined
Aug 7, 2018
Messages
14
Reaction score
2
Location
Poland
Ok, but I have this after connected rx and tx together at converter, not after connected to dvr.
 

alastairstevenson

Staff member
Joined
Oct 28, 2014
Messages
15,930
Reaction score
6,778
Location
Scotland
Ok, but I have this after connected rx and tx together at converter, not after connected to dvr.
Sorry, I thought what you quoted was happening was after it was connected to the DVR.
So there is still the possibility that the TX on the convertor is not connected to the RX of the DVR.
Be careful not to connect the TX to the VCC (power) of the DVR connector.
 

m-blue

n3wb
Joined
Aug 7, 2018
Messages
14
Reaction score
2
Location
Poland
I made new cable... from 2 pcs of 2-pin IR connector:) Now it is better - I can stop booting, put some text but I don't have command to upgrade, after put U there is no info to confirm. At second PC I can't stop booting via CTR+U :) I can write commands but after dvr wakes up. I see the light but still small...

I think me and Greg stuck in the same place - cannot run update procedure
 
Last edited:

liem

n3wb
Joined
Aug 27, 2018
Messages
1
Reaction score
0
Location
oxnard, ca
Any updates on getting the keyboard to work? I cannot stop boot sequence with CTRL+u as well...the <ENTER> key also returns to the line vice a new line..having problems with keyboard. I am using putty with windows 10..
 

alastairstevenson

Staff member
Joined
Oct 28, 2014
Messages
15,930
Reaction score
6,778
Location
Scotland
Any updates on getting the keyboard to work? I cannot stop boot sequence with CTRL+u as well...the <ENTER> key also returns to the line vice a new line..having problems with keyboard. I am using putty with windows 10..
On the assumption that whatever you are connected to is not bricked and it's a password reset you are looking for ...
If you allow it to fully boot, can you issue any commands at the psh/bash prompt?
 

AchilleGR

n3wb
Joined
Sep 6, 2018
Messages
1
Reaction score
0
Location
Greece
Gregs53, m-blue & others - try workaround (dirty hack :) ): setenv bootcmd ';update'
Thanks! I was struggling for more than3 hours today until I tried this...

Seems Hikvision is getting more aggresive on uBoot restrictions...
 

novex

n3wb
Joined
Aug 21, 2014
Messages
7
Reaction score
8
Location
Ukraine
I found another simple solution that uses bootargs, which switches u-boot mode. Will Hikvision close this opportunity in new firmwares if published? They already moved the recovery mode beyond uboot.
 

iTuneDVR

Pulling my weight
Joined
Aug 23, 2014
Messages
846
Reaction score
153
Location
Россия
I found another simple solution that uses bootargs, which switches u-boot mode. Will Hikvision close this opportunity in new firmwares if published?
Cool. Keep it in secret!

They already moved the recovery mode beyond uboot.
Yes, because firmware doesn't contain u-boot and it's hard to control....
Now they use sign method, but it not so good too for them ;)
 
Last edited:

alastairstevenson

Staff member
Joined
Oct 28, 2014
Messages
15,930
Reaction score
6,778
Location
Scotland
There have between several 'useful' bootargs parameters that Hikvision have removed or disabled over time, presumably as a consequence of public exposure.
 

aryjrbnu

n3wb
Joined
Sep 3, 2015
Messages
15
Reaction score
0
Cool. Keep it in secret!


Yes, because firmware doesn't contain u-boot and it's hard to control....
Now they use sign method, but it not so good too for them ;)

Hello,
I have two DVRs with the same problem, after the firmware update the user appears blank and I can not access. Via serial connection also the CTRL + U option is not available to upgrade. If someone has another way to access via serial, thank you if you make the method available.

My e-mail is aryjrbnu@gmail.com
 
Last edited:

aryjrbnu

n3wb
Joined
Sep 3, 2015
Messages
15
Reaction score
0
Gregs53, m-blue & others - try workaround (dirty hack :) ): setenv bootcmd ';update'
Hello,
I have two DVRs with the same problem, after the firmware update the user appears blank and I can not access. Via serial connection also the CTRL + U option is not available to upgrade. If someone has another way to access via serial, thank you if you make the method available. When initializing the DVR with the PUTTY connected via serial only the screen with the text "Uncompressing Linux ... done, booting the kernel" appears, but it does not accept any command.
 
Last edited:

gpower07

Getting comfortable
Joined
Dec 8, 2014
Messages
865
Reaction score
179
Location
Tracy, California
Hello,
I have two DVRs with the same problem, after the firmware update the user appears blank and I can not access. Via serial connection also the CTRL + U option is not available to upgrade. If someone has another way to access via serial, thank you if you make the method available. When initializing the DVR with the PUTTY connected via serial only the screen with the text "Uncompressing Linux ... done, booting the kernel" appears, but it does not accept any command.
check your wires...if not connect correctly it will not accept and command.
 

Atlant12

n3wb
Joined
Oct 13, 2018
Messages
3
Reaction score
0
Location
Caucasus
The dvr (DS-7216HUHI-K2) was wrongly updated from 3.5.35 version to 3.5.50 version.
Since then, it is impossible to establish a connexion.
The admin login doesn’t exist anymore and the storage is not visible anymore from the SADP.
I’m trying to come back to the original firmware.


MOPED, thanks for your answer. I also tried your solution but it didn't work.
HI, i have same problem after I use control-u, right at the beginning it stops the bootloader but then the commands don't work anymore !
are you solwe this problem ?
 
Joined
Dec 18, 2015
Messages
13
Reaction score
1
Dear sir
I connected the dvr on my pc directly by Ttl cable I follow your method,but when I turn on my dvr there are nothing show any boot file,anyone can solve this issue???
please help me
 

aryjrbnu

n3wb
Joined
Sep 3, 2015
Messages
15
Reaction score
0
check your wires...if not connect correctly it will not accept and command.
hello, certainly no problem with the wires as I use the same adapter cable on other DVRs and cameras and it works perfectly. The problem is with the latest firmware version that disables the commands in u-boot. I found other forums with the same case, some users mention that they could access by means of attacks, but do not share the method and do not know how to solve.
 

alastairstevenson

Staff member
Joined
Oct 28, 2014
Messages
15,930
Reaction score
6,778
Location
Scotland
I've not seen that DVR - maybe I should take a look at the firmware to see if it includes the bootloader - didn't someone mention preceding the usual familiar bootloader commands with a :
Perhaps just a bit of obscurity has been put in place.
 
Top