Howto: Build RMerlin's Asus firmware mod from source
I'm no Linux expert so these are just instructions that I thought I'd share from what I've gathered up from different places on the net. This is all done on Ubuntu 12.04 LTS 64bit installed on a Virtual Box.
Start by installing needed dependencies and build tools:
Open up a terminal session and type or copy:
If for some reason you get a package not found error or any other strange apt-get issuse use this command and try installing packages again:
Download RMerlin's super source:
Below where 'ginger' is stated you'll need to replace it with your user name:
Your build environment is now prepared to go ahead and build the firmware image, it will probably take around 1 hour to finish building an image depending on your system.
To build an image for the RT-N66U
To build an image for the RT-AC66U:
Important notes:
Never issue a "make distclean", or else you'll have to reconfigure everything (kernel, firmware and all user time built in features)
While you can run make menuconfig inside the router/ folder to configure build options, these will be overriden by the parent Makefile.
To enable or disable an option, you have to edit $HOME/asuswrt/release/src-rt/target.mak . You can see the name of the available options by running make menuconfig from inside the router/ directory.
If your router does not boot after flashing a firmware built by you following these instructions I do not take any responsibility.
A ginormous thank you to RMerlin for all his hard work and dedication on this mod and to everybody elses sources for this howto.
I'm no Linux expert so these are just instructions that I thought I'd share from what I've gathered up from different places on the net. This is all done on Ubuntu 12.04 LTS 64bit installed on a Virtual Box.
Start by installing needed dependencies and build tools:
Open up a terminal session and type or copy:
sudo apt-get install autoconf automake bash bison bzip2 diffutils file flex g++ gawk groff-base libncurses-dev libtool libslang2 make patch perl sed shtool subversion tar texinfo zlib1g zlib1g-dev git-core gettext libexpat1-dev libssl-dev cvs gperf unzip python libxml-parser-perl gcc-multilib gconf-editor gperf
If for some reason you get a package not found error or any other strange apt-get issuse use this command and try installing packages again:
sudo dpkg --configure -a && sudo apt-get install –f
Download RMerlin's super source:
Below where 'ginger' is stated you'll need to replace it with your user name:
sudo ln -s /home/ginger/asuswrt-merlin/tools/brcm /opt/brcm
export PATH=$PATH:/opt/brcm/hndtools-mipsel-linux/bin:/opt/brcm/hndtools-mipsel-uclibc/bin
sudo mkdir -p /media/ASUSWRT/
sudo ln -s /home/ginger/asuswrt-merlin /media/ASUSWRT/asuswrt-merlin
Your build environment is now prepared to go ahead and build the firmware image, it will probably take around 1 hour to finish building an image depending on your system.
To build an image for the RT-N66U
cd /home/ginger/asuswrt-merlin/release/src-rt
make clean
make rt-n66u
To build an image for the RT-AC66U:
sudo mkdir /home/ginger/asuswrt-merlin/release/src-rt-6.x/wl/sysdeps/default/linux
cd /home/ginger/asuswrt-merlin/release/src-rt-6.x
make clean
make rt-ac66u
Important notes:
Never issue a "make distclean", or else you'll have to reconfigure everything (kernel, firmware and all user time built in features)
While you can run make menuconfig inside the router/ folder to configure build options, these will be overriden by the parent Makefile.
To enable or disable an option, you have to edit $HOME/asuswrt/release/src-rt/target.mak . You can see the name of the available options by running make menuconfig from inside the router/ directory.
If your router does not boot after flashing a firmware built by you following these instructions I do not take any responsibility.
A ginormous thank you to RMerlin for all his hard work and dedication on this mod and to everybody elses sources for this howto.
Last edited: