MT7620_WIFI_移植.docx_第1页
MT7620_WIFI_移植.docx_第2页
MT7620_WIFI_移植.docx_第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://openwrt.git openwrt-trunk $cd openwrt-trunk $./scripts/feeds update -a $./scripts/feeds install -adefconfig and make:$make defconfig$make menuconfig-select the following configuration-Target System: (Ralink 288x/3xxx) Subtarget: (MT7620N based boards)$make V=99wait 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 dont has wifi support, so we cannt 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 /wuqiong/rt2860v2-for-openwrt-mt7620.git $cp -r rt2860v2-for-openwrt-mt7620/ralink /openwrt/openwrt-trunk/build_dir/target-mipsel_24kec+dsp_uClibc-/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-/linux-ramips_mt7620n/linux-3.10.28/drivers/net/wireless/after copied the driver code to the kernel build tree. then, lets 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-/linux-ramips_mt7620n/linux-3.10.28/drivers/mtd/Kconfigsource drivers/mtd/ralink/Kconfigadd the following line before the end of file:/openwrt/openwrt-trunk/build_dir/target-mipsel_24kec+dsp_uClibc-/linux-ramips_mt7620n/linux-3.10.28/drivers/mtd/Makefileobj-$(CONFIG_MTD_RALINK) += ralink/add the following line before the end of file:/openwrt/openwrt-trunk/build_dir/target-mipsel_24kec+dsp_uClibc-/linux-ramips_mt7620n/linux-3.10.28/drivers/net/wireless/Kconfigsource drivers/net/wireless/rt2860v2_ap/Kconfigadd the following line before the end of file:/openwrt/openwrt-trunk/build_dir/target-mipsel_24kec+dsp_uClibc-/linux-ramips_mt7620n/linux-3.10.28/drivers/net/wireless/Makefileobj-$(CONFIG_RT2860V2_AP) += rt2860v2_ap/Okey, configuration finished.go back to the/openwrt/openwrt-trunkdirectory. and run shell command:$make kernel_menuconfigenter this menu:A: Device Driver - Memory Technology Device (MTD) support - Ralink Flash Type support - * Ralink MTD supportB: 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 SKUChoose Power Design (Internal PA and Internal LNA) - TSSI Compensation Temperature Compensationwe 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=99command 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 cannt ifconfig ra0 up. because we need lack theetc/Wireless/RT2860/RT2860.datfile and/etc_rodirectory, also an scripts file in/lib/wifidirectory wh

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论