这些小活动你都参加了吗?快来围观一下吧!>>
电子产品世界 » 论坛首页 » 嵌入式开发 » MCU » 迅为i.MX6 ubuntu wifi移植无法启动,求帮助

共1条 1/1 1 跳转至

迅为i.MX6 ubuntu wifi移植无法启动,求帮助

菜鸟
2017-12-26 15:25:27     打赏

 

 各位好,本人迅为i.MX6Q 开发板在ubuntu下的wifi 无法使用,于是参照了帖子:http://bbs.topeetboard.com/forum.php?mod=viewthread&tid=4165迅为4412全能版V_4.0 ubuntu 在Android4.4.4的内核下移植wifi[/url] 进行了移植, 但是无法成功启动wifi。


首先我重新编译了需要的内核模块驱动,并将模块放置在了 /lib/modules下

除去模块加载的启动脚本如下:

1. chmod 0777 /dev/stpwmt

2. #chmod 0666 /dev/stpgps

3. #chmod 0666 /dev/fm

4. chmod 0777 /dev/wmtWifi

5. chmod 0660 /dev/ttySAC0

6. #chmod 0666 /dev/gps

7. 

8. /system/bin/6620_launcher -m 1 -b 115200 -n /system/etc/firmware/mt6620_patch_hdr.bin -d /dev/ttySAC0 &

9. 

10. sleep 5

11. 

12.   echo 1 > /dev/wmtWifi

13. 

14.   wpa_supplicant -d -Dwext -iwlan0 -c /etc/wpa_supplicant.conf &

15.   sleep 3

16.   dhclient wlan0 &

17. 

复制代码




加载模块信息如下:
root@iMX6-ubuntu-desktop:~# lsmod
Module                  Size  Used by
wlan_mt6620           660442  0 
mtk_wmt_wifi            5536  1 wlan_mt6620
mtk_stp_uart           22272  0 
mtk_stp_wmt           395990  4 wlan_mt6620,mtk_wmt_wifi,mtk_stp_uart
mtk_hif_sdio           41707  2 wlan_mt6620,mtk_stp_wmt

1. 但是wifi 启动失败,内核日志如下:

2. [MTK-WIFI] WIFI_open: WIFI_open: major 194 minor 0 (pid 1642)

3. [MTK-WIFI] WIFI_write: WIFI_write 1

4. 

5. [HIF-SDIO][I]mtk_wcn_wmt_func_ctrl:OPID(3) type(3) start

6. [STP] mtk_wcn_stp_psm_disable:[W] STP Not Ready, Dont do Sleep/Wakeup

7. [WMT-DFT][I]mtk_wcn_cmb_hw_pwr_on:CMB-HW, hw_pwr_on start

8. [WMT-DFT][I]wmt_plat_pmu_ctrl:WMT-PLAT:PMU init (out 0)

9. [WMT-DFT][I]wmt_plat_rst_ctrl:WMT-PLAT:RST init (out 0)

10. [WMT-DFT][I]wmt_plat_bgf_eint_ctrl:BGF_EINT gpio request fail, ret = -16

11. dbus[1737]: [system] Activating service name='org.freedesktop.PolicyKit1' (using servicehelper)

12. dbus[1737]: [system] Activated service 'org.freedesktop.PolicyKit1' failed: Failed to execute program /usr/lib/dbus-1.0/dbus-daemon-launch-helper: Success

13. [WMT-DFT][I]mtk_wcn_cmb_hw_pwr_on:CMB-HW, rtc clock exported

14. [WMT-DFT][I]wmt_plat_uart_ctrl:WMT-PLAT:UART init (mode_01, uart)

15. [WMT-DFT][I]wmt_plat_pmu_ctrl:WMT-PLAT:PMU (out_h 0)

16. [WMT-DFT][I]wmt_plat_rst_ctrl:WMT-PLAT:RST (out_h 0)

17. [WMT-DFT][I]wmt_plat_pmu_ctrl:WMT-PLAT:PMU (out_h 1)

18. dbus[1737]: [system] Activating service name='org.freedesktop.UDisks' (using servicehelper)

19. [WMT-DFT][I]wmt_plat_rst_ctrl:WMT-PLAT:RST (out_h 1)

20. dbus[1737]: [system] Activated service 'org.freedesktop.UDisks' failed: Failed to execute program /usr/lib/dbus-1.0/dbus-daemon-launch-helper: Success

21. [WMT-DFT][I]wmt_plat_audio_ctrl:PCM/I2S pin seperate

22. [WMT-DFT][I]wmt_plat_audio_ctrl:skip chip aif setting

23. [WMT-DFT][I]wmt_plat_bgf_eint_ctrl:WMT-PLAT: bgf irq num is: 351

24. [WMT-DFT][I]wmt_plat_eirq_ctrl:WMT-PLAT: request IRQ fail for BGF IRQ : 351

25. [WMT-DFT][I]wmt_plat_eirq_ctrl:WMT-PLAT:BGF Int requested...fail, iRet=-16

26. [WMT-DFT][I]mtk_wcn_cmb_hw_pwr_on:CMB-HW, BGF_EINT IRQ registered and disabled

27. [HIF-SDIO][E]wmt_core_ctrl(466):WMT-CORE: wmt_core_ctrl failed: id(1), type(0), value(0) iRet:(-32)

28. drivers/misc/mediatek/combo_mt66xx/wmt/core/wmt_core.c, 467, (0)

29. [HIF-SDIO][E]opfunc_pwr_on(936):WMT-CORE: WMT_CTRL_HW_PWR_ON fail iRet(-32)

30. [HIF-SDIO][E]opfunc_func_on(1096):func(3) pwr_on fail(-1)

31. drivers/misc/mediatek/combo_mt66xx/wmt/core/wmt_core.c, 1097, (0)

32. [HIF-SDIO][W]wmtd_thread:opid (0x3) failed, iRet(-3)

33. [HIF-SDIO][W]wmt_lib_put_act_op:opId(3) result:-3

34. [STP] mtk_wcn_stp_psm_enable:[W] STP Not Ready, Dont do Sleep/Wakeup

35. [HIF-SDIO][W]mtk_wcn_wmt_func_ctrl:OPID(3) type(3) fail

36. [MTK-WIFI] WIFI_write: WMT turn on WIFI fail!

复制代码

 

 




共1条 1/1 1 跳转至

回复

匿名不能发帖!请先 [ 登陆 注册 ]