DHI-NVR5232-4KS2 не загружается после обновления

Kompas

Member
Поделитесь пожалуйстя дампом w29n01gvsiaa для восстановления прошивки регистратора DHI-NVR5232-4KS2 на программаторе.
 

Kompas

Member
Так ведь нЕчего пока заливать. Сохраню конечно если получится.
 

Oleglevsha

Левша
Смотрите лог загрузки, обновите прошивку поблочно используя tftp, где покупали регистратор?
 

Kompas

Member
подключите к комп порту и посмотрите какие признаки в терминале.
Spi(cs1) ID: 0xEF 0x40 0x13 0x00 0x00 0x00
Special NAND id table Version 1.36
Nand ID: 0xEF 0xF1 0x80 0x95 0x00 0x00 0x00 0x00
stmmac_init,568,0x70431,3
PHY not link!

get_update_state,266,55,ff
get_update_state,266,aa,ff
get_update_state,266,5a,ff
* INFO * dul-backup state: NORMAL BOOT fail=5.
* WRONG * dul-backup state: MAIN PARTITIONS DAMAGED.
we are trying to restore it.
restore part: [reserve] src=0x4000000 dest=0x0 size=0x100000.
erase 100%
write 100% done!
restore part: [boot] src=0x4200000 dest=0x200000 size=0x100000.
erase 100%
write 100% done!
restore part: [uImage] src=0x4300000 dest=0x300000 size=0x400000.
erase 100%
write 100% done!
restore part: [rootfs] src=0x4700000 dest=0x700000 size=0x2100000.
erase 100%
write 21%fail to read.

flash read mtd raw addr 0x4e60000 failed.
dul-back: restore flash error, try again.
erase 100%
write 21%fail to read.

flash read mtd raw addr 0x4e60000 failed.
dul-back: restore flash error, try again.
restore flash error, abort!


U-Boot 2010.06-svn2362 (Jul 21 2016 - 16:46:32)

Spi(cs1): find unrecognized spi flash.
Can't find a valid spi flash chip.
Spi(cs1): find unrecognized spi flash.
Can't find a valid spi flash chip.
Special NAND id table Version 1.36
Nand ID: 0xEF 0xF1 0x80 0x95 0x00 0x00 0x00 0x00
Block:128KB Page:2KB Chip:128MB*1 OOB:64B ECC:none Nand total size: 128MB
In: serial
Out: serial
Err: serial
SCU: load slave image ...WARNING! unknown slave_kernel.img format!
OK
Spi(cs1): find unrecognized spi flash.
Can't find a valid spi flash chip.
Spi(cs1): find unrecognized spi flash.
Can't find a valid spi flash chip.
Failed to initialize SPI flash at 0:0
Read backup misc byte ... ok!
GpioI2cMcuRecvAck 114 err
FUNCTION = GpioI2cReadByteMcu, LINE = 244
GpioI2cReadByteMcu faield
[is2uProduct] get failed
PRODUCT:1U
[openbmp 251]### CRAMFS LOAD ERROR<0> for /bmp_logo.bmp!
load log failed
stmmac_init,550,0x70431,3
PHY not link!
Hit any key to stop autoboot: 0
stmmac_init,550,0x70431,3
PHY not link!
the network not link!
stmmac_init,550,0x70431,3
PHY not link!
.## Booting kernel from Legacy Image at 42000000 ...
Image Name: Linux-3.10.0_hi3536
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 3762472 Bytes = 3.6 MiB
Load Address: 40008000
Entry Point: 40008000
Loading Kernel Image ... OK
OK

Starting kernel ...
bootargs = console=ttyAMA0,115200 mem=928M root=/dev/mtdblock4 rootfstype=squashfs init=/linuxrc dh_keyboard=1 load_modules=1 toe=0 need_reset=0

Uncompressing Linux... done, booting the kernel.
 
Последнее редактирование:
почитайте пожалуйста! если останутся вопросы, задавайте. Но там вроде как все разъяснено. Серия та же, файлы используются те же.
 

Kompas

Member
Удалось ввести команды в терминал
setenv serverip 192.168.254.254
setenv ipaddr 192.168.254.108
run up

Теперь лог такой, я так понимаю прошивку не смог обновить рег?
Spi(cs1) ID: 0xEF 0x40 0x13 0x00 0x00 0x00
Special NAND id table Version 1.36
Nand ID: 0xEF 0xF1 0x80 0x95 0x00 0x00 0x00 0x00
stmmac_init,568,0x70431,3
miiphy_speed,366,1040
miiphy_speed,366,1040
miiphy_speed,366,1040
miiphy_speed,366,1040
MAC: 00-00-23-34-45-66

get_update_state,266,55,ff
get_update_state,266,aa,ff
get_update_state,266,5a,ff
* INFO * dul-backup state: NORMAL BOOT fail=2.


U-Boot 2010.06-svn2362 (Jul 21 2016 - 16:46:32)

Spi(cs1): find unrecognized spi flash.
Can't find a valid spi flash chip.
Spi(cs1): find unrecognized spi flash.
Can't find a valid spi flash chip.
Special NAND id table Version 1.36
Nand ID: 0xEF 0xF1 0x80 0x95 0x00 0x00 0x00 0x00
Block:128KB Page:2KB Chip:128MB*1 OOB:64B ECC:none Nand total size: 128MB
In: serial
Out: serial
Err: serial
SCU: load slave image ...WARNING! unknown slave_kernel.img format!
OK
Spi(cs1): find unrecognized spi flash.
Can't find a valid spi flash chip.
Spi(cs1): find unrecognized spi flash.
Can't find a valid spi flash chip.
Failed to initialize SPI flash at 0:0
Read backup misc byte ... ok!
GpioI2cMcuRecvAck 114 err
FUNCTION = GpioI2cReadByteMcu, LINE = 244
GpioI2cReadByteMcu faield
[is2uProduct] get failed
PRODUCT:1U
[openbmp 251]### CRAMFS LOAD ERROR<0> for /bmp_logo.bmp!
load log failed
stmmac_init,550,0x70431,3
miiphy_speed,366,1040
miiphy_speed,366,1040
miiphy_speed,366,1040
miiphy_speed,366,1040
MAC: 3C-EF-8C-07-B3-F1
Hit any key to stop autoboot: 0
hisilicon # setenv serverip 192.168.254.254
hisilicon # setenv ipaddr 192.168.254.108
hisilicon # run up
stmmac_init,550,0x70431,3
miiphy_speed,366,1040
miiphy_speed,366,1040
MAC: 3C-EF-8C-07-B3-F1
TFTP from server 192.168.254.254; our IP address is 192.168.254.108
Download Filename 'update.img'.
Download to address: 0x42000000
Downloading: #################################################
done
Bytes transferred = 55193388 (34a2f2c hex)
boottype=1:
dh_wdt_stop called
flash_do_flwrite,640,ret:0,flash_sn:1
set_upgrade_update_state,665,(0x55)
set_update_state,191,100000,800,55
get_update_state,266,55,ff
get_update_state,266,aa,ff
get_update_state,266,5a,ff
clean state(0x1400ff)
get_update_state,266,55,55
get_update_state,266,aa,ff
get_update_state,266,5a,ff
set_upgrade_update_state,676,(0x55)
set_upgrade_update_state ok
Header CRC Checking ... OK
Data CRC Checking ... OK
Image Name: NVR5XXX-4K
Image Type: ARM Linux Firmware (gzip compressed)
Data Size: 3001800 Bytes = 2.9 MiB
Load Address: a0300000
Entry Point: a0700000
Programing start at: 0xa0300000
write : 95%
write : 100%
done
Header CRC Checking ... OK
Data CRC Checking ... OK
Image Name: NVR5XXX-4K
Image Type: ARM Linux Kernel Image (gzip compressed)
Data Size: 23941120 Bytes = 22.8 MiB
Load Address: a0700000
Entry Point: a2100000
Programing start at: 0xa0700000
write : 99%
write : 100%
done
Header CRC Checking ... OK
Data CRC Checking ... OK
Image Name: NVR5XXX-4K
Image Type: ARM Linux Firmware (gzip compressed)
Data Size: 108620 Bytes = 106.1 KiB
Load Address: a2100000
Entry Point: a2200000
Programing start at: 0xa2100000
write : 0%
write : 100%
done
Header CRC Checking ... OK
Data CRC Checking ... OK
Image Name: NVR5XXX-4K
Image Type: ARM Linux Firmware (gzip compressed)
Data Size: 1822744 Bytes = 1.7 MiB
Load Address: a2200000
Entry Point: a2500000
Programing start at: 0xa2200000
write : 92%
write : 100%
done
Header CRC Checking ... OK
Data CRC Checking ... OK
Image Name: NVR5XXX-4K
Image Type: ARM Linux Kernel Image (gzip compressed)
Data Size: 5537856 Bytes = 5.3 MiB
Load Address: a2500000
Entry Point: a3300000
Programing start at: 0xa2500000
write : 97%
write : 100%
done
Bad partition offset
boottype=1:
Header CRC Checking ... OK
Data CRC Checking ... OK
Image Name: NVR5XXX-4K
Image Type: ARM Linux Standalone Program (gzip compressed)
Data Size: 6549504 Bytes = 6.2 MiB
Load Address: a4000000
Entry Point: a5400000
Programing start at: 0xa4000000
write : 0%filesize > part size
out nand band
Attempt to read outside the flash area
filesize > part size
ERROR: erase start address is not block aligned!

filesize > part size
out nand band
ERROR: write start address is not page aligned!

write : 0%filesize > part size
out nand band
Attempt to read outside the flash area
filesize > part size
ERROR: erase start address is not block aligned!

filesize > part size
out nand band
ERROR: write start address is not page aligned!

write : 2%filesize > part size
out nand band
Attempt to read outside the flash area
filesize > part size
ERROR: erase start address is not block aligned!

filesize > part size
out nand band
ERROR: write start address is not page aligned!

write : 4%filesize > part size
ERROR: erase start address is not block aligned!

filesize > part size
out nand band
ERROR: write start address is not page aligned!

write : 6%filesize > part size
ERROR: erase start address is not block aligned!

filesize > part size
out nand band
ERROR: write start address is not page aligned!

write : 8%filesize > part size
ERROR: erase start address is not block aligned!

filesize > part size
out nand band
ERROR: write start address is not page aligned!

write : 10%filesize > part size
ERROR: erase start address is not block aligned!

filesize > part size
out nand band
ERROR: write start address is not page aligned!

write : 12%filesize > part size
ERROR: erase start address is not block aligned!

filesize > part size
out nand band
ERROR: write start address is not page aligned!

write : 14%filesize > part size
ERROR: erase start address is not block aligned!

filesize > part size
out nand band
ERROR: write start address is not page aligned!

write : 16%filesize > part size
ERROR: erase start address is not block aligned!

filesize > part size
out nand band
ERROR: write start address is not page aligned!

write : 18%filesize > part size
ERROR: erase start address is not block aligned!

filesize > part size
out nand band
ERROR: write start address is not page aligned!

write : 20%filesize > part size
ERROR: erase start address is not block aligned!

filesize > part size
out nand band
ERROR: write start address is not page aligned!

write : 22%filesize > part size
ERROR: erase start address is not block aligned!
 

Kompas

Member
filesize > part size
out nand band
ERROR: write start address is not page aligned!

write : 24%filesize > part size
ERROR: erase start address is not block aligned!

filesize > part size
out nand band
ERROR: write start address is not page aligned!

write : 26%filesize > part size
ERROR: erase start address is not block aligned!

filesize > part size
out nand band
ERROR: write start address is not page aligned!

write : 28%filesize > part size
ERROR: erase start address is not block aligned!

filesize > part size
out nand band
ERROR: write start address is not page aligned!

write : 30%filesize > part size
ERROR: erase start address is not block aligned!

filesize > part size
out nand band
ERROR: write start address is not page aligned!

write : 32%filesize > part size
ERROR: erase start address is not block aligned!

filesize > part size
out nand band
ERROR: write start address is not page aligned!

write : 34%filesize > part size
ERROR: erase start address is not block aligned!

filesize > part size
out nand band
ERROR: write start address is not page aligned!

write : 36%filesize > part size
ERROR: erase start address is not block aligned!

filesize > part size
out nand band
ERROR: write start address is not page aligned!

write : 38%filesize > part size
ERROR: erase start address is not block aligned!

filesize > part size
out nand band
ERROR: write start address is not page aligned!

write : 40%filesize > part size
ERROR: erase start address is not block aligned!

filesize > part size
out nand band
ERROR: write start address is not page aligned!

write : 42%filesize > part size
ERROR: erase start address is not block aligned!

filesize > part size
out nand band
ERROR: write start address is not page aligned!

write : 44%filesize > part size
ERROR: erase start address is not block aligned!

filesize > part size
out nand band
ERROR: write start address is not page aligned!

write : 46%filesize > part size
ERROR: erase start address is not block aligned!

filesize > part size
out nand band
ERROR: write start address is not page aligned!

write : 48%filesize > part size
ERROR: erase start address is not block aligned!

filesize > part size
out nand band
ERROR: write start address is not page aligned!

write : 50%filesize > part size
ERROR: erase start address is not block aligned!

filesize > part size
out nand band
ERROR: write start address is not page aligned!

write : 52%filesize > part size
ERROR: erase start address is not block aligned!

filesize > part size
out nand band
ERROR: write start address is not page aligned!

write : 54%filesize > part size
ERROR: erase start address is not block aligned!

filesize > part size
out nand band
ERROR: write start address is not page aligned!

write : 56%filesize > part size
ERROR: erase start address is not block aligned!

filesize > part size
out nand band
ERROR: write start address is not page aligned!

write : 58%filesize > part size
ERROR: erase start address is not block aligned!

filesize > part size
out nand band
ERROR: write start address is not page aligned!

write : 60%filesize > part size
ERROR: erase start address is not block aligned!

filesize > part size
out nand band
ERROR: write start address is not page aligned!

write : 62%filesize > part size
ERROR: erase start address is not block aligned!

filesize > part size
out nand band
ERROR: write start address is not page aligned!

write : 64%filesize > part size
ERROR: erase start address is not block aligned!

filesize > part size
out nand band
ERROR: write start address is not page aligned!

write : 66%filesize > part size
ERROR: erase start address is not block aligned!

filesize > part size
out nand band
ERROR: write start address is not page aligned!

write : 68%filesize > part size
ERROR: erase start address is not block aligned!

filesize > part size
out nand band
ERROR: write start address is not page aligned!

write : 70%filesize > part size
ERROR: erase start address is not block aligned!

filesize > part size
out nand band
ERROR: write start address is not page aligned!

write : 72%filesize > part size
ERROR: erase start address is not block aligned!

filesize > part size
out nand band
ERROR: write start address is not page aligned!

write : 74%filesize > part size
ERROR: erase start address is not block aligned!

filesize > part size
out nand band
ERROR: write start address is not page aligned!

write : 76%filesize > part size
ERROR: erase start address is not block aligned!

filesize > part size
out nand band
ERROR: write start address is not page aligned!

write : 78%filesize > part size
ERROR: erase start address is not block aligned!

filesize > part size
out nand band
ERROR: write start address is not page aligned!

write : 80%filesize > part size
ERROR: erase start address is not block aligned!

filesize > part size
out nand band
ERROR: write start address is not page aligned!

write : 82%filesize > part size
ERROR: erase start address is not block aligned!

filesize > part size
out nand band
ERROR: write start address is not page aligned!

write : 84%filesize > part size
ERROR: erase start address is not block aligned!

filesize > part size
out nand band
ERROR: write start address is not page aligned!

write : 86%filesize > part size
ERROR: erase start address is not block aligned!

filesize > part size
out nand band
ERROR: write start address is not page aligned!

write : 88%filesize > part size
ERROR: erase start address is not block aligned!

filesize > part size
out nand band
ERROR: write start address is not page aligned!

write : 90%filesize > part size
ERROR: erase start address is not block aligned!

filesize > part size
out nand band
ERROR: write start address is not page aligned!

write : 92%filesize > part size
ERROR: erase start address is not block aligned!

filesize > part size
out nand band
ERROR: write start address is not page aligned!

write : 94%filesize > part size
ERROR: erase start address is not block aligned!

filesize > part size
out nand band
ERROR: write start address is not page aligned!

write : 96%filesize > part size
ERROR: erase start address is not block aligned!

filesize > part size
out nand band
ERROR: write start address is not page aligned!

write : 98%
write : 100%
done
Header CRC Checking ... OK
Data CRC Checking ... OK
Image Name: NVR5XXX-4K
Image Type: ARM Linux Standalone Program (gzip compressed)
Data Size: 4096 Bytes = 4 KiB
Load Address: a3800000
Entry Point: a3a00000
Programing start at: 0xa3800000
write : 0%
write : 100%
done
Header CRC Checking ... OK
Data CRC Checking ... OK
Image Name: NVR5XXX-4K
Image Type: ARM Linux Standalone Program (gzip compressed)
Data Size: 49152 Bytes = 48 KiB
Load Address: a3a00000
Entry Point: a3c00000
Programing start at: 0xa3a00000
write : 0%
write : 100%
done
Header CRC Checking ... OK
Data CRC Checking ... OK
Image Name: NVR5XXX-4K
Image Type: ARM Linux Firmware (gzip compressed)
Data Size: 13824 Bytes = 13.5 KiB
Load Address: a3f00000
Entry Point: a3f40000
Programing start at: 0xa3f00000
write : 0%
write : 100%
done
Bad partition offset
boottype=1:
Dest address:0xa5400000 invalid!
flwrite error!
dh_wdt_start called
hisilicon #
 

Kompas

Member
Начал шить поэтапно и при переходе с DH_NVR5XXX-4KS2_MultiLang_V3.216.0000006.0.R.20190223 на DH_NVR5XXX-4KS2_MultiLang_V4.000.0000000.0.R.20190713 рег висит на заставке и через секунд 30 уходит в ребут. Может есть еще какая промежуточная между этими прошивками?
Spi(cs1) ID: 0xEF 0x40 0x13 0x00 0x00 0x00
Special NAND id table Version 1.36
Nand ID: 0xEF 0xF1 0x80 0x95 0x00 0x00 0x00 0x00
stmmac_init,568,0x70431,3
miiphy_speed,366,1040
miiphy_speed,366,1040
MAC: 00-00-23-34-45-66



U-Boot 2010.06-svn4093 (Jul 09 2019 - 22:56:42)

In: serial
Out: serial
Err: serial
squashfs use gzip
SCU: load slave image OK
spi env sysbackup=0
Read backup misc byte ...
backup tc exist !!!
ok!
GpioI2cMcuRecvAck 114 err
FUNCTION = GpioI2cReadByteMcu, LINE = 244
GpioI2cReadByteMcu faield
[is2uProduct] get failed
PRODUCT:1U
stmmac_init,692,0x70431,3
Hit any key to stop autoboot: 0
stmmac_init,692,0x70431,3
miiphy_speed,366,1040
miiphy_speed,366,1040
stmmac_init,692,0x70431,3
miiphy_speed,366,1040
miiphy_speed,366,1040
NET_autoLipDetect timeout
stmmac_init,692,0x70431,3
miiphy_speed,366,1040
miiphy_speed,366,1040

ARP Retry count exceeded; starting again
## Booting kernel from Legacy Image at 42000000 ...
Image Name: Linux-3.10.0_hi3536
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 2981376 Bytes = 2.8 MiB
Load Address: 40008000
Entry Point: 40008000
Loading Kernel Image ... OK
OK

Starting kernel ...
Uncompressing Linux... done, booting the kernel.
 
Последнее редактирование:

dm.grek

Member
Добрый день. Похожая ситуация, прошили не той прошивкой NVR5216-4KS2. выводит логотип и циклическая перезагрузка. При подключении к Uart выдает не понятные символы. Провод проверял с камерой dahua все нормально. Подскажите, может есть варианты восстановить или только дам через программатор?2014
 
Вверх