This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Wifi crash after ping for certain time with WL1831 module R8.7_SP1.

Other Parts Discussed in Thread: WL1271, WL1831

Hi,

I am using wilink8 (R8.7_SP1) with hi3516a hisilicon SOC and linux kernel 3.4.35. Wifi module is connected to hotspot successfully and getting pinged for some time.And then it gets crashed. Wifi IRQ is increased as seen in /proc/interrupts. Can you please guide to find out root-cause and possible solution?. Hereby adding more details below and attaching crash log.


CRASH LOG DETAIL

wpa_supplicant v2.1-devel
random: Trying to read entropy from /dev/random
Successfully initialized wpa_supplicant
Initializing interface 'wlan0' conf '/etc/wpa_supplicant.conf' driver 'nl80211' ctrl_interface 'N/A' bridge 'N/A'
Configuration file '/etc/wpa_supplicant.conf' -> '/etc/wpa_supplicant.conf'
Reading configuration file '/etc/wpa_supplicant.conf'
ctrl_interface='/var/run/wpa_supplicant'
ctrl_interface_group='0'
eapol_version=1
ap_scan=1
fast_reauth=1
Priority group 5
   id=0 ssid='ipcamtest'
rfkill: Cannot open RFKILL control device
nl80211: RFKILL status not available
nl80211: Supports Probe Response offload in AP mode
nl80211: Using driver-based off-channel TX
nl80211: Unexpected vendor data info
nl80211: Unexpected vendor data info
nl80211: Unexpected vendor data info
nl80211: Unexpected vendor data info
nl80211: Unexpected vendor data info
nl80211: Use separate P2P group interface (driver advertised support)
nl80211: Enable multi-channel concurrent (driver advertised support)
nl80211: interface wlan0 in phy phy0
nl80211: Set mode ifindex 4 iftype 2 (STATION)
nl80211: Subscribe to mgmt frames with non-AP handle 0x1c8d410
nl80211: Register frame type=0xd0 nl_handle=0x1c8d410
nl80211: Register frame match - hexdump(len=1): 06
nl80211: Register frame type=0xd0 nl_handle=0x1c8d410
nl80211: Register frame match - hexdump(len=2): 0a 07
nl80211: Register frame type=0xd0 nl_handle=0x1c8d410
nl80211: Register frame match - hexdump(len=2): 0a 11
netlink: Operstate: linkmode=1, operstate=5
nl80211: driver param='(null)'
Add interface wlan0 to a new radio phy0
nl80211: Regulatory information - country=00
nl80211: 2402-2472 @ 40 MHz
nl80211: 2402-2472 @ 20 mBm
nl80211: 2457-2482 @ 40 MHz
nl80211: 2457-2482 @ 20 mBm
nl80211: 2474-2494 @ 20 MHz
nl80211: 2474-2494 @ 20 mBm
nl80211: 5170-5250 @ 160 MHz
nl80211: 5170-5250 @ 20 mBm
nl80211: 5250-5330 @ 160 MHz
nl80211: 5250-5330 @ 20 mBm
nl80211: 5490-5730 @ 160 MHz
nl80211: 5490-5730 @ 20 mBm
nl80211: 5735-5835 @ 80 MHz
nl80211: 5735-5835 @ 20 mBm
nl80211: 57240-63720 @ 2160 MHz
nl80211: 57240-63720 @ 0 mBm
nl80211: Added 802.11b mode based on 802.11g information
nl80211: Do not indicate P2P_DEVICE support (p2p_device=1 driver param not specified)
wlan0: Own MAC address: 68:c9:0b:07:f8:a5
wpa_driver_nl80211_set_key: ifindex=4 (wlan0) alg=0 addr=(nil) key_idx=0 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=4 (wlan0) alg=0 addr=(nil) key_idx=1 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=4 (wlan0) alg=0 addr=(nil) key_idx=2 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=4 (wlan0) alg=0 addr=(nil) key_idx=3 set_tx=0 seq_len=0 key_len=0
wlan0: RSN: flushing PMKID list in the driver
nl80211: Flush PMKIDs
wlan0: Total active networks 1
EAPOL: SUPP_PAE entering state DISCONNECTED
EAPOL: Supplicant port status: Unauthorized
nl80211: Set supplicant port unauthorized for 00:00:00:00:00:00
EAPOL: KEY_RX entering state NO_KEY_RECEIVE
EAPOL: SUPP_BE entering state INITIALIZE
EAP: EAP entering state DISABLED
EAPOL: Supplicant port status: Unauthorized
nl80211: Set supplicant port unauthorized for 00:00:00:00:00:00
EAPOL: Supplicant port status: Unauthorized
nl80211: Set supplicant port unauthorized for 00:00:00:00:00:00
ctrl_interface_group=0
wlan0: Added interface wlan0
wlan0: State: DISCONNECTED -> DISCONNECTED
wpa_driver_nl80211_set_operstate: operstate 0->0 (DORMANT)
netlink: Operstate: linkmode=-1, operstate=5
Daemonize..
[root@ABC ~]# wlan0: authenticate with 86:73:03:c5:50:f7
wlan0: send auth to 86:73:03:c5:50:f7 (try 1/3)
wlan0: authenticated
wlan0: associate with 86:73:03:c5:50:f7 (try 1/3)
wlan0: RX AssocResp from 86:73:03:c5:50:f7 (capab=0x421 status=0 aid=2)
wlan0: associated
ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
wlcore: Association completed.

[root@ABC ~]#
[root@ABC ~]# ifconfig wlan0 192.168.43.7
[root@ABC ~]# ping 192.168.43.1
PING 192.168.43.1 (192.168.43.1): 56 data bytes
64 bytes from 192.168.43.1: seq=0 ttl=64 time=21.134 ms
64 bytes from 192.168.43.1: seq=1 ttl=64 time=11.719 ms
64 bytes from 192.168.43.1: seq=2 ttl=64 time=11.651 ms
64 bytes from 192.168.43.1: seq=3 ttl=64 time=16.125 ms
64 bytes from 192.168.43.1: seq=4 ttl=64 time=9.679 ms
64 bytes from 192.168.43.1: seq=5 ttl=64 time=11.711 ms
64 bytes from 192.168.43.1: seq=6 ttl=64 time=11.106 ms
64 bytes from 192.168.43.1: seq=7 ttl=64 time=11.015 ms
64 bytes from 192.168.43.1: seq=8 ttl=64 time=11.200 ms
64 bytes from 192.168.43.1: seq=9 ttl=64 time=12.146 ms
64 bytes from 192.168.43.1: seq=10 ttl=64 time=11.755 ms
64 bytes from 192.168.43.1: seq=11 ttl=64 time=11.850 ms
64 bytes from 192.168.43.1: seq=12 ttl=64 time=12.404 ms
64 bytes from 192.168.43.1: seq=13 ttl=64 time=12.028 ms
64 bytes from 192.168.43.1: seq=14 ttl=64 time=15.216 ms
64 bytes from 192.168.43.1: seq=15 ttl=64 time=11.540 ms
64 bytes from 192.168.43.1: seq=16 ttl=64 time=21.032 ms
64 bytes from 192.168.43.1: seq=17 ttl=64 time=14.732 ms
64 bytes from 192.168.43.1: seq=18 ttl=64 time=10.640 ms
64 bytes from 192.168.43.1: seq=19 ttl=64 time=6.499 ms
64 bytes from 192.168.43.1: seq=20 ttl=64 time=12.216 ms
64 bytes from 192.168.43.1: seq=21 ttl=64 time=52.347 ms
64 bytes from 192.168.43.1: seq=22 ttl=64 time=10.513 ms
64 bytes from 192.168.43.1: seq=23 ttl=64 time=12.026 ms
64 bytes from 192.168.43.1: seq=24 ttl=64 time=9.371 ms
64 bytes from 192.168.43.1: seq=25 ttl=64 time=11.462 ms
64 bytes from 192.168.43.1: seq=26 ttl=64 time=120.445 ms
64 bytes from 192.168.43.1: seq=27 ttl=64 time=10.027 ms
64 bytes from 192.168.43.1: seq=28 ttl=64 time=10.804 ms
64 bytes from 192.168.43.1: seq=29 ttl=64 time=2.676 ms
wlcore: ERROR ELP wakeup timeout!
------------[ cut here ]------------
WARNING: at /home/reddesk/wifi_working/build-utilites/src/compat_wireless/drivers/net/wireless/ti/wlcore/)
Modules linked in: wl18xx(O) wlcore_sdio(O) wlcore(O) mac80211(O) cfg80211(O) compat(O) hi_mipi(O) hi3516a_adec(PO) hi3516a_aenc(PO) hi3516a_ao(PO) hi3516a_ai(PO) hi3516a_aio(PO) acodec(PO) se)
Backtrace:
[<c0011fdc>] (dump_backtrace+0x0/0x110) from [<c04a3cc0>] (dump_stack+0x18/0x1c)
 r6:bf461920 r5:00000009 r4:00000000 r3:c063f640
[<c04a3ca8>] (dump_stack+0x0/0x1c) from [<c001c374>] (warn_slowpath_common+0x5c/0x6c)
[<c001c318>] (warn_slowpath_common+0x0/0x6c) from [<c001c428>] (warn_slowpath_null+0x24/0x2c)
 r8:bf47f6a4 r7:ffffa395 r6:00000000 r5:c06403c0 r4:ccb5d320
r3:00000009
[<c001c404>] (warn_slowpath_null+0x0/0x2c) from [<bf461920>] (wl12xx_queue_recovery_work.part.41+0x84/0x88 [wlcore])
[<bf46189c>] (wl12xx_queue_recovery_work.part.41+0x0/0x88 [wlcore]) from [<bf46338c>] (wl12xx_queue_recovery_work+0x1c/0x20 [wlcore])
 r4:ccb5d320 r3:00000002
[<bf463370>] (wl12xx_queue_recovery_work+0x0/0x20 [wlcore]) from [<bf46cff4>] (wl1271_ps_elp_wakeup+0x1f4/0x20c [wlcore])
[<bf46ce00>] (wl1271_ps_elp_wakeup+0x0/0x20c [wlcore]) from [<bf46c02c>] (wl1271_tx_work+0x24/0x58 [wlcore])
[<bf46c008>] (wl1271_tx_work+0x0/0x58 [wlcore]) from [<c0030f88>] (process_one_work+0x118/0x388)
 r5:cd81d1c0 r4:ccb5d4f0
[<c0030e70>] (process_one_work+0x0/0x388) from [<c0031584>] (worker_thread+0x1ac/0x38c)
[<c00313d8>] (worker_thread+0x0/0x38c) from [<c0035c94>] (kthread+0x98/0x9c)
[<c0035bfc>] (kthread+0x0/0x9c) from [<c001f724>] (do_exit+0x0/0x698)
 r6:c001f724 r5:c0035bfc r4:cd82feb4
---[ end trace 480f8c6fc8805fde ]---
wlcore: Hardware recovery in progress. FW ver: Rev 8.9.0.0.69
------------[ cut here ]------------
WARNING: at /home/reddesk/wifi_working/build-utilites/src/compat_wireless/drivers/net/wireless/ti/wlcore/)
Modules linked in: wl18xx(O) wlcore_sdio(O) wlcore(O) mac80211(O) cfg80211(O) compat(O) hi_mipi(O) hi3516a_adec(PO) hi3516a_aenc(PO) hi3516a_ao(PO) hi3516a_ai(PO) hi3516a_aio(PO) acodec(PO) se)
Backtrace:
[<c0011fdc>] (dump_backtrace+0x0/0x110) from [<c04a3cc0>] (dump_stack+0x18/0x1c)
 r6:bf469184 r5:00000009 r4:00000000 r3:c063f640
[<c04a3ca8>] (dump_stack+0x0/0x1c) from [<c001c374>] (warn_slowpath_common+0x5c/0x6c)
[<c001c318>] (warn_slowpath_common+0x0/0x6c) from [<c001c428>] (warn_slowpath_null+0x24/0x2c)
 r8:ccb5d358 r7:bf460c64 r6:bf47f6a4 r5:bf4a4520 r4:ccb5d320
r3:00000009
[<c001c404>] (warn_slowpath_null+0x0/0x2c) from [<bf469184>] (wlcore_set_partition+0xa8/0x50c [wlcore])
[<bf4690dc>] (wlcore_set_partition+0x0/0x50c [wlcore]) from [<bf460cd8>] (wl1271_recovery_work+0x74/0x354 [wlcore])
 r6:ccb5d320 r5:cd81d1c0 r4:ccb5d5bc
[<bf460c64>] (wl1271_recovery_work+0x0/0x354 [wlcore]) from [<c0030f88>] (process_one_work+0x118/0x388)
 r8:00000000 r7:bf460c64 r6:ccb4fa00 r5:cd81d1c0 r4:ccb5d5bc
[<c0030e70>] (process_one_work+0x0/0x388) from [<c0031584>] (worker_thread+0x1ac/0x38c)
[<c00313d8>] (worker_thread+0x0/0x38c) from [<c0035c94>] (kthread+0x98/0x9c)
[<c0035bfc>] (kthread+0x0/0x9c) from [<c001f724>] (do_exit+0x0/0x698)
 r6:c001f724 r5:c0035bfc r4:cd82feb4
---[ end trace 480f8c6fc8805fdf ]---
wlcore: down
ieee80211 phy0: Hardware restart was requested
wlcore: PHY firmware version: Rev 8.2.0.0.236
wlcore: firmware booted (Rev 8.9.0.0.69)
wlcore: Association completed.

--- 192.168.43.1 ping statistics ---
36 packets transmitted, 30 packets received, 16% packet loss
round-trip min/avg/max = 2.676/16.902/120.445 ms

WL1831_Hi3516a_WifiCrashLog.txt
U-Boot 2010.06 (Dec 28 2016 - 18:05:29)

Check Nand Flash Controller v610 ... found
Special NAND id table Version 1.36
Nand ID: 0x01 0xF1 0x80 0x1D 0x01 0xF1 0x80 0x1D
Block:128KB Page:2KB Chip:128MB*1 OOB:64B ECC:4bit/512 
Nand total size: 128MB
MMC:   MMC FLASH INIT: No card on slot!
In:    serial
Out:   serial
Err:   serial
Set training value to DDR controller
Hit any key to stop autoboot:  0 
Card did not respond to voltage select!
mmc_init err : -17
set read bl len failed, trying default 512Byte
mmc read failed
** Can't read partition table on 0:0 **
set read bl len failed, trying default 512Byte
mmc read failed

** Unable to use 0:1 for fatls **

ethaddr : 00:1B:09:01:5C:0A
exiting from automac without any process

NAND read: device 0 offset 0x3a0000, size 0x380000
 3670016 bytes read: OK
## Booting kernel from Legacy Image at 82000000 ...
   Image Name:   Linux-3.4.35
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3382888 Bytes = 3.2 MiB
   Load Address: 80008000
   Entry Point:  80008000
   Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
Booting Linux on physical CPU 0
Linux version 3.4.35 (darshanpatel@darshanpatel) (gcc version 4.8.3 20131202 (prerelease) (Hisilicon_v400) ) #4 Tue Jan 17 14:00:15 IST 2017
CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c53c7d
CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
Machine: hi3516a
Memory policy: ECC disabled, Data cache writeback
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 56134
Kernel command line: mem=221M console=ttyAMA0,115200 root=/dev/mtdblock5 rootfstype=yaffs2 mtdparts=hinand:384K(uboot),256K(ubootEnv),3M(recKernel),5120K(kernel),5M(data),45M(rootfs),45M(userf)
PID hash table entries: 1024 (order: 0, 4096 bytes)
Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
Memory: 221MB = 221MB total
Memory: 217468k/217468k available, 8836k reserved, 0K highmem
Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
    vmalloc : 0xce000000 - 0xff000000   ( 784 MB)
    lowmem  : 0xc0000000 - 0xcdd00000   ( 221 MB)
    modules : 0xbf000000 - 0xc0000000   (  16 MB)
      .text : 0xc0008000 - 0xc0608000   (6144 kB)
      .init : 0xc0608000 - 0xc062f7a4   ( 158 kB)
      .data : 0xc0630000 - 0xc0667100   ( 221 kB)
       .bss : 0xc0667124 - 0xc06a3f30   ( 244 kB)
SLUB: Genslabs=11, HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
NR_IRQS:128
sched_clock: 32 bits at 49MHz, resolution 20ns, wraps every 86767ms
Console: colour dummy device 80x30
Calibrating delay loop... 1196.85 BogoMIPS (lpj=5984256)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
Initializing cgroup subsys freezer
CPU: Testing write buffer coherency: ok
Setting up static identity map for 0x804aae10 - 0x804aae68
dummy: 
NET: Registered protocol family 16
Serial: AMBA PL011 UART driver
uart:0: ttyAMA0 at MMIO 0x20080000 (irq = 40) is a PL011 rev2
console [ttyAMA0] enabled
uart:1: ttyAMA1 at MMIO 0x20090000 (irq = 41) is a PL011 rev2
bio: create slab <bio-0> at 0
SCSI subsystem initialized
hi-spi-master hi-spi-master.0: with 1 chip select slaves attached
hi-spi-master hi-spi-master.1: with 3 chip select slaves attached
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
i2c_gpio_probe:190
i2c-gpio i2c-gpio.1: using pins 0 (SDA) and 0 (SCL)
Switching to clocksource timer0
NET: Registered protocol family 2
IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
TCP established hash table entries: 8192 (order: 4, 65536 bytes)
TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
TCP: Hash tables configured (established 8192 bind 8192)
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.
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
squashfs: version 4.0 (2009/01/31) Phillip Lougher
jffs2: version 2.2. (NAND) �© 2001-2006 Red Hat, Inc.
fuse init (API version 7.18)
SGI XFS with security attributes, large block/inode numbers, no debug enabled
msgmni has been set to 424
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
Spi id table Version 1.22
Found Nand Flash Controller V610.
Nand ID: 0x01 0xF1 0x80 0x1D 0x01 0xF1 0x80 0x1D
Nand: AMD/Spansion NAND 128MiB 3,3V 8-bit 
Nand(HW-Auto): Block:128KB Page:2KB OOB:64B ECC:4bit/512 Chip:128MB*1
8 cmdlinepart partitions found on MTD device hinand
8 cmdlinepart partitions found on MTD device hinand
Creating 8 MTD partitions on "hinand":
0x000000000000-0x000000060000 : "uboot"
0x000000060000-0x0000000a0000 : "ubootEnv"
0x0000000a0000-0x0000003a0000 : "recKernel"
0x0000003a0000-0x0000008a0000 : "kernel"
0x0000008a0000-0x000000da0000 : "data"
0x000000da0000-0x000003aa0000 : "rootfs"
0x000003aa0000-0x0000067a0000 : "userfs"
0x0000067a0000-0x000007fa0000 : "upgrade"
Higmac dma_sg_phy: 0x8da80000
higmac_mdio_bus: probed
ETH0: mii, phy_addr=1, mii_name=mdio0
PPP generic driver version 2.4.2
PPP BSD Compression module registered
PPP Deflate Compression module registered
PPP MPPE Compression module registered
NET: Registered protocol family 24
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 53, 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 54, io mem 0x100a0000
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 1 port detected
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
rtc-s35390a 1-0030: rtc core: registered rtc-s35390a as rtc0
i2c /dev entries driver
hisi_i2c hisi_i2c.0: Hisilicon [i2c-0] probed!
hisi_i2c hisi_i2c.2: Hisilicon [i2c-2] probed!
error setting wl12xx data
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
Netfilter messages via NETLINK v0.30.
nf_conntrack version 0.5.0 (3397 buckets, 13588 max)
ip_tables: (C) 2000-2006 Netfilter Core Team
TCP: cubic registered
Initializing XFRM netlink socket
NET: Registered protocol family 10
ip6_tables: (C) 2000-2006 Netfilter Core Team
IPv6 over IPv4 tunneling driver
NET: Registered protocol family 17
NET: Registered protocol family 15
Bridge firewalling registered
Ebtables v2.0 registered
Registering the dns_resolver key type
VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
mmc0: card claims to support voltages below the defined range. These will be ignored.
rtc-s35390a 1-0030: setting system clock to 2017-09-02 13:18:24 UTC (1504358304)
yaffs: dev is 32505861 name is "mtdblock5" rw
yaffs: passed flags ""
mmc0: queuing unknown CIS tuple 0x91 (3 bytes)
mmc0: new high speed SDIO card at address 0001
VFS: Mounted root (yaffs2 filesystem) on device 31:5.
Freeing init memory: 156K
mknod: /dev/null: File exists
Populating /dev using udev: udevd (698): /proc/698/oom_adj is deprecated, please use /proc/698/oom_score_adj instead.
done
Initializing random number generator... done.
Starting network...
net.core.rmem_default = 65535
net.core.rmem_max = 16777216
net.ipv4.tcp_rmem = 4096 87380 8388608
net.ipv4.tcp_wmem = 4096 65536 8388608
net.ipv4.tcp_mem = 8388608 8388608 8388608
net.ipv4.route.flush = 1
net.ipv4.udp_rmem_min = 524288
net.ipv4.udp_wmem_min = 524288
net.ipv4.udp_mem = 1048576 1048576 1048576
net.ipv4.netfilter.ip_conntrack_max = 100000
net.ipv4.netfilter.ip_conntrack_generic_timeout = 120
net.ipv4.netfilter.ip_conntrack_tcp_timeout_established = 54000
net.ipv4.netfilter.ip_conntrack_tcp_timeout_time_wait = 30
ADDRCONF(NETDEV_UP): eth0: link is not ready
[IPCAM_INIT_SCRIPT]->IP CAMERA Starting Script.
yaffs: dev is 32505863 name is "mtdblock7" rw
yaffs: passed flags ""
[IPCAM_INIT_SCRIPT]->Upgrade partition Mount successfully 
yaffs: dev is 32505860 name is "mtdblock4" rw
yaffs: passed flags ""
[IPCAM_INIT_SCRIPT]->Data partition Mount successfully 
[IPCAM_INIT_SCRIPT]->Setting ip 192.168.112.190 
Stopping vsftpd: no vsftpd found; none killed
[IPCAM_INIT_SCRIPT]->Start FTP
Starting vsftpd: OK
yaffs: dev is 32505862 name is "mtdblock6" rw
yaffs: passed flags ""
[IPCAM_INIT_SCRIPT]->Kernel Version Signature available in /mnt/data/
[IPCAM_INIT_SCRIPT]->Uboot Version Signature available in /mnt/data/
[IPCAM_INIT_SCRIPT]->Currently Primary Kernel Running !!
[IPCAM_INIT_SCRIPT]->Application Related Invokations Started!!!
[IPCAM_INIT_SCRIPT]->Root permissions already Granted! Moving on..
rmmod: can't unload 'hi3516a_adec': unknown symbol in module, or unknown parameter
rmmod: can't unload 'hi3516a_aenc': unknown symbol in module, or unknown parameter
rmmod: can't unload 'hi3516a_ao': unknown symbol in module, or unknown parameter
rmmod: can't unload 'hi3516a_ai': unknown symbol in module, or unknown parameter
rmmod: can't unload 'hi3516a_aio': unknown symbol in module, or unknown parameter
rmmod: can't unload 'acodec': unknown symbol in module, or unknown parameter
remove audio
rmmod: can't unload 'MxGpioDrv': unknown symbol in module, or unknown parameter
rmmod: can't unload 'hi3516a_ive': unknown symbol in module, or unknown parameter
rmmod: can't unload 'hi3516a_vda': unknown symbol in module, or unknown parameter
rmmod: can't unload 'hi3516a_rc': unknown symbol in module, or unknown parameter
rmmod: can't unload 'hi3516a_jpege': unknown symbol in module, or unknown parameter
rmmod: can't unload 'hi3516a_h264e': unknown symbol in module, or unknown parameter
rmmod: can't unload 'hi3516a_h265e': unknown symbol in module, or unknown parameter
rmmod: can't unload 'hi3516a_chnl': unknown symbol in module, or unknown parameter
rmmod: can't unload 'hi3516a_venc': unknown symbol in module, or unknown parameter
rmmod: can't unload 'hifb': unknown symbol in module, or unknown parameter
rmmod: can't unload 'hi3516a_vou': unknown symbol in module, or unknown parameter
rmmod: can't unload 'hi3516a_vpss': unknown symbol in module, or unknown parameter
rmmod: can't unload 'hi3516a_viu': unknown symbol in module, or unknown parameter
rmmod: can't unload 'hi_mipi': unknown symbol in module, or unknown parameter
rmmod: can't unload 'ssp_ad9020': unknown symbol in module, or unknown parameter
rmmod: can't unload 'hi3516a_vgs': unknown symbol in module, or unknown parameter
rmmod: can't unload 'hi3516a_region': unknown symbol in module, or unknown parameter
rmmod: can't unload 'hi3516a_tde': unknown symbol in module, or unknown parameter
rmmod: can't unload 'drv8838': unknown symbol in module, or unknown parameter
rmmod: can't unload 'isl29035': unknown symbol in module, or unknown parameter
rmmod: can't unload 'wdt': unknown symbol in module, or unknown parameter
rmmod: can't unload 'pwm': unknown symbol in module, or unknown parameter
rmmod: can't unload 'hi3516a_isp': unknown symbol in module, or unknown parameter
rmmod: can't unload 'hi3516a_sys': unknown symbol in module, or unknown parameter
rmmod: can't unload 'hi3516a_base': unknown symbol in module, or unknown parameter
rmmod: can't unload 'hi_media': unknown symbol in module, or unknown parameter
rmmod: can't unload 'mmz': unknown symbol in module, or unknown parameter
rmmod: can't unload 'cmemk': unknown symbol in module, or unknown parameter
CMEMK module: built on Dec 28 2016 at 17:47:46
  Reference Linux version 3.4.35
allocated heap buffer 0xcf000000 of size 0x2300000
cmemk initialized
Hisilicon Media Memory Zone Manager
Module himedia: init ok
hi3516a_base: module license 'Proprietary' taints kernel.
Disabling lock debugging due to kernel taint
PHY: mdio0:01 - Link is Up - 100/Full
ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
load sys.ko for Hi3516A...OK!
load tde.ko ...OK!
load region.ko ....OK!
load vgs.ko for Hi3516A...OK!
ISP Mod init!
load viu.ko for Hi3516A...OK!
load vpss.ko ....OK!
load vou.ko ....OK!
load rc.ko for Hi3516A...OK!
load venc.ko for Hi3516A...OK!
load chnl.ko for Hi3516A...OK!
load h264e.ko for Hi3516A...OK!
load h265e.ko for Hi3516A...OK!
load jpege.ko for Hi3516A...OK!
load vda.ko ....OK!
load ive.ko for Hi3516A...OK!
DRV8838 probed!!
IRCUT : Current State[on]
IRCUT :Device Registered with pin MOTOR_PH->9[3] MOTOR_EN 9[5] EN_TIME->[100]
DRV8838 Motor Driver Chip : Module Initialized
ISL29035 Ambient Light Sensor Driver Initializing...
isl29035: ALS chip found
Hisilicon Watchdog Timer: 0.01 initialized. default_margin=30 sec (nowayout= 1, nodeamon= 1)

*******MxGPIO driver: last Modified On Dec 28 2016 at 17:47:50
##Piris Driver Last modified on [17:47:56][Dec 28 2016] PPS[400]
==== Your input Sensor type is imx123 ====
*** Board tools : ver0.0.1_20121120 *** 
[debug]: {source/utils/cmdshell.c:166}cmdstr:himm
0x200f0050: 0x00000000 --> 0x00000001 
[END]
*** Board tools : ver0.0.1_20121120 *** 
[debug]: {source/utils/cmdshell.c:166}cmdstr:himm
0x200f0054: 0x00000000 --> 0x00000001 
[END]
*** Board tools : ver0.0.1_20121120 *** 
[debug]: {source/utils/cmdshell.c:166}cmdstr:himm
0x200f0058: 0x00000000 --> 0x00000001 
[END]
*** Board tools : ver0.0.1_20121120 *** 
[debug]: {source/utils/cmdshell.c:166}cmdstr:himm
0x2
*******Sensor_spi driver: last Modified On Jan 13 2017 at 17:07:58 with maximun buffer limit 80
00f005c: 0x00000000 --> 0x00000001 
[END]
*** Board tools : ver0.0.1_20121120 *** 
[debug]: {source/utils/cmdshell.c:166}cmdstr:himm
0x2003002c: 0x00090007 --> 0x00090007 
[END]
*** Board tools : ver0.0.1_20121120 *** 
[debug]: {source/utils/cmdshell.c:166}cmdstr:himm
0x20030104: 0x00000acodec inited!
003 --> 0x00000000 
[END]
insert audio
==== Your input Sensor type is imx123 ====
mipi_init
init phy power successful!
load hi_mipi driver successful!
Loading modules backported from Linux version R8.7_SP1-0-g13c25bc
Backport generated by backports.git R8.7_SP1-0-gd4777ef
==== Wilink8 drivers inserted sucessfully ====
Sat Sep  2 18:48:30 2017 SYS_MAIN_LOG:E: main : ***** APPLICATION START *****: Jan 13 2017 17:25:56
wlcore: wl18xx HW: 183x or 180x, PG 2.2 (ROM 0x11)
wlcore: loaded
wlcore: driver version: R8.7_SP1

ABC login: 2017-09-02 13:18:33: (log.c.166) server started 
2017-09-02 13:18:33: (mod_fd_transfer.c.508) [socket- /tmp/IntSocket ], [bin-path- /mediaStreamer ], [key- /unicaststream/ ] 
2017-09-02 13:18:33: (mod_fd_transfer.c.508) [socket- /tmp/OnvifSocket ], [bin-path- /OnvifServer ], [key- /onvif/ ] 
2017-09-02 13:18:33: (mod_fd_transfer.c.508) [socket- /tmp/AudioSocket ], [bin-path- /av_server ], [key- /networkaudio/ ] 
rlinear mode
ActualDuty[0], finalDuty[0]
ActualDuty[0], finalDuty[0]
ootipwatchd[1086]: IPwatchD started
-------Sony IMX123 Sensor QXGA 30 Linear Initial OK!-------

Password: wlcore: PHY firmware version: Rev 8.2.0.0.236
wlcore: firmware booted (Rev 8.9.0.0.69)
ADDRCONF(NETDEV_UP): wlan0: link is not ready
Sat Sep  2 18:48:35 2017 SYS_DISK_MGR_LOG:E: updateStorageDiskInfo : Disk Id File not open [/etc/.diskId]
-------Sony IMX123 Sensor QXGA 30 Linear Initial OK!-------
ActualDuty[0], finalDuty[0]
ActualDuty[0], finalDuty[0]

login[1033]: root login on 'ttyAMA0'
[root@ABC ~]# 
[root@ABC ~]# 
[root@ABC ~]# 
[root@ABC ~]# /Sat Sep  2 18:48:37 2017 ONVIF_MAIN_LOG:E: watchFileEvents : IP change event received
iptables: No chain/target/match by that name.
./wifi_notify.sh 
wpa_supplicant v2.1-devel
random: Trying to read entropy from /dev/random
Successfully initialized wpa_supplicant
Initializing interface 'wlan0' conf '/etc/wpa_supplicant.conf' driver 'nl80211' ctrl_interface 'N/A' bridge 'N/A'
Configuration file '/etc/wpa_supplicant.conf' -> '/etc/wpa_supplicant.conf'
Reading configuration file '/etc/wpa_supplicant.conf'
ctrl_interface='/var/run/wpa_supplicant'
ctrl_interface_group='0'
eapol_version=1
ap_scan=1
fast_reauth=1
Priority group 5
   id=0 ssid='ipcamtest'
rfkill: Cannot open RFKILL control device
nl80211: RFKILL status not available
nl80211: Supports Probe Response offload in AP mode
nl80211: Using driver-based off-channel TX
nl80211: Unexpected vendor data info
nl80211: Unexpected vendor data info
nl80211: Unexpected vendor data info
nl80211: Unexpected vendor data info
nl80211: Unexpected vendor data info
nl80211: Use separate P2P group interface (driver advertised support)
nl80211: Enable multi-channel concurrent (driver advertised support)
nl80211: interface wlan0 in phy phy0
nl80211: Set mode ifindex 4 iftype 2 (STATION)
nl80211: Subscribe to mgmt frames with non-AP handle 0x1c8d410
nl80211: Register frame type=0xd0 nl_handle=0x1c8d410
nl80211: Register frame match - hexdump(len=1): 06
nl80211: Register frame type=0xd0 nl_handle=0x1c8d410
nl80211: Register frame match - hexdump(len=2): 0a 07
nl80211: Register frame type=0xd0 nl_handle=0x1c8d410
nl80211: Register frame match - hexdump(len=2): 0a 11
netlink: Operstate: linkmode=1, operstate=5
nl80211: driver param='(null)'
Add interface wlan0 to a new radio phy0
nl80211: Regulatory information - country=00
nl80211: 2402-2472 @ 40 MHz
nl80211: 2402-2472 @ 20 mBm
nl80211: 2457-2482 @ 40 MHz
nl80211: 2457-2482 @ 20 mBm
nl80211: 2474-2494 @ 20 MHz
nl80211: 2474-2494 @ 20 mBm
nl80211: 5170-5250 @ 160 MHz
nl80211: 5170-5250 @ 20 mBm
nl80211: 5250-5330 @ 160 MHz
nl80211: 5250-5330 @ 20 mBm
nl80211: 5490-5730 @ 160 MHz
nl80211: 5490-5730 @ 20 mBm
nl80211: 5735-5835 @ 80 MHz
nl80211: 5735-5835 @ 20 mBm
nl80211: 57240-63720 @ 2160 MHz
nl80211: 57240-63720 @ 0 mBm
nl80211: Added 802.11b mode based on 802.11g information
nl80211: Do not indicate P2P_DEVICE support (p2p_device=1 driver param not specified)
wlan0: Own MAC address: 68:c9:0b:07:f8:a5
wpa_driver_nl80211_set_key: ifindex=4 (wlan0) alg=0 addr=(nil) key_idx=0 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=4 (wlan0) alg=0 addr=(nil) key_idx=1 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=4 (wlan0) alg=0 addr=(nil) key_idx=2 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=4 (wlan0) alg=0 addr=(nil) key_idx=3 set_tx=0 seq_len=0 key_len=0
wlan0: RSN: flushing PMKID list in the driver
nl80211: Flush PMKIDs
wlan0: Total active networks 1
EAPOL: SUPP_PAE entering state DISCONNECTED
EAPOL: Supplicant port status: Unauthorized
nl80211: Set supplicant port unauthorized for 00:00:00:00:00:00
EAPOL: KEY_RX entering state NO_KEY_RECEIVE
EAPOL: SUPP_BE entering state INITIALIZE
EAP: EAP entering state DISABLED
EAPOL: Supplicant port status: Unauthorized
nl80211: Set supplicant port unauthorized for 00:00:00:00:00:00
EAPOL: Supplicant port status: Unauthorized
nl80211: Set supplicant port unauthorized for 00:00:00:00:00:00
ctrl_interface_group=0
wlan0: Added interface wlan0
wlan0: State: DISCONNECTED -> DISCONNECTED
wpa_driver_nl80211_set_operstate: operstate 0->0 (DORMANT)
netlink: Operstate: linkmode=-1, operstate=5
Daemonize..
[root@ABC ~]# wlan0: authenticate with 86:73:03:c5:50:f7
wlan0: send auth to 86:73:03:c5:50:f7 (try 1/3)
wlan0: authenticated
wlan0: associate with 86:73:03:c5:50:f7 (try 1/3)
wlan0: RX AssocResp from 86:73:03:c5:50:f7 (capab=0x421 status=0 aid=2)
wlan0: associated
ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
wlcore: Association completed.

[root@ABC ~]# 
[root@ABC ~]# ifconfig wlan0 192.168.43.7
[root@ABC ~]# ping 192.168.43.1
PING 192.168.43.1 (192.168.43.1): 56 data bytes
64 bytes from 192.168.43.1: seq=0 ttl=64 time=21.134 ms
64 bytes from 192.168.43.1: seq=1 ttl=64 time=11.719 ms
64 bytes from 192.168.43.1: seq=2 ttl=64 time=11.651 ms
64 bytes from 192.168.43.1: seq=3 ttl=64 time=16.125 ms
64 bytes from 192.168.43.1: seq=4 ttl=64 time=9.679 ms
64 bytes from 192.168.43.1: seq=5 ttl=64 time=11.711 ms
64 bytes from 192.168.43.1: seq=6 ttl=64 time=11.106 ms
64 bytes from 192.168.43.1: seq=7 ttl=64 time=11.015 ms
64 bytes from 192.168.43.1: seq=8 ttl=64 time=11.200 ms
64 bytes from 192.168.43.1: seq=9 ttl=64 time=12.146 ms
64 bytes from 192.168.43.1: seq=10 ttl=64 time=11.755 ms
64 bytes from 192.168.43.1: seq=11 ttl=64 time=11.850 ms
64 bytes from 192.168.43.1: seq=12 ttl=64 time=12.404 ms
64 bytes from 192.168.43.1: seq=13 ttl=64 time=12.028 ms
64 bytes from 192.168.43.1: seq=14 ttl=64 time=15.216 ms
64 bytes from 192.168.43.1: seq=15 ttl=64 time=11.540 ms
64 bytes from 192.168.43.1: seq=16 ttl=64 time=21.032 ms
64 bytes from 192.168.43.1: seq=17 ttl=64 time=14.732 ms
64 bytes from 192.168.43.1: seq=18 ttl=64 time=10.640 ms
64 bytes from 192.168.43.1: seq=19 ttl=64 time=6.499 ms
64 bytes from 192.168.43.1: seq=20 ttl=64 time=12.216 ms
64 bytes from 192.168.43.1: seq=21 ttl=64 time=52.347 ms
64 bytes from 192.168.43.1: seq=22 ttl=64 time=10.513 ms
64 bytes from 192.168.43.1: seq=23 ttl=64 time=12.026 ms
64 bytes from 192.168.43.1: seq=24 ttl=64 time=9.371 ms
64 bytes from 192.168.43.1: seq=25 ttl=64 time=11.462 ms
64 bytes from 192.168.43.1: seq=26 ttl=64 time=120.445 ms
64 bytes from 192.168.43.1: seq=27 ttl=64 time=10.027 ms
64 bytes from 192.168.43.1: seq=28 ttl=64 time=10.804 ms
64 bytes from 192.168.43.1: seq=29 ttl=64 time=2.676 ms
wlcore: ERROR ELP wakeup timeout!
------------[ cut here ]------------
WARNING: at /home/reddesk/wifi_working/build-utilites/src/compat_wireless/drivers/net/wireless/ti/wlcore/)
Modules linked in: wl18xx(O) wlcore_sdio(O) wlcore(O) mac80211(O) cfg80211(O) compat(O) hi_mipi(O) hi3516a_adec(PO) hi3516a_aenc(PO) hi3516a_ao(PO) hi3516a_ai(PO) hi3516a_aio(PO) acodec(PO) se)
Backtrace: 
[<c0011fdc>] (dump_backtrace+0x0/0x110) from [<c04a3cc0>] (dump_stack+0x18/0x1c)
 r6:bf461920 r5:00000009 r4:00000000 r3:c063f640
[<c04a3ca8>] (dump_stack+0x0/0x1c) from [<c001c374>] (warn_slowpath_common+0x5c/0x6c)
[<c001c318>] (warn_slowpath_common+0x0/0x6c) from [<c001c428>] (warn_slowpath_null+0x24/0x2c)
 r8:bf47f6a4 r7:ffffa395 r6:00000000 r5:c06403c0 r4:ccb5d320
r3:00000009
[<c001c404>] (warn_slowpath_null+0x0/0x2c) from [<bf461920>] (wl12xx_queue_recovery_work.part.41+0x84/0x88 [wlcore])
[<bf46189c>] (wl12xx_queue_recovery_work.part.41+0x0/0x88 [wlcore]) from [<bf46338c>] (wl12xx_queue_recovery_work+0x1c/0x20 [wlcore])
 r4:ccb5d320 r3:00000002
[<bf463370>] (wl12xx_queue_recovery_work+0x0/0x20 [wlcore]) from [<bf46cff4>] (wl1271_ps_elp_wakeup+0x1f4/0x20c [wlcore])
[<bf46ce00>] (wl1271_ps_elp_wakeup+0x0/0x20c [wlcore]) from [<bf46c02c>] (wl1271_tx_work+0x24/0x58 [wlcore])
[<bf46c008>] (wl1271_tx_work+0x0/0x58 [wlcore]) from [<c0030f88>] (process_one_work+0x118/0x388)
 r5:cd81d1c0 r4:ccb5d4f0
[<c0030e70>] (process_one_work+0x0/0x388) from [<c0031584>] (worker_thread+0x1ac/0x38c)
[<c00313d8>] (worker_thread+0x0/0x38c) from [<c0035c94>] (kthread+0x98/0x9c)
[<c0035bfc>] (kthread+0x0/0x9c) from [<c001f724>] (do_exit+0x0/0x698)
 r6:c001f724 r5:c0035bfc r4:cd82feb4
---[ end trace 480f8c6fc8805fde ]---
wlcore: Hardware recovery in progress. FW ver: Rev 8.9.0.0.69
------------[ cut here ]------------
WARNING: at /home/reddesk/wifi_working/build-utilites/src/compat_wireless/drivers/net/wireless/ti/wlcore/)
Modules linked in: wl18xx(O) wlcore_sdio(O) wlcore(O) mac80211(O) cfg80211(O) compat(O) hi_mipi(O) hi3516a_adec(PO) hi3516a_aenc(PO) hi3516a_ao(PO) hi3516a_ai(PO) hi3516a_aio(PO) acodec(PO) se)
Backtrace: 
[<c0011fdc>] (dump_backtrace+0x0/0x110) from [<c04a3cc0>] (dump_stack+0x18/0x1c)
 r6:bf469184 r5:00000009 r4:00000000 r3:c063f640
[<c04a3ca8>] (dump_stack+0x0/0x1c) from [<c001c374>] (warn_slowpath_common+0x5c/0x6c)
[<c001c318>] (warn_slowpath_common+0x0/0x6c) from [<c001c428>] (warn_slowpath_null+0x24/0x2c)
 r8:ccb5d358 r7:bf460c64 r6:bf47f6a4 r5:bf4a4520 r4:ccb5d320
r3:00000009
[<c001c404>] (warn_slowpath_null+0x0/0x2c) from [<bf469184>] (wlcore_set_partition+0xa8/0x50c [wlcore])
[<bf4690dc>] (wlcore_set_partition+0x0/0x50c [wlcore]) from [<bf460cd8>] (wl1271_recovery_work+0x74/0x354 [wlcore])
 r6:ccb5d320 r5:cd81d1c0 r4:ccb5d5bc
[<bf460c64>] (wl1271_recovery_work+0x0/0x354 [wlcore]) from [<c0030f88>] (process_one_work+0x118/0x388)
 r8:00000000 r7:bf460c64 r6:ccb4fa00 r5:cd81d1c0 r4:ccb5d5bc
[<c0030e70>] (process_one_work+0x0/0x388) from [<c0031584>] (worker_thread+0x1ac/0x38c)
[<c00313d8>] (worker_thread+0x0/0x38c) from [<c0035c94>] (kthread+0x98/0x9c)
[<c0035bfc>] (kthread+0x0/0x9c) from [<c001f724>] (do_exit+0x0/0x698)
 r6:c001f724 r5:c0035bfc r4:cd82feb4
---[ end trace 480f8c6fc8805fdf ]---
wlcore: down
ieee80211 phy0: Hardware restart was requested
wlcore: PHY firmware version: Rev 8.2.0.0.236
wlcore: firmware booted (Rev 8.9.0.0.69)
wlcore: Association completed.

--- 192.168.43.1 ping statistics ---
36 packets transmitted, 30 packets received, 16% packet loss
round-trip min/avg/max = 2.676/16.902/120.445 ms

[root@ABC ~]# 
[root@ABC ~]# 
[root@ABC ~]# dmesg 
<6>Booting Linux on physical CPU 0
<5>Linux version 3.4.35 (reddesk@reddesk) (gcc version 4.8.3 20131202 (prerelease) (Hisilicon_v400) ) #4 Tue Jan 17 14:00:15 IST 2017
<4>CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c53c7d
<4>CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
<4>Machine: hi3516a
<4>Memory policy: ECC disabled, Data cache writeback
<7>On node 0 totalpages: 56576
<7>free_area_init_node: node 0, pgdat c06669fc, node_mem_map c06a4000
<7>  Normal zone: 442 pages used for memmap
<7>  Normal zone: 0 pages reserved
<7>  Normal zone: 56134 pages, LIFO batch:15
<7>pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
<7>pcpu-alloc: [0] 0 
<4>Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 56134
<5>Kernel command line: mem=221M console=ttyAMA0,115200 root=/dev/mtdblock5 rootfstype=yaffs2 mtdparts=hinand:384K(uboot),256K(ubootEnv),3M(recKernel),5120K(kernel),5M(data),45M(rootfs),45M(us)
<6>PID hash table entries: 1024 (order: 0, 4096 bytes)
<6>Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
<6>Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
<6>Memory: 221MB = 221MB total
<5>Memory: 217468k/217468k available, 8836k reserved, 0K highmem
<5>Virtual kernel memory layout:
<5>    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
<5>    fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
<5>    vmalloc : 0xce000000 - 0xff000000   ( 784 MB)
<5>    lowmem  : 0xc0000000 - 0xcdd00000   ( 221 MB)
<5>    modules : 0xbf000000 - 0xc0000000   (  16 MB)
<5>      .text : 0xc0008000 - 0xc0608000   (6144 kB)
<5>      .init : 0xc0608000 - 0xc062f7a4   ( 158 kB)
<5>      .data : 0xc0630000 - 0xc0667100   ( 221 kB)
<5>       .bss : 0xc0667124 - 0xc06a3f30   ( 244 kB)
<6>SLUB: Genslabs=11, HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
<6>NR_IRQS:128
<6>sched_clock: 32 bits at 49MHz, resolution 20ns, wraps every 86767ms
<6>Console: colour dummy device 80x30
<6>Calibrating delay loop... 1196.85 BogoMIPS (lpj=5984256)
<6>pid_max: default: 32768 minimum: 301
<6>Mount-cache hash table entries: 512
<6>Initializing cgroup subsys freezer
<6>CPU: Testing write buffer coherency: ok
<6>Setting up static identity map for 0x804aae10 - 0x804aae68
<6>dummy: 
<6>NET: Registered protocol family 16
<6>Serial: AMBA PL011 UART driver
<6>uart:0: ttyAMA0 at MMIO 0x20080000 (irq = 40) is a PL011 rev2
<6>console [ttyAMA0] enabled
<6>uart:1: ttyAMA1 at MMIO 0x20090000 (irq = 41) is a PL011 rev2
<6>bio: create slab <bio-0> at 0
<5>SCSI subsystem initialized
<5>hi-spi-master hi-spi-master.0: with 1 chip select slaves attached
<5>hi-spi-master hi-spi-master.1: with 3 chip select slaves attached
<6>usbcore: registered new interface driver usbfs
<6>usbcore: registered new interface driver hub
<6>usbcore: registered new device driver usb
<4>i2c_gpio_probe:190
<6>i2c-gpio i2c-gpio.1: using pins 0 (SDA) and 0 (SCL)
<6>Switching to clocksource timer0
<6>NET: Registered protocol family 2
<6>IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
<6>TCP established hash table entries: 8192 (order: 4, 65536 bytes)
<6>TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
<6>TCP: Hash tables configured (established 8192 bind 8192)
<6>TCP: reno registered
<6>UDP hash table entries: 256 (order: 0, 4096 bytes)
<6>UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
<6>NET: Registered protocol family 1
<6>RPC: Registered named UNIX socket transport module.
<6>RPC: Registered udp transport module.
<6>RPC: Registered tcp transport module.
<6>RPC: Registered tcp NFSv4.1 backchannel transport module.
<5>VFS: Disk quotas dquot_6.5.2
<4>Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
<6>squashfs: version 4.0 (2009/01/31) Phillip Lougher
<6>jffs2: version 2.2. (NAND) �© 2001-2006 Red Hat, Inc.
<6>fuse init (API version 7.18)
<6>SGI XFS with security attributes, large block/inode numbers, no debug enabled
<7>yaffs: yaffs built Jan 16 2017 12:02:17 Installing.
<6>msgmni has been set to 424
<6>Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
<6>io scheduler noop registered
<6>io scheduler deadline registered (default)
<6>io scheduler cfq registered
<6>brd: module loaded
<6>Spi id table Version 1.22
<7>Hisfc350 Device Driver, Version 1.10
<5>Found Nand Flash Controller V610.
<4>Nand ID: 0x01 0xF1 0x80 0x1D 0x01 0xF1 0x80 0x1D
<4>Nand: AMD/Spansion NAND 128MiB 3,3V 8-bit 
<4>Nand(HW-Auto): Block:128KB Page:2KB OOB:64B ECC:4bit/512 Chip:128MB*1
<5>8 cmdlinepart partitions found on MTD device hinand
<5>8 cmdlinepart partitions found on MTD device hinand
<5>Creating 8 MTD partitions on "hinand":
<5>0x000000000000-0x000000060000 : "uboot"
<5>0x000000060000-0x0000000a0000 : "ubootEnv"
<5>0x0000000a0000-0x0000003a0000 : "recKernel"
<5>0x0000003a0000-0x0000008a0000 : "kernel"
<5>0x0000008a0000-0x000000da0000 : "data"
<5>0x000000da0000-0x000003aa0000 : "rootfs"
<5>0x000003aa0000-0x0000067a0000 : "userfs"
<5>0x0000067a0000-0x000007fa0000 : "upgrade"
<6>Higmac dma_sg_phy: 0x8da80000
<6>higmac_mdio_bus: probed
<6>ETH0: mii, phy_addr=1, mii_name=mdio0
<6>PPP generic driver version 2.4.2
<6>PPP BSD Compression module registered
<6>PPP Deflate Compression module registered
<6>PPP MPPE Compression module registered
<6>NET: Registered protocol family 24
<6>ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
<6>hiusb-ehci hiusb-ehci.0: HIUSB EHCI
<6>hiusb-ehci hiusb-ehci.0: new USB bus registered, assigned bus number 1
<6>hiusb-ehci hiusb-ehci.0: irq 53, io mem 0x100b0000
<6>hiusb-ehci hiusb-ehci.0: USB 0.0 started, EHCI 1.00
<6>hub 1-0:1.0: USB hub found
<6>hub 1-0:1.0: 1 port detected
<6>ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
<6>hiusb-ohci hiusb-ohci.0: HIUSB OHCI
<6>hiusb-ohci hiusb-ohci.0: new USB bus registered, assigned bus number 2
<6>hiusb-ohci hiusb-ohci.0: irq 54, io mem 0x100a0000
<6>hub 2-0:1.0: USB hub found
<6>hub 2-0:1.0: 1 port detected
<6>Initializing USB Mass Storage driver...
<6>usbcore: registered new interface driver usb-storage
<6>USB Mass Storage support registered.
<6>rtc-s35390a 1-0030: rtc core: registered rtc-s35390a as rtc0
<6>i2c /dev entries driver
<5>hisi_i2c hisi_i2c.0: Hisilicon [i2c-0] probed!
<5>hisi_i2c hisi_i2c.2: Hisilicon [i2c-2] probed!
<3>error setting wl12xx data
<6>usbcore: registered new interface driver usbhid
<6>usbhid: USB HID core driver
<6>Netfilter messages via NETLINK v0.30.
<6>nf_conntrack version 0.5.0 (3397 buckets, 13588 max)
<6>ip_tables: (C) 2000-2006 Netfilter Core Team
<6>TCP: cubic registered
<6>Initializing XFRM netlink socket
<6>NET: Registered protocol family 10
<6>ip6_tables: (C) 2000-2006 Netfilter Core Team
<6>IPv6 over IPv4 tunneling driver
<6>NET: Registered protocol family 17
<6>NET: Registered protocol family 15
<5>Bridge firewalling registered
<6>Ebtables v2.0 registered
<5>Registering the dns_resolver key type
<6>VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
<4>mmc0: card claims to support voltages below the defined range. These will be ignored.
<6>rtc-s35390a 1-0030: setting system clock to 2017-09-02 13:18:24 UTC (1504358304)
<6>yaffs: dev is 32505861 name is "mtdblock5" rw
<6>yaffs: passed flags ""
<7>yaffs: yaffs: Attempting MTD mount of 31.5,"mtdblock5"
<7>yaffs: checking block 4 bad
<4>mmc0: queuing unknown CIS tuple 0x91 (3 bytes)
<6>mmc0: new high speed SDIO card at address 0001
<7>yaffs: checking block 5 bad
<7>yaffs: yaffs_read_super: is_checkpointed 1
<6>VFS: Mounted root (yaffs2 filesystem) on device 31:5.
<6>Freeing init memory: 156K
<4>udevd (698): /proc/698/oom_adj is deprecated, please use /proc/698/oom_score_adj instead.
<6>ADDRCONF(NETDEV_UP): eth0: link is not ready
<6>yaffs: dev is 32505863 name is "mtdblock7" rw
<6>yaffs: passed flags ""
<7>yaffs: yaffs: Attempting MTD mount of 31.7,"mtdblock7"
<7>yaffs: checking block 0 bad
<7>yaffs: yaffs_read_super: is_checkpointed 1
<6>yaffs: dev is 32505860 name is "mtdblock4" rw
<6>yaffs: passed flags ""
<7>yaffs: yaffs: Attempting MTD mount of 31.4,"mtdblock4"
<7>yaffs: checking block 0 bad
<7>yaffs: checking block 1 bad
<7>yaffs: checking block 2 bad
<7>yaffs: checking block 3 bad
<7>yaffs: checking block 4 bad
<7>yaffs: checking block 5 bad
<7>yaffs: checking block 6 bad
<7>yaffs: checking block 7 bad
<7>yaffs: checking block 8 bad
<7>yaffs: checking block 9 bad
<7>yaffs: checking block 10 bad
<7>yaffs: checking block 11 bad
<7>yaffs: checking block 12 bad
<7>yaffs: checking block 13 bad
<7>yaffs: checking block 14 bad
<7>yaffs: checking block 15 bad
<7>yaffs: checking block 16 bad
<7>yaffs: checking block 17 bad
<7>yaffs: checking block 18 bad
<7>yaffs: checking block 19 bad
<7>yaffs: checking block 20 bad
<7>yaffs: checking block 21 bad
<7>yaffs: checking block 22 bad
<7>yaffs: checking block 23 bad
<7>yaffs: checking block 24 bad
<7>yaffs: checking block 25 bad
<7>yaffs: checking block 26 bad
<7>yaffs: checking block 27 bad
<7>yaffs: checking block 28 bad
<7>yaffs: checking block 29 bad
<7>yaffs: checking block 30 bad
<7>yaffs: checking block 31 bad
<7>yaffs: checking block 32 bad
<7>yaffs: checking block 33 bad
<7>yaffs: checking block 34 bad
<7>yaffs: checking block 35 bad
<7>yaffs: checking block 36 bad
<7>yaffs: checking block 37 bad
<7>yaffs: checking block 38 bad
<7>yaffs: checking block 39 bad
<7>yaffs: yaffs_read_super: is_checkpointed 0
<6>yaffs: dev is 32505862 name is "mtdblock6" rw
<6>yaffs: passed flags ""
<7>yaffs: yaffs: Attempting MTD mount of 31.6,"mtdblock6"
<7>yaffs: checking block 87 bad
<7>yaffs: yaffs_read_super: is_checkpointed 1
<6>CMEMK module: built on Dec 28 2016 at 17:47:46
<6>  Reference Linux version 3.4.35
<6>allocated heap buffer 0xcf000000 of size 0x2300000
<6>cmemk initialized
<6>Hisilicon Media Memory Zone Manager
<4>Module himedia: init ok
<4>hi3516a_base: module license 'Proprietary' taints kernel.
<4>Disabling lock debugging due to kernel taint
<6>PHY: mdio0:01 - Link is Up - 100/Full
<6>ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
<4>load sys.ko for Hi3516A...OK!
<4>load tde.ko ...OK!
<6>load region.ko ....OK!
<4>load vgs.ko for Hi3516A...OK!
<6>ISP Mod init!
<4>load viu.ko for Hi3516A...OK!
<6>load vpss.ko ....OK!
<6>load vou.ko ....OK!
<4>load rc.ko for Hi3516A...OK!
<4>load venc.ko for Hi3516A...OK!
<4>load chnl.ko for Hi3516A...OK!
<4>load h264e.ko for Hi3516A...OK!
<4>load h265e.ko for Hi3516A...OK!
<4>load jpege.ko for Hi3516A...OK!
<6>load vda.ko ....OK!
<4>load ive.ko for Hi3516A...OK!
<4>DRV8838 probed!!
<6>IRCUT : Current State[on]
<6>IRCUT :Device Registered with pin MOTOR_PH->9[3] MOTOR_EN 9[5] EN_TIME->[100]
<6>DRV8838 Motor Driver Chip : Module Initialized
<6>ISL29035 Ambient Light Sensor Driver Initializing...
<6>isl29035: ALS chip found
<6>Hisilicon Watchdog Timer: 0.01 initialized. default_margin=30 sec (nowayout= 1, nodeamon= 1)
<4>
<4>*******MxGPIO driver: last Modified On Dec 28 2016 at 17:47:50
<4>##Piris Driver Last modified on [17:47:56][Dec 28 2016] PPS[400]
<4>
<4>*******Sensor_spi driver: last Modified On Jan 13 2017 at 17:07:58 with maximun buffer limit 80
<4>acodec inited!
<1>mipi_init
<4>init phy power successful!
<4>load hi_mipi driver successful!
<6>Loading modules backported from Linux version R8.7_SP1-0-g13c25bc
<6>Backport generated by backports.git R8.7_SP1-0-gd4777ef
<6>wlcore: wl18xx HW: 183x or 180x, PG 2.2 (ROM 0x11)
<6>wlcore: loaded
<6>wlcore: driver version: R8.7_SP1
<4>ActualDuty[0], finalDuty[0]
<4>ActualDuty[0], finalDuty[0]
<6>wlcore: PHY firmware version: Rev 8.2.0.0.236
<6>wlcore: firmware booted (Rev 8.9.0.0.69)
<6>ADDRCONF(NETDEV_UP): wlan0: link is not ready
<4>ActualDuty[0], finalDuty[0]
<4>ActualDuty[0], finalDuty[0]
<7>eth0: no IPv6 routers present
<6>wlan0: authenticate with 86:73:03:c5:50:f7
<6>wlan0: send auth to 86:73:03:c5:50:f7 (try 1/3)
<6>wlan0: authenticated
<6>wlan0: associate with 86:73:03:c5:50:f7 (try 1/3)
<6>wlan0: RX AssocResp from 86:73:03:c5:50:f7 (capab=0x421 status=0 aid=2)
<6>wlan0: associated
<6>ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
<6>wlcore: Association completed.
<7>wlan0: no IPv6 routers present
<3>wlcore: ERROR ELP wakeup timeout!
<4>------------[ cut here ]------------
<4>WARNING: at /home/reddesk/wifi_working/build-utilites/src/compat_wireless/drivers/net/wireless/ti/wlco)
<4>Modules linked in: wl18xx(O) wlcore_sdio(O) wlcore(O) mac80211(O) cfg80211(O) compat(O) hi_mipi(O) hi3516a_adec(PO) hi3516a_aenc(PO) hi3516a_ao(PO) hi3516a_ai(PO) hi3516a_aio(PO) acodec(PO))
<4>Backtrace: 
<4>[<c0011fdc>] (dump_backtrace+0x0/0x110) from [<c04a3cc0>] (dump_stack+0x18/0x1c)
<4> r6:bf461920 r5:00000009 r4:00000000 r3:c063f640
<4>[<c04a3ca8>] (dump_stack+0x0/0x1c) from [<c001c374>] (warn_slowpath_common+0x5c/0x6c)
<4>[<c001c318>] (warn_slowpath_common+0x0/0x6c) from [<c001c428>] (warn_slowpath_null+0x24/0x2c)
<4> r8:bf47f6a4 r7:ffffa395 r6:00000000 r5:c06403c0 r4:ccb5d320
<4>r3:00000009
<4>[<c001c404>] (warn_slowpath_null+0x0/0x2c) from [<bf461920>] (wl12xx_queue_recovery_work.part.41+0x84/0x88 [wlcore])
<4>[<bf46189c>] (wl12xx_queue_recovery_work.part.41+0x0/0x88 [wlcore]) from [<bf46338c>] (wl12xx_queue_recovery_work+0x1c/0x20 [wlcore])
<4> r4:ccb5d320 r3:00000002
<4>[<bf463370>] (wl12xx_queue_recovery_work+0x0/0x20 [wlcore]) from [<bf46cff4>] (wl1271_ps_elp_wakeup+0x1f4/0x20c [wlcore])
<4>[<bf46ce00>] (wl1271_ps_elp_wakeup+0x0/0x20c [wlcore]) from [<bf46c02c>] (wl1271_tx_work+0x24/0x58 [wlcore])
<4>[<bf46c008>] (wl1271_tx_work+0x0/0x58 [wlcore]) from [<c0030f88>] (process_one_work+0x118/0x388)
<4> r5:cd81d1c0 r4:ccb5d4f0
<4>[<c0030e70>] (process_one_work+0x0/0x388) from [<c0031584>] (worker_thread+0x1ac/0x38c)
<4>[<c00313d8>] (worker_thread+0x0/0x38c) from [<c0035c94>] (kthread+0x98/0x9c)
<4>[<c0035bfc>] (kthread+0x0/0x9c) from [<c001f724>] (do_exit+0x0/0x698)
<4> r6:c001f724 r5:c0035bfc r4:cd82feb4
<4>---[ end trace 480f8c6fc8805fde ]---
<6>wlcore: Hardware recovery in progress. FW ver: Rev 8.9.0.0.69
<4>------------[ cut here ]------------
<4>WARNING: at /home/reddesk/wifi_working/build-utilites/src/compat_wireless/drivers/net/wireless/ti/wlco)
<4>Modules linked in: wl18xx(O) wlcore_sdio(O) wlcore(O) mac80211(O) cfg80211(O) compat(O) hi_mipi(O) hi3516a_adec(PO) hi3516a_aenc(PO) hi3516a_ao(PO) hi3516a_ai(PO) hi3516a_aio(PO) acodec(PO))
<4>Backtrace: 
<4>[<c0011fdc>] (dump_backtrace+0x0/0x110) from [<c04a3cc0>] (dump_stack+0x18/0x1c)
<4> r6:bf469184 r5:00000009 r4:00000000 r3:c063f640
<4>[<c04a3ca8>] (dump_stack+0x0/0x1c) from [<c001c374>] (warn_slowpath_common+0x5c/0x6c)
<4>[<c001c318>] (warn_slowpath_common+0x0/0x6c) from [<c001c428>] (warn_slowpath_null+0x24/0x2c)
<4> r8:ccb5d358 r7:bf460c64 r6:bf47f6a4 r5:bf4a4520 r4:ccb5d320
<4>r3:00000009
<4>[<c001c404>] (warn_slowpath_null+0x0/0x2c) from [<bf469184>] (wlcore_set_partition+0xa8/0x50c [wlcore])
<4>[<bf4690dc>] (wlcore_set_partition+0x0/0x50c [wlcore]) from [<bf460cd8>] (wl1271_recovery_work+0x74/0x354 [wlcore])
<4> r6:ccb5d320 r5:cd81d1c0 r4:ccb5d5bc
<4>[<bf460c64>] (wl1271_recovery_work+0x0/0x354 [wlcore]) from [<c0030f88>] (process_one_work+0x118/0x388)
<4> r8:00000000 r7:bf460c64 r6:ccb4fa00 r5:cd81d1c0 r4:ccb5d5bc
<4>[<c0030e70>] (process_one_work+0x0/0x388) from [<c0031584>] (worker_thread+0x1ac/0x38c)
<4>[<c00313d8>] (worker_thread+0x0/0x38c) from [<c0035c94>] (kthread+0x98/0x9c)
<4>[<c0035bfc>] (kthread+0x0/0x9c) from [<c001f724>] (do_exit+0x0/0x698)
<4> r6:c001f724 r5:c0035bfc r4:cd82feb4
<4>---[ end trace 480f8c6fc8805fdf ]---
<6>wlcore: down
<6>ieee80211 phy0: Hardware restart was requested
<6>wlcore: PHY firmware version: Rev 8.2.0.0.236
<6>wlcore: firmware booted (Rev 8.9.0.0.69)
<6>wlcore: Association completed.
[root@ABC ~]# cat /proc/interrupts 
           CPU0       
 35:      14932       GIC  timer
 36:          1       GIC  timer3
 40:       3574       GIC  uart-pl011
 51:       4658       GIC  hi_mci
 52:          0       GIC  hi_mci
 53:          8       GIC  ehci_hcd:usb1
 54:          1       GIC  ohci_hcd:usb2
 57:         42       GIC  gmac0
 65:          0       GIC  VOU Interrupt
 66:          0       GIC  mipi int
 67:      13764       GIC  ISP, VIU
 68:       6870       GIC  VPSS0
 69:          0       GIC  tde_osr_isr
 70:      10281       GIC  VGS0
 71:          0       GIC  AIO Interrupt
 72:      10285       GIC  VEDU_0
 73:        688       GIC  JPEGU_0
 75:          0       GIC  HEVCU_0
 76:        581       GIC  VDA
 77:          0       GIC  IVE
 81:        573       GIC  wl18xx
Err:          0
[root@ABC ~]# 

Regards,

DarshanPatel

  • Hi,

    Added more log related to wifi crash for same issue. 

    WifiCrashLog.txt

    Regards,

    Darshan

  • Hi,

    Your query has been assigned to a relevant expert. We will get back to you soon.

    Best regards,
    Vihang
  • Hello,

    An error like this can be related to and sdio bus signal integrity issue.
    Two things to try:

    1. try to lower the sdio speed (start as low as 5Mhz) by adding:
    max-frequency = <5000000>;
    to the mmc node in your .dts file that is used for wl18xx, rebuild you .dtb file and see if you still see this issue.
    2. Disable ELP by using the following console sequence and see if the issue is still seen:
    processors.wiki.ti.com/.../WL18xx_Driver_Debug

    BR,
    Eyal
  • Hi Eyal,

    Thanks for quick reply,

    Please find my comments below for your reply.

    I observed that wifi module doesn't deassert IRQ signal after IRQ_HANDLED by software that is why, from software it would wait for ELP_wakp_up time. I am curious to know In which condition , wi-fi module deassert IRQ signal.

    Eyal Reizer said:
    Hello,

    An error like this can be related to and sdio bus signal integrity issue.

    Two things to try:

    1. try to lower the sdio speed (start as low as 5Mhz) by adding:

            max-frequency = <5000000>;

        to the mmc node in your .dts file that is used for wl18xx, rebuild you .dtb file and see if you still see this issue.

    ANS>> I have tested with 5mhz bus speed.but still result is same.wifi is getting crashed frequently.

    2. Disable ELP by using the following console sequence and see if the issue is still seen:

       

    ANS>> tested with disable ELP , wifi is getting crashed and error message shows "ERROR TX stuck (in FW) for 5000 ms. Starting recovery".

    BR,

    Eyal

    Regards,

    Darshan

  • Hi Darshan,

    Issues like this can also occur due to the pullup/pulldown configuration of the wlan_irq gpio that you have selected.

    The host may have missed an interrupt from wl18xx.

    Can you try  with both IRQ_TYPE_LEVEL_HIGH and IRQ_TYPE_EDGE_RISING in your platform data/.dts?

    You can also use IRQ_TYPE_LEVEL_LOW and IRQ_TYPE_EDGE_FALLING.

    See the example below

    wlcore: wlcore@2 {
    	compatible = "ti,wl1835";
    	reg = <2>;
    	interrupt-parent = <&gpio1>;
    	interrupts = <31 IRQ_TYPE_LEVEL_HIGH>;
    ...
    ...

    BR
    Eyal
  • Hi Eyal,

    I have changed IRQ edge trigger to level trigger. Now it stucks in "ERROR SW watchdog interrupt received! Starting recovery" . If I bypass WL1271_ACX_SW_INTR_WATCHDOG flag then it seems working. Can I have possible to work around ?

    Regards,
    Darshan
  • Something must be wrong with your gpio line configuration. How is it configured (hardware wise)?
    Do you have a pullup/pulldown activated on it?

    I suggest that you check "cat /proc/interrupts | grep wl18xx" before and after you load the driver (ifconfig wlan0 up).
    Normally you should see only around 1 interrupt after "ifconfig wlan0 up" and before you start any scan/connect.

    Next after connection, when you issue a ping make sure that for a single ping you get only around 2 interrupts per ping.
    I have a feeling that your host is either missing interrupts, or you are getting spurious interrupts due to wlan_irq gpio configuration.

    One last thing. you said you have chenged from "edge" to "level". try also level_low/level_high.

    In any case I wouldn't mess with the driver code, trying to work around this.

    BR,
    Eyal