Recover bricked TL-MR3020
If your TL-MR3020 router is bricked with the following symptoms, most likely you can use this method to recover it.
- Ping the router without problem
- Telnet connection failed
- SSH connection failed
Solution:
- Put the router switch to AP mode
- Turn on the router power
- Push and hold the "WPS" button
- When the WPS Led flash slowly, switch on AP mode to 3G mode. The LED should flash quicky.
Now, you can Telnet to router
Erase the root data
Login to the router via telnet and enter the following command. Most likely your router is now recovered.
mtd -r erase rootfs_data |
Continue following procedures if it is still not working.
Copy firmware to router
- Login to router via telnet and change the password in order to enable SSH
passwd |
- Copy the OpenWRT firmware to the router /tmp folder. I personally like and use WinSCP.
Upload the firmware to router
SSH to router and write the firmware to router. Where code.bin is your OpenWRT firmware file.
mtd -r write code.bin firmware |
Reboot the router and your router should be working now. If all the above methods is not working for you, then you should go for Serial Console method to recover the bricked router.
Removing Applications from Raspberry Pi
sudo apt-get –purge remove APPNAME #replace APPNAME with the name of the app you want to remove |
sudo apt-get remove scratch |
Raspberry Pi Schedule Turn OFF/ON Display
sudo su - #switch to supuer user
crontab -e #edit crontab file
|
Put this line at the end of the file. This will turn off display at 5.30PM and turn on display at 8.30AM
30 17 * * * tvservice -o 30 8 * * * tvservice -p; fbset -depth 8; fbset -depth 16 |
* * * * * command to be executed - - - - - | | | | | | | | | +----- day of week (0-6) (Sunday=0) | | | +------- month (1-12) | | +--------- day of month (1-31) | +----------- hour (0-23) +------------- minute (0-59)
Raspberry Pi Schedule Reboot
sudo su - #switch to supuer user
crontab -e #edit crontab file
|
Put this line at the end of the file. This will reboot the Raspberry Pi at 1.30PM every day.
30 13 * * * sudo reboot |
* * * * * command to be executed - - - - - | | | | | | | | | +----- day of week (0-6) (Sunday=0) | | | +------- month (1-12) | | +--------- day of month (1-31) | +----------- hour (0-23) +------------- minute (0-59)
Configure the Raspberry Pi a Static IP Address
- Raspberry IP: 192.168.0.123
- Router IP (Gateway): 192.168.0.254
- Subnet Mask: 255.255.255.0
cat /etc/network/interfaces |
auto lo
iface lo inet loopback
iface eth0 inet dhcp allow-hotplug wlan0
iface wlan0 inet manual wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf iface default inet dhcp |
sudo nano /etc/network/interfaces |
address 192.168.0.123
netmask 255.255.255.0 network 192.168.0.0 broadcast 192.168.0.255 gateway 192.168.0.254 |
auto lo iface lo inet loopback allow-hotplug wlan0 |
cat /etc/resolv.conf |
nameserver 192.168.0.254 |
sudo nano /etc/resolv.conf |