Benutzer-Werkzeuge

Webseiten-Werkzeuge


event:2014:hacksession

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen RevisionVorhergehende Überarbeitung
Nächste Überarbeitung
Vorhergehende Überarbeitung
project:hacksession [2014-03-21 01:46] – [#2-4 minikrebs upgrading] 78.42.84.17event:2014:hacksession [2020-07-20 16:38] (aktuell) – ↷ Links angepasst weil Seiten im Wiki verschoben wurden 192.168.146.218
Zeile 19: Zeile 19:
   * flashing openwrt   * flashing openwrt
  
-Code here - [[https://github.com/makefu/wr703_mod/|git repo:]]+ 
 +Code here - [[https://github.com/makefu/wr703_mod/|git repo]]
  
 ===== Hardware TP-Link WR703N / WR702N / MR3020 ===== ===== Hardware TP-Link WR703N / WR702N / MR3020 =====
Zeile 27: Zeile 28:
   * possible flash-upgrade [[http://www.datasheetdir.com/MX25L6445EM2I-10G+download|(8MB) MX25L6445EM2I]] / this needs new uboot -> [[http://www.nexflash.com/NR/rdonlyres/A5B6C30B-C174-43CF-867E-E1A2F371A07C/0/W25Q128FV.pdf|(16MB) W25Q128]]   * possible flash-upgrade [[http://www.datasheetdir.com/MX25L6445EM2I-10G+download|(8MB) MX25L6445EM2I]] / this needs new uboot -> [[http://www.nexflash.com/NR/rdonlyres/A5B6C30B-C174-43CF-867E-E1A2F371A07C/0/W25Q128FV.pdf|(16MB) W25Q128]]
   * ram [[http://www.datasheetarchive.com/dlmain/Datasheets-13/DSA-254809.pdf|(64MB) HY5DU121622]]   * ram [[http://www.datasheetarchive.com/dlmain/Datasheets-13/DSA-254809.pdf|(64MB) HY5DU121622]]
-  * SMA connector (not: RP SMA ... as in reverse pin)+  * SMA connector (not: RP SMA ... as in reverse pin), these are astonishingly hard to get, we only got a 20-package: http://www.aliexpress.com/item/Wholesale-RP-SMA-female-antenna-cable-RG316-15cm-Free-shipping/602734040.html
  
  
-## Flasher+==== Flasher ==== 
 WCH CH341A  WCH CH341A 
   * seems not to be supported by flashrom:   * seems not to be supported by flashrom:
Zeile 36: Zeile 38:
   * we have not made it working in a VM ... with a broken usb cable as it turns out.   * we have not made it working in a VM ... with a broken usb cable as it turns out.
  
-uboot+===== uboot ===== 
   * you need to upgrade uboot to be able to use new 16MB flash chip and find ART partition and more ... makefu go   * you need to upgrade uboot to be able to use new 16MB flash chip and find ART partition and more ... makefu go
 https://github.com/pepe2k/u-boot_mod https://github.com/pepe2k/u-boot_mod
  
-#crosscompiling+==== crosscompiling ==== 
   * get installer from: https://sourcery.mentor.com/GNUToolchain/release2640   * get installer from: https://sourcery.mentor.com/GNUToolchain/release2640
- ## gui didn't seem to be working for me: as a user +  * gcc for MIPS seems to be working as well
-  * ./installer -console +
-  * click through... +
-  * location: $HOME/sc_mips+
  
-#add to path+==== GUI ==== 
 +gui didn't seem to be working for me: as a user 
 +<code> 
 +./installer -console 
 +click through... 
 +</code> 
 +install location: $HOME/sc_mips 
 +==== add to path ==== 
 +<code>
 echo "export $PATH=$PATH:$home/sc_mips/bin" >> ~/.zshrc echo "export $PATH=$PATH:$home/sc_mips/bin" >> ~/.zshrc
- +</code> 
-## goto  checked out project+==== goto  checked out project ==== 
 +<code>
 cd u-boot_mod cd u-boot_mod
 make tplink_wr703n make tplink_wr703n
 make tplink_mr3020 make tplink_mr3020
 +</code>
 +==== booting u-boot_mod ====
 +
 +Hold button for 3 seconds to get http-server at 192.168.1.1, the wr703 will blink every second and flash shortly if released at the correct time.
 +
 +===== Image =====
 +We created the following image in the end:
 +    * Boot-loader (mtd0) (128k)
 +      * 64k u-boot (pepe2k)
 +        * <code>cd u-boot_mod; make tplink_mr3020 </code>
 +      * 64k data (copy from old image)
 +        * <code>dd if=old_image.bin of=data.bin bs=1 skip=65536 count=65536</code>
 +    * openwrt-image (mtd1-mtd3) (rest space)
 +      * we built one which provides maximum size (16mb) for building and with write-protection removed from mtd0 and mtd4
 +      * in <code>target/linux/ar71xx/files/drivers/mtd/tplinkpart.c
 + change parts[3].mask_flags=MTD_WRITABLE and parts[0].mask_flags=MTD_WRITABLE to 0</code>
 +    * ART (mtd4) (65k)
 +      * 64k wifi config data (copy from old image)
 +      * <code>dd if=old_image.bin of=art.bin bs=1 skip=$(($old_image_size - 65536))</code>
 +
 +
  
  
Zeile 65: Zeile 96:
 WR702N WR702N
   * TP-Link wr702n [[ http://pdf1.alldatasheet.com/datasheet-pdf/view/458190/EON/EN25QH16-104HIP.html|2MB EN25QH16 flash]]   * TP-Link wr702n [[ http://pdf1.alldatasheet.com/datasheet-pdf/view/458190/EON/EN25QH16-104HIP.html|2MB EN25QH16 flash]]
 +  * You will need to replace both, RAM and flash and you will not have a working USB adapter. just buy a wr703
  
      
 MR3020 MR3020
 +  * [[http://wiki.openwrt.org/toh/tp-link/tl-mr3020|openwrt page]]
 +  * [[http://www.amazon.de/dp/B00634PLTW/?tag=krebsco-21|buy at amazon.de]]
 +  * [[http://www.amazon.com/dp/B006DEBXD0/?tag=krebsco-20|buy at amazon.com]]
  
  
Zeile 89: Zeile 124:
   * barbecue takes too much time away from your hacking session / albi   * barbecue takes too much time away from your hacking session / albi
   * rp SMA is not the plug you want   * rp SMA is not the plug you want
 +  * completely read through (not skim) wifi and forum entries, i completely overlooked that the bootloader contains two parts: code AND config data /makefu
 +  * Cross-Compiling (openWRT, u-boot) is not that hard /makefu
 +  * the u-boot_mod by pepe2k (https://github.com/pepe2k/u-boot_mod) is absolutely great as it provides an extremely simple way to upgrade the router via http-failsafe.  /makefu
 +
  
 ===== #1: Soundflower ===== ===== #1: Soundflower =====
-  * [[project:soundflower#hacksession_1]]+  * [[friedhof:soundflower#hacksession_1]]
event/2014/hacksession.1395362801.txt.gz · Zuletzt geändert: 2014-03-21 01:46 von 78.42.84.17