Differences between revisions 3 and 4
Revision 3 as of 2013-12-08 11:18:21
Size: 1803
Editor: lukisi
Comment:
Revision 4 as of 2014-01-14 13:15:58
Size: 1505
Editor: lukisi
Comment:
Deletions are marked like this. Additions are marked like this.
Line 8: Line 8:
# First, we download current OpenWRT. # First, we download OpenWRT. The version we tested this was 39211
Line 12: Line 12:
svn co svn://svn.openwrt.org/openwrt/trunk/
# Tested with revision 38887.
cd trunk
svn -r 39211 co svn://svn.openwrt.org/openwrt/trunk workdir
cd workdir
# Revision 39211 needs patches:
# http://patchwork.openwrt.org/patch/4588/
wget -O - http://patchwork.openwrt.org/patch/4588/raw | patch -p1
Line 18: Line 20:
# ============== build image: first pass =======================
# We prepare to compile a first time
# Download and apply a patch to the openwrt configuration files
# in order to make its build system download and build netsukuku
wget -O - http://download-mirror.savannah.gnu.org/releases/netsukuku/owrt-ntkd.patch 2>/dev/null | patch -p0

# ============== b u i l d =======================
# We prepare to compile OpenWrt with Netsukuku
Line 25: Line 31:
# (choose eglibc instead of default uClibc)
# [*] Advanced configuration options (for developers) --->
# [*] Toolchain Options --->
# [*] C Library implementation (Use eglibc 2.15)

make defconfig
make download

time ionice -c 3 nice -n 20 make
# approx. 77 minutes

# Download and apply a patch to the openwrt configuration files
# in order to make its build system download and build netsukuku
wget -O - http://download-mirror.savannah.gnu.org/releases/netsukuku/owrt-ntkd.patch 2>/dev/null | patch -p0


# ============== build image: second pass =======================
# We prepare to compile a second time with the good stuff

make menuconfig
Line 54: Line 39:
time ionice -c 3 nice -n 20 make
# approx. 20 minutes
date && time ionice -c 3 nice -n 20 make
# approx. 90 minutes

# Make sure that you have the needed software installed in your system.
# For ubuntu:
sudo apt-get update
sudo apt-get install build-essential subversion git-core libncurses5-dev gawk wget gettext

# ==============   download   =======================
# First, we download OpenWRT. The version we tested this was 39211

mkdir ~/openwrt
cd ~/openwrt
svn -r 39211 co svn://svn.openwrt.org/openwrt/trunk workdir
cd workdir
# Revision 39211 needs patches:
#   http://patchwork.openwrt.org/patch/4588/
wget -O - http://patchwork.openwrt.org/patch/4588/raw | patch -p1
./scripts/feeds update -a
./scripts/feeds install -a

# Download and apply a patch to the openwrt configuration files
#  in order to make its build system download and build netsukuku
wget -O - http://download-mirror.savannah.gnu.org/releases/netsukuku/owrt-ntkd.patch 2>/dev/null | patch -p0

# ==============   b u i l d   =======================
# We prepare to compile OpenWrt with Netsukuku

make menuconfig

#      (select Target, Subtarget and Profile)
#        (e.g. Atheros AR7xxx/AR9xxx - Generic - TP-LINK TL-WR1043N/ND)
#      (inside category Network, select package netsukuku)
#      Network  --->
#        <*> netsukuku
#      (optionally, activate the openwrt web interface)
#      LuCI  --->
#        Collections  --->
#          <*> luci

date && time ionice -c 3 nice -n 20 make
# approx. 90 minutes

# Find your new firmware in ./bin/ar71xx-eglibc and flash your router.

Netsukuku_Dev/vala/flashing_notes4 (last edited 2014-01-14 14:13:46 by lukisi)