Проблема с Hx1x2x-Themis

VadimExp

Member
Добрый день.
Камера DH-IPC-HFW2220RP-VFS отказалась работать.
Подключился через UART. Пробовал залить прошивки (через uart+tftp):

IPC-HX1X2X-Themis_Eng_P_V2.400.0000.21.R.20151104
и
IPC-HX1X2X-Themis_Eng_P_V2.620.0000.0.R.20170620

Не помогло.

Подскажите в чем проблема.
За ранее благодарю!

Код:
>printenv
bootdelay=3
baudrate=115200
ipaddr=192.168.1.108
autoload=yes
gatewayip=192.168.1.1
netmask=255.255.255.0
dh_keyboard=1
appauto=1
sysbackup=1
logserver=127.0.0.1
loglevel=4
autosip=192.168.254.254
autolip=192.168.1.108
autogw=192.168.1.1
autonm=255.255.255.0
pd=tftp 0x02000000 pd-x.squashfs.img; flwrite
ethact=ambarella mac
BSN=2F04BC4PAA01112
HWID=IPC-HFW2220R-VFS:01:02:02:33:18:00:01:00:00:00:04:258:00:00:00:00:00:00:00:00:100
hwidEx=00:01:00:00:00:00:00:00:00:00:00:00:00:00:00:00
devalias=IPC-HFW2220R-VFS
da=tftp 0x2000000 dhboot.bin.img; flwrite; tftp dhboot-min.bin.img;flwrite
dr=tftp 0x2000000 romfs-x.squashfs.img; flwrite
dk=tftp 0x2000000 kernel.img; flwrite
du=tftp 0x2000000 user-x.squashfs.img; flwrite
dw=tftp 0x2000000 web-x.squashfs.img; flwrite
dc=tftp 0x2000000 custom-x.squashfs.img; flwrite
dt=tftp 0x2000000 data-x.squashfs.img; flwrite
dp=tftp 0x02000000 partition-x.cramfs.img;flwrite
up=tftp 0x2000000 update.img; flwrite
tk=tftp 0x200100 hawthorn.dts.dtb;tftp 0x2000000 uImage;bootm 0x2000000
bootcmd=sf read 0x200100 0x8000 0x8000;sf read 0x2000000 0xf0000 0x180000;bootm 0x2000000
bootargs=console=ttyS0,115200 mem=110M root=/dev/mtdblock5 rootfstype=squashfs init=/linuxrc
ID=
ethaddr=3C:EF:8C:CC:A9:06
filesize=20040
fileaddr=2000000
serverip=192.168.1.70
stdin=serial
stdout=serial
stderr=serial

Environment size: 1348/131068 bytes



U-Boot 2010.06-svn3070 (Mar 03 2016 - 04:24:40)
I2C:   ready
DRAM:  110 MiB
gBootLogPtr:00b80008.
spinor flash ID is 0xc81840c8
partition file version 2
rootfstype squashfs root /dev/mtdblock5
TEXT_BASE:01000000
Net:   Detected MACID:3c:ef:8c:cc:a9:06
PHY:0x001cc816,addr:0x00
phy RTL8201 init

Using ambarella mac device
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: 0x5000000
Downloading: *
Retry count exceeded; starting again
Try again use backup_serverip
*** ERROR: `serverip' not set
Failed to get info.txt
Fail to get info file!
Init error!
Using ambarella mac device
TFTP from server 192.168.254.254; our IP address is 192.168.1.108; sending through gateway 192.168.1.1
Download Filename 'failed.txt'.
Download to address: 0x2000000
Downloading: *
Retry count exceeded; starting again
state:ff,err_count:02
SPI probe: 16384 KiB GD25Q128C at 0:0 is now current device
## Booting kernel from Legacy Image at 02000000 ...
   Image Name:   Linux-3.10.50
   Created:      2017-06-20  13:08:02 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    1558648 Bytes = 1.5 MiB
   Load Address: 00208000
   Entry Point:  00208000
   Verifying Checksum ... OK
   Loading Kernel Image ...OK
OK
partition file version 2
rootfstype squashfs root /dev/mtdblock5
fail to load bootargsParameters.txt
fail to load bootargsParameters.txt file
get bootargs info failed

Starting kernel ...
unsupport spi flash id!!!
 
Останнє редагування:

VadimExp

Member
Оказалось не так просто найти под нее прошивки.
Это две единственные, которые я нашел.
Может быть подскажете, где посмотреть?
Желательно русскоязычные...
 

Uef

Чатланин
Камера не видна конфигтулом? Подождите ответа Максима, вероятно у него есть что-то типа базы по HWID.
На стикере камеры после названия нет дополнительных букв?

Эта модель на была двух платформах:
1511
 
Останнє редагування:

Техпідтримка VidiMost.com

Спеціаліст
Команда форуму
Подключился через UART. Пробовал залить прошивки (через uart+tftp):
IPC-HX1X2X-Themis_Eng_P_V2.400.0000.21.R.20151104
и
IPC-HX1X2X-Themis_Eng_P_V2.620.0000.0.R.20170620
укажите имя файла которое заливали. Если имена файлов для tftp те которые указаны выше, то это прошивка для веб и config tool. Нужны файлы для tftp обновления.
Hx1x2x-Themis - корректная категория.
 

VadimExp

Member
Попробовал прошивку HFW2XXX-ALPS, по ссылке Uef`а. Там в перечне явно указана моя модель. Но после прошивки получил следующее:
Код:
unsupport spi flash id!!!
                         uboot magic is not match.


U-Boot 2010.06-svn3070 (Mar 03 2016 - 04:24:40)
I2C:   ready
DRAM:  110 MiB
gBootLogPtr:00b80008.
spinor flash ID is 0xc81840c8
*** Warning - bad CRC, using default environment

Fail to get uboot hd.
fail to load partition.txt
fail to load partition file
fail to init partinfo
TEXT_BASE:01000000
Net:   Detected MACID:00:12:34:56:78:9a
PHY:0x001cc816,addr:0x00
phy RTL8201 init

fail to get updateflag partition info
fail to get updateflag offset and size
Using ambarella mac device
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: 0x5000000
Downloading: *
Retry count exceeded; starting again
Try again use backup_serverip
*** ERROR: `serverip' not set
Failed to get info.txt
Fail to get info file!
Init error!
Using ambarella mac device
TFTP from server 192.168.254.254; our IP address is 192.168.1.108; sending through gateway 192.168.1.1
Download Filename 'failed.txt'.
Download to address: 0x2000000
Downloading: *
Retry count exceeded; starting again
Fail to get partinfo
Attempt to read outside the flash area,16777216
fail to read partinfo head
Attempt to read outside the flash area,16777216
fail to read partinfo head
Attempt to read outside the flash area,16777216
fail to read partinfo head
Attempt to read outside the flash area,16777216
fail to read partinfo head
Attempt to read outside the flash area,16777216
fail to read partinfo head
Attempt to read outside the flash area,16777216
fail to read partinfo head
Attempt to read outside the flash area,16777216
fail to read partinfo head
Attempt to read outside the flash area,16777216
fail to read partinfo head
Attempt to read outside the flash area,16777216
fail to read partinfo head
Attempt to read outside the flash area,16777216
fail to read partinfo head
Attempt to read outside the flash area,16777216
fail to read partinfo head
Attempt to read outside the flash area,16777216
fail to read partinfo head
.....
<цикл>
Пытаюсь теперь прошить Hx1x2x. Получаю:
Код:
>run dr
Using ambarella mac device
TFTP from server 192.168.1.1; our IP address is 192.168.1.108
Download Filename 'romfs-x.squashfs.img'.
Download to address: 0x2000000
Downloading: *
ARP Retry count exceeded; starting again
>
и все...
Прошить не получается.

Вот файлы, которые я заливаю:
1514
 
Останнє редагування:

VadimExp

Member
С заливкой разобрался. Слетели настройки serverip.
Залил Hx1x2x. Ни чего не поменялось:
Код:
unsupport spi flash id!!!
                          uboot magic is not match.


U-Boot 2010.06-svn3070 (Mar 03 2016 - 04:24:40)
I2C:   ready
DRAM:  110 MiB
gBootLogPtr:00b80008.
spinor flash ID is 0xc81840c8
Fail to get uboot hd.
fail to load partition.txt
fail to load partition file
fail to init partinfo
TEXT_BASE:01000000
Net:   Detected MACID:00:12:34:56:78:9a
PHY:0x001cc816,addr:0x00
phy RTL8201 init

fail to get updateflag partition info
fail to get updateflag offset and size
Using ambarella mac device
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: 0x5000000
Downloading: *
Retry count exceeded; starting again
Try again use backup_serverip
*** ERROR: `serverip' not set
Failed to get info.txt
Fail to get info file!
Init error!
Using ambarella mac device
TFTP from server 192.168.254.254; our IP address is 192.168.1.108; sending through gateway 192.168.1.1
Download Filename 'failed.txt'.
Download to address: 0x2000000
Downloading: *
Retry count exceeded; starting again
Fail to get partinfo
Attempt to read outside the flash area,16777216
fail to read partinfo head
Attempt to read outside the flash area,16777216
fail to read partinfo head
<цикл>
Что с этим делать? Выручайте.

Вот наклейка на камере:
1515
 

VadimExp

Member
Проделал все заново с записью в лог.
Код:
unsupport spi flash id!!!
                         uboot magic is not match.


U-Boot 2010.06-svn3070 (Mar 03 2016 - 04:24:40)
I2C:   ready
DRAM:  110 MiB
gBootLogPtr:00b80008.
spinor flash ID is 0xc81840c8
Fail to get uboot hd.
fail to load partition.txt
fail to load partition file
fail to init partinfo
TEXT_BASE:01000000
Net:   Detected MACID:00:12:34:56:78:9a
PHY:0x001cc816,addr:0x00
phy RTL8201 init

fail to get updateflag partition info
fail to get updateflag offset and size
Hit any key to stop autoboot:  0
>**************************************
Unknown command '**************************************' - try 'help'
>printenv
bootargs=console=ttyS0,115200 mem=110M root=/dev/mtdblock5 rootfstype=squashfs init=/linuxrc
bootcmd=sf read 0x200100 0x8000 0x8000;sf read 0x2000000 0xf0000 0x180000;bootm 0x2000000
bootdelay=3
baudrate=115200
ethaddr=00:12:34:56:78:9A
ipaddr=192.168.1.108
autoload=yes
gatewayip=192.168.1.1
netmask=255.255.255.0
da=tftp 0x02000000 dhboot.bin.img; flwrite;tftp dhboot-min.bin.img;flwrite
dr=tftp 0x02000000 romfs-x.squashfs.img; flwrite
dk=tftp 0x02000000 kernel.img; flwrite
du=tftp 0x02000000 user-x.squashfs.img; flwrite
dw=tftp 0x02000000 web-x.squashfs.img; flwrite
dp=tftp 0x02000000 partition-x.cramfs.img;flwrite
dc=tftp 0x02000000 custom-x.squashfs.img; flwrite
up=tftp 0x02000000 update.img; flwrite
tk=tftp 0x02000000 uImage; bootm
dh_keyboard=1
appauto=1
sysbackup=1
logserver=127.0.0.1
loglevel=4
autosip=192.168.254.254
autolip=192.168.1.108
autogw=192.168.1.1
autonm=255.255.255.0
pd=tftp 0x02000000 pd-x.squashfs.img; flwrite
ethact=ambarella mac
HWID=IPC-HFW2220R-VFS:01:02:02:33:18:00:01:00:00:00:04:258:00:00:00:00:00:00:00:00:100
BSN=2F04BC4PAA01112
hwidEx=00:01:00:00:00:00:00:00:00:00:00:00:00:00:00:00
devalias=IPC-HFW2220R-VFS
ID=2G03901PAA00280
serverip=192.168.1.70
stdin=serial
stdout=serial
stderr=serial

Environment size: 1237/131068 bytes
>run dr
Using ambarella mac device
TFTP from server 192.168.1.70; our IP address is 192.168.1.108
Download Filename 'romfs-x.squashfs.img'.
Download to address: 0x2000000
Downloading: #################################################
done
Bytes transferred = 1355840 (14b040 hex)

## Checking Image at 02000000 ...
   Legacy image found
   Image Name:   romfs
   Created:      2016-03-05  10:07:51 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    1355776 Bytes = 1.3 MiB
   Load Address: 00270000
   Entry Point:  003c0000
   Verifying Checksum ... OK
Programing start at: 0x00270000
SPI probe: 16384 KiB GD25Q128C at 0:0 is now current device
write : 100%
done
>run dk
Using ambarella mac device
TFTP from server 192.168.1.70; our IP address is 192.168.1.108
Download Filename 'kernel.img'.
Download to address: 0x2000000
Downloading: #################################################
done
Bytes transferred = 1505728 (16f9c0 hex)

## Checking Image at 02000000 ...
   Legacy image found
   Image Name:   kernel
   Created:      2016-03-05  10:07:51 UTC
   Image Type:   ARM Linux Firmware (uncompressed)
   Data Size:    1505664 Bytes = 1.4 MiB
   Load Address: 000f0000
   Entry Point:  00270000
   Verifying Checksum ... OK
Programing start at: 0x000f0000
write : 100%
done
>run du
Using ambarella mac device
TFTP from server 192.168.1.70; our IP address is 192.168.1.108
Download Filename 'user-x.squashfs.img'.
Download to address: 0x2000000
Downloading: #################################################
done
Bytes transferred = 8060992 (7b0040 hex)

## Checking Image at 02000000 ...
   Legacy image found
   Image Name:   user
   Created:      2016-03-05  10:08:04 UTC
   Image Type:   ARM Linux Standalone Program (uncompressed)
   Data Size:    8060928 Bytes = 7.7 MiB
   Load Address: 005d0000
   Entry Point:  00e00000
   Verifying Checksum ... OK
Programing start at: 0x005d0000
write : 100%
done
>run dw
Using ambarella mac device
TFTP from server 192.168.1.70; our IP address is 192.168.1.108
Download Filename 'web-x.squashfs.img'.
Download to address: 0x2000000
Downloading: #################################################
done
Bytes transferred = 2048064 (1f4040 hex)

## Checking Image at 02000000 ...
   Legacy image found
   Image Name:   web
   Created:      2016-03-05  10:07:52 UTC
   Image Type:   ARM Linux Standalone Program (uncompressed)
   Data Size:    2048000 Bytes = 2 MiB
   Load Address: 003c0000
   Entry Point:  005d0000
   Verifying Checksum ... OK
Programing start at: 0x003c0000
write : 100%
done
>run dc
Using ambarella mac device
TFTP from server 192.168.1.70; our IP address is 192.168.1.108
Download Filename 'custom-x.squashfs.img'.
Download to address: 0x2000000
Downloading: #################################################
done
Bytes transferred = 24640 (6040 hex)

## Checking Image at 02000000 ...
   Legacy image found
   Image Name:   custom
   Created:      2016-03-05  10:08:06 UTC
   Image Type:   ARM Linux Standalone Program (uncompressed)
   Data Size:    24576 Bytes = 24 KiB
   Load Address: 00eb0000
   Entry Point:  00ed0000
   Verifying Checksum ... OK
Programing start at: 0x00eb0000
write : 100%
done
>
>boot
## Booting kernel from Legacy Image at 02000000 ...
   Image Name:   Linux-3.10.50
   Created:      2016-03-03  17:47:12 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    1505600 Bytes = 1.4 MiB
   Load Address: 00208000
   Entry Point:  00208000
   Verifying Checksum ... OK
   Loading Kernel Image ...OK
OK
fail to load partition.txt
fail to load partition file
fail to init partinfo
fail to load bootargsParameters.txt
fail to load bootargsParameters.txt file
get bootargs info failed

Starting kernel ...
fail to get partinfo
crashflasg:1, logmagic:54410011.
unsupport spi flash id!!!
                         uboot magic is not match.


U-Boot 2010.06-svn3070 (Mar 03 2016 - 04:24:40)
I2C:   ready
DRAM:  110 MiB
gBootLogPtr:00b80008.
spinor flash ID is 0xc81840c8
Fail to get uboot hd.
fail to load partition.txt
fail to load partition file
fail to init partinfo
TEXT_BASE:01000000
Net:   Detected MACID:00:12:34:56:78:9a
PHY:0x001cc816,addr:0x00
phy RTL8201 init

fail to get updateflag partition info
fail to get updateflag offset and size
Using ambarella mac device
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: 0x5000000
Downloading: *
Retry count exceeded; starting again
Try again use backup_serverip
*** ERROR: `serverip' not set
Failed to get info.txt
Fail to get info file!
Init error!
Using ambarella mac device
TFTP from server 192.168.254.254; our IP address is 192.168.1.108; sending through gateway 192.168.1.1
Download Filename 'failed.txt'.
Download to address: 0x2000000
Downloading: *
Retry count exceeded; starting again
Fail to get partinfo
Attempt to read outside the flash area,16777216
fail to read partinfo head
Attempt to read outside the flash area,16777216
fail to read partinfo head
Attempt to read outside the flash area,16777216
fail to read partinfo head
Attempt to read outside the flash area,16777216
fail to read partinfo head
Attempt to read outside the flash area,16777216
fail to read partinfo head
Attempt to read outside the flash area,16777216
fail to read partinfo head
Attempt to read outside the flash area,16777216
fail to read partinfo head
Attempt to read outside the flash area,16777216
fail to read partinfo head
Attempt to read outside the flash area,16777216
fail to read partinfo head
Attempt to read outside the flash area,16777216
fail to read partinfo head
Attempt to read outside the flash area,16777216
fail to read partinfo head
Attempt to read outside the flash area,16777216
fail to read partinfo head
Attempt to read outside the flash area,16777216
fail to read partinfo head
A▒
 

VadimExp

Member
Ага. Забыл загрузить partition-x.cramfs.img
Залил. Теперь, после нескольких перезагрузок, получаем:
Код:
U-Boot 2010.06-svn3070 (Mar 03 2016 - 04:24:40)
I2C:   ready
DRAM:  110 MiB
gBootLogPtr:00b80008.
spinor flash ID is 0xc81840c8
Fail to get uboot hd.
partition file version 2
rootfstype squashfs root /dev/mtdblock5
TEXT_BASE:01000000
Net:   Detected MACID:00:12:34:56:78:9a
PHY:0x001cc816,addr:0x00
phy RTL8201 init

Using ambarella mac device
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: 0x5000000
Downloading: *
Retry count exceeded; starting again
Try again use backup_serverip
*** ERROR: `serverip' not set
Failed to get info.txt
Fail to get info file!
Init error!
Using ambarella mac device
TFTP from server 192.168.254.254; our IP address is 192.168.1.108; sending through gateway 192.168.1.1
Download Filename 'failed.txt'.
Download to address: 0x2000000
Downloading: *
Retry count exceeded; starting again
state:ff,err_count:05
SPI probe: 16384 KiB GD25Q128C at 0:0 is now current device
## Booting kernel from Legacy Image at 02000000 ...
   Image Name:   Linux-3.10.50
   Created:      2015-10-15  11:47:30 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    893200 Bytes = 872.3 KiB
   Load Address: 00208000
   Entry Point:  00208000
   Verifying Checksum ... OK
   Loading Kernel Image ...OK
OK
partition file version 2
rootfstype squashfs root /dev/mtdblock5
fail to load bootargsParameters.txt
fail to load bootargsParameters.txt file
get bootargs info failed

Starting kernel ...
init started: BusyBox v1.18.4 (2015-04-13 15:29:18 CST)
mount: mounting none on /proc/bus/usb failed: No such file or directory
mount: mounting tmpfs on /var failed: Invalid argument
mount: mounting /dev/mtdblock3 on /mnt/custom failed: Invalid argument
mount: mounting /dev/mtdblock4 on /mnt/pd failed: Invalid argument
mount: mounting /dev/mtdblock8 on /mnt/afix/autoFix failed: Invalid argument
mount: mounting /dev/mtdblock9 on /mnt/afix/autoFixBackup failed: Invalid argument


BusyBox v1.18.4 (2015-04-13 15:29:18 CST) built-in shell (ash)
Revision: 9308
Enter 'help' for a list of built-in commands.

/bin/sh: can't access tty; job control turned off
~ # UPGRADED_MSG: Do memlock
[libpdi] Support backup partition !!!
[libpdi]  Flashtype = 3,patSize = 40000,rwSize = 10000,ersSize = 10000
pPartionId = 9
eth0:
MAC: <00:12:34:56:78:9a>
[libpdi] ERROR  (save_Attr_file|1269): open failed for PRIO[libpdi] set eth0 as defaultEth
IP: <192.168.1.108>             netmask: <255.255.255.0>
[libpdi] ERROR  (save_Attr_file|1269): open failed for HOSTIP[libpdi] ERROR  (PDI_rtcWriteSram|162): Fail to ioctl rtc
[libpdi] ERROR  (SaveEthAttrInFile|1368): Fail to write ip paramenters
[libpdi] ERROR  (save_Attr_file|1269): open failed for SUBMASK[libpdi] ERROR  (PDI_rtcWriteSram|162): Fail to ioctl rtc
[libpdi] ERROR  (SaveEthAttrInFile|1368): Fail to write ip paramenters
SOCK_PACKET: Address family not supported by protocol
[libpdi] [libPDI] Gateway: <192.168.1.1>
[libpdi] SetGateWay success
[libpdi] ERROR  (save_Attr_file|1269): open failed for GATEWAYIP[libpdi] ERROR  (PDI_rtcWriteSram|162): Fail to ioctl rtc
[libpdi] ERROR  (SaveEthAttrInFile|1368): Fail to write ip paramenters
SOCK_PACKET: Address family not supported by protocol
[libpdi] [libPDI] Name: upgraded, bulid date: Apr 13 2015 15:03:44, svn: 492
UPGRADED_MSG: start download file!
:
 

Техпідтримка VidiMost.com

Спеціаліст
Команда форуму
кладите файлы в tftp каталог, останавливайте и пишите:
setenv ipaddr 192........ (камера)
setenv serverip 192..........(комп)
run up
run dc
cfgRestore
reset

если не загрузиться со 2-го раза после этого, то пишите:
setenv ipaddr 192........ (камера)
setenv serverip 192..........(комп)
run da
run up
run dc
cfgRestore
reset

Файлы для восстановления камер Dahua серии Hx1x2x-Themis
 

Техпідтримка VidiMost.com

Спеціаліст
Команда форуму
это не полный лог. пожалуйста, покажите от перезагрузки до перезагрузки, я ведь правильно понимаю, она сейчас постоянно перезагружается?
 

VadimExp

Member
Да, постоянно перезагружается.
Сейчас выключил-включил. Вот лог трех перезагрузок:
 

Вкладення

  • 33.1 КБ Перегляди: 11

VadimExp

Member
Может это и не важно, но модель камеры HFW2220RP-VFS, а везде отображается HFW2220R-VFS
 
Зверху