Skip to content
This repository has been archived by the owner on Dec 14, 2020. It is now read-only.

Applying patches to source files

TeHashX edited this page Jan 28, 2013 · 8 revisions

Before building the firmware, you may apply patches to source files

Usage: patch -p1 < /path/file.patch but first, navigate to root of directory source

And don't forget to change "router" in paths with your ubuntu username


For example this patch fixes minidlna bookmarks on Samsung E Series TV.

cd /home/router/Downloads/ 

wget "http://sourceforge.net/tracker/download.php?group_id=243163&atid=1121516&file_id=457910&aid=3596625" -O samsungES.patch

cd /home/router/asuswrt-merlin/release/src-rt/router/minidlna/

patch -p1 < /home/router/Downloads/samsungES.patch

Another example of patch that solve streaming mkv files on Sony blu-ray players

cd /home/router/Downloads/ 

wget http://tinyurl.com/sonybdp-sx90-patch-zip

unzip sonybdp-sx90-patch-zip

cd /home/router/asuswrt-merlin/release/src-rt/router/minidlna/

patch -p1 < /home/router/Downloads/sonybdp-sx90.patch 

Now we are ready to build the firmware

  • For RT-N66U
cd /home/router/asuswrt-merlin/release/src-rt
make clean
make rt-n66u
  • For RT-AC66U
sudo mkdir /home/router/asuswrt-merlin/release/src-rt-6.x/wl/sysdeps/default/linux
cd /home/router/asuswrt-merlin/release/src-rt-6.x
make clean
make rt-ac66u

The compiled firmware image will be placed in /home/router/asuswrt-merlin/release/src-rt/image/

Clone this wiki locally