WRTnode SDK的特征
- Based on OpenWrt BARRIER BREAKER (Bleeding Edge, r41508)
- rt2860v2 Wi-Fi driver hacked by lintel
- Customized uboot hacked by manfeel
- WRTnode aplci up-link Wi-Fi configuration (aps/vw/nr/ia)
- Luci Wi-Fi wpa patch for rt2860v2
- Local dns add i.wrtno.de & wrtnode.lan besides openwrt.lan to WRTnode which the default ip is 192.168.8.1
-
WRTnode additional feature (all source opened github.com/WRTnode):
- Opencv 2.4.8
- Native gcc-mipsel on mt7620 and bin-utils
- Porting linino (Arduino yun) source to WRTnode
- Shine: fast fixed-point mp3 encoding
-
And some WRTnode demo apps:
- opencv application demo
- mechanical control demo
- RESTful front-end demo and some other thing
交叉编译环境
编译固件
下载SDK
- 建工作目录
$mkdir OpenWrt $cd OpenWrt
- 下载sdk
$git clone https://github.com/WRTnode/openwrt.git wrtnode
- 更新、安装软件包
$cd wrtnode $./scripts/feeds update -a $./scripts/feeds install -a
配置
- make menuconfig进入图像化配置界面
WRTnode1(或者WRTnode2R,WRTnode2P)的配置
$make menuconfig
Target System ---> (X) Ralink RT288x/RT3xxx Subtarget ---> (X) WRTnode 1 series ( ) WRTnode 2 series
如果你的设备是WRTnode1,Subtarget选择WRTnode 1 series
Subtarget ---> (X) WRTnode 1 series
如果你的设备是WRTnode2系列(包括WRTnode2R,WRTnode2P),Subtarget选择WRTnode 2 series
Subtarget ---> (X) WRTnode 2 series
WRTnode2Q的配置
$make menuconfig
Target System ---> (X) Atheros AR7xxx/AR9xxx Subtarget ---> (X) WRTnode2Q board
建议选上luci:
LuCI ---> 1. Collections ---> <*> luci
其他的部分可以按照你自己的需求来选择配置,例如suond驱动,video驱动,U盘驱动等。
TF卡驱动
若需要用到tf卡,选择驱动:
make menuconfig
-*- kmod-mmc Kernel modules ---> Other modules ---> -*- kmod-sdhci <*> kmod-sdhci-mt7620
如果你手里的WRTnode2P底板版本号是V1.2,点击下载 http://d.wrtnode.com/WRTnode2P/sd.c,覆盖drivers/mmc/host/mtk-mmc/sd.c
如果你手里的WRTnode2R底板没有版本号,点击下载 http://d.wrtnode.com/WRTnode2R/sd.c,覆盖drivers/mmc/host/mtk-mmc/sd.c
后面的版本已修复了这些问题。
编译
$make V=s
经过一段漫长的编译之后生成的固件在 $(TOPDIR)/bin/ramips/openwrt-ramips-mt76xx-wrtnode-squashfs-sysupgrade.bin 。祝您的编译一路畅通!!!
WRTnode1出厂固件:
http://d.wrtnode.com/old-firmware/openwrt-ramips-mt7620n-wrtnode-squashfs-sysupgrade.bin
WRTnode2R出厂固件:
http://d.wrtnode.com/WRTnode2R/openwrt-ramips-mt7628-wrtnode2r-squashfs-sysupgrade.bin 对应toolchain:
http://pan.baidu.com/s/1dDgpUFn
本文章由作者:佐须之男 整理编辑,原文地址: 如何编译一个WRTnode的固件