linux:openwrt
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| Beide Seiten der vorigen RevisionVorhergehende ÜberarbeitungNächste Überarbeitung | Vorhergehende Überarbeitung | ||
| linux:openwrt [2016/05/10 22:44] – move | linux:openwrt [2019/02/27 14:26] (aktuell) – Externe Bearbeitung 127.0.0.1 | ||
|---|---|---|---|
| Zeile 2: | Zeile 2: | ||
| ===== Derivate ===== | ===== Derivate ===== | ||
| + | * [[LEDE]] | ||
| * [[FreeWRT]] | * [[FreeWRT]] | ||
| * [[Freifunk-Firmware]] | * [[Freifunk-Firmware]] | ||
| Zeile 9: | Zeile 10: | ||
| ===== Erweiterungen ===== | ===== Erweiterungen ===== | ||
| * [[http:// | * [[http:// | ||
| + | |||
| + | ===== Pakete installieren ===== | ||
| + | |||
| + | < | ||
| + | opkg install PAKET | ||
| + | </ | ||
| + | |||
| + | Pakete auflisten: | ||
| + | |||
| + | < | ||
| + | opkg list | ||
| + | </ | ||
| + | ===== Tips & Tricks ====== | ||
| + | ==== Debrick ==== | ||
| + | https:// | ||
| + | |||
| + | **Beispiel: TP-Link Archer C50 v3** | ||
| + | * https:// | ||
| + | * https:// | ||
| + | |||
| + | **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]], | ||
| + | < | ||
| + | # tcpdump -ni eth0 arp | ||
| + | ARP, Request who-has 192.168.0.66 tell 192.168.0.86, | ||
| + | </ | ||
| + | |||
| + | Set up your computer to address 192.168.0.66, | ||
| + | < | ||
| + | # ip addr add dev eth0 192.168.0.66/ | ||
| + | </ | ||
| + | |||
| + | 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: | ||
| + | **TFTP-Server** | ||
| + | </ | ||
| + | |||
| + | **Vorgehen: | ||
| + | |||
| + | Download Recovery: https:// | ||
| + | |||
| + | 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: | ||
| + | |||
| + | - Setup your computer to 192.168.0.66 (SubnetMask /24 = 255.255.255.0) and connect it to LAN1. | ||
| + | - Start TFTP server and provide recovery file with it. | ||
| + | - To activate TFTP Recovery press and hold WPS/Reset Button during powering (8 sec.) on until WPS LED turns on. | ||
| + | |||
| + | **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 ~/ | ||
| + | </ | ||
| + | |||
| + | Change the ownership of the folder and the file in it | ||
| + | |||
| + | < | ||
| + | chown nobody: | ||
| + | </ | ||
| + | |||
| + | 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: | ||
| + | |||
| + | < | ||
| + | / | ||
| + | </ | ||
| + | |||
| + | 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 | ||
| + | </ | ||
| ===== Siehe auch ===== | ===== Siehe auch ===== | ||
linux/openwrt.1462920257.txt.gz · Zuletzt geändert: (Externe Bearbeitung)
