<h1>Introduction<&sol;h1>&NewLine;<p>I was using the Raspberry Pi as my wifi router&comma; but I have to admit I reached it&&num;8217&semi;s limit quite soon&period; Even with a good wifi usb dongle&comma; I couldn&&num;8217&semi;t get a stable and fast connection&period;<&sol;p>&NewLine;<p>I then bought on Amazon a TP-Link WR841&sol;ND&comma; a small and cheap router but quite strong and that can run OpenWRT&period; It provide 4 ethernet ports &plus; one for the inbound internet connection &plus; Wifi n 300Mbps&period; You can find the complete information about the model on the <a href&equals;"http&colon;&sol;&sol;wiki&period;openwrt&period;org&sol;toh&sol;tp-link&sol;tl-wr841nd">wiki of OpenWRT<&sol;a>&period;<&sol;p>&NewLine;<p>The first thing I have done is checking the version of the router&comma; I have the v9 meaning I won&&num;8217&semi;t be able to use the last stable version of OpenWRT &lpar;<span style&equals;"color&colon; &num;000000&semi;">12&period;09<&sol;span>&rpar; but only the bleeding edge &lpar;from <a class&equals;"urlextern" title&equals;"https&colon;&sol;&sol;dev&period;openwrt&period;org&sol;changeset&sol;40695" href&equals;"https&colon;&sol;&sol;dev&period;openwrt&period;org&sol;changeset&sol;40695" rel&equals;"nofollow">r40695<&sol;a>&rpar;&period; I can confirm that the last build is working perfectly well &lpar;<span style&equals;"color&colon; &num;404040&semi;">Chaos Calmer <a href&equals;"https&colon;&sol;&sol;dev&period;openwrt&period;org&sol;changeset&sol;42263">r42263<&sol;a>&rpar;&period; Because of the lack of space left after installing Luci &lpar;the administration panel&rpar;&comma; I wanted to create my own image to build into the squashfs the needed packages&period;<&sol;span><&sol;p>&NewLine;<p><span id&equals;"more-117"><&sol;span><&sol;p>&NewLine;<h1>Building image<&sol;h1>&NewLine;<p>Following <a href&equals;"http&colon;&sol;&sol;wiki&period;openwrt&period;org&sol;doc&sol;howto&sol;obtain&period;firmware&period;generate">the guide on the wiki<&sol;a>&comma; here is the step I&&num;8217&semi;ve done to have Luci &plus; miniupnpd installed directly in my image&period; All the commands need to be run as normal user&period;<&sol;p>&NewLine;<ol>&NewLine;<li>Downloading the image creator of the last build &colon;&NewLine;<pre class&equals;"brush&colon; bash&semi; title&colon; &semi; notranslate" title&equals;"">cd ~ &NewLine;mkdir openwrt &amp&semi;&amp&semi; cd openwrt &NewLine;wget http&colon;&sol;&sol;downloads&period;openwrt&period;org&sol;snapshots&sol;trunk&sol;ar71xx&sol;OpenWrt-ImageBuilder-ar71xx&lowbar;generic-for-linux-x86&lowbar;64&period;tar&period;bz2 &NewLine;tar -xvjf OpenWrt-ImageBuilder-ar71xx&lowbar;generic-for-linux-x86&lowbar;64&period;tar&period;bz2 &NewLine;cd OpenWrt-ImageBuilder-ar71xx&lowbar;generic-for-linux-x86&lowbar;64<&sol;pre>&NewLine;<&sol;li>&NewLine;<li>Updating the <code>repositories&period;conf<&sol;code> with the repositories of OpenWRT&period; Adding this to the end of the file &colon;&NewLine;<pre class&equals;"brush&colon; plain&semi; title&colon; &semi; notranslate" title&equals;"">src&sol;gz chaos&lowbar;calmer&lowbar;base http&colon;&sol;&sol;downloads&period;openwrt&period;org&sol;snapshots&sol;trunk&sol;ar71xx&sol;generic&sol;packages&sol;base &NewLine;src&sol;gz chaos&lowbar;calmer&lowbar;luci http&colon;&sol;&sol;downloads&period;openwrt&period;org&sol;snapshots&sol;trunk&sol;ar71xx&sol;generic&sol;packages&sol;luci &NewLine;src&sol;gz chaos&lowbar;calmer&lowbar;management http&colon;&sol;&sol;downloads&period;openwrt&period;org&sol;snapshots&sol;trunk&sol;ar71xx&sol;generic&sol;packages&sol;management &NewLine;src&sol;gz chaos&lowbar;calmer&lowbar;packages http&colon;&sol;&sol;downloads&period;openwrt&period;org&sol;snapshots&sol;trunk&sol;ar71xx&sol;generic&sol;packages&sol;packages &NewLine;src&sol;gz chaos&lowbar;calmer&lowbar;routing http&colon;&sol;&sol;downloads&period;openwrt&period;org&sol;snapshots&sol;trunk&sol;ar71xx&sol;generic&sol;packages&sol;routing &NewLine;src&sol;gz chaos&lowbar;calmer&lowbar;telephony http&colon;&sol;&sol;downloads&period;openwrt&period;org&sol;snapshots&sol;trunk&sol;ar71xx&sol;generic&sol;packages&sol;telephony<&sol;pre>&NewLine;<&sol;li>&NewLine;<li>Build the image with all the needed package and Luci &plus; miniupnpd &colon;&NewLine;<pre class&equals;"brush&colon; bash&semi; title&colon; &semi; notranslate" title&equals;"">make image PROFILE&equals;TLWR841 PACKAGES&equals;&quot&semi;luci luci-app-upnp&quot&semi;<&sol;pre>&NewLine;<&sol;li>&NewLine;<li>Once build you&&num;8217&semi;ll find the firmware into the folder <code>bin&sol;ar71xx<&sol;code> &colon;&NewLine;<pre class&equals;"brush&colon; bash&semi; title&colon; &semi; notranslate" title&equals;"">&Tab; 1&comma;6K elo 25 12&colon;06 md5sums &NewLine;&Tab; 2&comma;4M elo 25 12&colon;06 openwrt-ar71xx-generic-root&period;squashfs &NewLine;&Tab; 2&comma;3M elo 25 12&colon;06 openwrt-ar71xx-generic-root&period;squashfs-64k &NewLine;&Tab; 3&comma;8M elo 25 12&colon;06 openwrt-ar71xx-generic-tl-wr841nd-v3-squashfs-factory&period;bin &NewLine;&Tab; 3&comma;4M elo 25 12&colon;06 openwrt-ar71xx-generic-tl-wr841nd-v3-squashfs-sysupgrade&period;bin &NewLine;&Tab; 3&comma;8M elo 25 12&colon;06 openwrt-ar71xx-generic-tl-wr841nd-v5-squashfs-factory&period;bin &NewLine;&Tab; 3&comma;4M elo 25 12&colon;06 openwrt-ar71xx-generic-tl-wr841nd-v5-squashfs-sysupgrade&period;bin &NewLine;&Tab; 3&comma;8M elo 25 12&colon;06 openwrt-ar71xx-generic-tl-wr841nd-v7-squashfs-factory&period;bin &NewLine;&Tab; 3&comma;4M elo 25 12&colon;06 openwrt-ar71xx-generic-tl-wr841nd-v7-squashfs-sysupgrade&period;bin &NewLine;&Tab; 3&comma;8M elo 25 12&colon;06 openwrt-ar71xx-generic-tl-wr841n-v8-squashfs-factory&period;bin &NewLine;&Tab; 3&comma;4M elo 25 12&colon;06 openwrt-ar71xx-generic-tl-wr841n-v8-squashfs-sysupgrade&period;bin &NewLine;&Tab; 3&comma;8M elo 25 12&colon;06 openwrt-ar71xx-generic-tl-wr841n-v9-squashfs-factory&period;bin &NewLine;&Tab; 3&comma;4M elo 25 12&colon;06 openwrt-ar71xx-generic-tl-wr841n-v9-squashfs-sysupgrade&period;bin &NewLine;&Tab; 1&comma;5M elo 25 12&colon;06 openwrt-ar71xx-generic-uImage-gzip&period;bin &NewLine;&Tab; 1&comma;1M elo 25 12&colon;06 openwrt-ar71xx-generic-uImage-lzma&period;bin &NewLine;&Tab; 3&comma;2M elo 25 12&colon;06 openwrt-ar71xx-generic-vmlinux&period;bin &NewLine;&Tab; 3&comma;3M elo 25 12&colon;06 openwrt-ar71xx-generic-vmlinux&period;elf &NewLine;&Tab; 1&comma;5M elo 25 12&colon;06 openwrt-ar71xx-generic-vmlinux&period;gz &NewLine;&Tab; 1&comma;1M elo 25 12&colon;06 openwrt-ar71xx-generic-vmlinux&period;lzma &NewLine;&Tab; 1&comma;2M elo 25 12&colon;06 openwrt-ar71xx-generic-vmlinux-lzma&period;elf &NewLine;<&sol;pre>&NewLine;<&sol;li>&NewLine;<li>If you are updating a current installation of OpenWRT use <span style&equals;"color&colon; &num;000000&semi; font-family&colon; Consolas&comma; 'Bitstream Vera Sans Mono'&comma; 'Courier New'&comma; Courier&comma; monospace&semi; font-size&colon; 16px&semi; line-height&colon; 17&period;6000003814697px&semi; white-space&colon; pre&semi;">openwrt-ar71xx-generic-tl-wr841n-v9-squashfs-sysupgrade&period;bin<&sol;span><br &sol;>&NewLine;Or if you are changing the firmware for OpenWRT <span style&equals;"color&colon; &num;000000&semi; font-family&colon; Consolas&comma; 'Bitstream Vera Sans Mono'&comma; 'Courier New'&comma; Courier&comma; monospace&semi; font-size&colon; 16px&semi; line-height&colon; 17&period;6000003814697px&semi; white-space&colon; pre&semi;">openwrt-ar71xx-generic-tl-wr841n-v9-squashfs-factory&period;bin<&sol;span><&sol;li>&NewLine;<&sol;ol>&NewLine;<h1>Downloads<&sol;h1>&NewLine;<div class&equals;"sdm&lowbar;download&lowbar;item "><div class&equals;"sdm&lowbar;download&lowbar;item&lowbar;top"><div class&equals;"sdm&lowbar;download&lowbar;thumbnail"><&sol;div><div class&equals;"sdm&lowbar;download&lowbar;title">OpenWRT Sysfactory for TL-841v9<&sol;div><&sol;div><div style&equals;"clear&colon;both&semi;"><&sol;div><div class&equals;"sdm&lowbar;download&lowbar;description"><p>This is a system factory to install OpenWRT on TP-Link 841v9 that have the manufacturer firmware&period;<&sol;p>&NewLine;<p>This image has been build the 25 January 2015 and has been tested on the router&period;<&sol;p>&NewLine;<p>You need to unrar it and then update the firmware of the router using the &ast;&period;bin and be patient&comma; that can take up to 10 minutes&period;<&sol;p>&NewLine;<h1>Disclaimer<&sol;h1>&NewLine;<p>Antoine Aflalo is furnishing this item &&num;8220&semi;as is&&num;8221&semi;&period; Antoine Aflalo does not provide any warranty of the item whatsoever&comma; whether express&comma; implied&comma; or statutory&comma; including&comma; but not limited to&comma; any warranty of merchantability or fitness for a particular purpose or any warranty that the contents of the item will be error-free&period;<br &sol;>&NewLine;In no respect shall Antoine Aflalo incur any liability for any damages&comma; including&comma; but limited to&comma; direct&comma; indirect&comma; special&comma; or consequential damages arising out of&comma; resulting from&comma; or any way connected to the use of the item&comma; whether or not based upon warranty&comma; contract&comma; tort&comma; or otherwise&semi; whether or not injury was sustained by persons or property or otherwise&semi; and whether or not loss was sustained from&comma; or arose out of&comma; the results of&comma; the item&comma; or any services that may be provided by Antoine Aflalo&period;<&sol;p>&NewLine;<&sol;div><div class&equals;"sdm&lowbar;download&lowbar;link"><span class&equals;"sdm&lowbar;download&lowbar;button"><a href&equals;"https&colon;&sol;&sol;www&period;aaflalo&period;me&sol;&quest;sdm&lowbar;process&lowbar;download&equals;1&download&lowbar;id&equals;208" class&equals;"sdm&lowbar;download blue" title&equals;"OpenWRT Sysfactory for TL-841v9" target&equals;"&lowbar;self">Download Now&excl;<&sol;a><&sol;span><span class&equals;"sdm&lowbar;download&lowbar;item&lowbar;count"><span class&equals;"sdm&lowbar;item&lowbar;count&lowbar;number">12999<&sol;span><span class&equals;"sdm&lowbar;item&lowbar;count&lowbar;string"> Downloads<&sol;span><&sol;span><&sol;div><&sol;div><div class&equals;"sdm&lowbar;clear&lowbar;float"><&sol;div>&NewLine;<div class&equals;"sdm&lowbar;download&lowbar;item "><div class&equals;"sdm&lowbar;download&lowbar;item&lowbar;top"><div class&equals;"sdm&lowbar;download&lowbar;thumbnail"><&sol;div><div class&equals;"sdm&lowbar;download&lowbar;title">OpenWRT SysUPDATE for TL-841v9<&sol;div><&sol;div><div style&equals;"clear&colon;both&semi;"><&sol;div><div class&equals;"sdm&lowbar;download&lowbar;description"><p>This is a system update for an existing installation of OpenWRT on TP-Link 841v9&period;<&sol;p>&NewLine;<p>This image has been build the 25 January 2015 and has been tested on the router&period;<&sol;p>&NewLine;<h1>Disclaimer<&sol;h1>&NewLine;<p>Antoine Aflalo is furnishing this item &&num;8220&semi;as is&&num;8221&semi;&period; Antoine Aflalo does not provide any warranty of the item whatsoever&comma; whether express&comma; implied&comma; or statutory&comma; including&comma; but not limited to&comma; any warranty of merchantability or fitness for a particular purpose or any warranty that the contents of the item will be error-free&period;<br &sol;>&NewLine;In no respect shall Antoine Aflalo incur any liability for any damages&comma; including&comma; but limited to&comma; direct&comma; indirect&comma; special&comma; or consequential damages arising out of&comma; resulting from&comma; or any way connected to the use of the item&comma; whether or not based upon warranty&comma; contract&comma; tort&comma; or otherwise&semi; whether or not injury was sustained by persons or property or otherwise&semi; and whether or not loss was sustained from&comma; or arose out of&comma; the results of&comma; the item&comma; or any services that may be provided by Antoine Aflalo&period;<&sol;p>&NewLine;<&sol;div><div class&equals;"sdm&lowbar;download&lowbar;link"><span class&equals;"sdm&lowbar;download&lowbar;button"><a href&equals;"https&colon;&sol;&sol;www&period;aaflalo&period;me&sol;&quest;sdm&lowbar;process&lowbar;download&equals;1&download&lowbar;id&equals;206" class&equals;"sdm&lowbar;download blue" title&equals;"OpenWRT SysUPDATE for TL-841v9" target&equals;"&lowbar;self">Download Now&excl;<&sol;a><&sol;span><span class&equals;"sdm&lowbar;download&lowbar;item&lowbar;count"><span class&equals;"sdm&lowbar;item&lowbar;count&lowbar;number">3802<&sol;span><span class&equals;"sdm&lowbar;item&lowbar;count&lowbar;string"> Downloads<&sol;span><&sol;span><&sol;div><&sol;div><div class&equals;"sdm&lowbar;clear&lowbar;float"><&sol;div>&NewLine;