I have noticed powering down the board using the power button causes the following exception, and WPA_supplicant wont load. Only remedy is to reflash the board
[ OK ] Started Daemon to receive the wpa_supplicant event.
[ 12.915348] BUG: unable to handle kernel NULL pointer dereference at 00000020
[ 12.915446] IP:  wl_cfgp2p_generate_bss_mac+0xb/0x50 [bcm4334x]
[ 12.915612] *pdpt = 00000000357d1001 *pde = 0000000000000000
[ 12.915684] Oops: 0002 [# 1] PREEMPT SMP
[ 12.915747] Modules linked in: bcm4334x(O) usb_f_acm u_serial g_multi libcomposite bcm_bt_lpm [last unloaded: bcm4334x]
[ 12.915898] CPU: 0 PID: 269 Comm: wpa_supplicant Tainted: G O 3.10.17-poky-edison+ # 2
[ 12.915978] Hardware name: Intel Corporation Merrifield/BODEGA BAY, BIOS 542 2015.01.21:18.19.48
[ 12.916059] task: f5133210 ti: f509c000 task.ti: f509c000
[ 12.916116] EIP: 0060: EFLAGS: 00210246 CPU: 0
[ 12.916249] EIP is at wl_cfgp2p_generate_bss_mac+0xb/0x50 [bcm4334x]
[ 12.916312] EAX: f509dbb2 EBX: 00000000 ECX: 00000022 EDX: 0000001c
[ 12.916373] ESI: f513bc00 EDI: f5420468 EBP: f509dba0 ESP: f509db9c
[ 12.916434] DS: 007b ES: 007b FS: 00d8 GS: 0033 SS: 0068
[ 12.916489] CR0: 8005003b CR2: 00000020 CR3: 35791000 CR4: 001007f0
[ 12.916549] DR0: 00000000 DR1: 00000000 DR2: 00000000 DR3: 00000000
[ 12.916608] DR6: ffff0ff0 DR7: 00000400
[ 12.916648] Stack:
[ 12.916676] f5420460 f509dbc4 f8e0b92d 00000808 0079d737 4b78fc50 660ea987 f5455800
[ 12.916804] f54201c0 f54206a4 f509dc2c f8e04a98 00000000 f509c000 c1735aa7 00001000
[ 12.916930] 000102d0 f56ff000 f509dc1f f5420460 f56f4000 f5ef3520 0000000a f54206a4
[ 12.917056] Call Trace:
[ 12.917181]  wl_cfgp2p_add_p2p_disc_if+0xad/0x1a0 [bcm4334x]
[ 12.917334]  wl_cfg80211_add_virtual_iface+0x438/0xa90 [bcm4334x]
[ 12.917419]  ? __alloc_skb+0x67/0x1a0
[ 12.917486]  ? __alloc_skb+0x76/0x1a0
[ 12.917555]  nl80211_new_interface+0x122/0x490
[ 12.917628]  ? __cfg80211_rdev_from_attrs+0x1d0/0x1d0
[ 12.917702]  genl_rcv_msg+0x253/0x370
[ 12.917769]  ? ctrl_dumpfamily+0xf0/0xf0
[ 12.917834]  netlink_rcv_skb+0x8e/0xb0
[ 12.917896]  genl_rcv+0x21/0x30
[ 12.917955]  netlink_unicast+0x114/0x180
[ 12.918020]  netlink_sendmsg+0x202/0x350
[ 12.918090]  sock_sendmsg+0x7b/0xb0
[ 12.918152]  ? sub_preempt_count+0x95/0xf0
[ 12.918221]  ? __kunmap_atomic+0x33/0x90
[ 12.918287]  ? get_page_from_freelist+0x3d5/0x580
[ 12.918364]  ___sys_sendmsg+0x2df/0x2f0
[ 12.918432]  ? unlock_page+0x40/0x50
[ 12.918492]  ? __do_fault+0x260/0x500
[ 12.918558]  ? get_parent_ip+0xb/0x40
[ 12.918619]  ? sub_preempt_count+0x95/0xf0
[ 12.918685]  ? lru_cache_add_lru+0x23/0x40
[ 12.918750]  ? page_add_new_anon_rmap+0x60/0xb0
[ 12.918834]  ? __percpu_counter_add+0x88/0xd0
[ 12.918909]  ? handle_mm_fault+0xbe/0x120
[ 12.918981]  ? sockfd_lookup_light+0x1c/0x60
[ 12.919055]  __sys_sendmsg+0x38/0x70
[ 12.919128]  SyS_sendmsg+0x16/0x20
[ 12.919195]  SyS_socketcall+0x2d3/0x330
[ 12.919267]  ? copy_to_user+0x44/0x50
[ 12.919335]  ? __do_page_fault+0x550/0x550
[ 12.919406]  ? trace_hardirqs_on_thunk+0xc/0x10
[ 12.919483]  syscall_call+0x7/0xb
[ 12.919539] Code: f8 e8 47 ff ac c8 c7 04 24 10 d0 e3 f8 e8 3b ff ac c8 c7 45 a8 00 00 00 00 e9 63 fe ff ff 66 90 55 89 e5 53 3e 8d 74 26 00 31 db <66> 89 5a 04 31 db c7 02 00 00 00 00 66 89 59 04 c7 01 00 00 00
[ 12.920212] EIP:  wl_cfgp2p_generate_bss_mac+0xb/0x50 [bcm4334x] SS:ESP 0068:f509db9c
[ 12.920399] CR2: 0000000000000020
I'm using the 3.0 release and I have tried to replicate the behavior you have on your board with and without the wpa_supplicant service enabled, but I haven't been able to replicate the same output. I'm reviewing the logs with dmesg | grep wpa after every boot. I'm using the PWR button to power down and the RESET one to power again the board.
I know you were working with the connman service and other configurations. Since when is this happening? Have you modified another service?
Please let us know all the changes you have done on the image and what you are currently running so we could try to replicate it and find a solution to this.
I have seen this issue before moving to Connman, all 4 times it happened after trying powering down the image with same results. In all cases after reboot I see some jobs still running to shutdown services like Network Sync, hostapd, etc. and eventually failing loading wpa_supplicant.
Let's try by re-flashing the board by using the flashall script: /docs/DOC-25154 https://communities.intel.com/docs/DOC-25154, just to be sure that you have all the default configurations. Please post a screenshot of what you get after df –h and uname -a
As I understand the problem is while using the PWR button. Do you have problems while using poweroff or shutdown from the console? Are you restarting the board with the RESET button (SW1UI5)?
Is this happening always or just sometimes?
I saw on the screenshots that there are some files in /home. Please run the flashall script: /docs/DOC-25154 https://communities.intel.com/docs/DOC-25154, this will ensure to have all the default settings and configurations.
I've been trying to replicate your issue but I haven't been able to see the same outcome.
Could you post the systemctl status nameofservice of the services that are not being uploaded?
Please run the commands right after flashing the board.
If you are setting something else, please let me know so I could replicate it.
So I only have one Edison which is in production with him since this is his artificial pancreas. Our other Edison stopped working and trying to see what we can do through warranty and customer support (no luck yet). As soon as I get a second one, or this happens on our main rig I will do and send u the logs for sure.