TP link Archer c6v3 dead after supplying custom script through selector

TP link Archer c6 v3 dead after installing a custom firmware from the firmware selector.

apk-mbedtls base-files ca-bundle dnsmasq dropbear firewall4 fstools kmod-crypto-hw-eip93 kmod-gpio-button-hotplug kmod-leds-gpio kmod-nft-offload libc libgcc libustream-mbedtls logd mtd netifd nftables odhcp6c odhcpd-ipv6only ppp ppp-mod-pppoe procd-ujail uboot-envtools uci uclient-fetch urandom-seed urngd wpad-basic-mbedtls kmod-mt7603 kmod-mt7615e kmod-mt7663-firmware-ap -uboot-envtools luci luci-ssl
# Beware! This script will be in /rom/etc/uci-defaults/ as part of the image.
# Uncomment lines to apply:
#
wlan_name="OpenWrt"
wlan_password=""
#
root_password=""
lan_ip_address="192.168.1.1"
#
# pppoe_username=""
# pppoe_password=""

# log potential errors
exec >/tmp/setup.log 2>&1

if [ -n "$root_password" ]; then
  (echo "$root_password"; sleep 1; echo "$root_password") | passwd > /dev/null
fi

# Configure LAN
# More options: https://openwrt.org/docs/guide-user/base-system/basic-networking
if [ -n "$lan_ip_address" ]; then
  uci set network.lan.ipaddr="$lan_ip_address"
  uci commit network
fi

# Configure WLAN
# More options: https://openwrt.org/docs/guide-user/network/wifi/basic#wi-fi_interfaces
if [ -n "$wlan_name" -a -n "$wlan_password" -a ${#wlan_password} -ge 8 ]; then
  uci set wireless.@wifi-device[1].disabled='0'
  uci set wireless.@wifi-iface[1].disabled='0'
  uci set wireless.@wifi-iface[1].encryption='psk2'
  uci set wireless.@wifi-iface[1].ssid="$wlan_name"
  uci set wireless.@wifi-iface[1].key="$wlan_password"
  uci commit wireless
fi

# Configure PPPoE
# More options: https://openwrt.org/docs/guide-user/network/wan/wan_interface_protocols#protocol_pppoe_ppp_over_ethernet
if [ -n "$pppoe_username" -a "$pppoe_password" ]; then
  uci set network.wan.proto=pppoe
  uci set network.wan.username="$pppoe_username"
  uci set network.wan.password="$pppoe_password"
  uci commit network
fi

echo "All done!"


This is my code that bricked my router.

Now led stats like this. It’s not showing any response in recovery mode.

what recovery mode ?

you can always use serial.

Use tftp to flash a standard/default image.

Tried tftp, but no response. Will try in another client any deatailed guide

If you are using windows, disable the windows firewall. And remember - you need your computer to be setup as the tftp server the router is the client.

Any guide for that

Which version do you have?

tftp client or other

what serial please clarify

Sorry. I meant which version of the c6 do you have?

Edit - nvm. I see it in the first post. C6v3. One sec.

Here is the guide:

Nothing showing here firewall is off

Should be lan_ip_address="192.168.1.1/24" for 25.12. (CIDR notation)

Do you have a serial connection to imitate the tftp transfer?

Sorry I'm not following

1 Like

Let me try again

Do you have the serial connection from the router to the c6v3?

Since you don't know what it is, try failsafe instead - https://openwrt.org/docs/guide-user/troubleshooting/failsafe_and_factory_reset

1 Like

failsafe mode not working, not listening to the port… Ordered the UART for recovery.

The same issue happened with this guy TP-Link Archer C6 V3.2 EU: bricked after sysupgrade, no TFTP traffic - Installing and Using OpenWrt - OpenWrt Forum

1 Like

and you've obviously tried all the ports, right ?

Yes tried all lan port.