Cannot stop the boot process with ctrl+u

Joined
Jul 8, 2019
Messages
6
Reaction score
1
Location
Pakistan
Hello everyone I've a problem while flashing HIKVISION NVR,IPC AND DVR with serial cable. I've reinstalled my os on the laptop which is windows 7 64bit. The serial cable flasher was working fine before reinstalling the os. I've tried with many drivers and different terminal programs likes secure crt, hyper terminal and putty but still no success. I've also tried the win 10 pathced driver which is prolific driver 3.3.2.102 but still same issue. The flasher is fine but it is giving me this creating this issue after reinstalling the os. Any help would be really appreciated.
 

alastairstevenson

Staff member
Joined
Oct 28, 2014
Messages
15,946
Reaction score
6,784
Location
Scotland
Any help would be really appreciated.
If you join RX to TX from the USB to serial convertor, do characters typed get echoed?

Have you tried another PL2303-based USB to TTL serial convertor?
Maybe the one you are using is broken. In my experience, they can be quite fragile, I usually buy several at a time.
 
Joined
Jul 8, 2019
Messages
6
Reaction score
1
Location
Pakistan
t
If you join RX to TX from the USB to serial convertor, do characters typed get echoed?

Have you tried another PL2303-based USB to TTL serial convertor?
Maybe the one you are using is broken. In my experience, they can be quite fragile, I usually buy several at a time.
Yes Ive tried with another PL2303-baed USB to TTL serial convertor but still same problem. The problem just came after reinstalling the OS both win 7 64 bit and win 10 64bit.
 

alastairstevenson

Staff member
Joined
Oct 28, 2014
Messages
15,946
Reaction score
6,784
Location
Scotland
The problem just came after reinstalling the OS both win 7 64 bit and win 10 64bit.
Have you confirmed in Device Manager the COM port number assigned to the USB convertor?
Do characters echo when the USB convertor TX and RX wires are connected to each other?
 

alastairstevenson

Staff member
Joined
Oct 28, 2014
Messages
15,946
Reaction score
6,784
Location
Scotland
Yes Ive tried with another PL2303-baed USB to TTL serial convertor but still same problem.
What you showed in the video is an RS-232 DB9 interface on the NVR.
A PL2303-based serial TTL to USB convertor will not work with that - it's a different type of interface.

Serial TTL uses unipolar signals of 0 - 3v
RS-232 uses bipolar signals of +- 3-15v
Connecting a serial TTL interface to RS-232 is likely to damage the serial TTL convertor.

I know that does not explain why it worked OK before you re-installed Windows.
 
Joined
Jul 8, 2019
Messages
6
Reaction score
1
Location
Pakistan
What you showed in the video is an RS-232 DB9 interface on the NVR.
A PL2303-based serial TTL to USB convertor will not work with that - it's a different type of interface.

Serial TTL uses unipolar signals of 0 - 3v
RS-232 uses bipolar signals of +- 3-15v
Connecting a serial TTL interface to RS-232 is likely to damage the serial TTL convertor.

I know that does not explain why it worked OK before you re-installed Windows.
This converter use to work on these ports as well. I do have a small flasher with RJ45 connector port which i use to flash HIKVISION DVRS AND IPCS.
 

GiovanniG

Young grasshopper
Joined
May 18, 2021
Messages
33
Reaction score
5
Location
Italy
I have the same problem, can't stop uboot pressing ctrl+q, it goes 1 for awhile and returns to 0, I'm sure all is connected perfectly, what can I do?
there is anther break instruction?
the system loads kernel, etc, I have a # prompt after, there is anything there I can do to flash? Actually I just need to reset all config parameters
Thank you
 

alastairstevenson

Staff member
Joined
Oct 28, 2014
Messages
15,946
Reaction score
6,784
Location
Scotland
After it boots and the # prompt occurs, does it echo the characters that you type?

Suggestion :

Keep Control-U pressed till it auto-repeats before the DVR is powered on and keep it pressed.
There is not enough time to press it after power is applied.
 

GiovanniG

Young grasshopper
Joined
May 18, 2021
Messages
33
Reaction score
5
Location
Italy
thanks for help, yes it does, in the end of full boot i can type help and I've the list of commands. All is ok.
I've managed to interrupt boot with ctrl+u, but I've a HKVS $ and anything I type is not considered (i see echo, but the command is ignored). What to do now?
 

GiovanniG

Young grasshopper
Joined
May 18, 2021
Messages
33
Reaction score
5
Location
Italy
U-Boot 2010.06-svn (Jun 09 2017 - 17:35:53)[V1.4.5]

Hit ctrl+u to stop autoboot: 0
HKVS $ printenv
HKVS $ setenv ipaddr 192.168.1.200
HKVS $ setenv serverip 192.168.1.232
HKVS $ help
HKVS $ root
HKVS $ su
HKVS $ update
HKVS $

seems nothing is working here, I sniffed ethernet and nothing is coming out from ethernet too
 

alastairstevenson

Staff member
Joined
Oct 28, 2014
Messages
15,946
Reaction score
6,784
Location
Scotland
I've a HKVS $ and anything I type is not considered
There is a little trick to entering bootloader commands for that model -
Start the command with setenv, enclose the command with single quotes and precede the command with a semicolon.

Example to list the varibales and list the available commands :
Code:
HKVS $ setenv ';printenv'
bootcmd=tftp 0x42000000 $(bootfile);bootm 0x42000000;
default=cramfsload 0x42000000 uImage;
sec=tftp 0x42000000 Ky2017-1-uImage_sec;bootm 0x42000000;
bootdelay=1
baudrate=115200
ipaddr=192.0.0.64
serverip=192.0.0.128
gatewayip=192.0.0.1
netmask=255.255.255.0
bootfile=uImage
passwd=Ff7mqPaKbKihTW5nC3vk5IoiCntz1B0tcwzUMtMOJFI=
phyaddr0=7
mdio_intf=rgmii
ethaddr=64:db:8b:8b:3e:01
stdin=serial
stdout=serial
stderr=serial
verify=n
bootargs=mem=296M console=ttyS0,115200n8 ;printenv

Environment size: 481/4092 bytes
HKVS $ setenv ';help'
?       - alias for 'help'
bootm   - boot application image from memory
brush   - brush a flash image to the Flash, Be Carefully.
bubt    - Burn an boot image on the Boot Flash.
cpld    - write cpld info to  encrypt media
cramfsload- cramfsload  - load binary file from a filesystem image
cramfsls- cramfsls      - list files in a directory (default /)
ddr     - ddr training function
erase_env- erase envirement info on flash
getinfo - print hardware information
help    - print command description/usage
loadb   - load binary file over serial line (kermit mode)
loady   - load binary file over serial line (ymodem mode)
md      - memory display
mii     - MII utility commands
mm      - memory modify (auto-incrementing address)
mw      - memory write (fill)
pflash  - print the compatibility list of flash.
ping    - send ICMP ECHO_REQUEST to network host
printenv- print environment variables
reset   - Perform RESET of the CPU
run     - run commands in an environment variable
saveenv - save environment variables to persistent storage
setenv  - set environment variables
tftp    - tftp  - download or upload image via network using TFTP protocol
update  - Update the digicap of the device.
version - print monitor version
HKVS $
HKVS $
 
Top