Восстановление камеры DH-IPC-HFW1100S-360P

paryav

Member
Поморгало питание и 4 ре камеры слетели:

В консоли видим такое:
Starting kernel ...
Uncompressing Linux... done, booting the kernel.
Linux version 3.0.8 (jenkins@Centos-125) (gcc version 4.4.1 (Hisilicon_v100(gcc4.4-290+uclibc_0.9.30.2+eabi+linuxpthread)) ) #1 Thu Aug 21 02:27:24 CST 2014
CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177
CPU: VIVT data cache, VIVT instruction cache
Machine: hi3518
appauto=1
dh_keyboard=0
ethaddr0=90:2:a9:44:c6:d5
ethaddr1=0:0:0:0:0:0
wifiAddr=0:0:0:0:0:0
lip0=192.168.1.108
lip1=0.0.0.0
id=TZC4CU029W00103
....

load region.ko ....OK!


[OSA-DRV] OSA Build on Aug 21 2014 at 02:08:24.
[OSA-DRV] SVN NUM: 1242.

[OSA-DRV] Monitor Task pid=469 tid=469


[LOG-DRV] LOG Build on Aug 21 2014 at 01:55:38.
[LOG-DRV] SVN NUM: 5571.

[LOG-DRV] ramStart:0x0;ramSize:0x0;select:0
[OSA-DRV] Char device create OK !
[LOG-DRV] coreId = 0, logLevel = 2
[LOG-DRV] coreId = 1, logLevel = 2
[LOG-DRV] coreId = 2, logLevel = 2
[LOG-DRV] coreId = 3, logLevel = 2
[LOG-DRV] coreId = 4, logLevel = 2
[LOG-DRV] coreId = 5, logLevel = 2
00:00:04|[Binder] Binder.ko Build on Aug 21 2014 at 01:44:45.
00:00:04|[Binder] SVN NUM: 1366.

00:00:04|[Binder] Create binder memory pool(size:524288) OK!
00:00:04|[Binder] Create binder memory pool(size:3145728) OK!
00:00:04|[Binder] NameServer Initial OK !
00:00:04|[Binder] Binder Initial OK !
00:00:04|[OSA-DRV] Char device create OK !
00:00:04|[Binder] SR driver initial OK !
00:00:04|[OSA-DRV] Char device create OK !
00:00:04|[Binder] NS driver initial OK !
00:00:04|[OSA-DRV] Char device create OK !
00:00:04|[Binder] Binder driver initial OK !
00:00:04|[SPF] SPF Build on Aug 21 2014 at 02:23:13.
00:00:04|[SPF] SVN NUM: 6007.

00:00:04|[SPF] SIL initial OK !
00:00:04|[SPF] SPF initial ok !
00:00:04|[OSA-DRV] Char device create OK !
00:00:04|[SPF] SPF Proc Create OK!!!
00:00:04|[SPF] SPF driver initial ok !
00:00:04|[prc] PRC Driver Build on Aug 21 2014 at 01:45:57.
00:00:04|[prc] SVN NUM: 2234.

00:00:04|[prc] Start to init module!
00:00:04|[prc] pinmux init ok
00:00:04|[prc] gpio soc init ok
00:00:04|[prc] spi init ok
00:00:04|[prc] IIC init ok
00:00:04|[prc] PRC_wdtInit OK
00:00:04|[prc] PRC_rtcInit OK!
00:00:04|[prc] i2c businit ok
00:00:04|[prc] DMA init ok
00:00:04|[SPF] Dai 3 register OK !
00:00:04|[prc] IIS init: ok
00:00:04|[SPF] codecType 32 register OK !
00:00:04|[prc] Codec init ok
00:00:04|[prc] Success to init module!
00:00:04|[pdc]

PDC Build on Aug 21 2014 at 02:39:38.
00:00:04|[pdc] SVN NUM: 4564.

00:00:04|[pdc] BASE_LINE: 210
00:00:04|[pdc] OSA_kProcCreate OK
00:00:04|[OSA-DRV] Char device create OK !
00:00:04|[pdc] PDC_PartionInit ok!!
00:00:04|[pdc] HWID : IPC-HDW1100S:01:02:04:1D:0E:00:01:00:00:00:00:190:00:00:02:00:00:00:00:00:80
00:00:04|[OSA-DRV] Char device create OK !
00:00:04|[pdc] binderFlag: 0x3, funcap: 0x18538b,0x0,0x0,0x0
00:00:04|[pdc] SenCfg Match OK,pCfgParams->pCfg: bf2690bc
00:00:04|[pdc] PDC_PRODUCT_OWNER: 0
00:00:04|[pdc] Find Product: IPC-00:00:04|[OSA-DRV] recordTsk Task pid=510 tid=510
HDW1100S.
00:00:04|[pdc] wifi cut down 0
00:00:04|[pdc] sd cut down 1610612755
00:00:04|[pdc] Config size 1428 !
00:00:04|[pdc] SenCfgSize: 204 Bytes
00:00:04|[pdc] Init spiBus2 Successed!
00:00:04|[prc] WARN : The I2C0 has benn created
00:00:04|[pdc] Init I2CBus0 Successed!
00:00:04|[pdc] PDC_MODULE_RESET_STATE
00:00:04|[pdc] Dev has No shutDown Cfg!
00:00:04|[pdc] PDC_pinInit As UsKernel: ssp initial ok!
ual!
00:00:04|[pdc] Get reset pin: 12 OK !
00:00:04|[pdc] ircut types = [0]
00:00:04|[pdc] ircut types = [1]
00:00:04|[pdc] ircut types = [2]
00:00:0AT88SC Crypt Version
4|[OSA-DRV] CharType: DH General. UserZone ReadOnly: false
device create OSVN: 2263
K !
uilt in: Jun 24 2014 16:19:37
2m00:00:04|[pdc]**
Get comPort Cfg ok !0sa
00:00:04|[pdc] PDC_comInit OK!
00:00:04|[pdc] PDC_MODULE_SENSOR
00:00:04|[pdc] Try RtcDev: SocRtc
00:00:04|[pdc] phyaddr = 84fff000, memLen = 1000
00:00:04|[pdc] phyaddr = 84fff000, memLen = 1000
00:00:04|[pdc] A B OK
00:00:04|[pdc] Both of Chief and Backup File CRC check OK!
00:00:04|[pdc] phyaddr = 84fff000, memLen = 1000
00:00:04|[pdc] Both of Chief and Berror: write byte error
ackup File CRC cerror: write_nbytes failed
heck OK!
rror: authentication failed
0;32;32m00:00:04error: authenticate failed
|[pdc] phyaddr = 84fff000, memLen = 1000
00:00:04|[pdc] Choose RtcType: 4 -> SocRtc
00:00:04|[OSA-DRV] Char device create OK !
00:00:04|[pdc] OSA_kProcAddFile:pdcRtc OK!
00:00:04|[pdc] smartIr light count:1
00:00:04|[OSA-DRV] Char Restarting system.
device ▒


00:00:04|[OSA-DRV] Char Restarting system.
Какие идеи как восстановить, жалко камер.
 

paryav

Member
00:00:04|[pdc] PDC_comInit OK!
00:00:04|[pdc] PDC_MODULE_SENSOR
00:00:04|[pdc] Try RtcDev: SocRtc
00:00:04|[pdc] phyaddr = 84fff000, memLen = 1000
00:00:04|[pdc] DDRdata crc incorrect, Load from sramFile
00:00:04|[pdc] phyaddr = 84fff000, memLen = 1000
00:00:04|[pdc] DDRdata crc incorrect, Load from sramFile
00:00:04|[pdc] A B OK
rror: write byte error
32m00:00:04|[pdcerror: write_nbytes failed
] Both of Chief error: authentication failed
and Backup File error: authenticate failed
CRC check OK!
00:00:04|[pdc] phyaddr = 84fff000, memLen = 1000
00:00:04|[pdc] DDRdata crc incorrect, Load from sramFile
00:00:04|[pdc] Both of Chief and Backup File CRC check OK!
00:00:04|[pdc] phyaddr = 84fff000, memLen =Restarting system.
1000


Там же но при другой перезагрузке
 

paryav

Member
Starting kernel ...
Uncompressing Linux... done, booting the kernel.
Linux version 3.0.8 (huang_zhendi@localhost.localdomain) (gcc version 4.4.1 (Hisilicon_v100(gcc4.4-290+uclibc_0.9.30.2+eabi+linuxpthread)) ) #6 Sat Mar 1 08:58:54 CST 2014
CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177
CPU: VIVT data cache, VIVT instruction cache
Machine: hi3518
appauto=1
dh_keyboard=0
ethaddr0=90:2:a9:44:c6:d5
ethaddr1=0:0:0:0:0:0
wifiAddr=0:0:0:0:0:0
lip0=192.168.1.108
lip1=0.0.0.0
id=TZC4CU029W00103
U-Boot 0x40000 0x80000 0x0
hwid 0x40000 0xc0000 0x0
partition 0x40000 0x100000 0x0
custom 0x20000 0x140000 0x0
product 0x20000 0x160000 0x0
Kernel 0x160000 0x180000 0x0
web 0x220000 0x2e0000 0x0
romfs 0x1a0000 0x500000 0x0
user 0x840000 0x6a0000 0x0
syslog 0x60000 0xee0000 0x0
config 0x60000 0xf40000 0x0
backup 0x60000 0xfa0000 0x0
num parts is 12.
Ignoring unrecognised tag 0x54410011
Memory policy: ECC disabled, Data cache writeback
AXI bus clock 220000000.
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 21590
Kernel command line: mem=85M console=ttyS0,115200 root=/dev/mtdblock7 rootfstype=squashfs
dh_keyboard:0
PID hash table entries: 512 (order: -1, 2048 bytes)
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Memory: 85MB = 85MB total
Memory: 82548k/82548k available, 4492k reserved, 0K highmem
Virtual kernel memory layout:
vector : 0xffff0000 - 0xffff1000 ( 4 kB)
fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
DMA : 0xffc00000 - 0xffe00000 ( 2 MB)
vmalloc : 0xc5800000 - 0xfe000000 ( 904 MB)
lowmem : 0xc0000000 - 0xc5500000 ( 85 MB)
modules : 0xbf000000 - 0xc0000000 ( 16 MB)
.init : 0xc0008000 - 0xc0020000 ( 96 kB)
.text : 0xc0020000 - 0xc035d000 (3316 kB)
.data : 0xc035e000 - 0xc03782e0 ( 105 kB)
.bss : 0xc0378304 - 0xc038f758 ( 94 kB)
SLUB: Genslabs=13, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
NR_IRQS:32 nr_irqs:32 32
sched_clock: 32 bits at 110MHz, resolution 9ns, wraps every 39045ms
Console: colour dummy device 80x30
Calibrating delay loop... 218.72 BogoMIPS (lpj=1093632)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
devtmpfs: initialized
NET: Registered protocol family 16
Serial: AMBA PL011 UART driver
uart:0: ttyS0 at MMIO 0x20080000 (irq = 5) is a PL011 rev2
console [ttyS0] enabled
uart:1: ttyS1 at MMIO 0x20090000 (irq = 5) is a PL011 rev2
bio: create slab <bio-0> at 0
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
Switching to clocksource timer1
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 4096 (order: 3, 32768 bytes)
TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
TCP: Hash tables configured (established 4096 bind 4096)
TCP reno registered
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
RPC: Registered named UNIX socket transport module.
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
squashfs: version 4.0 (2009/01/31) Phillip Lougher
JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
msgmni has been set to 161
io scheduler noop registered
io scheduler deadline registered (default)
io scheduler cfq registered
Spi id table Version 1.22
Spi(cs1) ID: 0xC2 0x20 0x18 0xC2 0x20 0x18
SPI FLASH start_up_mode is 3 Bytes
Spi(cs1):
Block:64KB
Chip:16MB
Name:"MX25L128XX"
spi size: 0x16777216
chip num: 1
Creating 12 MTD partitions on "hi_sfc":
0x000000080000-0x0000000c0000 : "U-Boot"
0x0000000c0000-0x000000100000 : "hwid"
0x000000100000-0x000000140000 : "partition"
0x000000140000-0x000000160000 : "custom"
0x000000160000-0x000000180000 : "product"
0x000000180000-0x0000002e0000 : "Kernel"
0x0000002e0000-0x000000500000 : "web"
0x000000500000-0x0000006a0000 : "romfs"
0x0000006a0000-0x000000ee0000 : "user"
0x000000ee0000-0x000000f40000 : "syslog"
0x000000f40000-0x000000fa0000 : "config"
0x000000fa0000-0x000001000000 : "backup"
Fixed MDIO Bus: probed
himii: probed
PPP generic driver version 2.4.2
NET: Registered protocol family 24
tun: Universal TUN/TAP device driver, 1.6
tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
hiusb-ehci hiusb-ehci.0: HIUSB EHCI
hiusb-ehci hiusb-ehci.0: new USB bus registered, assigned bus number 1
hiusb-ehci hiusb-ehci.0: irq 15, io mem 0x100b0000
hiusb-ehci hiusb-ehci.0: USB 0.0 started, EHCI 1.00
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
hiusb-ohci hiusb-ohci.0: HIUSB OHCI
hiusb-ohci hiusb-ohci.0: new USB bus registered, assigned bus number 2
hiusb-ohci hiusb-ohci.0: irq 16, io mem 0x100a0000
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 1 port detected
TCP bic registered
TCP cubic registered
NET: Registered protocol family 10
NET: Registered protocol family 17
NET: Registered protocol family 15
Registering the dns_resolver key type
registered taskstats version 1
▒VFS: Mounted root (squashfs filesystem) readonly on device 31:7.
devtmpfs: mounted
Freeing init memory: 96K
/etc/init.d/rcS: line 16: mnt_jffs2: not found
/etc/init.d/rcS: line 16: mnt_jffs2: not found
/etc/init.d/rcS: line 16: mnt_jffs2: not found
keyboard = 0
mkdir: can't create directory '/mnt/mtd/Config': Read-only file system
mkdir: can't create directory '/mnt/mtd/Log': Read-only file system
mkdir: can't create directory '/mnt/backup/Config': Read-only file system
mkdir: can't create directory '/mnt/mtd/Config/': Read-only file system
mkdir: can't create directory '/mnt/mtd/3A': Read-only file system
mkdir: can't create directory '/mnt/backup/debug': Read-only file system
touch: /mnt/mtd/Config/ppp/options: No such file or directory
touch: /mnt/mtd/Config/ppp/pppoe-enable: No such file or directory
touch: /mnt/mtd/Config/ppp/pap-secrets: No such file or directory
touch: /mnt/mtd/Config/ppp/pppoesessionctx: No such file or directory
touch: /mnt/mtd/Config/ppp/pppoe-redial_time: No such file or directory
touch: /mnt/mtd/Config/dial-ip: No such file or directory
/etc/init.d/rcS: line 53: /usr/etc/imod: not found
appauto=1
/usr/etc/app.sh not found!
keyboard = 0


BusyBox v1.18.4 (2014-11-27 16:00:32 CST) built-in shell (ash)
Revision: 7266
Enter 'help' for a list of built-in commands.

~ # printenv
USER=root
HOME=/
TERM=vt102
PATH=/sbin:/usr/sbin:/bin:/usr/bin
SHELL=/bin/sh
PWD=/
~ #
 
Останнє редагування модератором:

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

Спеціаліст
Команда форуму
ненужно больше скидывать логи, пока не разберетесь что нужно делать.
Почитайте другие темы по восстановлению прошивок в камерах. Суть везде одна, файлы - разные.
 

paryav

Member
ок. Спасибо.
У меня просто testmem из uboot сыпет ошибки. Думал хана и не мучить ее.
 

paryav

Member
А можно update.img с этой версии с ней камера грузилась и уходила в перезагрузку. Тут просто не монтирует.
General_IPC-HX1100_Eng_P_V2.420.0000.0.R.20140821
 

Вкладення

paryav

Member
Обновил boot
все стала монтировать.
Но имеем циклическую перезагрузку и переменная setenv appauto 0 не останавливает перезагрузку.

00:00:04|[pdc] PDC_pinInit As Usual!
00:00:04|[pdc] GAT88SC Crypt Version
et reset pin: 12Type: DH General. UserZone ReadOnly: false
OK !

VN: 2263
;32m00:00:04|[pdBuilt in: Jun 24 2014 16:19:37
c] ircut types =**
[0]
00:00:04|[pdc] ircut types = [1]
00:00:04|[pdc] ircut types = [2]
00:00:04|[OSA-DRV] Char device create OK !
00:00:04|[pdc] Get comPort Cfg ok !0sa
00:00:04|[pdc] PDC_comInit OK!
00:00:04|[pdc] PDC_MODULE_SENSOR
00:00:04|[pdc] Try RtcDev: SocRtc
00:00:04|[pdc] phyaddr = 854ff000, memLen = 1000
00:00:04|[pdc] phyaddr = 854ff000, memLen = 1000
00:00:04|[pdc] A B OK
rror: write byte error
2;32m00:00:04|[perror: write_nbytes failed
dc] Both of Chieerror: authentication failed
f and Backup Filerror: authenticate failed
e CRC check OK!
00:00:04|[pdc] phyaddr = 854ff000, memLen = 1000
00:00:04|[pdc] Both of Chief and Backup File CRC check OK!
00:00:04|[pdc] phyaddr = 854ff000, memLen = 1000
00:00:04|[pdc] Choose RtcType: 4 -> SocRtc
00Restarting system.


И постоянно по циклу

Тут прочитал что льют другой софт с помощью которого перестает камера работать с криптомодулем.
Можна этот софт.
 
Останнє редагування модератором:

paryav

Member
ненужно больше скидывать логи, пока не разберетесь что нужно делать.
Почитайте другие темы по восстановлению прошивок в камерах. Суть везде одна, файлы - разные.
Случаем нет образа фулл флеш ? Программатор есть. Вдруг поможет.
 

paryav

Member
Снял другие 3, точно так же умершие. 2 перепрошил вслепую по тфтп, не поднялись.
Подцеплюсь по ТТЛ позже сброшу лог.
Но он ни на копейку не изменился был

А в последней добавил:
tftp 0x82000000 pd-x.squashfs.img; flwrite


rror: write byte error
32m00:00:04|[pdcerror: write_nbytes failed
] Both of Chief error: authentication failed
and Backup File error: authenticate failed
CRC check OK!
 

paryav

Member
Снял образ флеша с программатора. Может поможет.
Куда загрузить?
 

paryav

Member
Счас могу выполнить запрошенное.

Но уже точно определил краш и перезагрузку вызывает

/usr/lib/modules # insmod crypt.ko

в файле /usr/etc/imod

00:08:***AT88SC Crypt Version***
19|[crypt]

CType: DH General. UserZone ReadOnly: false
rypt Build on JuSVN: 2263
n 30 2014 at 15:Built in: Jun 24 2014 16:19:37
44:19.

00:08:19|[crypt] SVN NUM: 1797.

00:08:19|[OSA-DRV] Char device create OK !
00:08:19|[crypt] gbuf[4]:0,gbuf[5]:0.
00:08:19|[crypt] gbuf[4]:43,gbuf[5]:3f.
error: write byte error
error: write_nbytes failed
error: authentication failed
error: authenticate failed
00:08:19|[crypt] ERROR (/home/fang_qipin/nfs1/work/crypto/test/P_2013.02.22_CryptoMemory_DM8127_IPC/build/../src/crypto.c|crypto_init|1018): CRYPT_authenticate failed!
00:08:19|[crypt] ERROR (/home/fang_qipin/nfs1/work/crypto/test/P_2013.02.22_CryptoMemory_DM81Restarting system.
27_IPC/
 
Останнє редагування:
Зверху