Flashing U-BOOT

CCTV

n3wb
Joined
Feb 6, 2016
Messages
3
Reaction score
0
Hi Gents, i had Hikvision camera which i was playing with the U-BOOT, unfortunately i did erase all ROM and now i can't see any activity when i'm trying to log in to the camera via serial connection using TFTP
i have another camera but i need to know if it's possible to export (copy) the main U-BOOT image from the working camera and install it back to the bricked camera ?
 

alastairstevenson

Staff member
Joined
Oct 28, 2014
Messages
15,930
Reaction score
6,778
Location
Scotland
when i'm trying to log in to the camera via serial connection using TFTP
Do you mean using a serial TTL console cable connection?
If you did actually erase all the flash memory, there is no longer any code for the processor to execute on startup.
To my knowledge there is no easy way out of that, it's now a true brick, not the partial brick that is common on this forum.
The Hikvision factory have low-level flash programmers that are used to inject the initial or bootstrap code via a direct connection to the mainboard.
Once that bootstrap code is present, it can communicate via the serial UART and be used for higher-level programming.
 

Al-haddad

n3wb
Joined
Jun 19, 2018
Messages
9
Reaction score
0
Location
Yemen
U-Boot 3.1.6-266633 (Mar 23 2017-10:04:37)
boards:234948
Boot From: NAND 2048 RC
SYS_CONFIG: 0x3006005B POC: 101
Cortex freq: 600000000
ENET freq: 50000000
iDSP freq: 216000000
Dram freq: 564000000
Core freq: 216000000
AHB freq: 108000000
APB freq: 54000000
UART freq: 24000000
SD freq: 50000000
SDIO freq: 50000000
SDXC freq: 60000000
dev_model:DS-2CD2442FWD-IW
Hit Ctrl+u to stop autoboot: 2
HKVS # help
The following commands are supported:
boot erase help reset
setenv printenv saveenv updateb
upf update format go
mii gpio ping
Use 'help' to get help on a specific command
HKVS # update
'update' is a ambiguous command! Exec the shortest command
[ INFO][MIN]TFTP: TFTP from server 192.0.0.128
[ INFO][MIN]TFTP: Filename: 'digicap.dav'
[ INFO][MIN]TFTP: ########################################################################
[ INFO][MIN]TFTP: Download File [OK]
[ INFO][MIN]BURN: File size is 29791458 bytes (29093 KB)
[ INFO][MIN]BURN: Writing Flash
[ INFO][MIN]BURN: ..................................................................................................
[ INFO][MIN]BURN: Write Flash [OK]
***** UPDATE COMPLETE *****

BusyBox v1.2.1 Protect Shell (psh)
Enter 'help' for a list of davinci system commands.

#
 

alastairstevenson

Staff member
Joined
Oct 28, 2014
Messages
15,930
Reaction score
6,778
Location
Scotland
The last prompt is the system remaining in the mImage environment that was used to process the update.

At this point, if nothing more needs to be done within that environment, the camera should be power-cycled at which point it will boot into the updated firmware environment.
 

Al-haddad

n3wb
Joined
Jun 19, 2018
Messages
9
Reaction score
0
Location
Yemen
U-Boot 3.1.6-266633 (Mar 23 2017-10:04:37)
boards:234948
Boot From: NAND 2048 RC
SYS_CONFIG: 0x3006005B POC: 101
Cortex freq: 600000000
ENET freq: 50000000
iDSP freq: 216000000
Dram freq: 564000000
Core freq: 216000000
AHB freq: 108000000
APB freq: 54000000
UART freq: 24000000
SD freq: 50000000
SDIO freq: 50000000
SDXC freq: 60000000
please check flash
please check flash
please check flash
init_boot_param:nand_read_data failed
*** Warning - bad CRC, using default environment
crc=0xC1CD2D34,env.crc=0xFFFFFFFF
Hit Ctrl+u to stop autoboot: 1
HKVS # pwd
cmd 'pwd' is not supported.
HKVS # help
The following commands are supported:
boot erase help reset
setenv printenv saveenv updateb
upf update format go
mii gpio ping
Use 'help' to get help on a specific command
HKVS # update
'update' is a ambiguous command! Exec the shortest command
[ INFO][MIN]TFTP: TFTP from server 192.168.1.128
[ INFO][MIN]TFTP: Filename: 'digicap.dav'
tftp: timeout
[ INFO][MIN]TFTP: Download File [FAIL] error: tftp.
!!!!! UPDATE FAIL !!!!!

BusyBox v1.2.1 Protect Shell (psh)
Enter 'help' for a list of davinci system commands.
 

Al-haddad

n3wb
Joined
Jun 19, 2018
Messages
9
Reaction score
0
Location
Yemen
U-Boot 3.1.6-266633 (Mar 23 2017-10:04:37)
boards:234948
Boot From: NAND 2048 RC
SYS_CONFIG: 0x3006005B POC: 101
Cortex freq: 600000000
ENET freq: 50000000
iDSP freq: 216000000
Dram freq: 564000000
Core freq: 216000000
AHB freq: 108000000
APB freq: 54000000
UART freq: 24000000
SD freq: 50000000
SDIO freq: 50000000
SDXC freq: 60000000
please check flash
please check flash
please check flash
init_boot_param:nand_read_data failed
*** Warning - bad CRC, using default environment
crc=0xC1CD2D34,env.crc=0xFFFFFFFF
Hit Ctrl+u to stop autoboot: 1
HKVS #
 

Al-haddad

n3wb
Joined
Jun 19, 2018
Messages
9
Reaction score
0
Location
Yemen
U-Boot 3.1.6-266633 (Mar 23 2017-10:04:37)
boards:234948
Boot From: NAND 2048 RC
SYS_CONFIG: 0x3006005B POC: 101
Cortex freq: 600000000
ENET freq: 50000000
iDSP freq: 216000000
Dram freq: 564000000
Core freq: 216000000
AHB freq: 108000000
APB freq: 54000000
UART freq: 24000000
SD freq: 50000000
SDIO freq: 50000000
SDXC freq: 60000000
please check flash
please check flash
please check flash
init_boot_param:nand_read_data failed
*** Warning - bad CRC, using default environment
crc=0xC1CD2D34,env.crc=0xFFFFFFFF
Hit Ctrl+u to stop autoboot: 1
HKVS # help
The following commands are supported:
boot erase help reset
setenv printenv saveenv updateb
upf update format go
mii gpio ping
Use 'help' to get help on a specific command
HKVS # help gpio
cmd 'help' is not supported.
HKVS # gpio
HKVS # help mil
HKVS # upf
***** UPDATE START *****
do_tftp_load:bld_udp_bind failed!
error: upm.(error: tftp.)!
update mini system [FAIL]!error: upf.
!!!!! UPDATE FAIL !!!!!
HKVS #
 
Top