WRTnode静态SDK编译

From WRTnode Wiki Site
Jump to: navigation, search
This page is a translated version of the page Compiling WRTnode static SDK and the translation is 100% complete.

Other languages:
English 100% • ‎中文(中国大陆)‎ 100%

特征

  • 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

配置Linux编译环境

Debian 5 Lenny:

apt-get install gawk ncurses-dev unzip zlib1g-dev

Debian 6 Squeeze:

apt-get install libncurses5-dev zlib1g-dev gawk flex libssl-dev sdcc-nf

Debian 7 Wheezy:

apt-get install libncurses5-dev zlib1g-dev gawk

Ubuntu 13.10:

sudo apt-get install build-essential subversion git-core libncurses5-dev zlib1g-dev gawk flex quilt xsltproc

Ubuntu 12.04LTS:

sudo apt-get install build-essential subversion git-core libncurses5-dev zlib1g-dev gawk  flex quilt libssl-dev xsltproc libxml-parser-perl mercurial bzr ecj cvs unzip

Ubuntu 64bit:

sudo apt-get install build-essential subversion libncurses5-dev zlib1g-dev gawk gcc-multilib flex git-core gettext

Fedora 17:

yum install -y subversion binutils bzip2 gcc gcc-c++ gawk gettext flex libz-dev flex ncurses-devel zlib-devel make patch unzip perl-ExtUtils-MakeMaker

Fedora 18 – 64Bit (Maybe also for lower versions, some packages seem to be missing above):

yum install -y subversion binutils bzip2 gcc gcc-c++ gawk gettext flex ncurses-devel zlib-devel make patch unzip perl-ExtUtils-MakeMaker \ glibc glibc-devel glibc-static quilt ncurses-lib sed sdcc intltool sharutils bison#Maybe you need glibc.i686 glibc-static.i686 glibc-devel.i686 libgcc.i686 too

Fedora 19 – 64Bit (Maybe also for lower versions, some packages seem to be missing above):

yum install -y subversion binutils bzip2 gcc gcc-c++ gawk gettext flex ncurses-devel zlib-devel make patch unzip perl-ExtUtils-MakeMaker \ glibc glibc-devel glibc-static quilt ncurses-lib sed sdcc intltool sharutils bison wget

openSuSE 11.1

zypper install binutils bzip2 gawk gcc gcc-c++ gettext make ncurses-devel patch unzip wget zlib-devel flex git-core

In openSuSE some packages require additional repositories. Search on http://packages.opensuse-community.org and add repositories like that:

zypper ar"http://download.opensuse.org/repositories/devel:/languages:/perl/openSUSE_11.1/devel:languages:perl.repo"

Arch Linux

pacman -S --needed subversion asciidoc bash bc binutils bzip2 fastjar flex git gcc util-linux gawk intltool zlib make cdrkit ncurses openssl patch perl-extutils-makemaker rsync sdcc unzip wget gettext libxslt zlib boost libusb bin86 sharutils b43-fwcutter findutils

编译固件

建工作目录:

$ mkdir OpenWrt
$ cd OpenWrt

下载WRTnode SDK,并将其放到OpenWrt目录下。

$ wget http://d.wrtnode.com/sdk/sdk.tar.bz2 

解压WRTnode SDK:

$ tar -jxvf sdk.tar.bz2
$ cd wrtnode

进入编译选择界面:

$ make menuconfig

进入编译选择界面,当前已经是WRTnode的默认配置。如果你需要添加或删除某些部分可以此配置。配置好以后保存并退出即可。

note:请勿更新feeds和进行svn update升级,我们已经做好更改了


下面就开始编译了

$ make V=s 

经过一段漫长的编译之后生成的固件在 ./bin/ramips/openwrt-ramips-mt7620n-wrtnode-squashfs-sysupgrade.bin 。祝您的编译一路畅通!!!

出厂固件:

http://d.wrtnode.com/old-firmware/openwrt-ramips-mt7620n-wrtnode-squashfs-sysupgrade.bin

对应toolchain:

http://pan.baidu.com/s/1dDgpUFn