为openwrt添加新的profile
来源:互联网 发布:冯大辉丁香园离职知乎 编辑:程序博客网 时间:2024/05/18 11:25
一、环境
openwrt版本为15.05.1,以添加基于mt7620a硬件为例介绍添加新profile的方法。
二、步骤
1.添加profile
在target/linux/ramips/mt7620/profiles/下添加一个新的profile wifi7620.mk:
## Copyright (C) 2011 OpenWrt.org## This is free software, licensed under the GNU General Public License v2.# See /LICENSE for more information.#define Profile/WIFI7620 NAME:=wifi 7620endefdefine Profile/WIFI7620/Description Default package set compatible with WIFI7620endef$(eval $(call Profile,WIFI7620))
记住名字WIFI7620,之后新建dts文件时名字必须为WIFI7620.dts。2.添加dts 在target/linux/ramips/dts/添加dts文件WIIF7620.dts,该可以拷贝其他使用mt7620的dts,然后稍作修改即可。 完成该步骤后,make menuconfong即可在 Target Profile中看到我们新加的profile(当然Target System要选择Ralink RT288x/RT3xxx,Subtarget选择MT7620 based boards)。注意:要是新添加的profile能被看到,需要删除主目录下的tmp目录或使用touch更新target/linux/ramips/Makefile的时间。3.image build 做完以上步骤后,还需要在target/linux/ramips/image/Makefile添加相应的条目来编译生成升级文件。
## MT7620A Profiles#Image/Build/Profile/WIFI7620=$(call BuildFirmware/Default16M/$(1),$(1),wifi7620,WIFI7620)
4.添加board的识别 target/linux/ramips/base-files/lib/ramips.sh5.添加upgrade时board的是吧 target/linux/ramips/base-files/lib/upgrade/platform.sh6.status LED如果有 target/linux/ramps/base-files/etc/diag.sh7.其他LED如wifi、sub如果有 target/linux/ramps/base-files/etc/board.d/01_leds8.network针对board的特别设置 target/linux/ramps/base-files/etc/board.d/02_network
0 0
- 为openwrt添加新的profile
- 如何在OpenWrt中添加新的profile【以百度音乐盒为例】
- OpenWRT添加模块<六>: 为现存的公有包添加新的私有文件
- 为openwrt添加MT7620a的wifi驱动
- openwrt添加新平台支持
- openwrt添加新设备支持
- OpenWrt的luci web管理器添加新菜单
- OpenWrt的luci web管理器添加新菜单(二)
- OpenWrt的luci web管理器添加新菜单(三)
- OpenWrt的luci web管理器添加新菜单(四)
- openwrt 中添加新的文件、脚本、可执行程序到固件
- 为Openwrt的工具链添加boost库
- 为生成的新行添加默认值
- 为VS2005工程添加新的SDK
- 为matplotlib 添加新的中文字体
- 为firefox添加新的protocol
- 为android程序添加新的Activity
- 为NopCommerce添加新的业务逻辑
- Auto Hot Key 实现自动评教
- 剑指Offer——“你最大的缺点是什么”回答技巧及范例
- android 背景图片选择器和颜色选择器
- CentOS 7安装Gnome GUI 图形界面
- Hibernate学习笔记(一)
- 为openwrt添加新的profile
- TabHost详解:实现底部导航栏
- 使用CNPM搭建企业内部私有的NPM库
- springMVC Model、 ModelMap 和 ModelAndView的区别
- MQTT测试工具推荐
- JDBC学习笔记
- Spark函数详解系列之RDD基本转换
- 一种海量文章排重的算法
- 三个简短的动画实现饿了么红包滑动效果