This is an old revision of the document!


OpenWrt di TL-MR3020

Spesifikasi

  • Arsitektur MIPS
  • Atheros AR9330 rev 1
  • CPU Atheros AR7240@400MHz
  • RAM 32 MiB
  • Flash 4 MiB
  • Wi-Fi 802.11 b/g/n 150Mbps
  • Porta Fast Ethernet 100 Mbps, 1 buah
  • Porta USB 2.0, 1 buah

Kebutuhan

  • Komputer/laptop dengan sistem GNU/Linux
  • TP-Link TL-MR3020
  • Kabel UTP Cat5/6 dengan RJ45 terpasang (sudah disediakan di dalam paket)
  • Kabel daya mini-USB (sudah disediakan di dalam paket)

Persiapan

  • Sakelar di MR3020 kebetulan diset ke 3G ;-)
  • Colok kabel daya ke porta mini-USB di MR3020, dan ujung lainnya ke porta USB komputer/laptop
  • Colok kabel UTP melalui RJ45-nya ke porta Ethernet di MR3020, dan ujung lainnya ke porta Ethernet di komputer/laptop
  • Jalankan perintah
    dhclient eth0

Pemasangan

  • Buka panel kendali di peramban dengan mengunjungi http://192.168.0.254/, pengguna admin, dan kata sandi admin
  • Pilih System Settings - Firmware Upgrade.
    Firmware Version: 3.12.11 Build 111128 Rel.34725n
    Hardware Version: MR3020 v1 00000000
  • Kemudian pilih berkas firmware OpenWrt yang sudah diunduh dengan tombol Telusuri
  • Tekan tombol Upgrade dan selesai. Sila pulang :D

Paket-Paket

Daftar paket-paket OpenWrt.

  • Konfigurasi repo opkg.
    vim /etc/opkg.conf
  • Mutakhirkan indeks paket.
    opkg update
  • Pasang paket.
    opkg install wget-nossl terminfo libncurses screen

Mengembalikan ke Firmware Bawaan

  • Download the factory original firmware from the official site.
    $ wget -c http://www.tp-link.com/resources/software/TL-WR743ND_V2_131129.zip
  • Save the hash of the archive.
    $ sha1sum TL-WR743ND_V2_131129.zip > TL-WR743ND_V2_131129.zip.sha1
  • Unzip the archive.
    $ unzip TL-WR743ND_V2_131129.zip
    Archive:  TL-WR743ND_V2_131129.zip
      inflating: wr743ndv2_en_3_17_0_up_boot(131129).bin
      inflating: How to upgrade TP-LINK Wireless  N Router.pdf
  • Copy *.bin to the machine which we want to flash with scp.
    scp *.bin root@192.192.168.1.1:
  • Login to the machine with SSH.
    $ ssh root@192.168.1.1
    root@192.168.1.1's password:
    # ls
    wr743ndv2_en_3_17_0_up_boot(131129).bin
    # df -h
    Filesystem                Size      Used Available Use% Mounted on
    rootfs                  640.0K    600.0K     40.0K  94% /
    /dev/root                 2.3M      2.3M         0 100% /rom
    tmpfs                    14.0M    536.0K     13.5M   4% /tmp
    /dev/mtdblock3          640.0K    600.0K     40.0K  94% /overlay
    overlayfs:/overlay      640.0K    600.0K     40.0K  94% /
    tmpfs                   512.0K         0    512.0K   0% /dev
  • Try to flash the firmware with mtd.
    # mtd -r write wr743ndv2_en_3_17_0_up_boot\(131129\).bin firmware
    Unlocking firmware ...
    
    Writing from wr743ndv2_en_3_17_0_up_boot(131129).bin to firmware ...  [e]Failed to erase block
  • If it is failed, then use dd command first to skip the first 257 512-byte block.
    # mv wr743ndv2_en_3_17_0_up_boot\(131129\).bin orig.bin
    # dd if=orig.bin of=tplink.bin skip=257 bs=512
    7680+0 records in
    7680+0 records out
  • Run to reflash the firmware again.
    # mtd -r write tplink.bin firmware
    Unlocking firmware ...
    
    Writing from tplink.bin to firmware ...     
    Rebooting ...
    Connection to 192.168.1.1 closed by remote host.
    Connection to 192.168.1.1 closed.

Daftar Bacaan

 
doc/openwrt.1468640940.txt.gz · Last modified: 2016/07/16 03:49 by stwn · [Old revisions]
Recent changes RSS feed Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki