收藏 分销(赏)

MT7620_WIFI_移植.docx

上传人:pc****0 文档编号:7206109 上传时间:2024-12-27 格式:DOCX 页数:3 大小:20.32KB 下载积分:10 金币
下载 相关 举报
MT7620_WIFI_移植.docx_第1页
第1页 / 共3页
MT7620_WIFI_移植.docx_第2页
第2页 / 共3页


点击查看更多>>
资源描述
rt2860v2_ap/rt2860v2_sta driver for openwrt trunk(3.10.x kernel) on MT7620 SOC. (Test on mt7620n 16m flash + 64M ram) port and build steps: go and get the sources of openwrt trunk: $mkdir -p ~/openwrt $cd ~/openwrt $git clone git://git.openwrt.org/openwrt.git openwrt-trunk $cd openwrt-trunk $./scripts/feeds update -a $./scripts/feeds install -a defconfig and make: $make defconfig $make menuconfig -------select the following configuration------ Target System: (Ralink 288x/3xxx) Subtarget: (MT7620N based boards) $make V=99 wait make command to be done. when make finished. the firmware will be in the directory:$HOME/openwrt/openwrt-trunk/bin/ramips/ then, your can download burn the new firmware to the mt7620 SOC Board via TFTP in the uboot interface. but, unlikely, that default configuraion don't has wifi support, so we cann't startup a Hotspot on our MT7620 SOC for incoming connections from Smartphones and laptops. all steps are the default configuarions from the openwrt official site. and this step will guide you to port rt2860v2_ap driver to the kernel tree and build it to fix that problems. $cd ~/ $git clone $cp -r rt2860v2-for-openwrt-mt7620/ralink ~/openwrt/openwrt-trunk/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7620n/linux-3.10.28/drivers/mtd/ $cp -r rt2860v2-for-openwrt-mt7620/rt2860v2 rt2860v2-for-openwrt-mt7620/rt2860v2_ap ~/openwrt/openwrt-trunk/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7620n/linux-3.10.28/drivers/net/wireless/ after copied the driver code to the kernel build tree. then, let's to add Kconfig and Makefile objs. in each directory of "mtd" and "wireless". add the following line before the end of file: ~/openwrt/openwrt-trunk/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7620n/linux-3.10.28/drivers/mtd/Kconfig source "drivers/mtd/ralink/Kconfig" add the following line before the end of file: ~/openwrt/openwrt-trunk/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7620n/linux-3.10.28/drivers/mtd/Makefile obj-$(CONFIG_MTD_RALINK) += ralink/ add the following line before the end of file: ~/openwrt/openwrt-trunk/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7620n/linux-3.10.28/drivers/net/wireless/Kconfig source "drivers/net/wireless/rt2860v2_ap/Kconfig" add the following line before the end of file: ~/openwrt/openwrt-trunk/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7620n/linux-3.10.28/drivers/net/wireless/Makefile obj-$(CONFIG_RT2860V2_AP) += rt2860v2_ap/ Okey, configuration finished. go back to the ~/openwrt/openwrt-trunk directory. and run shell command: $make kernel_menuconfig enter this menu: A: Device Driver --> <*> Memory Technology Device (MTD) support ---> Ralink Flash Type support ---> [*] Ralink MTD support B: Device Driver --> [*] Network device support ---> [*] Wireless LAN ---> <*> Ralink RT2860 802.11n AP support [*] LED Support [ ] WSC (WiFi Simple Config) [*] LLTD (Link Layer Topology Discovery Protocol) [*] WDS [*] MBSSID [*] New MBSSID MODE [*] AP-CLient Support [*] MAC Repeater Support [ ] IGMP snooping [ ] NETIF Block [ ] DFS [*] Carrier Detect [ ] DLS ((Direct-Link Setup) Support [ ] IDS (Intrusion Detection System) Support [*] CoC Support [ ] Memory Optimization [ ] Video Turbine support [ ] 802.11n Draft3 [ ] Adjust Power Consumption Support [ ] Single SKU Choose Power Design (Internal PA and Internal LNA) ---> [ ] TSSI Compensation [ ] Temperature Compensation we select "*" to building the driver into the kernel, not a kernel module. after selecting the configration. save and exit menuconfig. Now. we have add and configured the wifi driver to the kernel build tree. just type the :$make V=99 command in directory: ~/openwrt/openwrt-trunk , and wait for some minutes. after builded, download and burn the new firmware with wifi driver. you can found that, wifi device ra0 will appear. but your cann't ifconfig ra0 up. because we need lack theetc/Wireless/RT2860/RT2860.dat file and /etc_ro directory, also an scripts file in/lib/wifi directory which first introduced by lintel. enjoy diy with your hands. I will not provide the dat file and script file. you need to scratch up those file by yourself. no thanks. but welcome to contact me.
展开阅读全文

开通  VIP会员、SVIP会员  优惠大
下载10份以上建议开通VIP会员
下载20份以上建议开通SVIP会员


开通VIP      成为共赢上传

当前位置:首页 > 百科休闲 > 其他

移动网页_全站_页脚广告1

关于我们      便捷服务       自信AI       AI导航        抽奖活动

©2010-2026 宁波自信网络信息技术有限公司  版权所有

客服电话:0574-28810668  投诉电话:18658249818

gongan.png浙公网安备33021202000488号   

icp.png浙ICP备2021020529号-1  |  浙B2-20240490  

关注我们 :微信公众号    抖音    微博    LOFTER 

客服