If someone is interested I've created a script to build the firmware for RT-N16. It requires a Linux PC and sudoers right to install the needed tools.
First step is to install necessary tools (here it's assumed that Asus directory is used under home):
Code:
mkdir ~/Asus ; cd ~/Asus
wget http://wl500g.googlecode.com/files/hndtools-mipsel-uclibc-4.2.4-2.tar.bz2
sudo mkdir -p /opt/brcm
sudo tar -C /opt/brcm -jxvf hndtools-mipsel-uclibc-4.2.4-2.tar.bz2
sudo ln -sf /opt/brcm/hndtools-mipsel-uclibc-4.2.4 /opt/brcm/hndtools-mipsel-uclibc
Then save to build_N16.sh the following lines (+don't forget to chmod +x it after):
Code:
#!/bin/sh
KVER=2.6.22.19
BDIR=cfm_n16
RVER=1536
BDIR="`pwd`/${BDIR}"
mkdir ${BDIR}
mkdir -p ${BDIR}/broadcom/src/linux
! [ -f "${PWD}/linux-${KVER}.tar.bz2" ] && wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-${KVER}.tar.bz2
tar -C ${BDIR}/broadcom/src/linux -jxvf linux-${KVER}.tar.bz2
ln -sf ${BDIR}/broadcom/src/linux/linux-${KVER} ${BDIR}/broadcom/src/linux/linux-2.6
[ -n "$RVER" ] && BVER="-r$RVER"
[ -z "`echo $PATH | grep hndtools-mipsel-uclibc`" ] && export PATH=$PATH:/opt/brcm/hndtools-mipsel-uclibc/bin
svn checkout "$BVER" http://wl500g.googlecode.com/svn/branches/rt-n/ ${BDIR}/broadcom/src/wl500g-1.9.2.7-rtn
cd ${BDIR}/broadcom/src/wl500g-1.9.2.7-rtn
make kernel
make
cd ${BDIR}/broadcom/src/gateway
make
make install
RVER has to be set to the version you'd like to build.
Build is with ./build_N16.sh in Asus directory.
Firmware (trx file) and modules are in ~/Asus/cfm_n16/broadcom/src/gateway/mipsel-uclibc
After this, build can be done selectively only what is changed.
Wiki in google code could be updated for rtn branch as currently lacking this kind of information...