С начала она начала перезагружаться и в один прекрасный момент пропала совсем.
Подключился к TTL получил следующее
Код: Выделить всё
U-Boot 2010.06.140517 (Aug 02 2014 - 15:17:40)
NAND: Special Nand id table Version 1.35
Nand ID: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
No NAND device found!!!
0 MiB
Check spi flash controller v350... Found
Spi(cs1) ID: 0xEF 0x40 0x18 0x00 0x00 0x00
Spi(cs1): Block:64KB Chip:16MB Name:"W25Q128B"
In: serial
Out: serial
Err: serial
check reset gpio6_1 hold 0
Hit any key to stop autoboot: 0
Saving Environment to SPI Flash...
Erasing SPI flash, offset 0x00040000 size 64K ...done
Writing to SPI flash, offset 0x00040000 size 64K ...done
16384 KiB hi_sfc at 0:0 is now current device
## Booting kernel from Legacy Image at 82000000 ...
Image Name: Linux-3.0.8
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 2505144 Bytes = 2.4 MiB
Load Address: 80008000
Entry Point: 80008000
Loading Kernel Image ... OK
OK
Starting kernel ...
Uncompressing Linux... done, booting the kernel.
Linux version 3.0.8 (root@sqy-desktop) (gcc version 4.4.1 (Hisilicon_v100(gcc4.4-290+uclibc_0.9.32.1+eabi+linuxpthread)) ) #5 Fri May 16 18:27:23 CST 2014
CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177
CPU: VIVT data cache, VIVT instruction cache
Machine: hi3518
Memory policy: ECC disabled, Data cache writeback
AXI bus clock 220000000.
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 22352
Kernel command line: mem=0x58M console=ttyAMA0,115200 root=/dev/mtdblock2 rootfstype=cramfs mtdparts=hi_sfc:320K(uboot),2752K(kernel),3072K(rootfs),9472K(app),384K(config),384K(log) reset=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: 88MB = 88MB total
Memory: 82956k/82956k available, 7156k reserved, 0K highmem
Virtual kernel memory layout:
vector : 0xffff0000 - 0xffff1000 ( 4 kB)
fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
DMA : 0xffc00000 - 0xffe00000 ( 2 MB)
vmalloc : 0xc6000000 - 0xfe000000 ( 896 MB)
lowmem : 0xc0000000 - 0xc5800000 ( 88 MB)
modules : 0xbf000000 - 0xc0000000 ( 16 MB)
.init : 0xc0008000 - 0xc002a000 ( 136 kB)
.text : 0xc002a000 - 0xc05e3000 (5860 kB)
.data : 0xc05e4000 - 0xc060c9a0 ( 163 kB)
.bss : 0xc060c9c4 - 0xc062a008 ( 118 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
NET: Registered protocol family 16
Serial: AMBA PL011 UART driver
uart:0: ttyAMA0 at MMIO 0x20080000 (irq = 5) is a PL011 rev2
console [ttyAMA0] enabled
uart:1: ttyAMA1 at MMIO 0x20090000 (irq = 5) is a PL011 rev2
bio: create slab <bio-0> at 0
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
cfg80211: Calling CRDA to update world regulatory domain
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.
NetWinder Floating Point Emulator V0.97 (double precision)
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
NTFS driver 2.1.30 [Flags: R/W DEBUG].
JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
fuse init (API version 7.16)
msgmni has been set to 162
sqy test his lot is : 0x39 0x09 0x82 0x21 0x68 0x69 0x10 0x10
write command 0x03
verify r psw fail 0x03
encryption fail
encryption fail
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
io scheduler noop registered
io scheduler deadline registered (default)
io scheduler cfq registered
brd: module loaded
loop: module loaded
Spi id table Version 1.22
Spi(cs1) ID: 0xEF 0x40 0x18 0x00 0x00 0x00
SPI FLASH start_up_mode is 3 Bytes
Spi(cs1):
Block:64KB
Chip:16MB
Name:"W25Q128B"
spi size: 16MB
chip num: 1
6 cmdlinepart partitions found on MTD device hi_sfc
Creating 6 MTD partitions on "hi_sfc":
0x000000000000-0x000000050000 : "uboot"
0x000000050000-0x000000300000 : "kernel"
0x000000300000-0x000000600000 : "rootfs"
0x000000600000-0x000000f40000 : "app"
0x000000f40000-0x000000fa0000 : "config"
0x000000fa0000-0x000001000000 : "log"
Special nand id table Version 1.35
Hisilicon Nand Flash Controller V301 Device Driver, Version 1.10
Nand ID: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
No NAND device found.
Fixed MDIO Bus: probed
himii: probed
PPP generic driver version 2.4.2
PPP Deflate Compression module registered
PPP BSD Compression module registered
PPP MPPE Compression module registered
NET: Registered protocol family 24
usbcore: registered new interface driver rt2500usb
usbcore: registered new interface driver rt73usb
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
usbcore: registered new interface driver cdc_acm
cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
usbcore: registered new interface driver cdc_wdm
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usbcore: registered new interface driver ums-alauda
usbcore: registered new interface driver ums-datafab
usbcore: registered new interface driver ums-freecom
usbcore: registered new interface driver ums-isd200
usbcore: registered new interface driver ums-jumpshot
usbcore: registered new interface driver ums-sddr09
usbcore: registered new interface driver ums-sddr55
usbcore: registered new interface driver mdc800
mdc800: v0.7.5 (30/10/2000):USB Driver for Mustek MDC800 Digital Camera
mousedev: PS/2 mouse device common for all mice
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
TCP cubic registered
Initializing XFRM netlink socket
NET: Registered protocol family 10
NET: Registered protocol family 17
NET: Registered protocol family 15
lib80211: common routines for IEEE802.11 drivers
Registering the dns_resolver key type
registered taskstats version 1
drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
▒VFS: Mounted root (cramfs filesystem) readonly on device 31:2.
Freeing init memory: 136K
_ _ _ _ _ _ _ _ _ _ _ _
\ _ _ _ _ _ ___
/ /__/ \ |_/
/ __ / - _ ___
/ / / / / /
_ _ _ _/ / / \_/ \_ ______
___________\___\__________________
[RCS]: /etc/init.d/S00devs
[RCS]: /etc/init.d/S01udev
udevd (555): /proc/555/oom_adj is deprecated, please use /proc/555/oom_score_adj instead.
[RCS]: /etc/init.d/S80network
Auto login as root ...
Jan 1 00:00:05 login[560]: root login on 'ttyS000'
Welcome to HiLinux.
This app released with info
majorversion 1
minorversion 0
buildyear 2014
buildmonth 6
buildday 11
Login by /dev/ttyS000 at Thu Jan 1 00:00:05 UTC 1970.
find partition app index=3 addr=6291456 size=9699328
[uboot]partsize=327680
[kernel]partsize=2818048
[rootfs]partsize=3145728
[app]partsize=9699328
find partition app index=3 addr=6291456 size=9699328
18944+0 records in
18944+0 records out
9699328 bytes (9.3MB) copied, 2.530241 seconds, 3.7MB/s
[uboot]partsize=327680
[kernel]partsize=2818048
[rootfs]partsize=3145728
[app]partsize=9699328
[config]partsize=393216
find partition config index=4 addr=15990784 size=393216
[uboot]partsize=327680
[kernel]partsize=2818048
[rootfs]partsize=3145728
[app]partsize=9699328
[config]partsize=393216
[log]partsize=393216
find partition log index=5 addr=16384000 size=393216
insmod mmz.ko mmz=anonymous,0,0x85800000,168M anony=1 || report_error;
Hisilicon Media Memory Zone Manager
hi3518_base: module license 'Proprietary' taints kernel.
Disabling lock debugging due to kernel taint
Hisilicon UMAP device driver interface: v3.00
pa:85800000, va:c7040000
load sys.ko for Hi3518...OK!
load viu.ko for Hi3518...OK!
ISP Mod init!
load vpss.ko ....OK!
load vou.ko ....OK!
[2]+ Done ./appinstall
# load venc.ko for Hi3518...OK!
load group.ko for Hi3518...OK!
load chnl.ko for Hi3518...OK!
load h264e.ko for Hi3518...OK!
load jpege.ko for Hi3518...OK!
load rc.ko for Hi3518...OK!
load region.ko ....OK!
load vda.ko ....OK!
hi_i2c init is ok!
Kernel: ssp initial ok!
acodec inited!
insert audio
==== Your input Sensor type is imx122 ====
Starting up sysinit....
ifconfig eth0 192.168.1.110 netmask 255.255.255.0
ADDRCONF(NETDEV_UP): eth0: link is not ready
reseting mdio phy....
*** Board tools : ver0.0.1_20121120 ***
[debug]: {source/utils/cmdshell.c:166}cmdstr:himm
0x10091100: 0x00008143 --> 0x00000140
[END]
read [0x10091104]=0x3100
write [0x10091100]=0xb1002140
*** Board tools : ver0.0.1_20121120 ***
[debug]: {source/utils/cmdshell.c:166}cmdstr:himm
0x10091100: 0x00008140 --> 0xB1002140
[END]
*** Board tools : ver0.0.1_20121120 ***
[debug]: {source/utils/cmdshell.c:166}cmdstr:himm
0x10091100: 0xB100A140 --> 0x00000240
[END]
read [0x10091104]=0xffff
write [0x10091100]=0x17fff2240
*** Board tools : ver0.0.1_20121120 ***
[debug]: {source/utils/cmdshell.c:166}cmdstr:himm
[END]
fdisk: can't open '/dev/mmcblk0': No such file or directory
redeviding the storage....
fdisk: can't open '/dev/mmcblk0'
formatting the partition....
mke2fs 1.41.11 (14-Mar-2010)
Could not stat /dev/mmcblk0p1 --- No such file or directory
The device apparently does not exist; did you specify it correctly?
chmod: /usr/etc/var: No such file or directory
net.ipv4.tcp_keepalive_time = 60
net.ipv4.tcp_keepalive_probes = 4
net.ipv4.tcp_keepalive_intvl = 12
net.ipv4.tcp_retries2 = 7
Starting up app....0/1000
PHY: himii:01 - Link is Up - 100/Full
ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[XMID][DBG][SnapMgr::SnapMgr(const char*):40] this=0x40164904: m_filePathRoot=/tmp/mmc/mmc1/snapshot
system:killall -9 ntpd;ntpd -l
killall: ntpd: no process killed
[MID][DBG][void* OnTimer_ms(void*):257] pid=1278 enter
[ANTS_Sys_InitDSPs.163.Info]ANTS_Sys_InitDSPs called : CurTime is 2017.08.31-17:28:32
[hal][Custom_Init:285] SensorModel content="IMX122"
[hal][Custom_Init:285] Customer content="DEFAULT"
[hal][Custom_Init:285] IsofDome content="n"
[hal][Custom_Init:285] IsofIr content="y"
[hal][Custom_Init:285] Hardware content="FSAN_HI3516C_D1404"
[hal][Custom_Init:285] Platform content="HI3516C"
[ANTS_Sys_InitDSPs.228.Info]**********************AUTHEN ************************!!!!!
open encry file fail
open encry file fail
[ANTS_Sys_InitDSPs.251.Error]Unknown Chip ID 0x17 0x40
[XMID][DBG][int ANTS_MID_Init(int):37] param=0x0
[XMID][DBG][CirBuffSlotMgr::CirBuffSlotMgr(unsigned int, unsigned int):36] this=0xf460a0: m_cirBuffSlotList=0xf460a0
[XMID][DBG][SignalerMgr::SignalerMgr():25] this=0xf460e0: m_SignalerList=0xf460e4
[XMID][DBG][CirBuff::CirBuff():22] this=0xf460a0: m_handleList=0xf4610c m_cirBuffMgr=0xf460a0 m_signalerMgr=0xf460e0
[XMID][DBG][EventBuff::EventBuff():70] this=0xf460a0: m_cirBuff=0xf460a0 m_cirBuffAccess=0xf46114
[XMID][DBG][void Pthread::Print():64] <Pthread m_threadName=int CirBuffSlotMgr::Create() m_threadFunc=0x401559d0 m_threadId=0x419364c0 />
[XMID][DBG][void List<T>::Print() [with T = unsigned int]:276] [0] *0xf46b58={link={0xf4610c, 0xf4610c}, slot=0xf47ce8}
[XMID][DBG][void Pthread::Print():64] <Pthread m_threadName=int EventBuff::Init() m_threadFunc=0x4015444c m_threadId=0x421d84c0 />
[ANTS_Sys_RegisterEventCallback.1567.Error]ANTS_Sys_RegisterEventCallback : SDK Not Init
[XMID][DBG][int ANTS_MID_Init(int):41] ANTS_MID_EVENT_Init ret = -1
[XMID][DBG][static void* CirBuffSlotMgr::MgrRecycleThread(void*):305] pid=1279 enter
[XMID][DBG][static void* EventBuff::MonitorBuffThreadFunc(void*):400] pid=1280 enter
[ANTS_Sys_RegisterEventCallback.1567.Error]ANTS_Sys_RegisterEventCallback : SDK Not Init
[XMID][DBG][int ANTS_MID_Init(int):41] ANTS_MID_EVENT_Init ret = -1
[ANTS_Sys_RegisterEventCallback.1567.Error]ANTS_Sys_RegisterEventCallback : SDK Not Init
[XMID][DBG][int ANTS_MID_Init(int):41] ANTS_MID_EVENT_Init ret = -1
[ANTS_Sys_RegisterEventCallback.1567.Error]ANTS_Sys_RegisterEventCallback : SDK Not Init
[XMID][DBG][int ANTS_MID_Init(int):41] ANTS_MID_EVENT_Init ret = -1
[ANTS_Sys_RegisterEventCallback.1567.Error]ANTS_Sys_RegisterEventCallback : SDK Not Init
[XMID][DBG][int ANTS_MID_Init(int):41] ANTS_MID_EVENT_Init ret = -1
[ANTS_Sys_RegisterEventCallback.1567.Error]ANTS_Sys_RegisterEventCallback : SDK Not Init
[XMID][DBG][int ANTS_MID_Init(int):41] ANTS_MID_EVENT_Init ret = -1
[ANTS_Sys_RegisterEventCallback.1567.Error]ANTS_Sys_RegisterEventCallback : SDK Not Init
[XMID][DBG][int ANTS_MID_Init(int):41] ANTS_MID_EVENT_Init ret = -1
[ANTS_Sys_RegisterEventCallback.1567.Error]ANTS_Sys_RegisterEventCallback : SDK Not Init
[XMID][DBG][int ANTS_MID_Init(int):41] ANTS_MID_EVENT_Init ret = -1
[ANTS_Sys_RegisterEventCallback.1567.Error]ANTS_Sys_RegisterEventCallback : SDK Not Init
[XMID][DBG][int ANTS_MID_Init(int):41] ANTS_MID_EVENT_Init ret = -1
[ANTS_Sys_RegisterEventCallback.1567.Error]ANTS_Sys_RegisterEventCallback : SDK Not Init
[XMID][DBG][int ANTS_MID_Init(int):41] ANTS_MID_EVENT_Init ret = -1
***link down status changed***.
PHY: himii:01 - Link is Down
PHY: himii:01 - Link is Up - 100/Full
Окружение
Код: Выделить всё
U-Boot 2010.06.140517 (Aug 02 2014 - 15:17:40)
NAND: Special Nand id table Version 1.35
Nand ID: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
No NAND device found!!!
0 MiB
Check spi flash controller v350... Found
Spi(cs1) ID: 0xEF 0x40 0x18 0x00 0x00 0x00
Spi(cs1): Block:64KB Chip:16MB Name:"W25Q128B"
In: serial
Out: serial
Err: serial
check reset gpio6_1 hold 0
Hit any key to stop autoboot: 0
hisilicon # printenv
bootcmd=sf probe 0;sf read 0x82000000 0x50000 0x2b0000;bootm 0x82000000
bootdelay=1
baudrate=115200
ethaddr=00:00:23:34:45:66
ipaddr=192.168.100.101
serverip=192.168.100.100
update_enable=n
update_partition=0123456789abcdef
cntfail=0
latefail=0
errk=0
errr=0
erra=0
netmask=255.255.255.0
bootfile="uImage"
update_postfix=.bin.hi3516c
resetpin=61
resetidle=1
resettime=050
cntboot=4
stampb=441114054467
stdin=serial
stdout=serial
stderr=serial
verify=n
update_result=0-NotEnable
bootargs=mem=0x58M console=ttyAMA0,115200 root=/dev/mtdblock2 rootfstype=cramfs mtdparts=hi_sfc:320K(uboot),2752K(kernel),3072K(rootfs),9472K(app),384K(config),384K(log) reset=0
ver=U-Boot 2010.06.140517 (Aug 02 2014 - 15:17:40)
Environment size: 707/65532 bytes
hisilicon #
По tftp слил прошивку, все работает. Зашел через telnet все работает логин root пароль antslq
Ни одна программа не видит камеру, через веб интерфес тоже не заходит....
В линуксе особо не понимаю, но вот сделал следующее, мб поможет понять в чем проблема:
Код: Выделить всё
# ps
PID USER VSZ STAT COMMAND
1 root 1708 S init
2 root 0 SW [kthreadd]
3 root 0 SW [ksoftirqd/0]
4 root 0 SW [kworker/0:0]
5 root 0 SW [kworker/u:0]
6 root 0 SW [rcu_kthread]
7 root 0 SW< [khelper]
8 root 0 SW [kworker/u:1]
146 root 0 SW [sync_supers]
148 root 0 SW [bdi-default]
149 root 0 SW< [kintegrityd]
151 root 0 SW< [kblockd]
164 root 0 SW [khubd]
177 root 0 SW< [cfg80211]
178 root 0 SW [kworker/0:1]
260 root 0 SW< [rpciod]
263 root 0 SW [kswapd0]
317 root 0 SW [fsnotify_mark]
334 root 0 SW< [nfsiod]
344 root 0 SW< [crypto]
422 root 0 SW [mtdblock0]
427 root 0 SW [mtdblock1]
432 root 0 SW [mtdblock2]
437 root 0 SW [mtdblock3]
442 root 0 SW [mtdblock4]
447 root 0 SW [mtdblock5]
452 root 0 SW [romblock0]
455 root 0 SW [romblock1]
458 root 0 SW [romblock2]
461 root 0 SW [romblock3]
464 root 0 SW [romblock4]
467 root 0 SW [romblock5]
517 root 0 SW< [kpsmoused]
526 root 0 SW [kworker/u:2]
555 root 872 S < udevd --daemon
560 root 1724 S -sh
635 root 1704 S /bin/sh /etc/failsave
637 root 1700 S sleep 60
638 root 0 SWN [jffs2_gcd_mtd3]
716 root 0 SW [romblock6]
721 root 0 SW [mtdblock6]
727 root 0 SW [flush-31:6]
729 root 0 SWN [jffs2_gcd_mtd6]
731 root 1752 S /bin/sh ./appinstall
821 root 0 SWN [jffs2_gcd_mtd4]
930 root 0 SWN [jffs2_gcd_mtd5]
1178 root 1072 S sysinit
1214 root 1704 S telnetd
1268 root 1704 S syslogd -O /tmp/syslog.log -s 64 -b 8
1272 root 39424 S ./AntsOnvifServer
1277 root 1704 S ntpd -l
1281 root 1708 R ps
#
# find partition config index=4 addr=15990784 size=393216
Код: Выделить всё
ip address
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast qlen 1000
link/ether aa:ac:ae:8e:ec:04 brd ff:ff:ff:ff:ff:ff
inet 192.168.1.110/24 brd 192.168.1.255 scope global eth0
inet6 fe80::a8ac:aeff:fe8e:ec04/64 scope link
valid_lft forever preferred_lft forever
[1]+ Done /etc/failsave
#
Код: Выделить всё
# netstat
Active Internet connections (w/o servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
Active UNIX domain sockets (w/o servers)
Proto RefCnt Flags Type State I-Node Path
unix 3 [ ] DGRAM 1330 /dev/log
unix 2 [ ] DGRAM 147 @/org/kernel/udev/udevd
unix 2 [ ] DGRAM 1409
#