Tuesday, June 24, 2014

OpenWRT for TL-WA801ND V2

I bought a TL-WA801ND router with version 2.1, unfortunately DD-WRT doesn't support it and OpenWRT only support version 1. After a few hours googling and retrying, I finally had the OpenWRT installed onto the router.

Thanks to TasksOfOhm who provided an awesome tutorial and binaries for TL-WA801ND. Please refer to the below link for more information:

Go to the link below to download the binaries:
I downloaded below ROM and flashed it into the router using the original web admin interface.

Below are the errors I had and the ways to fix it. Please note that if you download a different ROM other than r41150 you may not experience the below errors

After the router is flashed and rebooted, I typed in 192.168.1.1 and got the below errors:

  • /usr/lib/lua/luci/dispatcher.lua:211: /etc/config/luci seems to be corrupt, unable to find section 'main'
    stack traceback:
    [C]: in function 'assert'
    /usr/lib/lua/luci/dispatcher.lua:211: in function 'dispatch'
    /usr/lib/lua/luci/dispatcher.lua:195: in function

The above error occurred because /etc/config/luci does not exist. You will need to create this file yourself. To do this:
  1. Telnet 192.168.1.1 to access your router. By default, telnet access is enabled and ssh is disabled so no pasword is needed. Please set the password here then access it via ssh
  2. create /etc/config/luci file and copy the below content in:
    • config core 'main'
              option lang 'auto'
              option mediaurlbase '/luci-static/openwrt.org'
              option resourcebase '/luci-static/resources'

      config extern 'flash_keep'
              option uci '/etc/config/'
              option dropbear '/etc/dropbear/'
              option openvpn '/etc/openvpn/'
              option passwd '/etc/passwd'
              option opkg '/etc/opkg.conf'
              option firewall '/etc/firewall.user'
              option uploads '/lib/uci/upload/'

      config internal 'languages'
              option en 'English'
              option 'zh_cn' 'SimpChinese'

      config internal 'sauth'
              option sessionpath '/tmp/luci-sessions'
              option sessiontime '3600'

      config internal 'ccache'
              option enable '1'

      config internal 'themes'
              option OpenWrt '/luci-static/openwrt.org'
              option Bootstrap '/luci-static/bootstrap'
  3. Save the file and retry visiting 192.168.1.1, now I am getting
    •  
      /usr/lib/lua/luci/dispatcher.lua:284: No valid theme found
      stack traceback:
       [C]: in function 'assert'
       /usr/lib/lua/luci/dispatcher.lua:284: in function 'dispatch'
       /usr/lib/lua/luci/dispatcher.lua:195: in function 

  • To resolve the problem we need to reinstall luci-theme-bootstrap.


  •  Download the above package and upload it into the router /tmp. You can use WinSCP to upload the file. Remember to set WinSCP to use SCP protocol, not FTP or SFTP. Also in the Advanced configuration pane, need to disable Environment => SCP/Shell => Other Options => Lookup user groups
  • SSH to your router /tmp, and run below command

    •  opkg install luci-theme-bootstrap_svn-r10375-1_ar71xx.ipk

  • Revisit 192.168.1.1 you should see the OpenWRT web interface





  • 2 Comments:

    Anonymous said...

    Hi, i want to buy this AP. do you know another problem? I will use this way, is possible? http://wiki.openwrt.org/doc/recipes/routedclient#using.routing

    thank you

    Karl Bernard said...

    I read this post and the ones at TasksofOhm. I downloaded the latest firmware builds from TOM's DropBox and used the built-in firmware update tool to upload it to my TL-WA801ND V2, and then Voila, Presto, Abracadabra,it was running fully functional OpenWRT. :)