Difference between revisions of "OpenWRT: Build Firmware Mikrotik RB433"

From OnnoWiki
Jump to navigation Jump to search
 
(11 intermediate revisions by the same user not shown)
Line 4: Line 4:
  
  
Dalam contoh ini akan di perlihatkan cara compile firmware Buffalo WZR HP G450H untuk keperluah MESH dengan OLSRD. oleh karenanya membutuhkan aplikasi seperti
+
Dalam contoh ini akan di perlihatkan cara compile firmware Mikrotik RB433 untuk keperluah MESH dengan OLSRD. oleh karenanya membutuhkan aplikasi seperti
  
 
* luci
 
* luci
Line 32: Line 32:
 
Lakukan sebagai user biasa
 
Lakukan sebagai user biasa
  
  svn co svn://svn.openwrt.org/openwrt/trunk/ ~/openwrt.trunk/trunk
+
  git clone git://git.openwrt.org/openwrt.git
  cd ~/openwrt.trunk/trunk/
+
  cd openwrt
 
  ./scripts/feeds update
 
  ./scripts/feeds update
 
  ./scripts/feeds install meshwizard openssh-server openssh-client
 
  ./scripts/feeds install meshwizard openssh-server openssh-client
Line 46: Line 46:
 
  ./scripts/feeds install libdlna libgupnp libgupnp-dlna rtorrent
 
  ./scripts/feeds install libdlna libgupnp libgupnp-dlna rtorrent
 
  ./scripts/feeds install usb-modeswitch usb-modeswitch-data usbutils multiwan
 
  ./scripts/feeds install usb-modeswitch usb-modeswitch-data usbutils multiwan
  ./scripts/feeds install 6in4 6rd 4th 6to4 6tunnel libdaemon
+
  ./scripts/feeds install 6in4 6rd 4th 6to4 6tunnel libdaemon aprx usb-modeswitch
  ./scripts/feeds install pptpd ppp-mod-pptp
+
  ./scripts/feeds install pptpd ppp-mod-pptp smstools3 picocom
  ./scripts/feeds install aprx
+
  ./scripts/feeds install kamailio4 kamailio asterisk18 asterisk11 coova-chilli
 +
./scripts/feeds update -a
 +
./scripts/feeds install -a
 +
make clean
 
  make defconfig
 
  make defconfig
 
  make menuconfig
 
  make menuconfig
  make clean
+
  make world
make -j 3 world
+
 
 +
 
 +
Proses Compile HARUS dilakukan DUA KALI. Dengan beda menuconfig, yaitu:
 +
 
 +
* OpenWRT Untuk Netboot ini minimalis sekali.
 +
* OpenWRT Untuk Flash NAND.
 +
 
 +
==Setup Menuconfig untuk OpenWRT netboot==
 +
 
 +
Lakukan konfigurasi minimalis sekali.
  
 +
cd ~/openwrt.trunk/trunk
 +
rm .config
 +
make menuconfig
  
==Setup Menuconfig==
+
Yang perlu di set hanya:
 +
 
 +
Target System > Atheros AR7xxx/AR9xxx
 +
Subtarget > Mikrotik devices with NAND flash
 +
Target Profile > Atheros WiFi (ath5k)
 +
Target Images >
 +
        ramdisk
 +
Kernel modules > Other modules >
 +
    kmod-nand
 +
    kmod-nand-ar934x
 +
 
 +
==Setup Menuconfig untuk OpenWRT flash NAND==
  
 
Menuconfig untuk [[Firmware]] Buffalo WZRHPG300GNH2 untuk
 
Menuconfig untuk [[Firmware]] Buffalo WZRHPG300GNH2 untuk
Line 70: Line 96:
 
  Target Profile > Atheros WiFi (ath5k)  
 
  Target Profile > Atheros WiFi (ath5k)  
 
  Target Images >
 
  Target Images >
         ramdisk
+
         cpio.gz
 
         tar.gz
 
         tar.gz
 +
        ext4
 +
        jffs2
 
         squashfs
 
         squashfs
 +
        GZip images
 
  Network >
 
  Network >
 
     6in4
 
     6in4
Line 134: Line 163:
 
                                 uhttpd-mod-tls
 
                                 uhttpd-mod-tls
 
                                 uhttpd-mod-ubus  
 
                                 uhttpd-mod-ubus  
  Network > aprx
+
  Network > ahcpd
 +
          aprx
 
           authsae
 
           authsae
 
           hostapd
 
           hostapd
Line 146: Line 176:
 
           vnstati
 
           vnstati
 
           wshaper
 
           wshaper
 +
          vsc7385-ucode-ap83
 +
          vsc7385-ucode-pb44
 +
          vsc7395-ucode-ap83
 +
          vsc7395-ucode-pb44
 +
          Add rfkill support
 
  LuCI > 1. Collections >
 
  LuCI > 1. Collections >
 
             luci
 
             luci
Line 152: Line 187:
 
             luci-mod-freifunk
 
             luci-mod-freifunk
 
         3. Applications >
 
         3. Applications >
 +
            luci-app-ahcp
 
             luci-app-commands
 
             luci-app-commands
 
             luci-app-freifunk-diagnostics
 
             luci-app-freifunk-diagnostics
Line 181: Line 217:
 
     kmod-fs-ntfs
 
     kmod-fs-ntfs
 
     kmod-fs-vfat
 
     kmod-fs-vfat
 +
Kernel modules > Other modules >
 +
    kmod-nand
 +
    kmod-nand-ar934x
 
  Kernel modules > Wireless Drivers >  
 
  Kernel modules > Wireless Drivers >  
 +
    kmod-ath
 +
    kmod-ath5k
 
     kmod-ath9k-htc
 
     kmod-ath9k-htc
 
     kmod-ath9k-common
 
     kmod-ath9k-common
 
     kmod-ath9k
 
     kmod-ath9k
 +
    kmod-lib80211
 
  Kernel modules > Network Support >
 
  Kernel modules > Network Support >
 
     kmod-bridge
 
     kmod-bridge
 
     kmod-pptp
 
     kmod-pptp
 +
    kmod-ipip
 
  Kernel modules > SPI Support >
 
  Kernel modules > SPI Support >
 
     kmod-mmc-spi
 
     kmod-mmc-spi
Line 206: Line 249:
 
         msmtp-nossl
 
         msmtp-nossl
 
         msmtp-queue
 
         msmtp-queue
 +
 +
==Referensi==
 +
 +
* http://blog.vodkamelone.de/archives/148-Installing-OpenWrt-on-a-Microtik-Routerboard-RB433.html
  
 
==Pranala Menarik==
 
==Pranala Menarik==
Line 217: Line 264:
  
 
* [[OpenWRT: Build Firmware]]
 
* [[OpenWRT: Build Firmware]]
 +
* [[OpenWRT: Build Firmware Download Source Pendukung]]
 
* [[OpenWRT: Build Firmware Buffalo WZRHPG450H]]
 
* [[OpenWRT: Build Firmware Buffalo WZRHPG450H]]
 
* [[OpenWRT: Build Firmware Buffalo WZRHPG300N]]
 
* [[OpenWRT: Build Firmware Buffalo WZRHPG300N]]
 +
* [[OpenWRT: Build Firmware Buffalo WZRHPG300NH2]]
 
* [[Buffalo]]
 
* [[Buffalo]]
 
* [[Buffalo: WZRHPG450H Cara Recovery]]
 
* [[Buffalo: WZRHPG450H Cara Recovery]]
 
* [[Buffalo: WZRHPG450H OpenWRT mengaktifkan setelah di flash]]
 
* [[Buffalo: WZRHPG450H OpenWRT mengaktifkan setelah di flash]]
* '''[[Buffalo: WZRHPG450H Membuat Firmware OpenWRT Sendiri]]''' '''COOL'''
+
* '''[[Buffalo: WZRHPG450H Membuat Firmware OpenWRT Sendiri]]''' '''RECOMMENDED'''
 
* [[Buffalo: WZRHPG450H OpenWRT instalasi aplikasi Pendukung OLSRD]]
 
* [[Buffalo: WZRHPG450H OpenWRT instalasi aplikasi Pendukung OLSRD]]
* [[OpenWRT: Build Firmware Ubiquiti NanoStation2]]
+
* [[OpenWRT: Build Firmware Ubiquiti NanoStation2]] '''RECOMMENDED'''
 +
* [[OpenWRT: Build Firmware Ubiquiti NanoStationM2]] '''RECOMMENDED'''
 
* [[OpenWRT: Build Firmware Mikrotik RB433]]
 
* [[OpenWRT: Build Firmware Mikrotik RB433]]
 
* [[OpenWRT: Build Firmware Linksys WRT160NL]]
 
* [[OpenWRT: Build Firmware Linksys WRT160NL]]
 
* [[OpenWRT: Build Firmware Linksys WRT54GL]]
 
* [[OpenWRT: Build Firmware Linksys WRT54GL]]
 +
 +
===APRX===
 +
 +
 +
* [[OpenWRT: Build Firmware Buffalo WZRHPG300NH2 untuk APRX]]
 +
 +
===IPv6===
 +
 +
* [[OpenWRT: IPv6]]
 +
* [[OpenWRT IPv6: Build Firmware Linksys WRT160NL]]
 +
* [[OpenWRT IPv6: Build Firmware Linksys WRT160NL Tanpa WebGUI]]
 +
* [[OpenWRT IPv6: Build Firmware Buffalo WZRHPG450H]]
 +
* [[OpenWRT IPv6: Build Firmware Buffalo WZRHPG300NH2]]
 +
* [[OpenWRT IPv6: Setup tunnel ke tunnelbroker]]
 +
* [[OpenWRT IPv6: Konfigurasi]]
 +
* [[OpenWRT IPv6: Konfigurasi WAN6 dengan radvd]]
  
 
===Flash Firmware===
 
===Flash Firmware===
Line 233: Line 299:
 
* [[OpenWRT: Flash Linksys WRT54GL]]
 
* [[OpenWRT: Flash Linksys WRT54GL]]
 
* [[OpenWRT: Flash Linksys WRT160NL]]
 
* [[OpenWRT: Flash Linksys WRT160NL]]
* [[OpenWRT: Flash Buffalo WZRHP450H]]
+
* [[OpenWRT: Flash Buffalo WZRHP450H]] '''RECOMMENDED'''
 
* [[OpenWRT: Flash Buffalo WZRHP300N]]
 
* [[OpenWRT: Flash Buffalo WZRHP300N]]
* [[OpenWRT: Flash UBNT NanoStation2]]
+
* [[OpenWRT: Flash UBNT NanoStation2]] '''RECOMMENDED'''
* [[OpenWRT: Flash UBNT NanoStation M2]]
+
* [[OpenWRT: Flash UBNT NanoStation M2]] '''RECOMMENDED'''
 
* [[OpenWRT: Flash UBNT NanoStation Loco M2]]
 
* [[OpenWRT: Flash UBNT NanoStation Loco M2]]
 +
* [[OpenWRT: Flash UBNT Bullet M2]] '''RECOMMENDED'''
 +
* [[OpenWRT: Flash Mikrotik RB433]] '''RECOMMENDED'''
 +
* [[OpenWRT: Flash Mikrotik RB450]]
  
 
===Misc===
 
===Misc===
  
* [[OpenWRT: Setup OLSR di UBNT via CLI]]
+
* [[OpenWRT: Setup WiFi]]
* [[OpenWRT: Mikrotik RB433]]
+
* [[OpenWRT: Setup PPTP VPN Server]]
 +
* [[OpenWRT: Setup OLSR di UBNT via CLI]] '''RECOMMENDED'''
 +
* [[OpenWRT: Mikrotik RB433]] '''RECOMMENDED'''
 
* [[OpenWRT: Setup OLSR Sederhana]]
 
* [[OpenWRT: Setup OLSR Sederhana]]
 +
* [[OpenWRT: Setup OLSR via Web]] '''RECOMMENDED'''
 
* [[OLSR - di OpenWRT]]
 
* [[OLSR - di OpenWRT]]
 
* [[OpenWRT: 3G modem]]
 
* [[OpenWRT: 3G modem]]
Line 249: Line 321:
 
* [[OpenWRT: Setup Firewall]]
 
* [[OpenWRT: Setup Firewall]]
 
* [[OpenWRT: Konfigurasi UBNT NanoStation2 tanpa WebGUI]]
 
* [[OpenWRT: Konfigurasi UBNT NanoStation2 tanpa WebGUI]]
 +
* [[OpenWRT: OLSR nameservice plugin]]
  
 
===UBNT===
 
===UBNT===
Line 260: Line 333:
 
* [[UBNT: olsr dengan openwrt]]
 
* [[UBNT: olsr dengan openwrt]]
 
* [[UBNT: olsr dengan kamikaze openwrt]]
 
* [[UBNT: olsr dengan kamikaze openwrt]]
* [[UBNT: olsr dengan backfire openwrt]] '''RECOMMENDED'''
+
* [[UBNT: olsr dengan backfire openwrt]]
 
* [[UBNT: UniFi]]
 
* [[UBNT: UniFi]]
 
* [[UBNT: UniFi Konfigurasi Awal]]
 
* [[UBNT: UniFi Konfigurasi Awal]]
Line 269: Line 342:
 
* [[OLSR - di Ubuntu]]
 
* [[OLSR - di Ubuntu]]
 
* [[OpenWRT]]
 
* [[OpenWRT]]
 +
* [[OLSR: NAT di UBNT dengan OLSR]]

Latest revision as of 06:19, 9 May 2016

WARNING: ini akan membutuhkan banyak akses ke Internet untuk download, termasuk waktu proses make. Termasuk download kernel linux, waktu compile toolchain :( ... Tampaknya tidak bisa OFFLINE :(



Dalam contoh ini akan di perlihatkan cara compile firmware Mikrotik RB433 untuk keperluah MESH dengan OLSRD. oleh karenanya membutuhkan aplikasi seperti

  • luci
  • olsrd
  • freifunk

Pastikan

  • Target System AR71xx
  • Subtarget Devices with NAND flash
  • Target Profile Atheros WiFi (ath5k)
  • Driver wireless Atheros AR9381? di install.
  • Network olsrd


Siapkan Pendukung

Lakukan

sudo su
apt-get update
apt-get install subversion gawk flex sharutils bison libz-dev patch fakeroot lzma git-core build-essential

Compile Menggunakan Development Trunk

Development Trunk tampaknya paling RECOMMENDED

Lakukan sebagai user biasa

git clone git://git.openwrt.org/openwrt.git
cd openwrt
./scripts/feeds update
./scripts/feeds install meshwizard openssh-server openssh-client
./scripts/feeds install freifunk-common freifunk-gwcheck freifunk-mapupdate
./scripts/feeds install luci luci-app-meshwizard luci-app-olsr luci-app-olsr-services
./scripts/feeds install luci-app-olsr-viz luci-app-freifunk-policyrouting luci-mod-freifunk
./scripts/feeds install luci-theme-freifunk-generic olsrd olsrd-mod-txtinfo olsrd-mod-dyn-gw
./scripts/feeds install olsrd-mod-dyn-gw-plain olsrd-mod-dot-draw
./scripts/feeds install olsrd-mod-arprefresh olsrd-mod-watchdog olsrd-mod-tas olsrd-mod-httpinfo
./scripts/feeds install olsrd-mod-pgraph olsrd-mod-secure olsrd-mod-bmf
./scripts/feeds install luci-app-upnp minidlna miniupnpc miniupnpd luci-app-minidlna
./scripts/feeds install libdlna libgupnp libgupnp-dlna rtorrent
./scripts/feeds install usb-modeswitch usb-modeswitch-data usbutils multiwan
./scripts/feeds install 6in4 6rd 4th 6to4 6tunnel libdaemon aprx usb-modeswitch
./scripts/feeds install pptpd ppp-mod-pptp smstools3 picocom
./scripts/feeds install kamailio4 kamailio asterisk18 asterisk11 coova-chilli
./scripts/feeds update -a
./scripts/feeds install -a
make clean
make defconfig
make menuconfig
make world


Proses Compile HARUS dilakukan DUA KALI. Dengan beda menuconfig, yaitu:

  • OpenWRT Untuk Netboot ini minimalis sekali.
  • OpenWRT Untuk Flash NAND.

Setup Menuconfig untuk OpenWRT netboot

Lakukan konfigurasi minimalis sekali.

cd ~/openwrt.trunk/trunk
rm .config
make menuconfig

Yang perlu di set hanya:

Target System > Atheros AR7xxx/AR9xxx
Subtarget > Mikrotik devices with NAND flash
Target Profile > Atheros WiFi (ath5k) 
Target Images >
       ramdisk
Kernel modules > Other modules >
    kmod-nand
    kmod-nand-ar934x

Setup Menuconfig untuk OpenWRT flash NAND

Menuconfig untuk Firmware Buffalo WZRHPG300GNH2 untuk

  • OLSR
  • WebGUI LuCI
  • Modem 3G
  • PPTP untuk VPN
  • UPnP dan miniDLNA untuk Media Server

Lebih detail-nya adalah:

Target System > Atheros AR7xxx/AR9xxx
Subtarget > Mikrotik devices with NAND flash
Target Profile > Atheros WiFi (ath5k) 
Target Images >
       cpio.gz 
       tar.gz
       ext4
       jffs2
       squashfs
       GZip images
Network >
    6in4
    6rd
    6relayd
    6to4
    6tunnel    
    chat
    ds-lite
    iputils-arping
    iputils-clockdiff
    iputils-ping
    iputils-ping6
    iputils-tftpd
    iputils-tracepath
    iputils-tracepath6
    iputils-traceroute6
    multiwan
    ppp
       ppp-mod-pppoa
       ppp-mod-pppoe
       ppp-mod-pppol2tp
       ppp-mod-pptp
       ppp-mod-radius
    ppp-multilink
       pppdump 
       pppstats  
    radvd
    radvdump       
Network > Routing and Redirection > ip
Network > Routing and Redirection > relayd
Network > Routing and Redirection > olsrd
Network > Routing and Redirection > olsrd >
       olsrd-mod-arprefresh  
       olsrd-mod-bmf
       olsrd-mod-dot-draw
       olsrd-mod-dyn-gw
       olsrd-mod-dyn-gw-plain
       olsrd-mod-httpinfo
       olsrd-mod-jsoninfo
       olsrd-mod-mdns
       olsrd-mod-nameservice
       olsrd-mod-p2pd
       olsrd-mod-pgraph
       olsrd-mod-pud
       olsrd-mod-quagga
       olsrd-mod-secure
       olsrd-mod-sgwdynspeed
       olsrd-mod-txtinfo
       olsrd-mod-watchdog
Network > SSH > openssh-server
Network > VPN >
       openvpn-easy-rsa
       openvpn-nossl
       openvpn-openssl 
       openvpn-polarssl
       pptpd
Network > Time Synchronization > ntpclient
Network > Web Servers/Proxies > uhttpd
                                uhttpd-mod-lua
                                uhttpd-mod-tls
                                uhttpd-mod-ubus 
Network > ahcpd
          aprx
          authsae
          hostapd
          hostapd-mini
          hostapd-utils
          multiwan
          samba36-client
          samba36-server
          tc
          vnstat
          vnstati
          wshaper
          vsc7385-ucode-ap83
          vsc7385-ucode-pb44
          vsc7395-ucode-ap83
          vsc7395-ucode-pb44
          Add rfkill support
LuCI > 1. Collections >
            luci
            luci-ssl
       2. Modules >
            luci-mod-freifunk
       3. Applications >
            luci-app-ahcp
            luci-app-commands
            luci-app-freifunk-diagnostics
            luci-app-freifunk-policyrouting
            luci-app-meshwizard
            luci-app-multiwan
            luci-app-ntpc
            luci-app-olsr
            luci-app-olsr-services
            luci-app-olsr-viz
            luci-app-p2pblock
            luci-app-samba
            luci-app-statistics
            luci-app-upnp
            luci-app-vnstat
            luci-app-wshaper
       4. Themes >
            luci-theme-bootstrap
            luci-theme-freifunk-bno
            luci-theme-freifunk-generic
       6. Protocols >
            luci-proto-3g
       7. Server Interfaces >
            luci-sgi-uhttpd
       9. Freifunk >
            luci-mod-freifunk-community
            meshwizard
Kernel modules > Filesystems >
    kmod-fs-ntfs
    kmod-fs-vfat
Kernel modules > Other modules >
    kmod-nand
    kmod-nand-ar934x
Kernel modules > Wireless Drivers > 
    kmod-ath
    kmod-ath5k
    kmod-ath9k-htc
    kmod-ath9k-common
    kmod-ath9k
    kmod-lib80211
Kernel modules > Network Support >
    kmod-bridge
    kmod-pptp
    kmod-ipip
Kernel modules > SPI Support >
    kmod-mmc-spi
    kmod-spi-bitbang
    kmod-spi-dev
    kmod-spi-gpio
    kmod-spi-gpio-custom
Kernel Modules > USB Support >
    kmod-usb-serial
         kmod-usb-serial-ipw
         kmod-usb-serial-option
         kmod-usb-serial-qualcomm
         kmod-usb-serial-wwan
    kmod-usb-acm
    kmod-usb-storage
    kmod-usb-storage-extras
Mail > msmtp
       msmtp-nossl
       msmtp-queue

Referensi

Pranala Menarik

Build Firmware

APRX

IPv6

Flash Firmware

Misc

UBNT