lineage-rpi / android_kernel_brcm_rpi

Other
218 stars 63 forks source link

Device reboots when wifi is enabled #6

Closed andersling closed 2 years ago

andersling commented 4 years ago

Hi,sir! When I use you 20200813 rom for pi4,it keep rebooting and rebooting, i catch the debug messages from USB ,please take a look at it,thanks!

[   35.187724] type=1400 audit(1597320517.289:101): avc: denied { write } for comm="main" name="tasks" dev="tmpfs" ino=10663 scontext=u:r:zygote:s0 tcontext=u:object_r:device:s0 tclass=file permissive=1
[   35.200637] init: Could not find 'vendor.lineage.livedisplay@2.0::IAutoContrast/default' for ctl.interface_start
[   35.219864] type=1400 audit(1597320517.289:101): avc: denied { write } for comm="main" name="tasks" dev="tmpfs" ino=10663 scontext=u:r:zygote:s0 tcontext=u:object_r:device:s0 tclass=file permissive=1
[   35.230787] init: Received control message 'interface_start' for 'vendor.lineage.livedisplay@2.0::IDisplayColorCalibration/default' from pid: 146 (/system/bin/hwservicemanager)
[   35.247169] type=1400 audit(1597320517.289:102): avc: denied { open } for comm="main" path="/dev/stune/foreground/tasks" dev="tmpfs" ino=10663 scontext=u:r:zygote:s0 tcontext=u:object_r:device:s0 tclass=file permissive=1
[   35.263288] init: Could not find 'vendor.lineage.livedisplay@2.0::IDisplayColorCalibration/default' for ctl.interface_start
[   35.294351] init: Received control message 'interface_start' for 'vendor.lineage.livedisplay@2.0::IDisplayModes/default' from pid: 146 (/system/bin/hwservicemanager)
[   35.309852] init: Could not find 'vendor.lineage.livedisplay@2.0::IDisplayModes/default' for ctl.interface_start
[   35.320421] init: Received control message 'interface_start' for 'vendor.lineage.livedisplay@2.0::IReadingEnhancement/default' from pid: 146 (/system/bin/hwservicemanager)
[   36.851865] type=1400 audit(1597320517.289:102): avc: denied { open } for comm="main" path="/dev/stune/foreground/tasks" dev="tmpfs" ino=10663 scontext=u:r:zygote:s0 tcontext=u:object_r:device:s0 tclass=file permissive=1
[   36.873786] type=1400 audit(1597320518.979:103): avc: denied { write } for comm="main" name="tasks" dev="tmpfs" ino=731 scontext=u:r:zygote:s0 tcontext=u:object_r:device:s0 tclass=file permissive=1
[   36.894704] type=1400 audit(1597320518.979:103): avc: denied { write } for comm="main" name="tasks" dev="tmpfs" ino=731 scontext=u:r:zygote:s0 tcontext=u:object_r:device:s0 tclass=file permissive=1
[   36.915905] type=1400 audit(1597320518.979:104): avc: denied { open } for comm="main" path="/dev/stune/top-app/tasks" dev="tmpfs" ino=731 scontext=u:r:zygote:s0 tcontext=u:object_r:device:s0 tclass=file permissive=1
[   37.175658] type=1400 audit(1597320518.979:104): avc: denied { open } for comm="main" path="/dev/stune/top-app/tasks" dev="tmpfs" ino=731 scontext=u:r:zygote:s0 tcontext=u:object_r:device:s0 tclass=file permissive=1
[   37.198532] type=1400 audit(1597320519.309:105): avc: denied { write } for comm="main" name="tasks" dev="tmpfs" ino=10663 scontext=u:r:zygote:s0 tcontext=u:object_r:device:s0 tclass=file permissive=1 app=com.android.providers.media
[   37.670057] 8<--- cut here ---
[   37.674677] Unable to handle kernel NULL pointer dereference at virtual address 00000ef8
[   37.683157] pgd = 1377b4d8
[   37.685908] [00000ef8] *pgd=13294003, *pmd=00000000
[   37.690882] Internal error: Oops: 206 [#1] PREEMPT SMP ARM
[   37.696454] Modules linked in:
[   37.699562] CPU: 2 PID: 683 Comm: wpa_supplicant Not tainted 5.4.58-v7l-g6c0b7b018b84 #1
[   37.707772] Hardware name: BCM2711
[   37.711246] PC is at brcmf_p2p_send_action_frame+0x3e8/0x9c0
[   37.716994] LR is at brcmf_p2p_send_action_frame+0x19c/0x9c0
[   37.722740] pc : [<c08ebe68>]    lr : [<c08ebc1c>]    psr: 20010013
[   37.729108] sp : d432fad0  ip : 00000000  fp : d432fb24
[   37.734414] r10: 00000000  r9 : ffffffff  r8 : 00000000
[   37.739720] r7 : d3c68800  r6 : 00000001  r5 : d4f0a80c  r4 : d4f0a800
[   37.746345] r3 : 00000400  r2 : 00000000  r1 : 00000006  r0 : 00000000
[   37.752965] Flags: nzCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment user
[   37.760212] Control: 30c5383d  Table: 13a2a740  DAC: 55555555
[   37.766041] Process wpa_supplicant (pid: 683, stack limit = 0xf9b8e57a)
[   37.772745] Stack: (0xd432fad0 to 0xd4330000)
[   37.777159] fac0:                                     00000304 c04356b8 d432fb24 d432fae8
[   37.785459] fae0: ef803540 c043599c d432fb88 d4fb0620 d4f0b640 00000000 d432fb24 c1806448
[   37.793759] fb00: d41aac34 d432fbb8 d4f0a800 0000002f 00000017 d3c68800 d432fb74 d432fb28
[   37.802057] fb20: c08e1d0c c08eba8c 00000000 00000000 00000017 00000985 d4fb0620 d4ea1008
[   37.810350] fb40: 00000985 5cac72ff d432fb84 d41aac34 d4ea1008 d432fbe4 d4fb0280 d432fbb8
[   37.818643] fb60: d4fb0000 d3a70014 d432fbac d432fb78 c0e597e4 c08e1b64 d432fbac d432fb88
[   37.826941] fb80: c0c6ddac d432fc74 c1806448 d4fb0000 d4ea1008 00000000 d49e9300 d3a70014
[   37.835242] fba0: d432fc34 d432fbb0 c0e4ee60 c0e596dc 00000000 0000003b 00000000 00000000
[   37.843536] fbc0: c115ec34 00000000 c10396f8 d4f06d18 00000000 00000985 00000000 00000000
[   37.851827] fbe0: 00000000 d4f06d18 00000001 000003e8 d41aac34 0000002f 00000000 00000000
[   37.860126] fc00: 00000000 5cac72ff c070cf24 c115fba0 c1412e80 d41aac14 c1806448 d49e9000
[   37.868417] fc20: 00000000 c1895ec0 d432fccc d432fc38 c0c6ea64 c0e4ebf0 c115ea9c 00000000
[   37.876716] fc40: d432fcd4 00000004 c196e258 00000014 d3c6b000 d432fcd4 d432fcdc d432fc68
[   37.885017] fc60: c065488c c02b1dc0 d39ce000 d3348d30 00000164 5f352d63 570002ab d41aac00
[   37.893318] fc80: d41aac10 d41aac14 d3c6b000 c1895ec0 d4fb0000 d4ea1008 d432fcd4 5cac72ff
[   37.901611] fca0: efa50980 00000000 c1806448 c0c6e7e0 d49e9000 d41aac00 00000000 efb57800
[   37.909902] fcc0: d432fd1c d432fcd0 c0c6d774 c0c6e7ec 032c0000 00000000 00000000 00000000
[   37.918194] fce0: 00000000 00000000 00000000 00000000 00000000 5cac72ff 00000000 c189ab50
[   37.926492] fd00: d49e9000 efb57864 00000064 c1895ec0 d432fd34 d432fd20 c0c6de40 c0c6d688
[   37.934792] fd20: efa08240 d49e9000 d432fd74 d432fd38 c0c6ce70 c0c6de18 00000000 c1806448
[   37.943084] fd40: 7fffffff 5cac72ff d432fd74 c1806448 d49e9000 d3823c00 00000000 00000000
[   37.951375] fd60: d432ff4c 00000000 d432fde4 d432fd78 c0c6d1e0 c0c6cc88 00000000 00000000
[   37.959668] fd80: 00000000 00000000 00000000 00000000 d41aac00 00000064 c14124e0 d42db7c0
[   37.967965] fda0: 00000000 000002ab 000003f2 000003f2 00000000 5cac72ff d432fde4 d432ff4c
[   37.976261] fdc0: 00000000 00000000 c1806448 d432fdf4 d4701080 00000000 d432fe44 d432fde8
[   37.984554] fde0: c0bdcf80 c0c6cf0c d432e000 00000000 d432fe44 d432fe00 c0bdd1cc c06e2760
[   37.992845] fe00: d432fe50 d432ff54 b3335cf4 0000000c beff7410 5cac72ff 00000000 c1806448
[   38.001135] fe20: d432ff4c 00000000 d4701080 00000000 d432e000 00000128 d432ff3c d432fe48
[   38.009428] fe40: c0bdd2cc c0bdcda0 00000000 c06547fc 00000000 b3346000 00000064 c0bdcbac
[   38.017719] fe60: 00008000 00000000 d432fe80 5cac72ff 00039e7e 00000000 ffffffff 00000001
[   38.026011] fe80: 00000000 5cac72ff c0bdcbac c1806448 d31e9f00 00000010 00000000 00000000
[   38.034302] fea0: d4701080 00000126 d432ff24 c03a11c4 c1940ca8 c1806448 c181c110 d432ff68
[   38.042594] fec0: d3823c00 beff7468 d432ff64 00000001 d432ff54 d432fee0 c03a11c4 c02b1dc0
[   38.050886] fee0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[   38.059177] ff00: d432ff70 d432ff6c d3823c00 00000000 00000000 5cac72ff 0000000a c1806448
[   38.067468] ff20: beff7418 d4701080 00000000 00000000 d432ffa4 d432ff40 c0bdecb4 c0bdd25c
[   38.075760] ff40: 00000000 00000000 d432ffa4 d432fe94 0000000c 00000005 00000000 00000000
[   38.084051] ff60: d432fe5c 00000000 0000000a 00000000 00000000 00000000 00000000 5cac72ff
[   38.092342] ff80: b3346063 beff7418 00000000 b3335c40 00000128 c02011c4 00000000 d432ffa8
[   38.100633] ffa0: c0201000 c0bdec0c beff7418 00000000 00000007 beff7418 00000000 beff7468
[   38.108925] ffc0: beff7418 00000000 b3335c40 00000128 0c278835 b3335c40 b3cba260 beff74a8
[   38.117217] ffe0: b334e200 beff73f8 b36712cb b3c9aef0 40010010 00000007 00000000 00000000
[   38.125507] Backtrace: 
[   38.127989] [<c08eba80>] (brcmf_p2p_send_action_frame) from [<c08e1d0c>] (brcmf_cfg80211_mgmt_tx+0x1b4/0x2c0)
[   38.138046]  r10:d3c68800 r9:00000017 r8:0000002f r7:d4f0a800 r6:d432fbb8 r5:d41aac34
[   38.145983]  r4:c1806448
[   38.148553] [<c08e1b58>] (brcmf_cfg80211_mgmt_tx) from [<c0e597e4>] (cfg80211_mlme_mgmt_tx+0x114/0x3c8)
[   38.158079]  r10:d3a70014 r9:d4fb0000 r8:d432fbb8 r7:d4fb0280 r6:d432fbe4 r5:d4ea1008
[   38.166017]  r4:d41aac34
[   38.168584] [<c0e596d0>] (cfg80211_mlme_mgmt_tx) from [<c0e4ee60>] (nl80211_tx_mgmt+0x27c/0x3a4)
[   38.177493]  r10:d3a70014 r9:d49e9300 r8:00000000 r7:d4ea1008 r6:d4fb0000 r5:c1806448
[   38.185431]  r4:d432fc74
[   38.187998] [<c0e4ebe4>] (nl80211_tx_mgmt) from [<c0c6ea64>] (genl_rcv_msg+0x284/0x4d8)
[   38.196114]  r10:c1895ec0 r9:00000000 r8:d49e9000 r7:c1806448 r6:d41aac14 r5:c1412e80
[   38.204052]  r4:c115fba0
[   38.206618] [<c0c6e7e0>] (genl_rcv_msg) from [<c0c6d774>] (netlink_rcv_skb+0xf8/0x12c)
[   38.214645]  r10:efb57800 r9:00000000 r8:d41aac00 r7:d49e9000 r6:c0c6e7e0 r5:c1806448
[   38.222582]  r4:00000000
[   38.225148] [<c0c6d67c>] (netlink_rcv_skb) from [<c0c6de40>] (genl_rcv+0x34/0x44)
[   38.232735]  r8:c1895ec0 r7:00000064 r6:efb57864 r5:d49e9000 r4:c189ab50
[   38.239531] [<c0c6de0c>] (genl_rcv) from [<c0c6ce70>] (netlink_unicast+0x1f4/0x284)
[   38.247293]  r5:d49e9000 r4:efa08240
[   38.250916] [<c0c6cc7c>] (netlink_unicast) from [<c0c6d1e0>] (netlink_sendmsg+0x2e0/0x3f8)
[   38.259296]  r10:00000000 r9:d432ff4c r8:00000000 r7:00000000 r6:d3823c00 r5:d49e9000
[   38.267233]  r4:c1806448
[   38.269799] [<c0c6cf00>] (netlink_sendmsg) from [<c0bdcf80>] (____sys_sendmsg+0x1ec/0x250)
[   38.278179]  r10:00000000 r9:d4701080 r8:d432fdf4 r7:c1806448 r6:00000000 r5:00000000
[   38.286116]  r4:d432ff4c
[   38.288681] [<c0bdcd94>] (____sys_sendmsg) from [<c0bdd2cc>] (___sys_sendmsg+0x7c/0xa8)
[   38.296797]  r10:00000128 r9:d432e000 r8:00000000 r7:d4701080 r6:00000000 r5:d432ff4c
[   38.304734]  r4:c1806448
[   38.307298] [<c0bdd250>] (___sys_sendmsg) from [<c0bdecb4>] (sys_sendmsg+0xb4/0xe0)
[   38.315061]  r8:00000000 r7:00000000 r6:d4701080 r5:beff7418 r4:c1806448
[   38.321858] [<c0bdec00>] (sys_sendmsg) from [<c0201000>] (ret_fast_syscall+0x0/0x28)
[   38.329709] Exception stack(0xd432ffa8 to 0xd432fff0)
[   38.334827] ffa0:                   beff7418 00000000 00000007 beff7418 00000000 beff7468
[   38.343118] ffc0: beff7418 00000000 b3335c40 00000128 0c278835 b3335c40 b3cba260 beff74a8
[   38.351409] ffe0: b334e200 beff73f8 b36712cb b3c9aef0
[   38.356527]  r8:c02011c4 r7:00000128 r6:b3335c40 r5:00000000 r4:beff7418
[   38.363322] Code: e3a06001 e5c43119 eaffffca e5942024 (e5922ef8) 
[   38.392961] ---[ end trace fc639dc6ca8b59a2 ]---
[   38.408325] Kernel panic - not syncing: Fatal exception
[   38.413643] CPU1: stopping
[   38.416389] CPU: 1 PID: 200 Comm: main Tainted: G      D           5.4.58-v7l-g6c0b7b018b84 #1
[   38.425121] Hardware name: BCM2711
[   38.428564] Backtrace: 
[   38.431048] [<c020dbd4>] (dump_backtrace) from [<c020ded0>] (show_stack+0x20/0x24)
[   38.438724]  r6:00000000 r5:c18a9a0c r4:60070193 r3:5cac72ff
[   38.444462] [<c020deb0>] (show_stack) from [<c0e8baa0>] (dump_stack+0xd0/0x114)
[   38.451875] [<c0e8b9d0>] (dump_stack) from [<c0212248>] (handle_IPI+0x3a8/0x424)
[   38.459373]  r9:c1806bb4 r8:f0815000 r7:00000001 r6:c18bef60 r5:c16c2950 r4:00000004
[   38.467225] [<c0211ea0>] (handle_IPI) from [<c0202310>] (gic_handle_irq+0x84/0x88)
[   38.474900]  r10:d1cc3044 r9:d391a000 r8:f0815000 r7:f0814000 r6:d391bd38 r5:f081400c
[   38.482838]  r4:c1806ef4
[   38.485401] [<c020228c>] (gic_handle_irq) from [<c0201a3c>] (__irq_svc+0x5c/0x94)
[   38.492986] Exception stack(0xd391bd38 to 0xd391bd80)
[   38.498104] bd20:                                                       d1cbe380 d40a8f40
[   38.506396] bd40: d40bd454 d40bd450 00000002 00000001 d1cc3000 d40a8f18 d1cbe388 d40a8f18
[   38.514687] bd60: d1cc3044 d391bd9c d40c2480 d391bd88 00000002 c03f9acc 80070013 ffffffff
[   38.522979]  r8:d1cbe388 r7:d391bd6c r6:ffffffff r5:80070013 r4:c03f9acc r3:00000002
[   38.530833] [<c03f9a78>] (anon_vma_interval_tree_insert) from [<c0410718>] (anon_vma_clone+0xf0/0x1f8)
[   38.540269]  r5:d40d6160 r4:d1cbe380
[   38.543889] [<c0410628>] (anon_vma_clone) from [<c0410854>] (anon_vma_fork+0x34/0x14c)
[   38.551916]  r10:d1cbff40 r9:d1cbff30 r8:d4646f40 r7:d1cc3000 r6:d3e29c00 r5:d3833480
[   38.559854]  r4:d1cc3000
[   38.562419] [<c0410820>] (anon_vma_fork) from [<c022a5fc>] (dup_mm+0x3c8/0x4b8)
[   38.569829]  r9:d1cbff30 r8:d4646f40 r7:d1cc3000 r6:d3e29c00 r5:d3833480 r4:00000001
[   38.577681] [<c022a234>] (dup_mm) from [<c022bf68>] (copy_process+0x153c/0x18f4)
[   38.585179]  r10:d1c914bc r9:00000000 r8:01200000 r7:d4b2e800 r6:d1c91040 r5:00000000
[   38.593115]  r4:d4e2f5b8
[   38.595681] [<c022aa2c>] (copy_process) from [<c022c538>] (_do_fork+0x9c/0x424)
[   38.603092]  r10:00000078 r9:d391bf58 r8:00000000 r7:c1806448 r6:5cac72ff r5:b12cddc8
[   38.611028]  r4:c1806448
[   38.613594] [<c022c49c>] (_do_fork) from [<c022cb2c>] (sys_clone+0xa0/0xa8)
[   38.620652]  r10:00000078 r9:d391a000 r8:c02011c4 r7:00000078 r6:5cac72ff r5:b12cddc8
[   38.628589]  r4:c1806448
[   38.631154] [<c022ca8c>] (sys_clone) from [<c0201000>] (ret_fast_syscall+0x0/0x28)
[   38.638826] Exception stack(0xd391bfa8 to 0xd391bff0)
[   38.643944] bfa0:                   b12cddc8 00000001 01200011 00000000 00000000 00000000
[   38.652235] bfc0: b12cddc8 00000001 be969954 00000078 000000c8 000000c8 af589260 b0e92140
[   38.660526] bfe0: be969918 be969908 af5327db af52c7cc
[   38.665644]  r6:be969954 r5:00000001 r4:b12cddc8
[   38.670322] CPU2: stopping
[   38.673064] CPU: 2 PID: 1181 Comm: Jit thread pool Tainted: G      D           5.4.58-v7l-g6c0b7b018b84 #1
[   38.682854] Hardware name: BCM2711
[   38.686296] Backtrace: 
[   38.688775] [<c020dbd4>] (dump_backtrace) from [<c020ded0>] (show_stack+0x20/0x24)
[   38.696450]  r6:00000000 r5:c18a9a0c r4:600d0193 r3:5cac72ff
[   38.702187] [<c020deb0>] (show_stack) from [<c0e8baa0>] (dump_stack+0xd0/0x114)
[   38.709600] [<c0e8b9d0>] (dump_stack) from [<c0212248>] (handle_IPI+0x3a8/0x424)
[   38.717097]  r9:c1806bb4 r8:f0815000 r7:00000002 r6:c18bef60 r5:c16c2950 r4:00000004
[   38.724950] [<c0211ea0>] (handle_IPI) from [<c0202310>] (gic_handle_irq+0x84/0x88)
[   38.732625]  r10:a4c2f368 r9:00000017 r8:f0815000 r7:f0814000 r6:d26c3fb0 r5:f081400c
[   38.740561]  r4:c1806ef4
[   38.743125] [<c020228c>] (gic_handle_irq) from [<c0201dac>] (__irq_usr+0x4c/0x60)
[   38.750710] Exception stack(0xd26c3fb0 to 0xd26c3ff8)
[   38.755829] 3fa0:                                     a4cb78f0 a4cb7480 a4cb7398 00000006
[   38.764121] 3fc0: a4ca8eb0 a4cb7040 a4ca8ed4 00000006 00000000 00000017 a4c2f368 a4cb77a8
[   38.772412] 3fe0: 00000000 9ec043d8 a31c0ced a31c0d90 200d0030 ffffffff
[   38.779117]  r8:30c5387d r7:30c5383d r6:ffffffff r5:200d0030 r4:a31c0d90 r3:a4cb78f0
[   38.786967] CPU0: stopping
[   38.789709] CPU: 0 PID: 231 Comm: surfaceflinger Tainted: G      D           5.4.58-v7l-g6c0b7b018b84 #1
[   38.799321] Hardware name: BCM2711
[   38.802764] Backtrace: 
[   38.805242] [<c020dbd4>] (dump_backtrace) from [<c020ded0>] (show_stack+0x20/0x24)
[   38.812917]  r6:00000000 r5:c18a9a0c r4:600f0193 r3:5cac72ff
[   38.818653] [<c020deb0>] (show_stack) from [<c0e8baa0>] (dump_stack+0xd0/0x114)
[   38.826064] [<c0e8b9d0>] (dump_stack) from [<c0212248>] (handle_IPI+0x3a8/0x424)
[   38.833563]  r9:c1806bb4 r8:f0815000 r7:00000000 r6:c18bef60 r5:c16c2950 r4:00000004
[   38.841415] [<c0211ea0>] (handle_IPI) from [<c0202310>] (gic_handle_irq+0x84/0x88)
[   38.849089]  r10:00000000 r9:b06df810 r8:f0815000 r7:f0814000 r6:d3e27fb0 r5:f081400c
[   38.857027]  r4:c1806ef4
[   38.859591] [<c020228c>] (gic_handle_irq) from [<c0201dac>] (__irq_usr+0x4c/0x60)
[   38.867176] Exception stack(0xd3e27fb0 to 0xd3e27ff8)
[   38.872295] 7fa0:                                     00000004 00000003 00000000 00000003
[   38.880587] 7fc0: b06a91a0 b06df928 b061d6f8 00000000 b06dfb04 b06df810 00000000 b2621668
[   38.888878] 7fe0: b26e07bc bef21e18 b26492c9 b2e58eba 600f0030 ffffffff
[   38.895583]  r8:30c5387d r7:30c5383d r6:ffffffff r5:600f0030 r4:b2e58eba r3:00000004
[   38.903444] Rebooting in 5 seconds..

It seems that the wlan supplant has something wrong,would you build a room without the wifi enabled by default? Then I cam debug it and report the result to you,thanks!

KonstaT commented 4 years ago

Thanks for the log. This seems like the issue discussed before (http://disq.us/p/2ax3vmu). I still have no idea why this only happens on some devices.

You can disable wifi by adding dtoverlay=disable-wifi to /boot/config.txt.

andersling commented 4 years ago

KernelDBG_Msg_DisableWIFI_Room20200813ByKonstaT.txt Thanks for you reply, and just now I try to disabled wifi follow your tips, and IT CAN BOOT UP NOW! That is really exciting!!! Thanks ,sir! Hope in the new version that you can fixed the wifi isue, big thanks!

andersling commented 4 years ago

and by the way, can i enable the ethernet interface so that i can use it to connect to the internet.. Thanks!

andersling commented 4 years ago

anther information report to you: when the room boot up successfully, i try to turn the wifi on in the setting ui, after a few seconds, the on went back to off automatic, and the USB debug message show no new messages! and after that ,the system is still runing normall ,NO Reboots! hope this can be referred by you, thanks!

KonstaT commented 4 years ago

I can't reproduce this issue myself which makes testing possible fixes really difficult.

Ethernet is automatically enabled when you plug in a cable. There's no settings options for it but you'll see an icon on the status bar when you're connected using ethernet.

poudaduk commented 3 years ago

Hello,

Firstly, like many others, I'd like to offer my sincere thanks for your work. It is really fantastic. I am having the same rebooting loop issue, and I did see that you've not been able to reproduce it, but I am hoping by giving some more symptoms / data points, it might be useful.

I have a Pi 4 with 8GB RAM (first one). I initially experienced the exact symptoms described above (would get just past the LineageOS splash screen then reboot). I followed the directions, and this is where it gets a little interesting. I changed the config.txt file to shut the Wi-Fi off. It booted, but only got to the screen "Enter Name of Wi-Fi network" - I couldn't get past that. I tried this with both the standard LineageOS and AndroidTV builds with the same result.

Then, I reflashed the card with both builds, but did not change the config.txt file , I plugged the Ethernet cable in. It worked. Once plugged in, I tried to join a Wi-Fi network - it reboots. If I turn off Wi-Fi and stay on Ethernet, it works fine.

Ultimately, I'd like to use Wi-Fi, and I am sure that will happen. Until then, I sincerely hope this provides a little more data. I can also add I have tried two different micro SD cards - same result. I have also installed Raspberry Pi OS as a test and it works fine on all fronts.

Thanks again for your time and work.

andersling commented 3 years ago

Hello,

Firstly, like many others, I'd like to offer my sincere thanks for your work. It is really fantastic. I am having the same rebooting loop issue, and I did see that you've not been able to reproduce it, but I am hoping by giving some more symptoms / data points, it might be useful.

I have a Pi 4 with 8GB RAM (first one). I initially experienced the exact symptoms described above (would get just past the LineageOS splash screen then reboot). I followed the directions, and this is where it gets a little interesting. I changed the config.txt file to shut the Wi-Fi off. It booted, but only got to the screen "Enter Name of Wi-Fi network" - I couldn't get past that. I tried this with both the standard LineageOS and AndroidTV builds with the same result.

Then, I reflashed the card with both builds, but did not change the config.txt file , I plugged the Ethernet cable in. It worked. Once plugged in, I tried to join a Wi-Fi network - it reboots. If I turn off Wi-Fi and stay on Ethernet, it works fine.

Ultimately, I'd like to use Wi-Fi, and I am sure that will happen. Until then, I sincerely hope this provides a little more data. I can also add I have tried two different micro SD cards - same result. I have also installed Raspberry Pi OS as a test and it works fine on all fronts.

Thanks again for your time and work.

Hi, The main issue is the wifi-driver not works! There is no solution yet, what we have to is waiting MR.Kansta release some fix. and by the way ,you can use the Android-RPI 11 (64bit), On all my 2G/4G/8G raspberryPI4 boards, it works well including wifi and bluetooth. https://github.com/android-rpi/device_arpi_rpi4

Have a good day!

Dushyantc1 commented 3 years ago

Hi,sir! When I use you 20200813 rom for pi4,it keep rebooting and rebooting, i catch the debug messages from USB ,please take a look at it,thanks!

It seems that the wlan supplant has something wrong,would you build a room without the wifi enabled by default? Then I cam debug it and report the result to you,thanks!

Hello, How did you catch this debug on USB. I am having the same issue with Konstakang's buid. I want to catch the log whether what is going wrong. I do not know how to get the log. Please help.

Dushyantc1 commented 3 years ago

Thanks for the log. This seems like the issue discussed before (http://disq.us/p/2ax3vmu). I still have no idea why this only happens on some devices.

You can disable wifi by adding dtoverlay=disable-wifi to /boot/config.txt.

I disabled the wifi, It successfully boot up but it now stuck on Select your Wifi Network. It is not allowing me to skip the wifi connection screen. I have inserted the LAN cable, still it is not connecting to internet, I mean still it is not allowing me to bypass the wifi connection screen

andersling commented 3 years ago

Thanks for the log. This seems like the issue discussed before (http://disq.us/p/2ax3vmu). I still have no idea why this only happens on some devices. You can disable wifi by adding dtoverlay=disable-wifi to /boot/config.txt.

I disabled the wifi, It successfully boot up but it now stuck on Select your Wifi Network. It is not allowing me to skip the wifi connection screen. I have inserted the LAN cable, still it is not connecting to internet, I mean still it is not allowing me to bypass the wifi connection screen

Are you sure you disabled WIFI ? As for me ,the LAN will auto connect by DHCP .

andersling commented 3 years ago

Hi,sir! When I use you 20200813 rom for pi4,it keep rebooting and rebooting, i catch the debug messages from USB ,please take a look at it,thanks!

It seems that the wlan supplant has something wrong,would you build a room without the wifi enabled by default? Then I cam debug it and report the result to you,thanks!

Hello, How did you catch this debug on USB. I am having the same issue with Konstakang's buid. I want to catch the log whether what is going wrong. I do not know how to get the log. Please help.

Hi, you can search youtube or google by "Debug kernel Message in RaspberryPI" , you will find a lot useful instruction to do it. First of all ,you have to prepare a USB To TTL adapter .maybe it cast 3-5 dollars in amazon. Have a nice day!

and btw, you can try android-rpi 11 64bit room, it is all works with wifi and bluetooth.

KonstaT commented 3 years ago

As I suspected elsewhere wifi network surroundings seem to have an effect on this (http://disq.us/p/2cj20pe). It would be interesting to know which device nearby you need to turn on/off to be able to reproduce this.

Also could someone run 'iogcat' and post the output as well? I've only seen the kernel log so far.

andersling commented 3 years ago

As I suspected elsewhere wifi network surroundings seem to have an effect on this (http://disq.us/p/2cj20pe). It would be interesting to know which device nearby you need to turn on/off to be able to reproduce this.

Also could someone run 'iogcat' and post the output as well? I've only seen the kernel log so far.

Hi,MR. KonstaT! Do you mean that the Device Driver decode the WIFI Beacon packets,some ap's beacons are no so good ,such as 802.11ac or 802.11ax ,or the vendor Information Elements( IEs) ..etc, which cause the driver decode error? I am familar with the WIFI standard such as 802.11n, ac ,ax. how can i do something for you? capture the beacon frames with wireshark format or elsething? Have a nice day,sir!

KonstaT commented 3 years ago

As I suspected elsewhere wifi network surroundings seem to have an effect on this (http://disq.us/p/2cj20pe). It would be interesting to know which device nearby you need to turn on/off to be able to reproduce this. Also could someone run 'iogcat' and post the output as well? I've only seen the kernel log so far.

Hi,MR. KonstaT! Do you mean that the Device Driver decode the WIFI Beacon packets,some ap's beacons are no so good ,such as 802.11ac or 802.11ax ,or the vendor Information Elements( IEs) ..etc, which cause the driver decode error? I am familar with the WIFI standard such as 802.11n, ac ,ax. how can i do something for you? capture the beacon frames with wireshark format or elsething? Have a nice day,sir!

No, I'm not interested about packet captures. If you could run 'logcat' using serial console adapter that might bring some new information.

From practical point of view I'd more interested to know what kind of device I'd need to bring to my network surroundings so I could reproduce this issue myself. Can you turn off some surrounding devices? Does this only happen after turning some device on? E.g. wireless CarlinKit adapter seems to be one this can be reproduced with (https://www.raspberrypi.org/forums/viewtopic.php?f=73&t=281187&sid=06c476372818de3df141ee7dbf7c6238&start=150#p1749890) but I'm not going to spend ~100€ on something I have no other use for.

govindmaheshwari2 commented 3 years ago

I have tried it by switching off different bandwidth wifi and i found that with 5ghz bandwidth it get in rebooting loop with other wifi it work fine.

KonstaT commented 3 years ago

@govindmaheshwari2 What makes you think this is somehow related to 5GHz? Did you switch off some bandwidths from your router or something else?

5GHz networks are not normally visible on my device for some reason when my wifi region is set to FI. If I set wifi region to US (iw reg set US) I can connect to my 5GHz AP fine. No reboots.

ratuozora commented 3 years ago

Hi Mr. Konsta,

Your build is working great! Thanks A Lot.

I have experienced with wifi issue like the others, it could be not enough power on rpi4, so it reboot. I did booting LOS 17.1 with 5 volt and 1 amp power supply, but when I turn on the wifi , it reboot. So I tried with greater power supply 5 volt and 2.4 amp and no problem, run perfectly. Actually recommended from the official rpi4 is 5 v and 3 Amp. so I think that the wifi device consume much power and can cause the rpi4 processors under voltage or power that make it reboot. I have experienced this under power symtoms since rpi1 and other mobile device. I hope this can help.

Happy LineAgeOS!!!

KonstaT commented 3 years ago

Please test the latest LineageOS 17.1 builds on the Pi 4 and report if there's any change. I patched the kernel around where this is crashing.

govindmaheshwari2 commented 3 years ago

No change still the same issue. Rebooting again again

KonstaT commented 3 years ago

@govindmaheshwari Which build did you use?

govindmaheshwari2 commented 3 years ago

The one you release yesterday for android tv lineage-17.1-20201119

KonstaT commented 3 years ago

Ok, thanks for the report.

I guess I still need to find some way to reproduce this myself. And I'm also yet to even see a logcat of this on LineageOS.

govindmaheshwari2 commented 3 years ago

I can share my screen and device so that you can see and reproduce these issue like teamviewer or any other required software. So that you can make it correct and you don't have to buy expensive things

KonstaT commented 3 years ago

@govindmaheshwari2 No, that doesn't work in any way for something like this.

UMB8998 commented 3 years ago

@KonstaT @govindmaheshwari2 I also have the same problem, when I use the raspberry with wifi it goes into a reboot loop, even with a very powerful powersupply, the issue happens with 2.4 and 5 ghz wifi. I will get a Serial Adapter and run more tests on this BTW it is a great work, Thank you!!!!!

govindmaheshwari2 commented 3 years ago

@KonstaT your new build lineage-18.1-20210104-UNOFFICIAL-KonstaKANG-rpi4 is working great. there is no issue of wifi or any other thing i can find right now. Can you please provide TV version of lineage 18.1. GAPPS is not an issue there are lots of 3rd party store can be used. Thank you for building a great and smooth working android 11 rom.

KonstaT commented 3 years ago

@govindmaheshwari2 Thanks for the report. There's no plans for Android TV 11 releases in any near future (it does not offer anything you don't already have with current Android TV builds). You can install a different launcher if you want to have a more TV friendly UI.

Difference between LineageOS 17.1 and 18.1 kernels is just one configuration option so it looks like the root of this issue was not in the kernel after all. Like I suspected this is fixed somewhere else in Android 11 most likely wpa_supplicant. I would still like to have this fixed for older Android versions of course.

KonstaT commented 3 years ago

There's also a report that this issue is not resolved with LineageOS 18.

It seems that this is somehow related to Hotspot 2.0/802.11u/Access Network Query Protocol (ANQP) networks being present in the network environment.

And finally a logcat:

2021-01-24 17:39:39.259 513-513/? D/wpa_supplicant: nl80211: Drv Event 34 (NL80211_CMD_NEW_SCAN_RESULTS) received for wlan0
2021-01-24 17:39:39.259 513-513/? D/wpa_supplicant: wlan0: nl80211: New scan results available
2021-01-24 17:39:39.259 513-513/? D/wpa_supplicant: nl80211: Scan probed for SSID ''
2021-01-24 17:39:39.259 513-513/? D/wpa_supplicant: nl80211: Scan included frequencies: 2412 2417 2422 2427 2432 2437 2442 2447 2452 2457 2462 2467 2472 5180 5200 5220 5240 5260 5280 5300 5320 5500 5520 5540 5560 5580 5600 5620 5640 5660 5680 5700
2021-01-24 17:39:39.259 513-513/? D/wpa_supplicant: wlan0: Event SCAN_RESULTS (3) received
2021-01-24 17:39:39.259 513-513/? D/wpa_supplicant: nl80211: Received scan results (6 BSSes)
2021-01-24 17:39:39.259 384-765/system_process D/WifiNl80211Manager: Scan result ready event
2021-01-24 17:39:39.260 513-513/? D/wpa_supplicant: wlan0: BSS: Start scan result update 1
2021-01-24 17:39:39.260 513-513/? D/wpa_supplicant: wlan0: BSS: Add new id 0 BSSID a0:39:ee:8a:b0:16 SSID 'LinkSys' freq 2437
2021-01-24 17:39:39.260 384-765/system_process D/WifiNative: Scan result ready event
2021-01-24 17:39:39.260 513-513/? D/wpa_supplicant: wlan0: BSS: Add new id 1 BSSID a2:39:ee:8a:b0:17 SSID 'LinkGuest' freq 2437
2021-01-24 17:39:39.260 513-513/? D/wpa_supplicant: wlan0: BSS: Add new id 2 BSSID e0:ce:c3:c7:ee:15 SSID 'AKADO-0040' freq 2462
2021-01-24 17:39:39.260 513-513/? D/wpa_supplicant: wlan0: BSS: Add new id 3 BSSID ec:41:18:f5:f3:d9 SSID 'MIEPL REKTOR' freq 2417
2021-01-24 17:39:39.260 384-401/system_process I/EthernetTracker: interfaceLinkStateChanged, iface: wlan0, up: false
2021-01-24 17:39:39.260 513-513/? D/wpa_supplicant: wlan0: BSS: Add new id 4 BSSID e1:8c:2a:99:b5:92 SSID 'Hotspot 2.0' freq 2442 HESSID 2c:c5:d3:11:50:90
2021-01-24 17:39:39.260 513-513/? D/wpa_supplicant: wlan0: BSS: Add new id 5 BSSID a0:8e:78:01:c0:1e SSID 'AKADO-C018' freq 2412
2021-01-24 17:39:39.260 513-513/? D/wpa_supplicant: BSS: last_scan_res_used=6/32
2021-01-24 17:39:39.260 513-513/? D/wpa_supplicant: wlan0: New scan results available (own=0 ext=1)
2021-01-24 17:39:39.260 513-513/? D/wpa_supplicant: wlan0: Do not use results from externally requested scan operation for network selection
2021-01-24 17:39:39.261 513-513/? D/wpa_supplicant: RTM_NEWLINK: ifi_index=8 ifname=wlan0 wext ifi_family=0 ifi_flags=0x1003 ([UP])
2021-01-24 17:39:39.263 384-467/system_process D/WifiNl80211Manager: get 6 scan results from wificond
2021-01-24 17:39:39.277 384-467/system_process D/WifiNative: get 6 scan results from wificond
2021-01-24 17:39:39.278 384-467/system_process D/WifiAsyncChannel.WifiScanningService: sendMessage sendMessage message=159764
2021-01-24 17:39:39.283 384-467/system_process I/chatty: uid=1000(system) WifiScanningSer identical 22 lines
2021-01-24 17:39:39.283 384-467/system_process D/WifiAsyncChannel.WifiScanningService: sendMessage sendMessage message=159764
2021-01-24 17:39:39.284 384-467/system_process D/WifiAsyncChannel.WifiScanningService: sendMessage sendMessage message=159749
2021-01-24 17:39:39.285 384-467/system_process D/WifiAsyncChannel.WifiScanningService: sendMessage sendMessage message=159767
2021-01-24 17:39:39.286 384-467/system_process D/WifiAsyncChannel.WifiScanningService: sendMessage sendMessage message=159749
2021-01-24 17:39:39.286 384-467/system_process D/WifiAsyncChannel.WifiScanningService: sendMessage sendMessage message=159767
2021-01-24 17:39:39.287 384-467/system_process D/WifiAsyncChannel.WifiScanningService: sendMessage sendMessage message=159749
2021-01-24 17:39:39.287 384-464/system_process D/WifiScanRequestProxy: Scan results received
2021-01-24 17:39:39.287 384-464/system_process D/WifiScanRequestProxy: Received 6 scan results
2021-01-24 17:39:39.287 384-467/system_process D/WifiAsyncChannel.WifiScanningService: sendMessage sendMessage message=159749
2021-01-24 17:39:39.288 384-505/system_process D/WifiHealthMonitor:  2G scanResult count: 6, Above2g scanResult count: 0
2021-01-24 17:39:39.291 384-1401/system_process I/WifiService: getScanResults uid=1000
2021-01-24 17:39:39.295 384-1401/system_process I/WifiService: getWifiEnabledState uid=1000
2021-01-24 17:39:39.295 384-1401/system_process I/WifiService: getScanResults uid=1000
2021-01-24 17:39:39.298 384-1401/system_process I/WifiService: getSupportedFeatures uid=1000
2021-01-24 17:39:39.298 384-1401/system_process D/WifiAsyncChannel.WifiService: sendMessageSynchronously sendMessageSynchronously.send message=131133
2021-01-24 17:39:39.298 384-464/system_process D/WifiClientModeImpl:  DefaultState screen=on uid=1000 0 0
2021-01-24 17:39:39.299 384-1401/system_process D/WifiAsyncChannel.WifiService: sendMessageSynchronously sendMessageSynchronously.recv message=131133 sendingUid=1000
2021-01-24 17:39:39.308 384-1401/system_process I/WifiService: getSupportedFeatures uid=1000
2021-01-24 17:39:39.308 384-1401/system_process D/WifiAsyncChannel.WifiService: sendMessageSynchronously sendMessageSynchronously.send message=131133
2021-01-24 17:39:39.308 384-464/system_process D/WifiClientModeImpl:  DefaultState screen=on uid=1000 0 0
2021-01-24 17:39:39.308 384-1401/system_process D/WifiAsyncChannel.WifiService: sendMessageSynchronously sendMessageSynchronously.recv message=131133 sendingUid=1000
2021-01-24 17:39:39.313 384-1401/system_process I/WifiService: getSupportedFeatures uid=1000
2021-01-24 17:39:39.313 384-1401/system_process D/WifiAsyncChannel.WifiService: sendMessageSynchronously sendMessageSynchronously.send message=131133
2021-01-24 17:39:39.314 384-464/system_process D/WifiClientModeImpl:  DefaultState screen=on uid=1000 0 0
2021-01-24 17:39:39.314 384-1401/system_process D/WifiAsyncChannel.WifiService: sendMessageSynchronously sendMessageSynchronously.recv message=131133 sendingUid=1000
2021-01-24 17:39:39.328 384-1401/system_process I/WifiService: getSupportedFeatures uid=1000
2021-01-24 17:39:39.328 384-1401/system_process D/WifiAsyncChannel.WifiService: sendMessageSynchronously sendMessageSynchronously.send message=131133
2021-01-24 17:39:39.329 384-464/system_process D/WifiClientModeImpl:  DefaultState screen=on uid=1000 0 0
2021-01-24 17:39:39.329 384-1401/system_process D/WifiAsyncChannel.WifiService: sendMessageSynchronously sendMessageSynchronously.recv message=131133 sendingUid=1000
2021-01-24 17:39:39.336 384-1401/system_process I/WifiService: getSupportedFeatures uid=1000
2021-01-24 17:39:39.337 384-1401/system_process D/WifiAsyncChannel.WifiService: sendMessageSynchronously sendMessageSynchronously.send message=131133
2021-01-24 17:39:39.337 384-464/system_process D/WifiClientModeImpl:  DefaultState screen=on uid=1000 0 0
2021-01-24 17:39:39.338 384-1401/system_process D/WifiAsyncChannel.WifiService: sendMessageSynchronously sendMessageSynchronously.recv message=131133 sendingUid=1000
2021-01-24 17:39:39.344 384-1401/system_process I/WifiService: getSupportedFeatures uid=1000
2021-01-24 17:39:39.344 384-1401/system_process D/WifiAsyncChannel.WifiService: sendMessageSynchronously sendMessageSynchronously.send message=131133
2021-01-24 17:39:39.344 384-464/system_process D/WifiClientModeImpl:  DefaultState screen=on uid=1000 0 0
2021-01-24 17:39:39.345 384-1401/system_process D/WifiAsyncChannel.WifiService: sendMessageSynchronously sendMessageSynchronously.recv message=131133 sendingUid=1000
2021-01-24 17:39:39.354 384-1401/system_process I/WifiService: getWifiConfigsForMatchedNetworkSuggestions uid=1000
2021-01-24 17:39:39.365 384-1401/system_process I/WifiService: getMatchingPasspointConfigurations uid=1000
2021-01-24 17:39:39.367 513-513/? D/wpa_supplicant: wlan0: ANQP: Query Request to e1:8c:2a:99:b5:92 for 5 id(s)
2021-01-24 17:39:39.368 513-513/? D/wpa_supplicant: GAS: Use own MAC address as the transmitter address (no driver rand capa
2021-01-24 17:39:39.368 513-513/? I/wpa_supplicant: wlan0: GAS-QUERY-START addr=e1:8c:2a:99:b5:92 dialog_token=229 freq=2442
2021-01-24 17:39:39.368 513-513/? D/wpa_supplicant: wlan0: Add radio work 'gas-query'@0xb2680a90
2021-01-24 17:39:39.368 513-513/? D/wpa_supplicant: wlan0: First radio work item in the queue - schedule start immediately
2021-01-24 17:39:39.368 513-513/? D/wpa_supplicant: wlan0: ANQP: Query started with dialog token 229
2021-01-24 17:39:39.368 513-513/? D/wpa_supplicant: wlan0: Starting radio work 'gas-query'@0xb2680a90 after 0.000292 second wait
2021-01-24 17:39:39.368 513-513/? D/wpa_supplicant: GAS: Send action frame to e1:8c:2a:99:b5:92 len=37 freq=2442 prot=0 using src addr ac:a2:52:f4:a5:e3
2021-01-24 17:39:39.368 513-513/? D/wpa_supplicant: Off-channel: Send action frame: freq=2442 dst=e1:8c:2a:99:b5:92 src=ac:a2:52:f4:a5:e3 bssid=e1:8c:2a:99:b5:92 len=37
2021-01-24 17:39:39.368 513-513/? D/wpa_supplicant: Off-channel: Stored pending action frame (dst=e1:8c:2a:99:b5:92 pending_action_tx=0xb26c2b30)
2021-01-24 17:39:39.368 513-513/? D/wpa_supplicant: nl80211: Send Action frame (ifindex=8, freq=2442 MHz wait=1000 ms no_cck=0 offchanok=1)
2021-01-24 17:39:39.369 384-464/system_process D/SupplicantStaIfaceHal: ISupplicantStaIface.initiateAnqpQuery succeeded
2021-01-24 17:39:39.369 384-464/system_process D/HS20: ANQP initiated on e1:8c:2a:99:b5:92
2021-01-24 17:39:39.370 384-464/system_process D/PasspointManager: ANQP entry not found for: e1:8c:2a:99:b5:92:<Hotspot 2.0>
2021-01-24 17:39:39.374 384-1401/system_process I/WifiService: getMatchingOsuProviders uid=1000
2021-01-24 17:39:39.375 384-1401/system_process I/WifiService: getMatchingPasspointConfigsForOsuProviders uid=1000
2021-01-24 17:39:39.378 384-1401/system_process I/WifiService: getWifiEnabledState uid=1000
reboot
Rpi4Alex commented 3 years ago

Konsta Hi. I've just noticed a very confusing thing. I changed my box from standard one (https://ae01.alicdn.com/kf/H7b384e742d274837b315fce47bb389134.jpg_q50.jpg) to passive one (https://http2.mlstatic.com/D_NQ_NP_830683-MLM31962423570_082019-O.webp) and it stopped rebooting. I keep on looking afer its behavior... 24hrs of stable work so far.

KonstaT commented 3 years ago

@Rpi4Alex No, unlikely that case has anything to do with this. This issue is to do with specific type of wifi network being in your surroundings. In your case it was the BSSID e1:8c:2a:99:b5:92 SSID 'Hotspot 2.0' network which is most likely now just turned off.

Rpi4Alex commented 3 years ago

Konsta, Hi. Thanks once again for your quick feedbacks. It is per se worth a lot. No,... You are right . The new case doesn't resolve the issue. It still reboots. Herewith i attach the latest log but it seems to me that it doesn'r show anything since the device was connected via wifi. There are 4 full zip reports in a raw ( https://yadi.sk/d/2_vxccbc6M9W_w ). I will try to connect it via usb (waiting for the device) later on.

KonstaT commented 3 years ago

BSSID e1:8c:2a:99:b5:92 SSID 'Hotspot 2.0' is there on fullLogBeforeReboot4.txt at least. Is that your or some neighbors network? Try switching it off if you can.

Rpi4Alex commented 3 years ago

I dont even see this network in the list of availabele wifi networks. Is there a way to block the specified network (or number of networks) from detection (exclude it from the availability list) and stick to one predefined by user?

KonstaT commented 3 years ago

@Rpi4Alex No, I'm not aware of any way you could that. This issue needs some proper way to resolve it anyway.

Lets keep the discussion on this issue.

doolijb commented 3 years ago

Concur, having this issue as well at a complex with lots of wifi signals.

msugirin commented 3 years ago

And I thought I was the only one in the boat - I even bought a new RP4 with more memory just to isolate it's not a faulty RP4. I tried 2 different RP4s (2gb and 8gb) model and 3 different SD cards and all have the same reboot problem.

Wifi disabled - all looks good.

Here's a logcat right before it rebooted, hopefully it helps?

03-01 21:03:32.135   702  1803 W TileUtils: Found com.android.settings.Settings$DataUsageSummaryActivity for intent Intent { act=com.android.settings.action.SETTINGS pkg=com.android.settings } missing metadata com.android.settings.category
03-01 21:03:32.150   386   893 I WifiService: startScan uid=1000
03-01 21:03:32.162   702   702 W ConnectivityManager.CallbackHandler: callback not found for CALLBACK_AVAILABLE message
03-01 21:03:32.168   386   902 D PackageManager: Instant App installer not found with android.intent.action.INSTALL_INSTANT_APP_PACKAGE
03-01 21:03:32.169   386   902 D PackageManager: Clear ephemeral installer activity
03-01 21:03:32.176   702  1803 D SettingsActivity: Enabled state changed for some tiles, reloading all categories {com.android.settings/com.android.settings.Settings$PowerUsageSummaryActivity},
03-01 21:03:32.181   702  1667 W TileUtils: Found com.android.settings.Settings$DataUsageSummaryActivity for intent Intent { act=com.android.settings.action.SETTINGS pkg=com.android.settings } missing metadata com.android.settings.category
03-01 21:03:32.596   386   496 D ConnectivityService: releasing NetworkRequest [ TRACK_DEFAULT id=18, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED Uid: 1000] ] (release request)
03-01 21:03:32.600   562   562 V KeyguardUpdateMonitor: onSubscriptionInfoChanged()
03-01 21:03:33.161   386   413 E system_server: No package ID 7f found for ID 0x7f080249.
03-01 21:03:33.161   386   413 E system_server: No package ID 7f found for ID 0x7f121205.
03-01 21:03:33.161   386   413 E system_server: No package ID 7f found for ID 0x7f080248.
03-01 21:03:33.161   386   413 E system_server: No package ID 7f found for ID 0x7f120517.
03-01 21:03:33.162   386   413 E system_server: No package ID 7f found for ID 0x7f080247.
03-01 21:03:33.162   386   413 E system_server: No package ID 7f found for ID 0x7f120b34.
03-01 21:03:33.168   386   482 I InputReader: Reconfiguring input devices.  changes=0x00000010
03-01 21:03:33.172   702  1667 W TileUtils: Found com.android.settings.Settings$DataUsageSummaryActivity for intent Intent { act=com.android.settings.action.SETTINGS pkg=com.android.settings } missing metadata com.android.settings.category
03-01 21:03:33.176   386   386 I Telecom : DefaultDialerCache: Refreshing default dialer for user 0: now null: DDC.oR@AA8
03-01 21:03:33.178   386   413 W Searchables: No global search activity found
03-01 21:03:33.180   386   413 W VoiceInteractionManagerService: no available voice interaction services found for user 0
03-01 21:03:34.174   386   893 D WificondControl: Scan result ready event
03-01 21:03:34.179   386   495 D WificondScannerImpl: Filtering out 2 scan results.
03-01 21:03:34.180   386   405 I EthernetTracker: interfaceLinkStateChanged, iface: wlan0, up: true
03-01 21:03:34.181   202   202 I netd    : interfaceGetCfg("wlan0") <0.79ms>
03-01 21:03:34.187   636   636 I wpa_supplicant: wlan0: GAS-QUERY-START addr=ee:22:80:12:75:fd dialog_token=0 freq=5240
03-01 21:03:34.187   386   493 D HS20    : ANQP initiated on ee:22:80:12:75:fd
03-01 21:03:34.188   386   493 D PasspointManager: ANQP entry not found for: ee:22:80:12:75:fd:<AlticeWiFi>
03-01 21:03:34.212   702   702 D WifiSettings: onAccessPointsChanged (WifiTracker) callback initiated
msugirin commented 3 years ago

I did some more additional digging to see what this Wifi actually is, and it seems to be a public hotspot from a Cable Company in the area.

Is it maybe related to that?

KonstaT commented 3 years ago

@msugirin Yes, as commented before this seems to be related to Hotspot 2.0/802.11u/Access Network Query Protocol (ANQP) networks being present in the network environment. BSSID ee:22:80:12:75:fd SSID 'AlticeWiFi' in your case.

Which LineageOS version is this BTW? There's been some mixed reports about this being fixed in LineageOS 18.

msugirin commented 3 years ago

This is on the January release of 17.1 (lineage-17.1-20210122). I tried the same on the 18.1 (lineage-18.1-20210214) release and ran into the same issue during the setup screen.

I can retry it on 18.1 and also check the logcats - will post later

msugirin commented 3 years ago

Same issue on latest 18.1 build:

03-02 08:34:10.929   391  1760 D WifiNl80211Manager: Scan result ready event
03-02 08:34:10.929   391  1760 D WifiNative: Scan result ready event
03-02 08:34:10.957   391   471 D PasspointManager: ANQP entry not found for: ee:22:80:12:75:fd:<AlticeWiFi>
03-02 08:34:10.962   520   520 I wpa_supplicant: wlan0: GAS-QUERY-START addr=ee:22:80:12:75:fd dialog_token=165 freq=5240
03-02 08:34:10.963   391   471 D HS20    : ANQP initiated on ee:22:80:12:75:fd
03-02 08:34:10.963   391   471 D PasspointManager: ANQP entry not found for: ee:22:80:12:75:fd:<AlticeWiFi>
03-02 08:34:11.014   391   471 D ANQPRequestManager: Not allowed to send ANQP request to ee:22:80:12:75:fd for another 9 seconds
03-02 08:34:11.015   391   471 D PasspointManager: ANQP entry not found for: ee:22:80:12:75:fd:<AlticeWiFi>
12-31 13:14:05.477     0     0 F         : 8<--- cut here ---
12-31 13:14:05.480     0     0 F         : Unable to handle kernel NULL pointer dereference at virtual address 00000000
03-02 08:34:11.029   391   442 I system_server: oneway function results will be dropped but finished with status OK and parcel size 4
NumberOneGit commented 3 years ago

Same issue here. It looks like RPi and Android won't be an option for a lot of us in densely populated areas until this is resolved. I have the same issue wherever I try to boot up in NYC.

matthuo333 commented 3 years ago

Is there any conclusion on this question?

matthuo333 commented 3 years ago

How to set to skip Ethernet detection? Because I am in China, I need a VPN, but there is no place to set the gateway address during the detection. After entering the system, I need to manually set the network

yashsurya commented 3 years ago

is it fixed yet? i am using raspi 3b+ with 5v 3amp power supply and it only works when i disable wifi with the config.txt file .

KonstaT commented 2 years ago

This issue should be now resolved in one way with the latest LineageOS 19 build (https://konstakang.com/devices/rpi4/LineageOS19/). Please test and confirm that this is the case.

I'll also include similar fix to LineageOS 18 builds if/when there's another release.

msugirin commented 2 years ago

Looks promising so far! Just flashed the image (20211216) and seems to be holding. I tried earlier with (19.0.20211125), but that had also reboot issues.

Kept it on Wifi scanning for about 5 minutes so far and no reboots.

msugirin commented 2 years ago

Ran it all day, used different apps, downloaded/uninstalled apps. Not a single reboot :) so happy!

Now I can finally re-start my car-droid project :) thanks a bunch for all the hard work!!

SandervHemert commented 2 years ago

This issue should be now resolved in one way with the latest LineageOS 19 build (https://konstakang.com/devices/rpi4/LineageOS19/). Please test and confirm that this is the case.

I'll also include similar fix to LineageOS 18 builds if/when there's another release.

Hi KonstaT,

Thanks for this amazing build. Would this only solve it for the RPI 4 and not for the 3 like I have?

Thanks in advance!

KonstaT commented 2 years ago

Would this only solve it for the RPI 4 and not for the 3 like I have?

I have retired my Pi 3 from development so I won't be providing any builds with this fix.

SandervHemert commented 2 years ago

I get that! Thanks for getting back so quickly.