Sunday, December 27, 2020

Installing OpenWrt on tp-link 841

  1. install tftpd like explained here
  2. set logging to verbose in /etc/default/tftpd-hpa
    TFTP_OPTIONS="--secure --verbose"
  3. set the wired network card address to 192.168.0.66:
    ifconfig eth0 192.168.0.66
  4. copy the firmware file in the tftpd directory with the name wr841nv11_tp_recovery.bin
    cp [name of firmware file] /srv/tftp
  5. reboot the router holding the reset button
  6. check that the firmware file gets downloaded
    tail -f  /var/log/syslog | grep tftp
  7. wait until the router has rebooted
At this point the router is at 192.168.1.1, so in order to reach it you have to change the ip address of your network interface:
ifconfig eth0 192.168.1.66
ssh as root into the router:
ssh root@192.168.1.1
and set up the network as explained here and reboot. If this is not your only router you may want to disable dhcp in /etc/config/dhcp
option dhcpv6 'disabled'
option dhcpv4 'disabled'
Don't forget to set up a root password.