STANDARD DISCLAIMER: I'm not responsible for voided warranties, bricked routers, lost packets or money. This worked for me, this is how I got openwrt working on mine.
HOW TO:
1. Download OpenWrt firmware http://downloads.openwrt.org/snapshots/ … uashfs.uni
2. Log in to tp link web interface and update firmware the same as you would the standard tp-link firmware
3. wait for the router to reboot (approx 2 mins)
4. Telnet into the router at 192.168.1.1
5. The wr-841nd apparently only has 4mb of rom (but 32mb ram!) so we need to make a little room by running these commands
OpenWrt being a full blown linux distro has its own package manager called opkg (fairly similar to apt-get in functionality/features)
opkg remove kmod-pppoe
opkg remove kmod-ppp
opkg remove ppp-mod-pppoe
opkg remove ppp
*Sorry to anyone who needs pppoe*
6. Get a current list of installable packages by running:
opkg update
7. Install the ath9k driver, hostapd-mini daemon (so the router can function as an access point, somewhat of a workaround for the ath9k drivers not supporting master mode), and the web interface
opkg install kmod-ath9k
opkg install hostapd-mini
opkg install luci-admin-full
opkg install luci-fastindex
* opkg-install luci-admin-full will probably give a warning/error message, ignore it and keep going (it sorts itself out on the next reboot)
8. Reboot the router by typing reboot at the prompt (give it a minute or two to do so)
9. When the router reboots wifi will still not work just yet. if you telnet back into the router and run the command
wifi up
it will promptly tell you that wlan0 is disabled.
to remedy this
cd /etc/config/
vi wireless
This will open the configuration for the wlan0 (wifi) interface.
for those of you who don't know how to use vi:
press i to enter insert mode
find the line that says
#REMOVE THIS LINE TO ENABLE WIFI
option disabled 1
and change it to
option disabled 0
press the escape key to go back to command mode
type :wq and press enter to save the file and quit vi.
10. now that your out of vi (and have just completed the hardest part of the whole process) run the command
wifi up
11. Now your tp link wr-841nd router is running openwrt and fully functional. You may log in to the web interface and config your wireless security from there, or if you wanna kick it oldschool telnet/ssh back into the router and edit the config file /etc/config/wireless accordingly.
-optional installs-
+For easy/lazy configging via web interface
opkg install luci-app-firewall
opkg install luci-app-upnp
+Tool for bandwidth/throughput testing.
opkg install iperf
-tips and misc info-
you can change the tx output by running by:
iwconfig wlan0 txpower Nmw
-OR-
iwconfig wlan0 txpower Ndba
max 100mw or 20dba
Configuration files for the wired (lan) connections are located in /etc/config/ and if your digging around in there with vi i'll assume you know what your doing and won't waste the time to explain what everything does.
Most linux distros are perfectly happy with the dir command, OpenWrt isn't. If that annoys you
alias dir="ls"
is your salvation.
opkg files (packagename) will list all of the files associated with a package.
when you reboot the router opkg update is nullified, you need to rerun it if you want to install something.
Most commands (such as opkg) will accept the --help flag and give you syntax hints.
if your tinkering around with openwrt and find yourself low on space removing luci-theme-openwrt and replacing it with luci-theme-openwrtlight is an easy way to squeak out some extra room (openwrt is 71.2kb openwrtlight is 6.16kb, doesn't sound like much when you've only got 4mb to work with every bit counts) and installing luci-admin-mini instead of luci-admin-full (or you could just remove luci altogether) will save a good bit space as well but cut out some functionality of the web config as well.
If your really get into hacking around and want to see what packages are available (without setting your console scrollback to 2048 lines) you can view them all here http://downloads.openwrt.org/snapshots/ … /packages/
Being that the board in this router does have a usb connection (solder required) and there are packages for various storage formats, cups (printing), torrent clients, and i even saw something about teamspeak2 in the package list , id say this thing has has a pretty good hack value to it.
A few Screenshots:
cmdline banner
web interface
cat /proc/cpuinfo
bandwidth tests
NOTE: my wireless card is pure 802.11G 54mbs only, 802.11n cards should get much better results
to run the test pictured above you must have iperf installed
iperf -c <your pc's ip address> -u -b 100m (if you have an 802.11n wireless card change the last part to 300m)
(Last edited by davidork on 17 Aug 2009, 11:23)