Difference between revisions of "OpenWRT: Build Firmware Linksys WRT54GL"

From OnnoWiki
Jump to navigation Jump to search
 
(7 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 Linksys WRT54GL untuk keperluah MESH dengan OLSRD. oleh karenanya membutuhkan aplikasi seperti
  
 
* luci
 
* luci
Line 11: Line 11:
  
 
Pastikan
 
Pastikan
* Compile untuk AR71xx
+
* Compile untuk Broadcom BCM947xx/953xx [2.4]
* Profile WZR HP G450H
+
* Profile Generic, Broadcom WiFi (default)
 
* Driver wireless Atheros AR9381? di install.
 
* Driver wireless Atheros AR9381? di install.
 
* Network olsrd
 
* Network olsrd
Line 28: Line 28:
  
 
==Compile Menggunakan Development Trunk==
 
==Compile Menggunakan Development Trunk==
 +
 +
'''WARNING:''' Backfire tampaknya paling Recommended
 +
 +
Lakukan sebagai user biasa
 +
 +
svn co svn://svn.openwrt.org/openwrt/trunk/ ~/openwrt.trunk/trunk
 +
cd ~/openwrt.trunk/trunk/
 +
./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
 +
 +
==Compile Menggunakan Backfire Trunk==
  
 
Backfire tampaknya paling '''RECOMMENDED'''
 
Backfire tampaknya paling '''RECOMMENDED'''
Line 58: Line 88:
 
  Target Profile > Generic, Broadcom WiFi (default)  
 
  Target Profile > Generic, Broadcom WiFi (default)  
 
  Target Images > tar.gz  
 
  Target Images > tar.gz  
  Base system > bridge
+
  Base system > bridge      
Network >
 
    chat
 
    ppp
 
        ppp-mod-pppoa
 
        ppp-mod-pppoe
 
        ppp-mod-pppol2tp
 
        ppp-mod-pptp 
 
        ppp-mod-radius
 
    ppp-multilink
 
        pppdump
 
        pppstats       
 
Network > Routing and Redirection > ip
 
Network > Routing and Redirection > relayd
 
 
  Network > Routing and Redirection > olsrd
 
  Network > Routing and Redirection > olsrd
 
  Network > Routing and Redirection > olsrd >
 
  Network > Routing and Redirection > olsrd >
Line 91: Line 108:
 
     olsrd-mod-watchdog
 
     olsrd-mod-watchdog
 
  Network > SSH > openssh-server
 
  Network > SSH > openssh-server
Network > Time Synchronization > ntpclient
 
 
  Network > Web Servers/Proxies > uhttpd
 
  Network > Web Servers/Proxies > uhttpd
 
                                 uhttpd-mod-lua
 
                                 uhttpd-mod-lua
 
                                 uhttpd-mod-tls
 
                                 uhttpd-mod-tls
 
                                 uhttpd-mod-ubus  
 
                                 uhttpd-mod-ubus  
Network > hostapd
 
          hostapd-mini
 
          hostapd-utils
 
          multiwan
 
          samba36-client
 
          samba36-server
 
          tc
 
          vnstat
 
          vnstati
 
          wshaper
 
 
  LuCI > 1. Collections >
 
  LuCI > 1. Collections >
 
             luci
 
             luci
Line 135: Line 141:
 
             luci-mod-freifunk-community
 
             luci-mod-freifunk-community
 
             meshwizard
 
             meshwizard
Kernel modules > Filesystems >
 
    kmod-fs-ntfs
 
    kmod-fs-vfat
 
 
  Kernel modules > Wireless Drivers >  
 
  Kernel modules > Wireless Drivers >  
 
     kmod-ath9k-htc
 
     kmod-ath9k-htc
 
     kmod-ath9k-common
 
     kmod-ath9k-common
 
     kmod-ath9k
 
     kmod-ath9k
Kernel modules > Network Support >
 
    kmod-bridge
 
    kmod-pptp
 
    kmod-wprobe
 
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
 
 
  Utilities > iwinfo
 
  Utilities > iwinfo
Mail > msmtp
 
        msmtp-nossl
 
        msmtp-queue
 
  
 
==Update SVN==
 
==Update SVN==

Latest revision as of 07:11, 17 January 2015

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 Linksys WRT54GL untuk keperluah MESH dengan OLSRD. oleh karenanya membutuhkan aplikasi seperti

  • luci
  • olsrd
  • freifunk

Pastikan

  • Compile untuk Broadcom BCM947xx/953xx [2.4]
  • Profile Generic, Broadcom WiFi (default)
  • 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 zlib1g-dev patch \
fakeroot lzma git-core build-essential unzip

Compile Menggunakan Development Trunk

WARNING: Backfire tampaknya paling Recommended

Lakukan sebagai user biasa

svn co svn://svn.openwrt.org/openwrt/trunk/ ~/openwrt.trunk/trunk
cd ~/openwrt.trunk/trunk/
./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

Compile Menggunakan Backfire Trunk

Backfire tampaknya paling RECOMMENDED

Lakukan sebagai user biasa

svn co svn://svn.openwrt.org/openwrt/branches/backfire ~/openwrt.backfire/trunk
cd ~/openwrt.backfire/trunk/
./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 rtorrent
./scripts/feeds install usb-modeswitch usb-modeswitch-data usbutils multiwan
./scripts/feeds install 6in4 6rd 4th 6to4 6tunnel libdaemon
make defconfig
make menuconfig
make world

Setup Menuconfig

Menuconfig untuk Firmware Linksys WRT54GL untuk OLSR dilengkapi dengan WebGUI LuCI, Penggunaan Modem 3G

Target System > Broadcom BCM947xx/953xx [2.4]
Target Profile > Generic, Broadcom WiFi (default) 
Target Images > tar.gz 
Base system > bridge       
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-quagga
    olsrd-mod-secure
    olsrd-mod-tas
    olsrd-mod-txtinfo
    olsrd-mod-watchdog
Network > SSH > openssh-server
Network > Web Servers/Proxies > uhttpd
                                uhttpd-mod-lua
                                uhttpd-mod-tls
                                uhttpd-mod-ubus 
LuCI > 1. Collections >
            luci
            luci-ssl
       2. Modules >
            luci-mod-freifunk
       3. Applications >
            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-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 > Wireless Drivers > 
    kmod-ath9k-htc
    kmod-ath9k-common
    kmod-ath9k
Utilities > iwinfo

Update SVN

Untuk update SVN, di folder trunk lakukan

cd ~/openwrt.trunk/trunk/
svn cleanup
svn update
./scripts/feeds update

Lokasi Image

Lokasi image ada di

~/openwrt.trunk/trunk/bin/ar71xx/

Referensi

Pranala Menarik