IMX8MQ - Android - System crash and reboot when wifi connection is established

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

IMX8MQ - Android - System crash and reboot when wifi connection is established

755 Views
Tooght
Contributor III

I am trying to figure out a wifi issue on Android which causes the system to be crashed and rebooted. When I have a wifi connection or even search for available networks, suddenly the system is restarted due to some reason. Is there anyone who can shed some light on how I can debug or solve the issue?

here are the logcat output AND the system log before restart:

the system log is pretty interesting and according to that log seems there is an issue related to memory

 

=~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2023.01.29 01:23:54 =~=~=~=~=~=~=~=~=~=~=~=


em_sbc_imx8m:/ $ [  598.627331] init: Received control message 'start' for 'wpa_supplicant' from pid: 2996 (/system/bin/wificond)
[  598.654545] init: starting service 'wpa_supplicant'...
[  598.661453] type=1400 audit(1578552645.574:3652): avc: denied { read } for pid=2962 comm="health@2.0-serv" name="stat" dev="sysfs" ino=21542 scontext=u:r:hal_health_default:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=0 duplicate messages suppressed
[  598.675601] init: Created socket '/dev/socket/wpa_wlan0', mode 660, user 1010, group 1010
[  598.694622] type=1400 audit(1578552685.274:3653): avc: denied { dac_read_search } for pid=1 comm="init" capability=2 scontext=u:r:init:s0 tcontext=u:r:init:s0 tclass=capability permissive=0
[  599.217567] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[  602.779618] init: processing action (sys.sysctl.tcp_def_init_rwnd=*) from (/init.rc:729)
[  608.642709] type=1400 audit(1578552685.274:3656): avc: denied { dac_read_search } for pid=1 comm="init" capability=2 scontext=u:r:init:s0 tcontext=u:r:init:s0 tclass=capability permissive=0 duplicate messages suppressed
[  608.662384] type=1400 audit(1674955465.089:3657): avc: denied { read } for pid=2962 comm="health@2.0-serv" name="stat" dev="sysfs" ino=21542 scontext=u:r:hal_health_default:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=0
[  613.491883] Unable to handle kernel NULL pointer dereference at virtual address 00000000
[  613.500120] Mem abort info:
[  613.502923]   Exception class = DABT (current EL), IL = 32 bits
[  613.509025]   SET = 0, FnV = 0
[  613.512103]   EA = 0, S1PTW = 0
[  613.515267] Data abort info:
[  613.518228]   ISV = 0, ISS = 0x00000004
[  613.522073]   CM = 0, WnR = 0
[  613.525288] user pgtable: 4k pages, 48-bit VAs, pgd = ffff800064dc7000
[  613.532038] [0000000000000000] *pgd=0000000000000000
[  613.537088] Internal error: Oops: 96000004 [#1] PREEMPT SMP
[  613.542661] Modules linked in: brcmfmac brcmutil
[  613.547284] CPU: 3 PID: 4129 Comm: wpa_supplicant Not tainted 4.14.78-00007-gf2ee4949105b #1
[  613.555719] Hardware name: Freescale i.MX8MQ EVK (DT)
[  613.560770] task: ffff800006ea9c00 task.stack: ffff00000a570000
[  613.566791] PC is at brcmf_p2p_send_action_frame+0x1ec/0x818 [brcmfmac]
[  613.573489] LR is at brcmf_p2p_send_action_frame+0x1dc/0x818 [brcmfmac]
[  613.580104] pc : [<ffff000001019474>] lr : [<ffff000001019464>] pstate: 80000145
[  613.587498] sp : ffff00000a573780
[  613.590813] x29: ffff00000a573780 x28: 0000000000000001 
[  613.596127] x27: 0000000000000000 x26: 0000000000000000 
[  613.601441] x25: ffff8000793ec900 x24: 00000000ffffffff 
[  613.606756] x23: ffff800007d1401c x22: ffff800007d14000 
[  613.612071] x21: ffff8000793eb7a0 x20: ffff8000793eb7c0 
[  613.617385] x19: ffff8000793eb7b8 x18: 000000000000007e 
[  613.622700] x17: 0000e104d14f32e0 x16: ffff000008d2847c 
[  613.628015] x15: 0000000000000003 x14: 9180b21a7ec0ac88 
[  613.633329] x13: 000000d000330033 x12: 006c0004000003e8 
[  613.638644] x11: 00570008000015b8 x10: 0000000000000040 
[  613.643959] x9 : 0000000000000000 x8 : 0801070106010200 
[  613.649273] x7 : 0a0100000e000002 x6 : ffff800007d14033 
[  613.654587] x5 : 0000000000000040 x4 : 0000000000000004 
[  613.659901] x3 : 0000000000000080 x2 : 0000000000001400 
[  613.665216] x1 : ffff8000793eb7c0 x0 : 0000000000000000 
[  613.670531] 
[  613.670531] X1: 0xffff8000793eb740:
[  613.675496] b740  793ed018 ffff8000 09e23000 ffff0000 092641a0 ffff0000 00000000 00000000
[  613.683688] b760  0102e808 ffff0000 00000000 00000000 00000001 00000000 00010000 0000000e
[  613.691879] b780  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  613.700070] b7a0  793eb300 ffff8000 79e1a800 ffff8000 79997e80 ffff8000 793eb7a0 ffff8000
[  613.708262] b7c0  00001400 00000000 00000000 00000000 00000000 00000000 793ed000 ffff8000
[  613.716452] b7e0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  613.724642] b800  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  613.732833] b820  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  613.741026] 
[  613.741026] X6: 0xffff800007d13fb3:
[  613.745990] 3fb0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  613.754181] 3fd0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  613.762372] 3ff0  00000000 00000000 00000000 00000000 00000070 00000190 7ec0ac88 0000b21a
[  613.770563] 4010  7ec0ac88 0017b21a 00000000 6c000a04 0e000002 0a010000 06010200 08010701
[  613.778754] 4030  00010c01 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  613.786944] 4050  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  613.795134] 4070  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  613.803325] 4090  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  613.811516] 40b0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  613.819713] 
[  613.819713] X19: 0xffff8000793eb738:
[  613.824763] b738  793ed018 ffff8000 793ed018 ffff8000 09e23000 ffff0000 092641a0 ffff0000
[  613.832949] b758  00000000 00000000 0102e808 ffff0000 00000000 00000000 00000001 00000000
[  613.841133] b778  00010000 0000000e 00000000 00000000 00000000 00000000 00000000 00000000
[  613.849316] b798  00000000 00000000 793eb300 ffff8000 79e1a800 ffff8000 79997e80 ffff8000
[  613.857500] b7b8  793eb7a0 ffff8000 00001400 00000000 00000000 00000000 00000000 00000000
[  613.865683] b7d8  793ed000 ffff8000 00000000 00000000 00000000 00000000 00000000 00000000
[  613.873867] b7f8  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  613.882050] b818  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  613.890234] 
[  613.890234] X20: 0xffff8000793eb740:
[  613.895284] b740  793ed018 ffff8000 09e23000 ffff0000 092641a0 ffff0000 00000000 00000000
[  613.903468] b760  0102e808 ffff0000 00000000 00000000 00000001 00000000 00010000 0000000e
[  613.911651] b780  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  613.919835] b7a0  793eb300 ffff8000 79e1a800 ffff8000 79997e80 ffff8000 793eb7a0 ffff8000
[  613.928019] b7c0  00001400 00000000 00000000 00000000 00000000 00000000 793ed000 ffff8000
[  613.936202] b7e0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  613.944386] b800  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  613.952569] b820  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  613.960754] 
[  613.960754] X21: 0xffff8000793eb720:
[  613.965803] b720  7ab03a80 ffff8000 00000000 00000000 00000000 00000000 793ed018 ffff8000
[  613.973986] b740  793ed018 ffff8000 09e23000 ffff0000 092641a0 ffff0000 00000000 00000000
[  613.982170] b760  0102e808 ffff0000 00000000 00000000 00000001 00000000 00010000 0000000e
[  613.990353] b780  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  613.998537] b7a0  793eb300 ffff8000 79e1a800 ffff8000 79997e80 ffff8000 793eb7a0 ffff8000
[  614.006720] b7c0  00001400 00000000 00000000 00000000 00000000 00000000 793ed000 ffff8000
[  614.014904] b7e0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  614.023087] b800  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  614.031272] 
[  614.031272] X22: 0xffff800007d13f80:
[  614.036321] 3f80  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  614.044504] 3fa0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  614.052688] 3fc0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  614.060872] 3fe0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  614.069055] 4000  00000070 00000190 7ec0ac88 0000b21a 7ec0ac88 0017b21a 00000000 6c000a04
[  614.077239] 4020  0e000002 0a010000 06010200 08010701 00010c01 00000000 00000000 00000000
[  614.085423] 4040  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  614.093606] 4060  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  614.101790] 
[  614.101790] X23: 0xffff800007d13f9c:
[  614.106839] 3f9c  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  614.115023] 3fbc  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  614.123206] 3fdc  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  614.131390] 3ffc  00000000 00000070 00000190 7ec0ac88 0000b21a 7ec0ac88 0017b21a 00000000
[  614.139573] 401c  6c000a04 0e000002 0a010000 06010200 08010701 00010c01 00000000 00000000
[  614.147757] 403c  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  614.155941] 405c  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  614.164124] 407c  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  614.172309] 
[  614.172309] X25: 0xffff8000793ec880:
[  614.177358] c880  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  614.185542] c8a0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  614.193725] c8c0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  614.201908] c8e0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  614.210092] c900  76190000 ffff8000 793ed000 ffff8000 793ec000 ffff8000 00000080 00000000
[  614.218276] c920  793ec920 ffff8000 793ec920 ffff8000 0101b520 ffff0000 00000080 00000000
[  614.226460] c940  793ec940 ffff8000 793ec940 ffff8000 0101b390 ffff0000 00000000 00000000
[  614.234644] c960  00000000 00000000 fb339180 0000030d 00010001 00000000 00040004 00000000
[  614.242829] 
[  614.244320] Process wpa_supplicant (pid: 4129, stack limit = 0xffff00000a570000)
[  614.251713] Call trace:
[  614.254159] Exception stack(0xffff00000a573640 to 0xffff00000a573780)
[  614.260599] 3640: 0000000000000000 ffff8000793eb7c0 0000000000001400 0000000000000080
[  614.268427] 3660: 0000000000000004 0000000000000040 ffff800007d14033 0a0100000e000002
[  614.276255] 3680: 0801070106010200 0000000000000000 0000000000000040 00570008000015b8
[  614.284083] 36a0: 006c0004000003e8 000000d000330033 9180b21a7ec0ac88 0000000000000003
[  614.291912] 36c0: ffff000008d2847c 0000e104d14f32e0 000000000000007e ffff8000793eb7b8
[  614.299740] 36e0: ffff8000793eb7c0 ffff8000793eb7a0 ffff800007d14000 ffff800007d1401c
[  614.307568] 3700: 00000000ffffffff ffff8000793ec900 0000000000000000 0000000000000000
[  614.315396] 3720: 0000000000000001 ffff00000a573780 ffff000001019464 ffff00000a573780
[  614.323225] 3740: ffff000001019474 0000000080000145 0000000000000000 0000000180100010
[  614.331053] 3760: 0000ffffffffffff 0000000000000017 ffff00000a573780 ffff000001019474
[  614.338957] [<ffff000001019474>] brcmf_p2p_send_action_frame+0x1ec/0x818 [brcmfmac]
[  614.346667] [<ffff00000101070c>] brcmf_cfg80211_mgmt_tx+0x1cc/0x270 [brcmfmac]
[  614.353892] [<ffff000008f37a34>] cfg80211_mlme_mgmt_tx+0x100/0x3a8
[  614.360074] [<ffff000008f2c6a4>] nl80211_tx_mgmt+0x25c/0x358
[  614.365734] [<ffff000008d970e8>] genl_family_rcv_msg+0x244/0x36c
[  614.371739] [<ffff000008d972a8>] genl_rcv_msg+0x98/0xcc
[  614.376963] [<ffff000008d96770>] netlink_rcv_skb+0xdc/0x118
[  614.382534] [<ffff000008d96e90>] genl_rcv+0x34/0x48
[  614.387411] [<ffff000008d95de4>] netlink_unicast+0x1e0/0x288
[  614.393068] [<ffff000008d96240>] netlink_sendmsg+0x2d8/0x398
[  614.398729] [<ffff000008d25248>] sock_sendmsg+0x44/0x50
[  614.403954] [<ffff000008d25944>] ___sys_sendmsg+0x280/0x2b4
[  614.409525] [<ffff000008d2852c>] SyS_sendmsg+0xb0/0xe0
[  614.414661] Exception stack(0xffff00000a573ec0 to 0xffff00000a574000)
[  614.421101] 3ec0: 0000000000000007 0000ffffdbd232b0 0000000000000000 0000000000000001
[  614.428929] 3ee0: 0000e104d10552a0 0000e104d10558c0 0000000000000000 0000000000000000
[  614.436757] 3f00: 00000000000000d3 0000000000000000 000000000000000c 0000000b00000003
[  614.444585] 3f20: 0000000000000000 0000000000000000 000000000000000d 0000000000000003
[  614.452413] 3f40: 0000e104d15fea20 0000e104d14f32e0 000000000000007e 0000e104d1031840
[  614.460241] 3f60: 0000e104d103c550 0000e104d23dd5e0 0000e104d10551c0 0000e104d10557e0
[  614.468070] 3f80: 0000e104d10286f0 000000000000002f 0000e104d23dd5e0 0000000000000001
[  614.475898] 3fa0: 0000e104d23dd5e0 0000ffffdbd23330 0000e104d15cb210 0000ffffdbd232b0
[  614.483726] 3fc0: 0000e104d14f32e8 0000000040000000 0000000000000007 00000000000000d3
[  614.491554] 3fe0: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
[  614.499384] [<ffff000008083ac0>] el0_svc_naked+0x34/0x38
[  614.504696] Code: 394016e0 7100081f 54000aa0 f9401a60 (f9400000) 
[  614.510793] ---[ end trace 4c6faa16ef08ec56 ]---
[  614.515410] Kernel panic - not syncing: Fatal exception
[  614.520634] SMP: stopping secondary CPUs
[  614.525085] Kernel Offset: disabled
[  614.528572] CPU features: 0x080200c
[  614.532058] Memory Limit: none
[  614.535113] Rebooting in 5 seconds..
 
U-Boot SPL 2018.03-gb008f48c58 (Jan 09 2020 - 03:50:02 +0000)
power_bd71837_init
set buck8 to 1.2v for DDR4
DDRINFO: start lpddr4 ddr init
DRAM PHY training for 2400MTS
check ddr4_pmu_train_imem code
check ddr4_pmu_train_imem code pass
check ddr4_pmu_train_dmem code
check ddr4_pmu_train_dmem code pass
Training PASS
DRAM PHY training for 1600MTS
check ddr4_pmu_train_imem code
check ddr4_pmu_train_imem code pass
check ddr4_pmu_train_dmem code
check ddr4_pmu_train_dmem code pass
Training PASS
DRAM PHY training for 1064MTS
check ddr4_pmu_train_imem code
check ddr4_pmu_train_imem code pass
check ddr4_pmu_train_dmem code
check ddr4_pmu_train_dmem code pass
Training PASS
DRAM PHY training for 2400MTS
check ddr4_pmu_train_imem code
check ddr4_pmu_train_imem code pass
check ddr4_pmu_train_dmem code
check ddr4_pmu_train_dmem code pass
Training PASS
DDRINFO:ddrphy calibration done
DDRINFO: ddrmix config done
Normal Boot
Trying to boot from MMC1


U-Boot 2018.03-gb008f48c58 (Jan 09 2020 - 03:50:02 +0000)

CPU:   Freescale i.MX8MQ rev2.1 1500 MHz (running at 1000 MHz)
CPU:   Commercial temperature grade (0C to 95C) at 45C
Reset cause: POR
Model: Freescale i.MX8MQ EVK
DRAM:  2 GiB
tcpc_init: Can't find device id=0x50
setup_typec: tcpc init failed, err=-19
MMC:   FSL_SDHC: 0
Loading Environment from MMC... *** Warning - bad CRC, using default environment

Failed (-5)
No panel detected: default to HDMI
Display: HDMI (1280x720)
In:    serial
Out:   serial
Err:   serial

 BuildInfo:
  - ATF d6451cc
  - U-Boot 2018.03-gb008f48c58

flash target is MMC:0
N

 

0 Kudos
2 Replies

722 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello,

 

What I can see is that the device is not complete programmed with Android and the when it comes to a wifi functions is broke up, so please try to burn out the image again, and then if the problem persist go with em_sbc.

Regards

0 Kudos

713 Views
Tooght
Contributor III

Hello @Bio_TICFSL .

Thanks for your reply, Yes I agree. This issue only happens when I enable wifi.

One thing that you meant by burning out the image again is re-flash the same image to the sd card again. If so, the image is the same image, so what will change? I will definitely try it but just curious.

And One more thing also. what does em_sbc mean? Can you please elaborate on it?

Regards,

Zafer

0 Kudos