Git Product home page Git Product logo

edison-linux's Introduction

DISCONTINUATION OF PROJECT.

This project will no longer be maintained by Intel.

Intel has ceased development and contributions including, but not limited to, maintenance, bug fixes, new releases, or updates, to this project.

Intel no longer accepts patches to this project.

If you have an ongoing need to use this project, are interested in independently developing it, or would like to maintain patches for the open source software community, please create your own fork of this project.

edison-linux's People

Contributors

acmel avatar adrianbunk avatar airlied avatar arndb avatar axellin avatar bigguiness avatar broonie avatar bzolnier avatar danvet avatar davem330 avatar dhowells avatar ebiederm avatar geertu avatar gregkh avatar heicarst avatar htejun avatar hverkuil avatar ickle avatar jmberg-intel avatar joeperches avatar kaber avatar larsclausen avatar morimoto avatar neilbrown avatar olofj avatar pmundt avatar ralfbaechle avatar rddunlap avatar tiwai avatar torvalds avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

edison-linux's Issues

Cannot connect SPP using rfcomm

Step1.
1- Enable bluetooth on Edison1 and Edison2
"rfkill unblock bluetooth"
2- Start bluetoothctl on both devices
3- Edison1 :
power on
agent DisplayOnly
default-agent
discoverable on
4- Edison2: scan on
5- Edison2 : (also accept connection on Edison1)
trust [edison1 Mac]
pair [edison1 Mac]

Step2.
On edison 1 :
rfcomm listen 0 22

On Edison2:
rfcomm connect 0 [Edison1 Mac] 22

Failed info:
Can't connect RFCOMM socket: Connection refused

SST ACPI probe is missing code

A fix for the PCI-style SST probe (used by Edison) most likely broke the ACPI-style SST probe (not used by Edison). The fix moved code from context_init (shared by both probes) directly into the PCI probe function in order to resolve a dependency. This does not affect the Edison hardware but is something that we might want to address later. The relevant commit is 3a75bd0

Failed to start softAp

root@edison:# systemctl start hostapd
Job for hostapd.service failed. See 'systemctl status hostapd.service' and 'journalctl -xn' for details.
root@edison:
# systemctl status hostapd.service
● hostapd.service - Hostap daemon service
Loaded: loaded (/lib/systemd/system/hostapd.service; disabled)
Active: failed (Result: signal) since Wed 2016-01-20 07:25:51 UTC; 10s ago
Process: 363 ExecStartPre=/sbin/modprobe -r bcm4334x (code=killed, signal=SEGV)

Jan 20 07:25:51 edison systemd[1]: hostapd.service: control process exited, code=killed status=11
Jan 20 07:25:51 edison systemd[1]: Failed to start Hostap daemon service.
Jan 20 07:25:51 edison systemd[1]: Unit hostapd.service entered failed state.
root@edison:#
root@edison:
# journalctl -xn
-- Logs begin at Sat 2000-01-01 00:00:12 UTC, end at Wed 2016-01-20 07:32:14 UTC. --
Jan 20 07:32:14 edison xdk-daemon[697]: at Function.Module._load (module.js:280:25)
Jan 20 07:32:14 edison xdk-daemon[697]: at Module.require (module.js:364:17)
Jan 20 07:32:14 edison xdk-daemon[697]: at require (module.js:380:17)
Jan 20 07:32:14 edison xdk-daemon[697]: at Object. (/opt/xdk-daemon/current/node_modules/mdns/lib/dns_sd.js:32:22)
Jan 20 07:32:14 edison xdk-daemon[697]: at Module._compile (module.js:456:26)
Jan 20 07:32:14 edison xdk-daemon[697]: at Object.Module._extensions..js (module.js:474:10)
Jan 20 07:32:14 edison xdk-daemon[697]: at Module.load (module.js:356:32)
Jan 20 07:32:14 edison xdk-daemon[697]: at Function.Module._load (module.js:312:12)
Jan 20 07:32:14 edison xdk-daemon[697]: at Module.require (module.js:364:17)
Jan 20 07:32:14 edison xdk-daemon[697]: ps process exited with code 8

Boot irq warning

Using current head of 3.19 WIP branch I always get the following warning when booting my edison:

[    2.213782] Driver 'mmcblk' needs updating - please use bus_type methods
[    2.213879] sdhci: Secure Digital Host Controller Interface driver
[    2.213894] sdhci: Copyright(c) Pierre Ossman
[    2.213997] sdhci-pci 0000:00:01.0: SDHCI controller found [8086:1190] (rev 1)
[    2.214050] ------------[ cut here ]------------
[    2.214085] WARNING: CPU: 1 PID: 1 at /home/andrei/work/resin/resin-edison/build/tmp/work-shared/edison/kernel-source/kernel/irq/irqdomain.c:284 irq_domain_associate+0x1a3/0x200()
[    2.214100] error: virq0 is already associated
[    2.214111] Modules linked in:

[    2.214142] CPU: 1 PID: 1 Comm: swapper/0 Not tainted 3.19.5-yocto-standard #1
[    2.214156] Hardware name: Intel Corporation Merrifield/BODEGA BAY, BIOS 466 2014.06.23:19.20.05
[    2.214169]  00000000 00000000 f6e0fc00 c19f08d7 f6e0fc40 f6e0fc30 c1253157 c1c24014
[    2.214219]  f6e0fc5c 00000001 c1c23f40 0000011c c12a4563 c12a4563 f6c05e00 f675e480
[    2.214267]  00000000 f6e0fc48 c12531c3 00000009 f6e0fc40 c1c24014 f6e0fc5c f6e0fc7c
[    2.214314] Call Trace:
[    2.214349]  [<c19f08d7>] dump_stack+0x4b/0x75
[    2.214375]  [<c1253157>] warn_slowpath_common+0x87/0xc0
[    2.214402]  [<c12a4563>] ? irq_domain_associate+0x1a3/0x200
[    2.214426]  [<c12a4563>] ? irq_domain_associate+0x1a3/0x200
[    2.214449]  [<c12531c3>] warn_slowpath_fmt+0x33/0x40
[    2.214475]  [<c12a4563>] irq_domain_associate+0x1a3/0x200
[    2.214502]  [<c12a45ff>] irq_domain_associate_many+0x3f/0xa0
[    2.214528]  [<c19f559d>] ? mutex_unlock+0xd/0x10
[    2.214551]  [<c19ecb88>] ? __irq_alloc_descs+0xe8/0x1b0
[    2.214578]  [<c12a46a2>] irq_create_strict_mappings+0x42/0x50
[    2.214605]  [<c12338fa>] mp_map_pin_to_irq+0x1ca/0x200
[    2.214631]  [<c1233f40>] mp_map_gsi_to_irq+0x90/0xc0
[    2.214658]  [<c184fb59>] intel_mid_pci_irq_enable+0x59/0x80
[    2.214683]  [<c1850390>] pcibios_enable_device+0x30/0x40
[    2.214708]  [<c1618f6f>] do_pci_enable_device+0x4f/0xd0
[    2.214732]  [<c1619e4d>] pci_enable_device_flags+0x9d/0xe0
[    2.214757]  [<c1619ee2>] pci_enable_device+0x12/0x20
[    2.214782]  [<c17dc4b2>] sdhci_pci_probe+0xd2/0x950
[    2.214810]  [<c161bb5f>] pci_device_probe+0x6f/0xd0
[    2.214834]  [<c13ba2a5>] ? sysfs_create_link+0x25/0x50
[    2.214860]  [<c16ada0f>] driver_probe_device+0x7f/0x3c0
[    2.214885]  [<c161ba92>] ? pci_match_device+0xd2/0x100
[    2.214910]  [<c16ade09>] __driver_attach+0x79/0x80
[    2.214933]  [<c16add90>] ? __device_attach+0x40/0x40
[    2.214955]  [<c16abdaf>] bus_for_each_dev+0x4f/0x80
[    2.214979]  [<c16ad51e>] driver_attach+0x1e/0x20
[    2.215001]  [<c16add90>] ? __device_attach+0x40/0x40
[    2.215024]  [<c16ad157>] bus_add_driver+0x157/0x240
[    2.215049]  [<c1e01c8f>] ? sdhci_drv_init+0x1b/0x1b
[    2.215072]  [<c1e01c8f>] ? sdhci_drv_init+0x1b/0x1b
[    2.215095]  [<c16ae56d>] driver_register+0x5d/0xf0
[    2.215119]  [<c1351cce>] ? kfree+0x9e/0x1d0
[    2.215144]  [<c15eb7d0>] ? kvasprintf+0x40/0x50
[    2.215168]  [<c161ab9a>] __pci_register_driver+0x4a/0x50
[    2.215192]  [<c1e01ca3>] sdhci_driver_init+0x14/0x16
[    2.215216]  [<c120044a>] do_one_initcall+0xaa/0x1e0
[    2.215239]  [<c1e01c8f>] ? sdhci_drv_init+0x1b/0x1b
[    2.215263]  [<c1dcc4e3>] ? repair_env_string+0x12/0x54
[    2.215288]  [<c126d0a9>] ? parse_args+0x299/0x510
[    2.215317]  [<c1dccbeb>] kernel_init_freeable+0x147/0x1ef
[    2.215345]  [<c1273a63>] ? preempt_count_sub+0xb3/0x110
[    2.215368]  [<c127262d>] ? finish_task_switch+0x5d/0xd0
[    2.215392]  [<c19eb630>] kernel_init+0x10/0xe0
[    2.215415]  [<c19f7441>] ret_from_kernel_thread+0x21/0x30
[    2.215436]  [<c19eb620>] ? rest_init+0x80/0x80
[    2.215476] ---[ end trace 96410e869c63de19 ]---
[    2.215566] flis_addr mapped addr: f8498900
[    2.215694] sdhci-pci 0000:00:01.0: rte_addr mapped addr: f849c000
[    2.317076] mmc0: BKOPS_EN bit is not set
[    2.324368] mmc0: new HS200 MMC card at address 0001
[    2.325192] mmcblk0: mmc0:0001 H4G1d� 3.64 GiB 
[    2.332236]  mmcblk0: p1 p2 p3 p4 p5 p6 p7 p8 p9 p10 p11
[    2.337906] mmc0: SDHCI controller on PCI [0000:00:01.0] using ADMA

Regards,
Andrei

Please consider individual functional patches

Hi

I'm eagerly reviewing the changes in wip-edison-3.19.5.. :) I'm currently receiving errors trying to compile the branch, but since it's a WIP I guess that's expected.

Could I trouble you to do something though? The current Intel process of having a HUGE patch file that contains all drivers and all architecture changes makes it very difficult to selectively get one piece working and integrated with a later codebase.

If you could split the commit into patches related to the base architecture changes, the power changes, the USB TO Go changes, and so forth, it'd be a lot easier to manage (and get submitted upstream).

Thanks for your consideration (and time doing the changes you are making at all!)

Oskar

The name of bluetooth isn't consistent with default when get it via "hciconfig get name".

root@edison:~# hciconfig get name
hci0: Type: BR/EDR Bus: UART
BD Address: 00:43:34:B1:13:58 ACL MTU: 1021:8 SCO MTU: 64:1
Name: 'BCM43340B0 37.4 MHz WLBGA_iTR Intel Edison-0122-N'

root@edison:~# bluetoothctl
[NEW] Controller 00:43:34:B1:13:58 edison [default]
[NEW] Device D6:1D:96:48:30:4F Designer Mouse

archermind@archermind-Z97X-UD7-TH:/media$ hcitool scan
Scanning ...
00:43:34:B1:13:58 edison

Failed to connect the BT PAN (GN/NAP) without connect edison with PC at frist.

Terminal 1
root@edison:#rfkill unblock bluetooth
root@edison:
# bluetoothctl
[NEW] Controller 00:11:22:33:55:DDedison [default]
[bluetooth]# agent on
Agent registered
[bluetooth]# default-agent
Default agent request successful
[bluetooth]# power on
Changing power on succeeded
[bluetooth]# discoverable on
Changing discoverable on succeeded

Terminal 2
archermind@archermind-HP-Pro-3330-MT:$./bluetooth_pan_gn_PC.sh
Warning: Permanently added'192.168.2.15' (ECDSA) to the list of known hosts.
mkdir: cannot create directory 'test':File exists
Warning: Permanently added'192.168.2.15' (ECDSA) to the list of known hosts.
bluezutils.py 100% 1567 1.5KB/s 00:00
…........
test-nap 100% 889 0.9KB/s 00:00
test-network 100% 1156 1.1KB/s 00:00
test-pan 100% 1243 1.2KB/s 00:00
test-profile 100% 3243 3.2KB/s 00:00
test-proximity 100% 1891 1.9KB/s 00:00
test-sap-server 100% 3440 3.4KB/s 00:00
test-thermometer 100% 2772 2.7KB/s 00:00
Warning: Permanently added'192.168.2.15' (ECDSA) to the list of known hosts.
Let's turn the DUT in Discoverable Mode
Run the pand service on PC : sudo pand-n --connect 00:11:22:33:55:DD --service GN
Enter a letter and Press enter when it's done !

Terminal 3
archermind@archermind-HP-Pro-3330-MT:$sudo pand -n --connect 00:11:22:33:55:DD --service GN
pand[26930]: Bluetooth PAN daemonversion 4.98
pand[26930]: Connecting to00:11:22:33:55:DD
pand[26930]: Connect to00:11:22:33:55:DD failed. Host is down(112)
archermind@archermind-HP-Pro-3330-MT:
$

We have tried to find some ways to solve this issue.
The first one, we input the “power on” after running the script ,but it is not successful.
The second one, after run the script,we have connected the edison to PC by manually. then run sudo pand -n --connect 00:11:22:33:55:DD --service GN can be worked successfully.

Wifi issue is related to the new broadcom driver.

I tested with

ifconfig wlan0 up

ifconfig wlan0 down

ifconfig wlan0 up

SIOCSIFFLAGS: Operation not permitted

And with the kernel log:
[ 122.208362] wl_android_wifi_on in
[ 122.208381] wifi_platform_set_power = 1
[ 122.496787] bcmsdh_sdmmc: Failed to enable F1 Err: 0xffffffc2dhdsdio_probe: ChipClkCSR access: err 0 wrote 0x28 read 0x00 (1)
[ 122.575153] dhdsdio_probe: ChipClkCSR access: err 0 wrote 0x28 read 0x00 (2)
[ 122.645215] dhdsdio_probe: ChipClkCSR access: err 0 wrote 0x28 read 0x00 (3)
[ 122.697165] dhd_net_bus_devreset: dhd_bus_devreset: -35
[ 122.697203]
[ 122.697203] Retry WIFI ON procedure (1)

failed to restart bluetooth driver

root@edison:~# systemctl stop bluetoothctl
Failed to stop bluetoothctl.service: Unit bluetoothctl.service not loaded.

root@edison:~# systemctl start bluetoothctl
Failed to start bluetoothctl.service: Unit bluetoothctl.service failed to load: No such file or directory.

root@edison:~# bluetoothctl
[NEW] Controller 00:11:22:33:55:66 edison [default]
[bluetooth]# agent on
Agent registered
[bluetooth]# default-agent
Default agent request successful
[bluetooth]# discoverable on
Failed to set discoverable on: org.bluez.Error.Failed

How to replace one variable into TOS

Now I want to define one struct time by myself, and I catch the delay time between rx and ip_rcv, but I come across one problem. That's how I can replace the time into TOS when the packets are transmitting in networking. Thank you so much!

Missing double-quote in wip-edison-3.19.5

Hi

There's a missing quote at the end of this file. It leads to a warning about multi-line items being unsupported

diff --git a/drivers/misc/Kconfig b/drivers/misc/Kconfig
index 2e900f7..8c732bd 100644
--- a/drivers/misc/Kconfig
+++ b/drivers/misc/Kconfig
@@ -554,5 +554,5 @@ source "drivers/misc/mic/Kconfig"
 source "drivers/misc/genwqe/Kconfig"
 source "drivers/misc/echo/Kconfig"
 source "drivers/misc/cxl/Kconfig"
-source "drivers/misc/bcm-lpm/Kconfig
+source "drivers/misc/bcm-lpm/Kconfig"
 endmenu

Wifi scan errors occur in certain circumstances

There are two circumstances we have found where the following error periodically occurs:

CFG80211-ERROR) wl_cfg80211_sched_scan_start : Invalid sched scan req!! n_ssids:1

One circumstance is when scanning in an environment where there are no APs present.
The other circumstance is on a Yocto Fido system with the 3.10 kernel, and with hostapd added to the system, this occurs after starting and stopping hostapd.

spi_sync never ending on Edison with MCP2515 can controller

Hi,

I am using an Intel Edison with a MCP2515 can controller.
(my fork: https://github.com/jpilet/edison-linux/tree/edison-3.10.17-anemobox-mcp2515)

I configured the mcp251x driver to use the edison spi cs0. It works: I can "candump" the interface can0 for a while, and properly read and write from and to the bus.

However, after a few hours, the can interface stops working and dmesg tells me:

[ 5759.821413] INFO: task irq/304-mcp251x:521 blocked for more than 120 seconds.
[ 5759.821504] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
[ 5759.821579] irq/304-mcp251x D f5757a60  6544   521      2 0x00000000
[ 5759.821623]  f579bd64 00000046 c18673a6 f5757a60 f579bd20 c1c00000 f5cd8000 a2b704e8
[ 5759.821681]  0000043e f5757a60 f73fdc00 f5751bd0 f5757a60 f64eeb44 f6c0e000 f579bd2c
[ 5759.821735]  c127289f f6438900 f579bd34 c125ae1e f579bd50 c125c593 f6438900 00000007
[ 5759.821790] Call Trace:
[ 5759.821833]  [<c18673a6>] ? _raw_spin_unlock_irqrestore+0x26/0x60
[ 5759.821866]  [<c127289f>] ? wake_up_process+0x1f/0x40
[ 5759.821893]  [<c125ae1e>] ? wake_up_worker+0x1e/0x20
[ 5759.821919]  [<c125c593>] ? insert_work+0x53/0x90
[ 5759.821947]  [<c1867327>] ? _raw_spin_unlock+0x17/0x40
[ 5759.821973]  [<c125cf3f>] ? __queue_work+0x10f/0x340
[ 5759.822000]  [<c1866223>] schedule+0x23/0x60
[ 5759.822027]  [<c1863885>] schedule_timeout+0x165/0x2a0
[ 5759.822060]  [<c1270ebb>] ? get_parent_ip+0xb/0x40
[ 5759.822086]  [<c186adb5>] ? sub_preempt_count+0x95/0xf0
[ 5759.822112]  [<c1270ebb>] ? get_parent_ip+0xb/0x40
[ 5759.822140]  [<c18652db>] wait_for_completion+0xab/0xe0
[ 5759.822165]  [<c12728e0>] ? wake_up_state+0x20/0x20
[ 5759.822194]  [<c15b1b78>] __spi_sync+0x68/0xb0
[ 5759.822218]  [<c1860101>] ? panic+0xfe/0x178
[ 5759.822247]  [<c15b1bcf>] spi_sync+0xf/0x20
[ 5759.822279]  [<f8468134>] mcp251x_spi_trans+0x94/0xc0 [mcp251x]
[ 5759.822307]  [<c13215f4>] ? kmem_cache_alloc+0xd4/0x1b0
[ 5759.822338]  [<c15b1c00>] ? spi_sync_locked+0x20/0x20
[ 5759.822369]  [<f84686d2>] mcp251x_hw_rx+0x72/0x290 [mcp251x]
[ 5759.822402]  [<f84697c2>] mcp251x_can_ist+0x292/0x3b0 [mcp251x]
[ 5759.822429]  [<c18673fd>] ? _raw_spin_unlock_irq+0x1d/0x40
[ 5759.822459]  [<c12b6cf8>] irq_thread_fn+0x18/0x30
[ 5759.822486]  [<c12b71f0>] irq_thread+0x110/0x140
[ 5759.822512]  [<c12b6ce0>] ? irq_finalize_oneshot.part.29+0xb0/0xb0
[ 5759.822539]  [<c12b6da0>] ? wake_threads_waitq+0x50/0x50
[ 5759.822566]  [<c12b70e0>] ? irq_thread_check_affinity+0x70/0x70
[ 5759.822591]  [<c1263610>] kthread+0xa0/0xb0
[ 5759.822616]  [<c186adb5>] ? sub_preempt_count+0x95/0xf0
[ 5759.822648]  [<c186cd37>] ret_from_kernel_thread+0x1b/0x28
[ 5759.822672]  [<c1263570>] ? kthread_create_on_node+0xc0/0xc0

It seems "spi_sync" never returns. The bug occurs randomly after a few hours of correct behavior. Could it be a locking problem?
Any idea?

I have seen @zhoushix's commits about SPI+DMA. However, if I enable dma for mcp151x or for spidev, the mcp151x driver can't access the controller (here https://github.com/jpilet/edison-linux/blob/9318ddd00bdc01a11f73ec6e7daeeb92aa241292/arch/x86/platform/intel-mid/device_libs/platform_mcp2515.c#L38 or here https://github.com/jpilet/edison-linux/blob/9318ddd00bdc01a11f73ec6e7daeeb92aa241292/arch/x86/platform/intel-mid/device_libs/platform_spidev.c#L29).
Am I missing something, or is it simply that the SPI+DMA code is not yet ready?

Thanks in advance for your help

Kernel always boots to recovery

Hi guys,

Using the 2a02f64 from 3.19 WIP, the kernel always boots in recovery.

Starting kernel ...

[    2.515815] bcove_thrm bcove_thrm: incorrect number of channels:8
[    2.521930] bcove_thrm bcove_thrm.0: platform data not found
[    2.529413] intel_powerclamp: Intel powerclamp does not run on family 6 model 74
[    3.076655] pmic_ccsm pmic_ccsm: Error reading battery profile from battid frmwrk
[    3.085004] pmic_ccsm pmic_ccsm: Battery Over heat exception
[    3.092173] pmic_ccsm pmic_ccsm: Battery0 temperature outside boundary
[    3.093342] pmic_ccsm pmic_ccsm.0: Error reading battery profile from battid frmwrk
[    3.106917] pmic_ccsm pmic_ccsm.0: Battery Over heat exception
[    3.107843] pmic_ccsm pmic_ccsm.0: Error creating debugfs entry!!
/init: line 20: syslogd: not found
starting version 225
mount: mounting /dev/loop0 on /update failed: Invalid argument
Missing recove�^H�Z�Y.KH�X]�,ZZ��$V����פ.ZY��
sh: can't access tty; job control turned off
/ # 
/ #

After a while of being in shell, the board freezes and reboots.

Here is a dmsg log: http://pastebin.com/AeABf9Z5

Regards,
Andrei

there is error log when plug in USB devices

  1. Plug in USBCamera
    root@edison:~# [ 278.106956] usb 1-1: device descriptor read/64, error -2
    [ 278.336938] usb 1-1: device descriptor read/64, error -2
    [ 278.686906] usb 1-1: device descriptor read/64, error -2
    [ 278.916866] usb 1-1: device descriptor read/64, error -2
    [ 284.336142] usb 1-1: 3:1: cannot get freq at ep 0x82
    [ 289.755399] usb 1-1: 3:1: cannot get freq at ep 0x82
  2. Plug in USB Keyboard/Mouse
    root@edison:~# [ 439.064808] usb 1-1: device descriptor read/64, error -2
    [ 439.294775] usb 1-1: device descriptor read/64, error -2
    [ 439.644742] usb 1-1: device descriptor read/64, error -2
    [ 439.874712] usb 1-1: device descriptor read/64, error -2
  3. Plug in USB disk
    [ 818.782606] usb 1-1: device descriptor read/64, error -2
    [ 819.012579] usb 1-1: device descriptor read/64, error -2
    [ 819.362556] usb 1-1: device descriptor read/64, error -2
    [ 819.592468] usb 1-1: device descriptor read/64, error -2
    [ 927.987582] usb 1-1: device descriptor read/64, error -2
    [ 928.217507] usb 1-1: device descriptor read/64, error -2
    [ 928.567485] usb 1-1: device descriptor read/64, error -2
    [ 928.797423] usb 1-1: device descriptor read/64, error -2
    [ 931.375815] sd 5:0:0:0: [sda] No Caching mode page found
    [ 931.375891] sd 5:0:0:0: [sda] Assuming drive cache: write throughs

WPA supplicant service failed when trying to reconnect p2p connection.

Reproduce steps:
archermind@archermind-Z97X-UD7-TH:$ ssh [email protected]
Warning: Permanently added '192.168.2.15' (ECDSA) to the list of known hosts.
root@edison:
# systemctl status wpa_supplicant
鈼?wpa_supplicant.service - WPA supplicant service
Loaded: loaded (/lib/systemd/system/wpa_supplicant.service; disabled)
Active: inactive (dead)
root@edison:# systemctl start wpa_supplicant
root@edison:
# systemctl status wpa_supplicant
鈼?wpa_supplicant.service - WPA supplicant service
Loaded: loaded (/lib/systemd/system/wpa_supplicant.service; disabled)
Active: active (running) since Thu 2016-05-12 02:45:41 UTC; 1s ago
Process: 305 ExecStartPost=/bin/systemctl start wpa_supplicant_p2p_event (code=exited, status=0/SUCCESS)
Process: 302 ExecStartPost=/bin/systemctl start wpa_supplicant_wlan0_event (code=exited, status=0/SUCCESS)
Main PID: 301 (wpa_supplicant)
CGroup: /system.slice/wpa_supplicant.service
鈹斺攢301 /usr/sbin/wpa_supplicant -u -c/etc/wpa_supplicant/wpa_supplicant.conf -iwlan0 -Dnl80211 -puse_p2p_group_interface...
May 12 02:45:41 edison systemd[1]: Started WPA supplicant service.
root@edison:# wpa_cli -iwlan0 interface
Available interfaces:
p2p-dev-wlan0
wlan0
root@edison:
# wpa_cli -ip2p-dev-wlan0 p2p_set listen_channel 11
OK
root@edison:# wpa_cli -ip2p-dev-wlan0 set persistent_reconnect 1
OK
root@edison:
# wpa_cli -ip2p-dev-wlan0 p2p_set go_apsd 0
OK
root@edison:# wpa_cli -ip2p-dev-wlan0 p2p_find
OK
root@edison:
# wpa_cli -ip2p-dev-wlan0 p2p_peers
0e:84:dc:be:cb:e0
7a:4b:87:a2:94:22
root@edison:# wpa_cli -ip2p-dev-wlan0 p2p_connect 7a:4b:87:a2:94:22 94094152 persistent join
OK
root@edison:
# wpa_cli -iwlan0 interface
Available interfaces:
p2p-wlan0-0
p2p-dev-wlan0
wlan0

root@edison:# wpa_cli status -ip2p-wlan0-0
bssid=7a:4b:87:a2:14:22
ssid=DIRECT-0xabc
id=0
mode=station
pairwise_cipher=NONE
group_cipher=NONE
key_mgmt=UNKNOWN
wpa_state=ASSOCIATED
p2p_device_address=7a:4b:87:9e:9f:96
address=7a:4b:87:9e:1f:96
root@edison:
#
root@edison:# wpa_cli -ip2p-dev-wlan0 p2p_group_remove p2p-wlan0-0
OK
root@edison:
# wpa_cli -ip2p-dev-wlan0 p2p_connect 7a:4b:87:a2:94:22 94117226 persistent join
OK
root@edison:# wpa_cli -iwlan0 interface
Available interfaces:
p2p-wlan0-1
p2p-dev-wlan0
wlan0
root@edison:
# wpa_cli status -ip2p-wlan0-1
wpa_state=SCANNING
p2p_device_address=7a:4b:87:9e:9f:96
address=7a:4b:87:9e:1f:96
root@edison:# wpa_cli -iwlan0 interface
Failed to connect to non-global ctrl_ifname: wlan0 error: Connection refused
root@edison:
# wpa_cli status -ip2p-wlan0-1
Failed to connect to non-global ctrl_ifname: p2p-wlan0-1 error: Connection refused
root@edison:#
root@edison:
# systemctl status wpa_supplicant
鈼?wpa_supplicant.service - WPA supplicant service
Loaded: loaded (/lib/systemd/system/wpa_supplicant.service; disabled)
Active: failed (Result: signal) since Thu 2016-05-12 02:48:21 UTC; 3min 33s ago
Process: 374 ExecStopPost=/bin/systemctl stop wpa_supplicant_p2p_event (code=exited, status=0/SUCCESS)
Process: 369 ExecStopPost=/bin/systemctl stop wpa_supplicant_wlan0_event (code=exited, status=0/SUCCESS)
Process: 305 ExecStartPost=/bin/systemctl start wpa_supplicant_p2p_event (code=exited, status=0/SUCCESS)
Process: 302 ExecStartPost=/bin/systemctl start wpa_supplicant_wlan0_event (code=exited, status=0/SUCCESS)
Process: 301 ExecStart=/usr/sbin/wpa_supplicant -u -c/etc/wpa_supplicant/wpa_supplicant.conf -iwlan0 -Dnl80211 -puse_p2p_group_interface=1p2p_device=1 -m/etc/wpa_supplicant/p2p_supplicant.conf -O /var/run/wpa_supplicant -e /etc/wpa_supplicant/entropy.bin (code=killed, signal=KILL)
Main PID: 301 (code=killed, signal=KILL)

May 12 02:45:41 edison systemd[1]: Started WPA supplicant service.
May 12 02:48:17 edison systemd[1]: wpa_supplicant.service: main process exited, code=killed, status=9/KILL
May 12 02:48:21 edison systemd[1]: Unit wpa_supplicant.service entered failed state.

And dmesg log:
[ 247.180584] dhd_wlfc_init(): successfully enabled bdcv2 tlv signaling, 79
[ 247.181581] dhd_wlfc_init(): wlfc_mode=0x0, ret=-23
[ 247.193454] Register interface [p2p-wlan0-1] MAC: 7a:4b:87:9e:1f:96
[ 247.193454]
[ 247.195011] CFG80211-ERROR) wl_cfg80211_add_virtual_iface : virtual interface(p2p-wlan0-1) is created net attach done
[ 247.195039] CFG80211-ERROR) dhd_cfg80211_set_p2p_info : Set : op_mode=0x0035
[ 247.291233] CFG80211-ERROR) wl_escan_handler : escan is not ready ndev f5beb800 drv_status 0x0 e_type 69 e_states 8
[ 247.318376] CFG80211-ERROR) wl_escan_handler : escan is not ready ndev f5beb800 drv_status 0x0 e_type 69 e_states 8
[ 247.400666] CFG80211-ERROR) wl_escan_handler : escan is not ready ndev f5beb800 drv_status 0x0 e_type 69 e_states 8
[ 247.401943] CFG80211-ERROR) wl_escan_handler : escan is not ready ndev f5beb800 drv_status 0x0 e_type 69 e_states 8
[ 247.402051] CFG80211-ERROR) wl_escan_handler : escan is not ready ndev f5beb800 drv_status 0x0 e_type 69 e_states 8
[ 247.413353] CFG80211-ERROR) wl_escan_handler : escan is not ready ndev f5beb800 drv_status 0x0 e_type 69 e_states 8
[ 247.433906] CFG80211-ERROR) wl_escan_handler : escan is not ready ndev f5beb800 drv_status 0x0 e_type 69 e_states 8
[ 247.454578] CFG80211-ERROR) wl_escan_handler : escan is not ready ndev f5beb800 drv_status 0x0 e_type 69 e_states 8
[ 247.473793] CFG80211-ERROR) wl_escan_handler : escan is not ready ndev f5beb800 drv_status 0x0 e_type 69 e_states 0
[ 257.258616] CFG80211-ERROR) wl_scan_timeout : timer expired
[ 257.258841] CFG80211-ERROR) wl_escan_handler : escan is not ready ndev f59ee800 drv_status 0x0 e_type 69 e_states 2
[ 257.277419] BUG: unable to handle kernel NULL pointer dereference at (null)
[ 257.277521] IP: [] wl_cfg80211_connect+0x486/0x1bf0 [bcm4334x]
[ 257.277671] *pdpt = 00000000351f2001 *pde = 0000000000000000
[ 257.277734] Oops: 0002 [#1] PREEMPT SMP
[ 257.277789] Modules linked in: usb_f_acm u_serial usb_f_ecm g_multi usb_f_rndis usb_f_mass_storage u_ether libcomposite bcm_bt_lpm bcm4334x(O)
[ 257.277961] CPU: 1 PID: 301 Comm: wpa_supplicant Tainted: G W O 3.19.5-yocto-standard+ #1
[ 257.278029] Hardware name: Intel Corporation Merrifield/BODEGA BAY, BIOS 542 2015.01.21:18.19.48
[ 257.278096] task: f5bb2d10 ti: f5bda000 task.ti: f5bda000
[ 257.278146] EIP: 0060:[] EFLAGS: 00210246 CPU: 1
[ 257.278321] EAX: 00000000 EBX: 00000001 ECX: f5bdb9d0 EDX: 00000000
[ 257.278372] ESI: f5beb800 EDI: f5bdba50 EBP: f5bdba10 ESP: f5bdb974
[ 257.278423] DS: 007b ES: 007b FS: 00d8 GS: 0033 SS: 0068
[ 257.278470] CR0: 8005003b CR2: 00000000 CR3: 35125000 CR4: 001007f0
[ 257.278518] Stack:
[ 257.278542] 00000002 f5270444 00000043 00000001 00000000 c1d6d540 f5bdba1c c1320782
[ 257.278656] c1d6d540 00000001 00000141 c1d6cac0 f8db3e08 f5160420 f5bdba50 f5160664
[ 257.278767] 00000032 f5160420 f5160180 00000002 00000000 0000b9d4 00000000 00000002
[ 257.278878] Call Trace:
[ 257.278930] [] ? __alloc_pages_nodemask+0x122/0x890
[ 257.278995] [] ? preempt_count_sub+0xaf/0x110
[ 257.279053] [] ? __mutex_lock_slowpath+0x208/0x3a0
[ 257.279112] [] ? __mutex_lock_slowpath+0x208/0x3a0
[ 257.279170] [] ? __might_sleep+0x3a/0xb0
[ 257.279294] [] ? wl_cfg80211_stop_ap+0x3c0/0x3c0 [bcm4334x]
[ 257.279357] [] cfg80211_connect+0xc7/0x4b0
[ 257.279412] [] nl80211_connect+0x2eb/0x3c0
[ 257.279479] [] genl_rcv_msg+0x219/0x380
[ 257.279535] [] ? ctrl_dumpfamily+0xf0/0xf0
[ 257.279588] [] netlink_rcv_skb+0x8e/0xb0
[ 257.279639] [] genl_rcv+0x21/0x30
[ 257.279687] [] netlink_unicast+0x131/0x1b0
[ 257.279741] [] ? memcpy_fromiovec+0x47/0x80
[ 257.279796] [] netlink_sendmsg+0x240/0x3e0
[ 257.279855] [] do_sock_sendmsg+0xbd/0xe0
[ 257.279914] [] ? copy_msghdr_from_user+0x145/0x1d0
[ 257.279973] [] ___sys_sendmsg+0x20f/0x250
[ 257.280027] [] ? ___sys_recvmsg+0xd4/0x140
[ 257.280081] [] ? sock_recvmsg_nosec+0xa0/0xa0
[ 257.280138] [] ? __might_sleep+0x3a/0xb0
[ 257.280194] [] ? move_addr_to_user+0xa2/0xc0
[ 257.280250] [] ? SYSC_getsockname+0xb3/0xc0
[ 257.280303] [] ? preempt_count_sub+0xaf/0x110
[ 257.280356] [] ? get_parent_ip+0xb/0x40
[ 257.280408] [] ? __fdget+0x12/0x20
[ 257.280457] [] ? sockfd_lookup_light+0x14/0x70
[ 257.280511] [] __sys_sendmsg+0x38/0x70
[ 257.280565] [] SYSC_socketcall+0x816/0x9f0
[ 257.280621] [] ? __slab_free+0x2cc/0x390
[ 257.280675] [] ? __local_bh_enable_ip+0x61/0xe0
[ 257.280730] [] ? preempt_count_sub+0xaf/0x110
[ 257.280784] [] ? preempt_count_sub+0xaf/0x110
[ 257.280839] [] ? kmem_cache_free+0x79/0x1b0
[ 257.280893] [] ? sock_destroy_inode+0x28/0x30
[ 257.280946] [] ? get_parent_ip+0xb/0x40
[ 257.280996] [] ? preempt_count_sub+0xaf/0x110
[ 257.281052] [] ? dentry_free+0x4c/0x90
[ 257.281104] [] ? dentry_free+0x4c/0x90
[ 257.281155] [] ? __dentry_kill+0x10b/0x1b0
[ 257.281210] [] ? mntput_no_expire+0x25/0x120
[ 257.281264] [] ? mntput+0x20/0x40
[ 257.281312] [] ? __fput+0x164/0x1e0
[ 257.281365] [] SyS_socketcall+0x13/0x20
[ 257.281415] [] syscall_call+0x7/0x7
[ 257.281469] [] ? __ww_mutex_lock_interruptible_slowpath+0x640/0x700
[ 257.281523] Code: 04 24 89 f0 e8 ac 6a 01 00 85 c0 89 c7 0f 85 a2 0b 00 00 8b 45 a8 b9 02 00 00 00 89 f2 e8 f3 59 ff ff 8b 7d 9c 8d 4d c0 8b 57 2c <89> 10 a1 a0 6e db f8 89 f2 89 45 a8 e8 b9 12 01 00 85 c0 74 45
[ 257.282109] EIP: [] wl_cfg80211_connect+0x486/0x1bf0 [bcm4334x] SS:ESP 0068:f5bdb974
[ 257.282265] CR2: 0000000000000000
[ 257.670439] ---[ end trace 1be12dbab29b7072 ]---
[ 257.713436] wpa_supplicant (301) used greatest stack depth: 4208 bytes left

rt_preempt

Although I'm happy so lots of work is being done on a newer kernel for the Edison, I fail to understand why the choice has fallen on 3.19.5?

I thought Yocto kernels are chosen so that a preempt_rt patch exists? And this is not the case for 3.19.5. 4.0.8 would have been a more logical choice in that respect.

Or am I missing something here?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.