Hi,
I am trying to create WIFI access point using hostapd and dhcp-server.
everything was good until I tried to run this command:
iptables -t nat -A POSTROUTING -s 10.10.0.0/16 -o ppp0 -j MASQUERADE
I got a message that I should enable NAT in the kernel so I did, but after I changed the kernel I have a problem with the wcn36xx:
random: Cannot read from /dev/random: Resource temporarily unavailable
random: Only 0/20 bytes of strong random data available from /dev/random
random: Not enough entropy pool available for secure operations
WPA: Not enough entropy in random pool for secure operations - update keys later when the first station connects
[ 36.623912] remoteproc1: crash detected in soc:pronto_rproc: type fatal error
[ 36.623964] remoteproc1: handling crash #1 in soc:pronto_rproc
[ 36.630068] remoteproc1: recovering soc:pronto_rproc
[ 46.382853] wcn36xx: ERROR Timeout! No SMD response in 10000ms
[ 46.382913] wcn36xx: ERROR Sending hal_update_proberesp_tmpl failed
[ 56.386965] wcn36xx: ERROR Timeout! No SMD response in 10000ms
[ 56.387023] wcn36xx: ERROR Sending hal_config_bss failed
[ 56.391943] wcn36xx: ERROR Beacon is to big: beacon size=-93
[ 66.394791] wcn36xx: ERROR Timeout! No SMD response in 10000ms
[ 66.394851] wcn36xx: ERROR Sending hal_set_link_st failed
[ 66.402952] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
^C^C^C^C[ 76.410773] wcn36xx: ERROR Timeout! No SMD response in 10000ms
[ 76.410832] wcn36xx: ERROR Sending hal_set_bsskey failed
wlan0: interface state UNINITIALIZED->ENABLE[ 76.437491] wcn36xx: WARNING vif 02:23:04:22:28:f6 not found
D
wlan0: AP-ENABLED
[ 76.446090] pgd = ffffffc035d2b000LED
, *pud=00000000b5d3e003, *pmd=0000000000000000
[ 76.458036] Internal error: Oops: 96000006 [#1] PREEMPT SMP
[ 76.458295] Modules linked in: wcn36xx wcn36xx_platform
[ 76.468978] CPU: 2 PID: 1587 Comm: hostapd Not tainted 4.4.8-linaro-lt-qcom #18
[ 76.469062] Hardware name: Qualcomm Technologies, Inc. APQ 8016 SBC (DT)
[ 76.476187] task: ffffffc034ab8000 ti: ffffffc0349f8000 task.ti: ffffffc0349f8000
[ 76.483263] PC is at wcn36xx_start_tx+0x130/0x670 [wcn36xx]
[ 76.490625] LR is at wcn36xx_start_tx+0x544/0x670 [wcn36xx]
[ 76.495887] pc : [<ffffffbffc00b6f8>] lr : [<ffffffbffc00bb0c>] pstate: 60000145
[ 76.501438] sp : ffffffc0349fb690
[ 76.509073] x29: ffffffc0349fb690 x28: ffffffbffc014f00
[ 76.517399] x27: ffffffc0358a7b00 x26: 0000000000000000
[ 76.522694] x25: 0000000000000000 x24: ffffffc035962200
[ 76.527988] x23: ffffffc034a60600 x22: ffffffc0358a7b0a
[ 76.533285] x21: ffffffc035962210 x20: ffffff8003695000
[ 76.538578] x19: 0000000000000000 x18: 00000000ca62c1d6
[ 76.543874] x17: 0000007fb4e58280 x16: ffffffc0006fab24
[ 76.549170] x15: 000000000000003a x14: 0ffffffffffffffe
[ 76.554464] x13: 0000000000000008 x12: 0000000000000006
[ 76.559760] x11: 0000000000000041 x10: ffffffc0349fb400
[ 76.565055] x9 : ffffffc0349fb400 x8 : 0000000000000261
[ 76.570348] x7 : 0000000000000001 x6 : ffffffc00010e244
[ 76.575644] x5 : 0000000000000000 x4 : 0000000000000000
[ 76.580939] x3 : 0000000000000000 x2 : ffffffc03bf51618
[ 76.586235] x1 : ffffffc034ab8000 x0 : 0000000000000030
[ 76.591525]
[ 76.591713] Process hostapd (pid: 1587, stack limit = 0xffffffc0349f8020)
[ 76.593284] Stack: (0xffffffc0349fb690 to 0xffffffc0349fc000)
[ 76.599951] b680: ffffffc0349fb6f0 ffffffbffc008efc
[ 76.605683] b6a0: ffffffc035962200 ffffffc034a60600 ffffffc035960e30 0000000000000000
[ 76.613496] b6c0: ffffffc0349fb858 ffffffc034a60628 0000000000000000 0000000000000000
[ 76.621308] b6e0: ffffffc034a60600 ffffffc035960a80 ffffffc0349fb710 ffffffc0008f3388
[ 76.629122] b700: ffffffc0349fb858 ffffffc0324eb8d8 ffffffc0349fb7a0 ffffffc0008f35a0
[ 76.636933] b720: 0000000000000000 ffffffc035960a80 0000000000000000 000000000000001a
[ 76.644746] b740: 000000000000001a ffffffc0349fb858 ffffffc034a60600 ffffffc034a60628
[ 76.652559] b760: 0000000000000000 ffffffc034a60600 ffffffc035960a80 0000000000000000
[ 76.660371] b780: ffffffc000c7e858 ffffffc0324eaa00 ffffffc0349fb810 0000000000000000
[ 76.668183] b7a0: ffffffc0349fb810 ffffffc0008f6468 ffffffc034a60600 0000000000000000
[ 76.675996] b7c0: ffffffc0324eaa00 000000000000001a ffffffc035960a80 0000000000000000
[ 76.683809] b7e0: ffffffc0349fba38 ffffffc000dba000 0000000000000000 ffffffc000372e48
[ 76.691621] b800: ffffffc0349fb910 ffffffc000105ed8 ffffffc0349fb8d0 ffffffc0008f6540
[ 76.699434] b820: ffffffc034a60600 ffffffc0324eaa00 ffffffc035960a80 0000000000000000
[ 76.707246] b840: ffffffc0324eaa10 ffffffc0359619a8 0000000000000000 ffffffc0349fb858
[ 76.715058] b860: ffffffc0349fb858 0000000000000000 0000000000000000 0000000000000000
[ 76.722870] b880: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
[ 76.730683] b8a0: 0000000000000000 ffffffc035960a80 ffffffc0324eaa00 0000000000000000
[ 76.738496] b8c0: 0000000000000000 0000000000000000 ffffffc0349fb900 ffffffc0008f78f8
[ 76.746308] b8e0: ffffffc034a60600 ffffffc0324eaa00 ffffffc0324eaa00 ffffffc035960a80
[ 76.754121] b900: ffffffc0349fb930 ffffffc0008ea02c ffffffc034a60a58 0000000000200001
[ 76.761934] b920: ffffffc0349fba60 00000000008e9bf0 ffffffc0349fb9b0 ffffffc0008c220c
[ 76.769746] b940: ffffffc0324eaa10 ffffffc035960000 ffffffc0352d6028 ffffffc034a60900
[ 76.777559] b960: ffffffc034ad8014 0000000000000004 ffffffc000e3f000 0000000000000014
[ 76.785370] b980: ffffffc036227800 ffffffc0349f8000 ffffffc000e511a0 000000000000003b
[ 76.793183] b9a0: ffffffc0324eaa10 ffffffc0358a7b80 ffffffc0349fb9f0 ffffffc0008b9f9c
[ 76.800996] b9c0: ffffffc0349fbaf8 ffffffc035960000 ffffffc0324eaa10 ffffffc034a60900
[ 76.808808] b9e0: ffffffc0349fbaf8 ffffffc035960000 ffffffc0349fba90 ffffffc0007407b4
[ 76.816621] ba00: ffffffc000a1ab98 ffffffc034a60300 ffffffc000e511a0 ffffffc0352d6000
[ 76.824432] ba20: 0000000000000000 0000000000000004 ffffffc0349fba40 0000000000000001
[ 76.832245] ba40: ffffffc0349fba90 ffffffbffc0147c0 0000096c00000000 ffffffc000000000
[ 76.840058] ba60: ffffffbffc0147c0 0000000000000000 ffffffc0352d6028 000000000000001a
[ 76.847871] ba80: 0000000000000000 0000000000000000 ffffffc0349fbb40 ffffffc0007409d4
[ 76.855683] baa0: ffffffc000e511a0 ffffffc034a60300 ffffffc00074093c ffffffc034a60300
[ 76.863496] bac0: 0000000000000000 0000000000000000 0000000000000000 0000000000000008
[ 76.871309] bae0: ffffffc034a60300 ffffffc034a60300 0000000000000000 18c006335730498e
[ 76.879122] bb00: ffffffc0352d6000 ffffffc0352d6010 ffffffc0352d6014 ffffffc036227800
[ 76.886933] bb20: ffffffc000e3f000 ffffffc035960000 ffffffc0324eaa10 ffffffc036227000
[ 76.894747] bb40: ffffffc0349fbb70 ffffffc00073f918 ffffffc0352d6000 ffffffc034a60300
[ 76.902559] bb60: ffffffc0349fbb80 ffffffc0352d6000 ffffffc0349fbba0 ffffffc0007405bc
[ 76.910371] bb80: ffffffc000e43448 ffffffc034a60300 0000000000000044 0000000000000008
[ 76.918183] bba0: ffffffc0349fbbc0 ffffffc00073f20c ffffffc036227000 ffffffc03249d800
[ 76.925995] bbc0: ffffffc0349fbc20 ffffffc00073f694 0000000000000000 ffffffc0349fbe68
[ 76.933809] bbe0: ffffffc03249d800 0000000000000000 0000000000000044 ffffffc00073f670
[ 76.941620] bc00: 00000000ffffff97 00000000349fbe68 ffffffc03249d800 7fffffffffffffff
[ 76.949434] bc20: ffffffc0349fbca0 ffffffc0006f95e4 ffffffc0349fbe68 0000000000000000
[ 76.957246] bc40: 0000000000000000 ffffffc034e10000 0000000000000000 ffffffc0349fbd08
[ 76.965059] bc60: 0000000000000000 00000000000000d3 ffffffc000934000 ffffffc0006f9b00
[ 76.972868] bc80: ffffffc0349c4100 0000000000000000 0000000000000633 0000000000000000
[ 76.980680] bca0: ffffffc0349fbcb0 ffffffc0006f9cd8 ffffffc0349fbe30 ffffffc0006faae0
[ 76.988493] bcc0: ffffffc034e10000 0000007fdd4bd258 0000000000000000 0000007fb4e58268
[ 76.996305] bce0: 0000000060000000 0000000000000015 000000000000011d ffffffc03602ddc0
[ 77.004118] bd00: 0000000000000000 ffffffc0349f8000 ffffffc000420f4c ffffffc034b35480
[ 77.011931] bd20: ffffffc0349fbd40 ffffffc000425088 0000000000000010 ffffffc000000000
[ 77.019743] bd40: ffffffc0349fbd50 ffffffc00041cadc ffffffc0349fbdc0 ffffffc0001d2e7c
[ 77.027556] bd60: ffffffc03602ddc0 ffffffc0349fbec8 0000007fb4c9c000 ffffffc0349fbec8
[ 77.035369] bd80: ffffffc0349fbe40 ffffffc0001d381c ffffffc03602ddc0 0000000000000029
[ 77.043181] bda0: ffffffc035c2dcd0 0000000000000002 0000000015859690 0000000000000044
[ 77.050994] bdc0: 000000000000011d 0000000000000040 ffffffc0349fbe00 ffffffc0001f1920
[ 77.058805] bde0: 0000000000000000 0000007fdd4bd258 0000000000000000 ffffffc03602ddc0
[ 77.066620] be00: ffffffc0349fbe10 ffffffc0006f9118 ffffffc0349fbe30 ffffffc0006faac4
[ 77.074431] be20: ffffffc0349fbe64 ffffffc0349fbe60 ffffffc0349fbec0 ffffffc0006fab34
[ 77.082244] be40: 0000000000000000 0000000015859100 ffffffffffffffff ffffffc03602ddc0
[ 77.090055] be60: fffffff700000000 ffffffc0349fbd30 000000000000000c ffffffc000000001
[ 77.097868] be80: 0000000000000000 0000000000000000 ffffffc0349fbdc0 0000000000000000
[ 77.105679] bea0: 0000000000000000 0000000000000000 0000007f00000000 0000000000000000
[ 77.113494] bec0: 0000007fdd4bd1e0 ffffffc000085cb0 0000000000000005 0000007fdd4bd258
[ 77.121305] bee0: 0000000000000000 0000000000000005 00000000158560cc 0000007fb5134810
[ 77.129118] bf00: 0000000015858080 0000000000000000 00000000000000d3 0000000000000000
[ 77.136930] bf20: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
[ 77.144742] bf40: 0000000000000000 0000007fb4d9120c 0000000000000000 0000007fb4e58280
[ 77.152556] bf60: 00000000ca62c1d6 00000000158560c0 0000000015859100 0000000015855fd0
[ 77.160369] bf80: 0000007fdd4bd258 0000007fdd4bd388 0000000000000000 0000007fdd4bd4e8
[ 77.168180] bfa0: 0000007fdd4bd408 00000000158574f0 000000000000001a 0000007fdd4bd1e0
[ 77.175993] bfc0: 0000007fb511cc80 0000007fdd4bd1e0 0000007fb4e58268 0000000060000000
[ 77.183805] bfe0: 0000000000000005 00000000000000d3 0000000000000000 0000000000000000
[ 77.191616] Call trace:
[ 77.199447] [<ffffffbffc00b6f8>] wcn36xx_start_tx+0x130/0x670 [wcn36xx]
[ 77.201705] [<ffffffbffc008efc>] wcn36xx_tx+0x2c/0x48 [wcn36xx]
[ 77.208286] [<ffffffc0008f3388>] ieee80211_tx_frags+0x188/0x314
[ 77.214185] [<ffffffc0008f35a0>] __ieee80211_tx+0x8c/0x1f4
[ 77.220088] [<ffffffc0008f6468>] ieee80211_tx+0xbc/0x108
[ 77.225644] [<ffffffc0008f6540>] ieee80211_xmit+0x8c/0xb4
[ 77.231112] [<ffffffc0008f78f8>] __ieee80211_tx_skb_tid_band+0x7c/0x98
[ 77.236408] [<ffffffc0008ea02c>] ieee80211_mgmt_tx+0x580/0x958
[ 77.242832] [<ffffffc0008c220c>] cfg80211_mlme_mgmt_tx+0xb4/0x220
[ 77.248647] [<ffffffc0008b9f9c>] nl80211_tx_mgmt+0x20c/0x310
[ 77.254812] [<ffffffc0007407b4>] genl_family_rcv_msg+0x1e4/0x36c
[ 77.260539] [<ffffffc0007409d4>] genl_rcv_msg+0x98/0xdc
[ 77.266528] [<ffffffc00073f918>] netlink_rcv_skb+0xc4/0xec
[ 77.271476] [<ffffffc0007405bc>] genl_rcv+0x34/0x48
[ 77.277031] [<ffffffc00073f20c>] netlink_unicast+0x168/0x210
[ 77.281806] [<ffffffc00073f694>] netlink_sendmsg+0x328/0x38c
[ 77.287710] [<ffffffc0006f95e4>] sock_sendmsg+0x18/0x2c
[ 77.293350] [<ffffffc0006f9cd8>] ___sys_sendmsg+0x224/0x234
[ 77.298299] [<ffffffc0006faae0>] __sys_sendmsg+0x40/0x84
[ 77.303853] [<ffffffc0006fab34>] SyS_sendmsg+0x10/0x20
[ 77.309411] [<ffffffc000085cb0>] el0_svc_naked+0x24/0x28
[ 77.314359] Code: d28000c2 aa1603e1 950d9024 35ffff20 (39410661)
[ 77.319859] ---[ end trace 11bb6a70b9db6b2c ]---
[ 77.325827] Kernel panic - not syncing: Fatal exception in interrupt
[ 77.330507] CPU0: stopping
[ 77.336840] CPU: 0 PID: 1418 Comm: systemd-journal Tainted: G D 4.4.8-linaro-lt-qcom #18
[ 77.339361] Hardware name: Qualcomm Technologies, Inc. APQ 8016 SBC (DT)
[ 77.348645] Call trace:
[ 77.355417] [<ffffffc000089954>] dump_backtrace+0x0/0x14c
[ 77.357589] [<ffffffc000089ab4>] show_stack+0x14/0x1c
[ 77.363143] [<ffffffc000370fd0>] dump_stack+0xb4/0xf0
[ 77.368177] [<ffffffc00008ed90>] handle_IPI+0x194/0x1a0
[ 77.373212] [<ffffffc00008253c>] gic_handle_irq+0x84/0x9c
[ 77.378245] Exception stack(0xffffffc0349c3ab0 to 0xffffffc0349c3bd0)
[ 77.383804] 3aa0: ffffffc035bbf118 ffffffc035c2dcd0
[ 77.390229] 3ac0: ffffffc0349c3c00 ffffffc000175d80 0000000020000145 ffffffc00008559c
[ 77.398041] 3ae0: 0000000000000000 ffffffc035c2dcd0 ffffffc03681b000 0000000000000000
[ 77.405855] 3b00: ffffffc0352dd400 0000000000000001 0000000000000000 ffffffc00041fa58
[ 77.413666] 3b20: ffffffc0349c0000 0000000000000000 0000000000000001 7f7f7f7f7f7f7f7f
[ 77.421478] 3b40: 0101010101010101 0000000000000038 0000000000000001 fffffffffffffe1d
[ 77.429292] 3b60: ffffffc0001d2a08 0000007f992b41d0 fffffffffffffe09 ffffffc035bbf118
[ 77.437105] 3b80: ffffffc035c2dcd0 ffffffc035bbefd0 ffffffc0001d7dd0 ffffffc0360b6e40
[ 77.444915] 3ba0: 0000000000000000 ffffffc03640a000 0000000000000000 0000000000000000
[ 77.452728] 3bc0: ffffffc0349c3d90 ffffffc0349c3c00
[ 77.460538] [<ffffffc0000855ac>] el1_irq+0x6c/0xe0
[ 77.465226] [<ffffffc0001d12fc>] do_dentry_open+0x258/0x310
[ 77.470088] [<ffffffc0001d2558>] vfs_open+0x60/0x6c
[ 77.475555] [<ffffffc0001e1348>] path_openat+0x484/0xd90
[ 77.480417] [<ffffffc0001e2f64>] do_filp_open+0x60/0xd8
[ 77.485974] [<ffffffc0001d2900>] do_sys_open+0x140/0x224
[ 77.490921] [<ffffffc0001d2a18>] SyS_openat+0x10/0x18
[ 77.496475] [<ffffffc000085cb0>] el0_svc_naked+0x24/0x28
[ 77.501423] CPU1: stopping
[ 77.506804] CPU: 1 PID: 0 Comm: swapper/1 Tainted: G D 4.4.8-linaro-lt-qcom #18
[ 77.509325] Hardware name: Qualcomm Technologies, Inc. APQ 8016 SBC (DT)
[ 77.517916] Call trace:
[ 77.524598] [<ffffffc000089954>] dump_backtrace+0x0/0x14c
[ 77.526772] [<ffffffc000089ab4>] show_stack+0x14/0x1c
[ 77.532327] [<ffffffc000370fd0>] dump_stack+0xb4/0xf0
[ 77.537360] [<ffffffc00008ed90>] handle_IPI+0x194/0x1a0
[ 77.542396] [<ffffffc00008253c>] gic_handle_irq+0x84/0x9c
[ 77.547429] Exception stack(0xffffffc0368d3e00 to 0xffffffc0368d3f20)
[ 77.552988] 3e00: ffffffc000da2000 ffffffc000da2ce8 ffffffc0368d3f50 ffffffc000086814
[ 77.559413] 3e20: 0000000060000145 ffffffc00008559c ffffffc000086810 0000000000000000
[ 77.567225] 3e40: 0000000000000001 0000000000000000 0000000000000000 000000003b1c2000
[ 77.575039] 3e60: 0000000000000000 ffffffc00013247c ffffffc0368d0000 0000000000000000
[ 77.582850] 3e80: 0000000000000001 0000000000000000 2020205b203a6c65 33303835342e3637
[ 77.590663] 3ea0: 7265746e49205d36 0000007f916597d8 ffffffc0001d4154 0000007f91714400
[ 77.598476] 3ec0: fffffffffffffe09 ffffffc000da2000 ffffffc000da2ce8 ffffffc000d7dc40
[ 77.606288] 3ee0: ffffffc0368d3f70 ffffffc000d815b0 ffffffc00093db70 ffffffc000da2000
[ 77.614100] 3f00: ffffffc0368d0000 0000000000000000 0000000000000000 ffffffc0368d3f50
[ 77.621913] [<ffffffc0000855ac>] el1_irq+0x6c/0xe0
[ 77.629723] [<ffffffc0000f93f8>] default_idle_call+0x1c/0x34
[ 77.634410] [<ffffffc0000f9638>] cpu_startup_entry+0x1d4/0x228
[ 77.640226] [<ffffffc00008e884>] secondary_start_kernel+0x138/0x15c
[ 77.645868] [<000000008008282c>] 0x8008282c
[ 77.652029] CPU3: stopping
[ 77.656196] CPU: 3 PID: 0 Comm: swapper/3 Tainted: G D 4.4.8-linaro-lt-qcom #18
[ 77.658978] Hardware name: Qualcomm Technologies, Inc. APQ 8016 SBC (DT)
[ 77.667569] Call trace:
[ 77.674251] [<ffffffc000089954>] dump_backtrace+0x0/0x14c
[ 77.676424] [<ffffffc000089ab4>] show_stack+0x14/0x1c
[ 77.681978] [<ffffffc000370fd0>] dump_stack+0xb4/0xf0
[ 77.687013] [<ffffffc00008ed90>] handle_IPI+0x194/0x1a0
[ 77.692047] [<ffffffc00008253c>] gic_handle_irq+0x84/0x9c
[ 77.697082] Exception stack(0xffffffc0368e3e00 to 0xffffffc0368e3f20)
[ 77.702640] 3e00: ffffffc000da2000 ffffffc000da2ce8 ffffffc0368e3f50 ffffffc000086814
[ 77.709067] 3e20: 0000000060000145 ffffffc00008559c ffffffc000086810 0000000000000000
[ 77.716878] 3e40: 0000000000000001 0000000000000000 0000000000000000 000000003b1e2000
[ 77.724691] 3e60: 0000000000000000 ffffffc00013247c ffffffc0368e0000 0000000000000000
[ 77.732504] 3e80: 0000000000000001 0000000000000000 203a333278205d38 3063666666666666
[ 77.740316] 3ea0: 3030363036613433 fffffffffffffe1d ffffffc0006fa6a8 0000007f7abfb0f8
[ 77.748129] 3ec0: fffffffffffffe09 ffffffc000da2000 ffffffc000da2ce8 ffffffc000d7dc40
[ 77.755941] 3ee0: ffffffc0368e3f70 ffffffc000d815b0 ffffffc00093db70 ffffffc000da2000
[ 77.763753] 3f00: ffffffc0368e0000 0000000000000000 0000000000000000 ffffffc0368e3f50
[ 77.771565] [<ffffffc0000855ac>] el1_irq+0x6c/0xe0
[ 77.779374] [<ffffffc0000f93f8>] default_idle_call+0x1c/0x34
[ 77.784063] [<ffffffc0000f9638>] cpu_startup_entry+0x1d4/0x228
[ 77.789879] [<ffffffc00008e884>] secondary_start_kernel+0x138/0x15c
[ 77.795520] [<000000008008282c>] 0x8008282c
[ 77.801686] ---[ end Kernel panic - not syncing: Fatal exception in interrupt
Can someone please tell me why this is happening?