opkg install PAKET
Pakete auflisten:
opkg list
https://wiki.openwrt.org/doc/howto/generic.debrick
Beispiel: TP-Link Archer C50 v3
Hintergrund:
The stock firware (3.13.33(130617)) features a TFTP recovery client in bootloader. To activate it press and hold WPS/Reset Button during powering on until WPS LED turns on. Connect computer to LAN1. Using tcpdump, you should see ARP requests from router having address 192.168.0.86 looking for address 192.168.0.66.
# tcpdump -ni eth0 arp ARP, Request who-has 192.168.0.66 tell 192.168.0.86, length 46
Set up your computer to address 192.168.0.66, netmask /24 (255.255.255.0).
# ip addr add dev eth0 192.168.0.66/24
Using TCPdump, you should now see request for new firmware image:
# tcpdump -npi eth0 udp IP 192.168.0.86.2195 > 192.168.0.66.69: 44 RRQ "wdr4300v1_tp_recovery.bin" octet timeout 5 **TFTP-Server**
Vorgehen:
Download Recovery: https://static.tp-link.com/Archer%20C50(EU)_V3_170608.zip
Wichtig! Nach dem Entpacken das bin-File preparieren („To prepare recovery file cut the first 0x200 (that is 512) Bytes from original firmware (This cut only header of firmware, Recovery need bootloader and firmware)“)
dd if=Archer_C50v3_EU_0.9.1_0.4_up_boot\[170608-rel35472\].bin of=tp_recovery.bin skip=1 bs=512
Grundsätzliche Vorgehensweise:
TFTP-Server installieren
apt install atftpd
Create directory where you want to put the image file
mkdir /srv/tftp
Put an image file into your directory
cp ~/tp_recovery.bin /srv/tftp
Change the ownership of the folder and the file in it
chown nobody:nogroup -R /srv/tftp
Run TFTP server
atftpd --daemon /srv/tftp
Check if your server is listening
netstat -lunp|grep 69
Evtl. verhindert rlinetd das sraten, da er auf dem gleichen Port lauscht, dann hilft:
/etc/init.d/rlinetd stop
Check that you can in fact pull the file from your tftp server
$ tftp 192.168.0.66 tftp> get tp_recovery.bin Received 8152633 bytes in 0.8 seconds tftp> quit