向OpenWRT中添加新设备支持

3
2671

这里还是向OpenWRT中添加对小度路由的支持
向 target/linux/ramips/image/makefile中写入新设备


 

base-files中的一些可用配置:

base-files/etc/diag.sh  控制LED在OpenWRT启动时是否闪烁
base-files/lib/upgrade/platform.sh  允许sysupgrade工作
base-files/etc/uci-defaults/network to configure(安装) default network interface(界面) settings, particularly MAC addresses
base-files/etc/uci-defaults/leds if you have configurable(可配置的) LEDs which should default to a behavior(行为), like a WLAN activity LED
base-files/etc/hotplug.d/firmware(固件)/10-rt2x00-eeprom to extract(提取) the firmware image for the wireless(无线的) module
base-files/lib/preinit/06_set_iface_mac to set the MAC addresses of any other interfaces(界面)

 

编写的小度路由用的dts文件


 

 

添加设备后,最好需要将之前编译产生的临时文件删除,语句如下


 

 

参考:http://wiki.openwrt.org/doc/devel/add.new.device

3 意见

留下一个答复

Please enter your comment!
Please enter your name here