CubieBoard中文论坛

 找回密码
 立即注册
搜索
热搜: unable
查看: 12005|回复: 7

无法启动wifi,刚刚刷的新固件,配置wifi遇到这个问题rfk..

[复制链接]
发表于 2014-5-21 13:03:17 | 显示全部楼层 |阅读模式
本帖最后由 leyiwo 于 2014-5-25 11:22 编辑
  1. root@cubietruck:~# ifconfig wlan0 up
  2. SIOCSIFFLAGS: Operation not possible due to RF-kill
  3. root@cubietruck:~# rfkill list
  4. 0: bcm40183: Bluetooth
  5.         Soft blocked: yes
  6.         Hard blocked: no
  7. 1: phy0: Wireless LAN
  8.         Soft blocked: yes
  9.         Hard blocked: no
  10. 2: brcmfmac-wifi: Wireless LAN
  11.         Soft blocked: yes
  12.         Hard blocked: no
  13. root@cubietruck:~# rfkill unblock all
  14. [rfkill]: rfkill set power 0
  15. [rfkill]: rfkill set power 1
  16. root@cubietruck:~# rfkill list
  17. 0: bcm40183: Bluetooth
  18.         Soft blocked: yes
  19.         Hard blocked: no
  20. 1: phy0: Wireless LAN
  21.         Soft blocked: yes
  22.         Hard blocked: no
  23. 2: brcmfmac-wifi: Wireless LAN
  24.         Soft blocked: yes
  25.         Hard blocked: no
  26. root@cubietruck:~#
复制代码
使用的是这个帖子配置的。。
http://cubietech.com/forum.php?mod=viewthread&tid=2251


加载模块
$modprobe bcmdhd

添加"bcmdhd" 到 /etc/modules
$vi /etc/modules

下载安装
$apt-get install wifi-radar或者$apt-get install linux-firmware
重启$reboot

打开wifi
$ifconfig wlan0 up  
查找(看)wifi
$iwlist wlan0 scan   

$vi /etc/network/interfaces加入以下内容
auto wlan0
iface wlan0 inet dhcp
pre-up ip link set wlan0 up
pre-up iwconfig wlan0 essid your-ssid-here
wpa-ssid your-ssid-here
wpa-psk your-passwd-here

最后重启网络/etc/init.d/networking restart


注:老提示CFG80211-ERROR) wl_escan_handler : Couldn't find P2PIE in probe response/beacon  这个错误的话,执行以下命令
$ifconfig wlan0 down
$ifconfig wlan0 up
$etc/init.d/networking restart


我的配置文件如下
  1. auto lo eth0
  2. iface lo inet loopback
  3. iface eth0 inet dhcp
  4. auto wlan0
  5. iface wlan0 inet dhcp
  6. pre-up ip link set wlan0 up
  7. pre-up iwconfig wlan0 essid 111111
  8. wpa-ssid 111111
  9. wpa-psk  111111111
复制代码
目前折腾出一个可行的方法
开机重启network
然后rfkill unblock all
再打开wlan0
再重启下network
就可以获取到ip地址了。

回复

使用道具 举报

 楼主| 发表于 2014-5-21 13:05:22 | 显示全部楼层
第十五行的关闭后自动又打开。。。
要修改那个文件??
回复 支持 反对

使用道具 举报

发表于 2014-5-21 14:09:28 | 显示全部楼层
回复 支持 反对

使用道具 举报

 楼主| 发表于 2014-5-22 09:38:54 | 显示全部楼层
@allen 发表于 2014-5-21 14:09
http://cubietech.com/forum.php?m ... =15606&fromuid=1272    我也遇到这样的问题

原来这样啊。。。我就是遇到这个问题好久了。。后来不知道怎么 解决的。。
现在又出现了。。
看这个帖子,是应该

rfkill卸了,再装就可以了,但是每次开机要手动再执行一边,我就换老版本了,换1.01没事?

就是说把rfkill卸载了?
再安装rfkill?






回复 支持 反对

使用道具 举报

发表于 2014-5-22 14:19:30 | 显示全部楼层
leyiwo 发表于 2014-5-22 09:38
原来这样啊。。。我就是遇到这个问题好久了。。后来不知道怎么 解决的。。
现在又出现了。。
看这个帖子 ...

试试吧  我没验证过
回复 支持 反对

使用道具 举报

 楼主| 发表于 2014-5-22 16:44:13 | 显示全部楼层
@allen 发表于 2014-5-22 14:19
试试吧  我没验证过

开始出现这个问题的时候我也想试试卸载掉rfkill

但是不会用命令卸载。。。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2014-5-23 20:29:47 | 显示全部楼层
@allen 发表于 2014-5-22 14:19
试试吧  我没验证过

实验了,,,未成功,求方法。。。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2014-5-23 23:15:41 | 显示全部楼层
老问题啊。。。
rfkill。。。

  1. root@cubietruck:~# ifconfig wlan0 down
  2. root@cubietruck:~# rfkill unblock all
  3. [rfkill]: rfkill set power 0
  4. [rfkill]: rfkill set power 1
  5. root@cubietruck:~# dm
  6. dmesg    dmsetup  dm-tool
  7. root@cubietruck:~# dmesg

  8. [    8.273488] platform reg-20-cs-ldo4: Driver reg-20-cs-ldo4 requests probe deferral
  9. ....
  10. [    9.752987] bcmsdh_sdmmc: Failed to Write byte F1:@0x1000a=00, Err: -110
  11. [    9.757256] [mmc-err] smc 3 err, cmd 52,  RTO
  12. [    9.769347] bcmsdh_sdmmc: Failed to Write byte F1:@0x1000a=00, Err: -110
  13. [    9.773606] [mmc-err] smc 3 err, cmd 52,  RTO
  14. [    9.785730] bcmsdh_sdmmc: Failed to Write byte F1:@0x1000a=00, Err: -110
  15. [    9.789073] [mmc-err] smc 3 err, cmd 52,  RTO
  16. [    9.801032] bcmsdh_sdmmc: Failed to Write byte F1:@0x1000a=80, Err: -110
  17. [    9.805365] [mmc-err] smc 3 err, cmd 52,  RTO
  18. [    9.817272] bcmsdh_sdmmc: Failed to Write byte F1:@0x1000a=80, Err: -110
  19. [    9.821541] [mmc-err] smc 3 err, cmd 52,  RTO
  20. [    9.833291] bcmsdh_sdmmc: Failed to Write byte F1:@0x1000a=80, Err: -110
  21. [    9.836800] dhdsdio_membytes: window change failed
  22. [    9.840139] [mmc-err] smc 3 err, cmd 52,  RTO
  23. [    9.851754] bcmsdh_sdmmc: Failed to Write byte F1:@0x1000a=00, Err: -110
  24. [    9.856018] [mmc-err] smc 3 err, cmd 52,  RTO
  25. [    9.867582] bcmsdh_sdmmc: Failed to Write byte F1:@0x1000a=00, Err: -110
  26. [    9.871850] [mmc-err] smc 3 err, cmd 52,  RTO
  27. [    9.883238] bcmsdh_sdmmc: Failed to Write byte F1:@0x1000a=00, Err: -110
  28. [    9.887781] dhdsdio_membytes: FAILED to set window back to 0x0
  29. [    9.893095] _dhdsdio_download_firmware: error placing ARM core in reset
  30. [    9.905526] dhd_bus_start: dhdsdio_probe_download failed. firmware = /lib/firmware/ap6210/fw_bcm40181a2.bin nvram = /lib/firmware/ap6210/nvram_ap6210.txt
  31. [    9.907668] wl_android_wifi_off in
  32. [   10.801350] PHY: sunxi_gmac-0:00 - Link is Up - 100/Full
  33. [   19.591107] eth0: no IPv6 routers present
  34. [  129.276352] init: tty1 main process (446) killed by TERM signal
  35. [  130.276047] EDID mode used without valid EDID info
  36. [  130.288911] disp clks: lcd 74250000 pre_scale 1 hdmi 74250000 pll 297000000 2x 0
  37. [  130.343342] EDID mode used without valid EDID info
  38. [  130.349788] disp clks: lcd 74250000 pre_scale 1 hdmi 74250000 pll 297000000 2x 0
  39. [  130.382758] Warning: this sunxi disp driver will see significant redesign.
  40. [  130.387847] Applications using /dev/disp directly will break.
  41. [  130.394207] For more information visit: http://linux-sunxi.org/Sunxi_disp_driver
  42. [  130.397618] [DISP] layer allocated: 0,101
  43. [  130.400367] [DISP] request scaler fail
  44. [  130.403689] [DISP] request scaler layer fail!
  45. [  130.520325] [drm] Initialized drm 1.1.0 20060810
  46. [  130.536290] Mali DRM initialize, driver name: mali_drm, version 2.1
  47. [  130.543213] [drm] Initialized mali_drm 2.1.1 20101111 on minor 0
  48. [  130.550283] platform reg-20-cs-ldo4: Driver reg-20-cs-ldo4 requests probe deferral
  49. [  130.557197] platform reg-20-cs-buck2: Driver reg-20-cs-buck2 requests probe deferral
  50. [  130.562911] Mali DRM initialize, driver name: mali_drm, version 2.1
  51. [  130.568904] [drm] Initialized mali_drm 2.1.1 20101111 on minor 1
  52. [  130.572251] UMP<2>: New session opened
  53. [  130.580854] platform reg-20-cs-buck3: Driver reg-20-cs-buck3 requests probe deferral
  54. [  130.587970] platform reg-20-cs-ldoio0: Driver reg-20-cs-ldoio0 requests probe deferral
  55. [  130.601239] platform reg-20-cs-ldo3: Driver reg-20-cs-ldo3 requests probe deferral
  56. [  130.618291] platform reg-20-cs-ldo2: Driver reg-20-cs-ldo2 requests probe deferral
  57. [  130.625137] platform reg-20-cs-buck2: Driver reg-20-cs-buck2 requests probe deferral
  58. [  130.633258] platform reg-20-cs-ldo4: Driver reg-20-cs-ldo4 requests probe deferral
  59. [  130.993824] disp resume
  60. [  185.078899] [rfkill]: rfkill set power 0
  61. [  185.102502] [rfkill]: rfkill set power 1
  62. [  250.279818] [rfkill]: rfkill set power 0
  63. [  250.299888] [rfkill]: rfkill set power 1
  64. [  257.533478] [rfkill]: rfkill set power 0
  65. [  257.553030] [rfkill]: rfkill set power 1
  66. [  260.785044] [rfkill]: rfkill set power 0
  67. [  260.799755] [rfkill]: rfkill set power 1
  68. [  731.296205] disp resume
  69. [  731.297747] disp suspend
  70. [  814.911929] [rfkill]: rfkill set power 0
  71. [  814.929867] [rfkill]: rfkill set power 1
  72. [  819.934497] [rfkill]: rfkill set power 0
  73. [  819.952138] [rfkill]: rfkill set power 1
  74. [  824.786930] [rfkill]: rfkill set power 0
  75. [  824.804149] [rfkill]: rfkill set power 1
  76. [  830.169640] [rfkill]: rfkill set power 0
  77. [  830.189089] [rfkill]: rfkill set power 1
  78. [  832.590699] [rfkill]: rfkill set power 0
  79. [  832.608464] [rfkill]: rfkill set power 1
  80. [  834.521771] [rfkill]: rfkill set power 0
  81. [  834.543389] [rfkill]: rfkill set power 1
  82. [  835.892399] [rfkill]: rfkill set power 0
  83. [  835.923977] [rfkill]: rfkill set power 1
  84. [  837.283103] [rfkill]: rfkill set power 0
  85. [  837.298001] [rfkill]: rfkill set power 1
  86. [  838.513712] [rfkill]: rfkill set power 0
  87. [  838.528597] [rfkill]: rfkill set power 1
  88. [  839.764371] [rfkill]: rfkill set power 0
  89. [  839.786022] [rfkill]: rfkill set power 1
  90. [  841.104982] [rfkill]: rfkill set power 0
  91. [  841.124382] [rfkill]: rfkill set power 1
  92. [  842.475711] [rfkill]: rfkill set power 0
  93. [  842.495223] [rfkill]: rfkill set power 1
  94. [  844.276568] [rfkill]: rfkill set power 0
  95. [  844.302901] [rfkill]: rfkill set power 1
  96. [  845.407266] [rfkill]: rfkill set power 0
  97. [  845.438990] [rfkill]: rfkill set power 1
  98. [  855.921297] [rfkill]: rfkill set power 0
  99. [  855.941520] [rfkill]: rfkill set power 1
  100. [  886.771184] [rfkill]: rfkill set power 0
  101. [  886.786111] [rfkill]: rfkill set power 1
  102. [  907.011166] [rfkill]: rfkill set power 0
  103. [  907.035293] [rfkill]: rfkill set power 1
  104. [  919.701189] [rfkill]: rfkill set power 0
  105. [  919.721682] [rfkill]: rfkill set power 1
  106. [  927.811068] [rfkill]: rfkill set power 0
  107. [  927.830506] [rfkill]: rfkill set power 1
  108. [  936.501231] [rfkill]: rfkill set power 0
  109. [  936.523893] [rfkill]: rfkill set power 1
  110. [  958.911165] [rfkill]: rfkill set power 0
  111. [  958.926094] [rfkill]: rfkill set power 1
  112. [  962.331158] [rfkill]: rfkill set power 0
  113. [  962.348860] [rfkill]: rfkill set power 1
  114. [ 1030.841249] [rfkill]: rfkill set power 0
  115. [ 1030.860512] [rfkill]: rfkill set power 1
复制代码
http://www.whatled.com/post-1351.html
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|粤ICP备13051116号|cubie.cc---深刻的嵌入式技术讨论社区

GMT+8, 2024-11-23 23:15 , Processed in 0.024977 second(s), 15 queries .

Powered by Discuz! X3.4

© 2001-2012 Comsenz Inc. | Style by Coxxs

返回顶部