Closed mloffer closed 8 years ago
$ silk log I/kmsg ( 414): <6>[ 1736.191712] wlan: loading driver v3.0.10.085 I/kmsg ( 414): <4>[ 1736.687105] mdss_check_dsi_ctrl_status: unblank not complete, reschedule check status I/kmsg ( 414): <4>[ 1738.687087] mdss_check_dsi_ctrl_status: unblank not complete, reschedule check status I/kmsg ( 414): <4>[ 1740.687091] mdss_check_dsi_ctrl_status: unblank not complete, reschedule check status I/kmsg ( 414): <3>[ 1741.237132] wlan: [F :HDD] hdd_driver_init: WCNSS driver not ready E/NetlinkEvent( 370): NetlinkEvent::FindParam(): Parameter 'ALERT_NAME' not found E/NetlinkEvent( 358): NetlinkEvent::FindParam(): Parameter 'ALERT_NAME' not found E/wpad ( 7421): wifi_load_driver() failed: -1 I/wpad ( 7420): wpad terminated by exit(1) I/kmsg ( 414): <11>[ 1741.436346] init: Warning! Service silk-wpad needs a SELinux domain defined; please fix! D/WifiHW ( 7431): Unable to unload driver module "wlan": No such file or directory E/NetlinkEvent( 358): NetlinkEvent::FindParam(): Parameter 'ALERT_NAME' not found E/NetlinkEvent( 370): NetlinkEvent::FindParam(): Parameter 'ALERT_NAME' not found
I flashed my device to the nightly build (v1.1.0) and wiped my userdata and cache.
I got a lot of permissions errors after this. Running setupwifi reported:
Failed to configure wifi Error: An error occured while running: adb push wifi_setup.sh /data/ Error: Command failed: /bin/sh -c adb push wifi_setup.sh /data/ failed to copy 'wifi_setup.sh' to '/data//wifi_setup.sh': Permission denied
/data itself is not accessible to the user silk-cli (v1.0.0 available via npm) runs as. I granted rwx permission to other and created the missing node_modules directory myself. This finally let me push my application to the device. However, setupwifi is back to reporting:
error: wlan0
:'(
I was able to get wifi back by
Not sure what the permissions/users are intended to be, but this seems to work around the issue for now.
Thanks for the report @mloffer! The permissions error after you switched to the v1.1.0 nightly build was because silk setupwifi
wasn't correctly switching to the root user. That unhelpful "error: wlan0" message should now be resolved as well. Fixed at c9c15b35a16320aa65b631132a754dd11acdc8a3 and I'll publish to npmjs on Monday.
I'm not sure why wifi stopped working for you yet originally though. If this happens again, please let me know and we can debug further (either reopen this issue or create a new one).
I began toying around yesterday with the Silk platform using the Xiaomi developer device. I was able to get a small application up and running successfully. However, when I went to run it again today the wifi on the device seems to be broken.
If I try to setup the network again I get an error on wlan0:
I've tried restarting the device via adb to no avail. Anyone have any other ideas?