使用原厂的SDK,生成的内核镜像没有WiFi,需要自己动手添加WiFi驱动。
网卡驱动文件:
MT7628_LinuxAP_V4.0.1.3_DPA_20150216.tar.bz2
下载地址:
http://pan.baidu.com/share/link?shareid=3336662764&uk=3072482052&fid=262953179408031
原厂SDK:
MediaTek_ApSoC_SDK_4300_20140916.tar.bz2
一、将MediaTek_ApSoC_SDK_4300_20140916.tar.bz2拷贝到MT7688/RT288x_SDK/source/linux-2.6.36.x/drivers/net/wireless目录下
root@openwrt:~/MT7688/RT288x_SDK/source/linux-2.6.36.x/drivers/net/wireless# cd -
/root
root@openwrt:~#
root@openwrt:~# cd /mnt/hgfs/WindowsLinux/SDKsoft/
root@openwrt:/mnt/hgfs/WindowsLinux/SDKsoft# ls
MT7628_LinuxAP_V4.0.1.3_DPA_20150216.tar.bz2
root@openwrt:/mnt/hgfs/WindowsLinux/SDKsoft# cp MT7628_LinuxAP_V4.0.1.3_DPA_20150216.tar.bz2 ~/MT7688/RT288x_SDK/source/linux-2.6.36.x/drivers/net/wireless/
root@openwrt:/mnt/hgfs/WindowsLinux/SDKsoft# cd ~/MT7688/RT288x_SDK/source/linux-2.6.36.x/drivers/net/wireless/
root@openwrt:~/MT7688/RT288x_SDK/source/linux-2.6.36.x/drivers/net/wireless# ls
adm8211.c hostap prism54
adm8211.h ipw2x00 ray_cs.c
airo.c iwlwifi ray_cs.h
airo_cs.c iwmc3200wifi rayctl.h
airo.h Kconfig rndis_wlan.c
at76c50x-usb.c libertas rt2x00
at76c50x-usb.h libertas_tf rtl818x
ath mac80211_hwsim.c wl12xx
atmel.c Makefile wl3501_cs.c
atmel_cs.c modules.builtin wl3501.h
atmel.h modules.order zd1201.c
atmel_pci.c MT7628_LinuxAP_V4.0.1.3_DPA_20150216.tar.bz2 zd1201.h
b43 mwl8k.c zd1211rw
b43legacy orinoco
built-in.o p54
二、解压MT7628_LinuxAP_V4.0.1.3_DPA_20150216.tar.bz2到RT288x_SDK/source/linux-2.6.36.x/drivers/net/wireless目录
root@openwrt:~/MT7688/RT288x_SDK/source/linux-2.6.36.x/drivers/net/wireless# tar -jxvf MT7628_LinuxAP_V4.0.1.3_DPA_20150216.tar.bz2
多出的3个文件夹:
mt_wifi
mt_wifi_ap
mt_wifi_sta
三、修改配置文件
root@openwrt:~/MT7688/RT288x_SDK/source/linux-2.6.36.x/drivers/net/wireless# cd ../../../ralink/
root@openwrt:~/MT7688/RT288x_SDK/source/linux-2.6.36.x/ralink# ls
Kconfig
root@openwrt:~/MT7688/RT288x_SDK/source/linux-2.6.36.x/ralink# vim Kconfig
我的是在第308行:去掉注释
304 #source "drivers/net/wireless/iNIC_RT305x/Kconfig"
305 #source "drivers/net/wireless/RT3680_ap/Kconfig"
306 #source "drivers/net/wireless/MT7610_ap/Kconfig"
307 #source "drivers/net/wireless/rlt_wifi/Kconfig"
308 source "drivers/net/wireless/mt_wifi/embedded/Kconfig"
四、配置内核
root@openwrt:~/MT7688/RT288x_SDK/source/linux-2.6.36.x/ralink# cd ../../
root@openwrt:~/MT7688/RT288x_SDK/source# make menuconfig
4.1 Kernel/Library/Defaults Selection--->
[*] Default all settings (lose changes)
[*] Customize Kernel Settings
4.2 Device Drivers--->[*]Network device support--->[*]Wireless LAN--->
<*> IEEE 802.11 for Host AP (Prism2/2.5/3 and WEP/TKIP/CCMP)
root@openwrt:~/MT7688/RT288x_SDK/source# make dep
root@openwrt:~/MT7688/RT288x_SDK/source# make
把生成的内核烧写到MT7688,你会看到一个MT7628_AP的WiFi信号,设备可以正常接入。通过浏览器,输入开发板的IP,可以进入开发板的Web配置页面。
https://img-my.csdn.net/uploads/201605/15/1463310123_9500.png