Compiling WRTnode static SDK

From WRTnode Wiki Site
Jump to: navigation, search
This page contains changes which are not marked for translation.

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

Features:

  • Based on OpenWrt BARRIER BREAKER (Bleeding Edge, r41508)
  • OpenWrt trunk on Linux Kernel 3.10.44
  • 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

Configure Linux compiled environment:

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        
  1. 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

Compile the firmware

Build working directory:

$ mkdir OpenWrt
$ cd OpenWrt

Download WRTnode SDK and turn it into the OpenWrt directory.

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

unzip WRTnode SDK:

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

Enter compiled selection interface:

$ make menuconfig

Enter compiled selection interface, the current is WRTnode default configuration. If you need to add or remove certain parts can this configuration. After configured to save and exit.

note:Do not update feeds and conduct svn update upgrades, we are ready to change.


Then began to compile

$ make V=s

The firmware is openwrt-ramips-mt7620n-wrtnode-squashfs-sysupgrade.bin(./bin/ramips/openwrt-ramips-mt7620n-wrtnode-squashfs-sysupgrade.bin).

The factory firmware:

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

The corresponding toolchain:

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