Benutzer-Werkzeuge

Webseiten-Werkzeuge


linux:openwrt

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Nächste Überarbeitung
Vorhergehende Überarbeitung
linux:openwrt [2016/05/10 22:36] – angelegt movelinux:openwrt [2019/02/27 14:26] (aktuell) – Externe Bearbeitung 127.0.0.1
Zeile 2: Zeile 2:
  
 ===== Derivate ===== ===== Derivate =====
-    * [[FreeWRT]] +  * [[LEDE]] 
-    * [[Freifunk-Firmware]] +  * [[FreeWRT]] 
-    * [[Gargoyle]] baut auf OpenWrt auf und ergänzt es um ein Webinterface mit vielen Funktionen +  * [[Freifunk-Firmware]] 
-    * [[Tomato]]+  * [[Gargoyle]] baut auf OpenWrt auf und ergänzt es um ein Webinterface mit vielen Funktionen 
 +  * [[Tomato]] 
 + 
 +===== Erweiterungen ===== 
 +  * [[http://x-wrt.org/|X-Wrt]] Erweiterung für OpenWrt, liefert ein Webinterface für den Endbenutzer 
 + 
 +===== Pakete installieren ===== 
 + 
 +<Code> 
 +opkg install PAKET 
 +</Code> 
 + 
 +Pakete auflisten: 
 + 
 +<Code> 
 +opkg list 
 +</Code> 
 +===== Tips & Tricks ====== 
 +==== Debrick ==== 
 +https://wiki.openwrt.org/doc/howto/generic.debrick 
 + 
 +**Beispiel: TP-Link Archer C50 v3** 
 +  * https://wiki.openwrt.org/toh/tp-link/archer-c50#debricking 
 +  * https://wiki.openwrt.org/toh/tp-link/tl-wdr4300#de-brick_or_oem_installation_using_the_tftp_recovery 
 + 
 +**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. 
 +<Code> 
 +# tcpdump -ni eth0 arp 
 +ARP, Request who-has 192.168.0.66 tell 192.168.0.86, length 46 
 +</Code> 
 + 
 +Set up your computer to address 192.168.0.66, netmask /24 (255.255.255.0). 
 +<Code> 
 +# ip addr add dev eth0 192.168.0.66/24 
 +</Code> 
 + 
 +Using TCPdump, you should now see request for new firmware image: 
 +<Code> 
 +# 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** 
 +</Code> 
 + 
 +**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)"
 + 
 +<Code> 
 +dd if=Archer_C50v3_EU_0.9.1_0.4_up_boot\[170608-rel35472\].bin of=tp_recovery.bin skip=1 bs=512 
 +</Code> 
 + 
 +**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** 
 + 
 +<Code> 
 +apt install atftpd 
 +</Code> 
 + 
 +Create directory where you want to put the image file  
 + 
 +<Code> 
 +mkdir /srv/tftp 
 +</Code> 
 + 
 +Put an image file into your directory  
 + 
 +<Code> 
 +cp ~/tp_recovery.bin /srv/tftp 
 +</Code> 
 + 
 +Change the ownership of the folder and the file in it  
 + 
 +<Code> 
 +chown nobody:nogroup -R /srv/tftp 
 +</Code> 
 + 
 +Run TFTP server  
 + 
 +<Code> 
 +atftpd --daemon /srv/tftp 
 +</Code> 
 + 
 +Check if your server is listening  
 + 
 +<Code> 
 +netstat -lunp|grep 69 
 +</Code> 
 + 
 +Evtl. verhindert rlinetd das sraten, da er auf dem gleichen Port lauscht, dann hilft: 
 + 
 +<Code> 
 +/etc/init.d/rlinetd stop 
 +</Code> 
 + 
 +Check that you can in fact pull the file from your tftp server  
 + 
 +<Code> 
 +$ tftp 192.168.0.66 
 +tftp> get tp_recovery.bin 
 +Received 8152633 bytes in 0.8 seconds 
 +tftp> quit 
 +</Code>
  
 ===== Siehe auch ===== ===== Siehe auch =====
linux/openwrt.1462919778.txt.gz · Zuletzt geändert: (Externe Bearbeitung)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki