Помогите прошить Dahua NVR2108H через UART

Вопросы по восстановлению, настройке, апгрейду, прошивкам и т.п.
Ответить
Driver
Новичок
Сообщения: 2
Зарегистрирован: 28 янв 2024, 19:56

Помогите прошить Dahua NVR2108H через UART

Сообщение Driver » 29 янв 2024, 14:37

Здравствуйте
Помогите восстановить регистратор Dahua NVR2108H. web интерфейс недоступен на мониторе только заставка
вывод UART:

Код: Выделить всё

U-Boot 2010.06-svn950 (Jan 10 2014 - 19:25:46)

DRAM:  256 MiB
Check spi flash controller v300. found
Spi(cs1) ID: 0xEF 0x40 0x18 0x00 0x00 0x00
Spi(cs1): Block:64KB Chip:16MB Name:"W25Q128BV"
the size of spi flash is 0x1000000
In:    serial
Out:   serial
Err:   serial
judge ddr init
user init finish.A
Hit any key to stop autoboot:  0
netup time out: 1000
Timeout
TFTP from server 192.168.254.254; our IP address is 192.168.1.108; sending through gateway 192.168.1.1
Download Filename 'upgrade_info_7db780a713a4.txt'.
Download to address: 0x80100000
Downloading: *
ARP Retry count exceeded; starting again
Failed to get info.txt
### JFFS2 loading '/boot/uImage' to 0x82000000
### squashfs loading '/boot/uImage' to 0x82000000
### squashfs load complete: 2861280 bytes loaded to 0x82000000
## Booting kernel from Legacy Image at 82000000 ...
   Image Name:   Linux-3.0.8
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2861216 Bytes = 2.7 MiB
   Load Address: 80008000
   Entry Point:  80008000
   Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
-Auto login as root ...


BusyBox v1.18.4 (2014-01-10 20:12:13 CST) built-in shell (ash)
Revision: 2535
Enter 'help' for a list of built-in commands.

~ #
через несколько минут перезагружается...
вывод help:

Код: Выделить всё

hisilicon # help
?       - alias for 'help'
base    - print or set address offset
boot    - boot default, i.e., run 'bootcmd'
bootd   - boot default, i.e., run 'bootcmd'
bootm   - boot application image from memory
bootp   - boot image via network using BOOTP/TFTP protocol
cmp     - memory compare
cp      - memory copy
crc32   - checksum calculation
devid   - devid      - set DEVID or print DEVID

eracfg  -
eralogo -
ext2load- load binary file from a Ext2 filesystem
ext2ls  - list files in a directory (default /)
fatinfo - print information about filesystem
fatload - load binary file from a dos filesystem
fatls   - list files in a directory (default /)
flwrite - flwrite - write data into FLASH memory

fsload  - fsload        - load binary file from a filesystem image

getinfo - print hardware information
go      - start application at address 'addr'
help    - print command description/usage
hwid    - hwid      - set hardware id and save to flash

lip     - lip      - set local ip address but not save to flash

loadb   - load binary file over serial line (kermit mode)
loady   - load binary file over serial line (ymodem mode)
loop    - infinite loop on address range
ls      - ls    - list files in a directory (default /)

mac     - mac      - set mac address and save to flash

mac1    - mac1      - set mac address and save to flash

md      - memory display
mii     - MII utility commands
mm      - memory modify (auto-incrementing address)
mtest   - simple RAM read/write test
mw      - memory write (fill)
netrep  - netrep     - report net up progress

netup   - netup     - update the system via net, without console

nm      - memory modify (constant address)
ping    - send ICMP ECHO_REQUEST to network host
printenv- print environment variables
rarpboot- boot image via network using RARP/TFTP protocol
reset   - Perform RESET of the CPU
run     - run commands in an environment variable
saveenv - save environment variables to persistent storage
setenv  - set environment variables
sf      - SPI flash sub-system
showlogo- showlogo   - show the logo picture on screen.

sip     - sip      - set server ip address but not save to flash

startgx - startgx   - open graphics layer.
        - startgx [layer addr stride x y w h]

startvo - startvo   - open interface of vo device.
        - startvo [dev type sync]
stopgx  - stopgx   - close graphics layer.
        - stopgx [layer]
stopvo  - stopvo   - close interface of vo device.
        - stopvo [dev]
test    -
tftp    - tftp  - download or upload image via network using TFTP protocol
usb     - USB sub-system
usbboot - boot from USB device
verifcode- verifcode      - set Verif_Code or print Verif_Code

version - print monitor version
vobg    - setvobg   - set vo backgroud color.
        - setvobg [dev color]
вывод printenv:

Код: Выделить всё

hisilicon # printenv
bootargs=mem=116M, console=ttyAMA0,115200 rootfstype=cramfs root=/dev/mtdblock1
bootcmd=netup; fsload; bootm
bootdelay=3
dh_keyboard=1
load_modules=1
appauto=1
da=tftp u-boot.bin.img; flwrite
dr=tftp romfs-x.cramfs.img; flwrite
du=tftp user-x.cramfs.img; flwrite
dw=tftp web-x.cramfs.img; flwrite
dl=tftp logo-x.cramfs.img; flwrite
dc=tftp custom-x.cramfs.img; flwrite
up=tftp update.img; flwrite
tk=tftp uImage; bootm
baudrate=115200
netup_timeout=1000
bootfile="uImage"
autosip=192.168.254.254
autolip=192.168.1.108
autogw=192.168.1.1
autonm=255.255.255.0
tftptimeout=1000
netretry=no
ethaddr=90:02:a9:c9:33:98
eth1addr=ff:ff:ff:ff:ff:ff
ID=PA4BP065W00411
DEVID=0000000000000000000000000000000
Verif_Code=0000000000000000000000000000000
HWID=0000000000000
serverip=192.168.0.80
ipaddr=192.168.0.79
netmask=255.255.0.0
gatewayip=10.42.0.1
restore=0
stdin=serial
stdout=serial
stderr=serial
verify=n
ver=U-Boot 2010.06-svn950 (Jan 10 2014 - 19:25:46)

Environment size: 951/131068 bytes
hisilicon #
Вложения
Фото.jpg

Driver
Новичок
Сообщения: 2
Зарегистрирован: 28 янв 2024, 19:56

Re: Помогите прошить Dahua NVR2108H через UART

Сообщение Driver » 30 янв 2024, 22:47

Сам себе отвечу
Сначала сделал копию дампа
sf probe 0
sf read 0x82000000 0x0 0x1000000
tftp 0x82000000 dump.bin 0x1000000
Далее по совету Олега (https://alarmsystem-cctv.ru/vosstanovle ... vki-dahua/)
eracfg - сбросить настройки не помогло...
Тогда прошил поблочно прошивкой (https://sapsan.org/img/source/FirmwareD ... VR2x0x.rar)
run dc
run du
run dr
run dw
Регистратор ожил, тестирую.

Ответить

Вернуться в «Восстановление и настройка»