Difference between revisions of "Compiling WRTnode static SDK"

From WRTnode Wiki Site
Jump to: navigation, search
 
(11 intermediate revisions by 2 users not shown)
Line 19: Line 19:
 
***mechanical control demo
 
***mechanical control demo
 
***RESTful front-end demo and some other thing
 
***RESTful front-end demo and some other thing
 +
 
'''Configure Linux compiled environment:'''
 
'''Configure Linux compiled environment:'''
 +
 
Debian 5 Lenny:
 
Debian 5 Lenny:
 
  apt-get install gawk ncurses-dev unzip zlib1g-dev
 
  apt-get install gawk ncurses-dev unzip zlib1g-dev
Line 35: Line 37:
 
  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
 
  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):
 
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
+
  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):
 
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
+
  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
 
openSuSE 11.1
 
  zypper install binutils bzip2 gawk gcc gcc-c++ gettext make ncurses-devel patch unzip wget zlib-devel flex git-core
 
  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:
+
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"
+
zypper ar "http://download.opensuse.org/repositories/devel:/languages:/perl/openSUSE_11.1/devel:languages:perl.repo"
 +
 
 
Arch Linux
 
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 ibusb bin86 sharutils b43-fwcutter findutils
+
  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'''
 
'''Compile the firmware'''
 +
 
Build working directory:
 
Build working directory:
 
  $ mkdir OpenWrt
 
  $ mkdir OpenWrt
 
  $ cd OpenWrt
 
  $ cd OpenWrt
[http://yun.baidu.com/share/link?shareid=3875464846&uk=40712961/ Download WRTnode SDK]and turn it into the OpenWrt directory.
+
Download WRTnode SDK and turn it into the OpenWrt directory.
 +
$ wget http://d.wrtnode.com/sdk/sdk.tar.bz2
 +
 
 
unzip WRTnode SDK:
 
unzip WRTnode SDK:
  $ tar -jxvf WRTnodeSDK140824.tar.bz2
+
  $ tar -jxvf sdk.tar.bz2
  $ cd WRTnodeSDK140824
+
  $ cd wrtnode
In the compilation process will download a lot of things, Sometimes there will be a compile interruption due to failed download, here we offer already downloaded dl files:
+
 
[http://yun.baidu.com/share/link?shareid=4097688190&uk=407129610/ Download dl]and turn it into the WRTnodeSDK140824 directory.
+
Enter compiled selection interface:
Unzip dl:
+
$ make menuconfig
$ tar -xvf dl_for_WRTnodeSDK140824.tar
+
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.
Then began to compile  
+
 
 +
note:Do not update feeds and conduct svn update upgrades, we are ready to change.
 +
 
 +
 
 +
Then began to compile
 
  $ make V=s
 
  $ make V=s
 
The firmware is openwrt-ramips-mt7620n-wrtnode-squashfs-sysupgrade.bin(./bin/ramips/openwrt-ramips-mt7620n-wrtnode-squashfs-sysupgrade.bin).
 
The firmware is openwrt-ramips-mt7620n-wrtnode-squashfs-sysupgrade.bin(./bin/ramips/openwrt-ramips-mt7620n-wrtnode-squashfs-sysupgrade.bin).
 +
 
The factory firmware:
 
The factory firmware:
http://d.wrtnode.com/openwrt-ramips-mt7620n-wrtnode-squashfs-sysupgrade.bin
+
 
 +
http://d.wrtnode.com/old-firmware/openwrt-ramips-mt7620n-wrtnode-squashfs-sysupgrade.bin
 +
 
 
The corresponding toolchain:
 
The corresponding toolchain:
 +
 
http://pan.baidu.com/s/1dDgpUFn
 
http://pan.baidu.com/s/1dDgpUFn
 
</translate>
 
</translate>

Latest revision as of 01:57, 16 July 2015

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