How to compile a WRTnode firmware

From WRTnode Wiki
Jump to: navigation, search
This page is a translated version of the page 如何编译一个WRTnode的固件 and the translation is 100% complete.

Other languages:

Features

  • 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

cross-compiler environment

Refer to:Build OpenWrt cross compiler environment

Compile firmware

Download WRTnode sdk

  • Build working directory:
$mkdir OpenWrt
$cd OpenWrt
  • Download sdk
$git clone https://github.com/WRTnode/openwrt.git wrtnode
  • Update and install software package
$cd wrtnode
$./scripts/feeds update -a
$./scripts/feeds install -a

configure

  • make menuconfig into the graphical configuration interface
$make menuconfig
 Target System  --->  (X) Ralink RT288x/RT3xxx 
 Subtarget      --->  (X) WRTnode 1 series  
                      ( ) WRTnode 2 series

If your device is WRTnode1,Subtarget select WRTnode 1 series

Subtarget --->  (X) WRTnode 1 series 

If your device is WRTnode2 series(include WRTnode2R and WRTnode2P),Subtarget select WRTnode 2 series

Subtarget --->  (X) WRTnode 2 series 

Add luci:

 LuCI  --->   1. Collections  --->  <*> luci    

Other parts can follow your own needs to select the configuration, for example suond drive, video drive, U disk drives.

TF card diver

If you need to use tf card, select the drive:

make menuconfig
                                         -*- kmod-mmc
 Kernel modules ---> Other modules  ---> -*- kmod-sdhci
                                         <*> kmod-sdhci-mt7620

If you WRTnode2P shield version is V1.2, Download http://d.wrtnode.com/WRTnode2P/sd.c,cover drivers/mmc/host/mtk-mmc/sd.c
If your hand WRTnode2R shield no version number,Download http://d.wrtnode.com/WRTnode2R/sd.c,cover drivers/mmc/host/mtk-mmc/sd.c
In addition to the above mentioned WRTnode2R and WRTnode2P versions, the other version fixes the TF Card problem.

Compile

$make V=s 

WRTnode1 factory firmware:
http://d.wrtnode.com/old-firmware/openwrt-ramips-mt7620n-wrtnode-squashfs-sysupgrade.bin
WRTnode2R factory firmware:
http://d.wrtnode.com/WRTnode2R/openwrt-ramips-mt7628-wrtnode2r-squashfs-sysupgrade.bin WRTnode2P factory firmware:
http://d.wrtnode.com/WRTnode2P/openwrt-ramips-mt7628-wrtnode2p-squashfs-sysupgrade.bin The corresponding toolchain:
http://pan.baidu.com/s/1dDgpUFn