Difference between revisions of "OpenWRT IPv6: Build Firmware Linksys WRT160NL"

From OnnoWiki
Jump to navigation Jump to search
(New page: WARNING: ini akan membutuhkan banyak akses ke Internet untuk download, termasuk waktu proses make. Termasuk download kernel linux, waktu compile toolchain :( ... Tampaknya tidak bisa OFFLI...)
 
 
(6 intermediate revisions by the same user not shown)
Line 45: Line 45:
 
  ./scripts/feeds install olsrd-mod-pgraph olsrd-mod-secure olsrd-mod-bmf
 
  ./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 luci-app-upnp minidlna miniupnpc miniupnpd luci-app-minidlna rtorrent
  ./scripts/feeds install usb-modeswitch usb-modeswitch-data usbutils multiwan
+
  ./scripts/feeds install usb-modeswitch usb-modeswitch-data usbutils multiwan libdaemon
  ./scripts/feeds install 6in4 6rd 4th 6to4 6tunnel libdaemon
+
 +
  ./scripts/feeds install 6in4 6rd 4th 6to4 6tunnel 4th aiccu dhcp6-server ip6tables radvd ip
 +
./scripts/feeds install isc-dhcp-server-ipv6 isc-dhcp-server-ipv4 libip6tc libip4tc libiptc
 +
./scripts/feeds install luci-proto-ipv6 luci-proto-3g luci-proto-core radvd radvdump
 +
./scripts/feeds install kmod-ipv6 kmod-tun kmod-sit kmod-iptunnel6 g6c wide-dhcpv6-server dnsmasq-dhcpv6
 
  make defconfig
 
  make defconfig
 
  make menuconfig
 
  make menuconfig
  make world
+
  make -j 3 world
  
 
==Setup Menuconfig==
 
==Setup Menuconfig==
  
Menuconfig untuk Firmware Linksys WRT160NL untuk OLSR dilengkapi dengan WebGUI LuCI, Penggunaan Modem 3G
+
Menuconfig untuk Firmware Linksys WRT160NL untuk OLSR dilengkapi dengan WebGUI LuCI, Penggunaan Modem [[3G]]
  
 
  Target System > Atheros AR7xxx/AR9xxx
 
  Target System > Atheros AR7xxx/AR9xxx
Line 59: Line 63:
 
  Target Profile > Linksys WRT160NL
 
  Target Profile > Linksys WRT160NL
 
  Target Images > tar.gz  
 
  Target Images > tar.gz  
Base system > bridge
 
 
  Base system > wireless tools
 
  Base system > wireless tools
 
  Network >
 
  Network >
 +
    6in4
 +
    6rd
 +
    6relayd
 +
    6to4
 +
    6tunnel
 +
    aiccu
 
     chat
 
     chat
 +
    dhcp6-server
 +
    ds-lite
 +
    hostapd
 +
    hostapd-mini
 +
    hostapd-utils
 +
    iftop
 +
    iputils-ping6
 +
    iputils-tracepath6
 +
    iputils-traceroute6
 +
    multiwan
 +
    odhcp6c     
 
     ppp
 
     ppp
 
         ppp-mod-pppoe       
 
         ppp-mod-pppoe       
 +
    radvd
 +
    radvdump
 +
    wshaper
 
  Network > Routing and Redirection > olsrd
 
  Network > Routing and Redirection > olsrd
 +
                                    ip
 
  Network > Routing and Redirection > olsrd >
 
  Network > Routing and Redirection > olsrd >
 
     olsrd-mod-arprefresh
 
     olsrd-mod-arprefresh
Line 93: Line 117:
 
             luci-ssl
 
             luci-ssl
 
         2. Modules >
 
         2. Modules >
 +
            luci-mod-failsafe
 
             luci-mod-freifunk
 
             luci-mod-freifunk
 
         3. Applications >
 
         3. Applications >
 +
            luci-app-freifunk-diagnostics
 
             luci-app-freifunk-policyrouting
 
             luci-app-freifunk-policyrouting
 +
            luci-app-freifunk-widgets
 
             luci-app-meshwizard
 
             luci-app-meshwizard
 
             luci-app-multiwan
 
             luci-app-multiwan
Line 102: Line 129:
 
             luci-app-olsr-services
 
             luci-app-olsr-services
 
             luci-app-olsr-viz
 
             luci-app-olsr-viz
 +
            luci-app-radv
 +
            luci-app-siitwizard
 
             luci-app-p2pblock
 
             luci-app-p2pblock
 
             luci-app-samba
 
             luci-app-samba
Line 111: Line 140:
 
             luci-theme-freifunk-bno
 
             luci-theme-freifunk-bno
 
             luci-theme-freifunk-generic
 
             luci-theme-freifunk-generic
 +
            luci-theme-openwrt
 
         6. Protocols >
 
         6. Protocols >
 
             luci-proto-3g
 
             luci-proto-3g
 +
            luci-proto-ipv6
 +
            luci-proto-relay
 
         7. Server Interfaces >
 
         7. Server Interfaces >
 
             luci-sgi-uhttpd
 
             luci-sgi-uhttpd
Line 153: Line 185:
  
 
* http://wiki.openwrt.org/doc/howto/build
 
* http://wiki.openwrt.org/doc/howto/build
 +
* http://www.rivy.org/2012/09/enable-ipv6-on-openwrt/
 +
* http://wiki.openwrt.org/doc/howto/ipv6
 +
* http://www.sixxs.net/wiki/Aiccu/Installing_on_OpenWRT
  
 
==Pranala Menarik==
 
==Pranala Menarik==
Line 164: Line 199:
  
 
* [[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]]
Line 175: Line 212:
 
* [[OpenWRT: Build Firmware Linksys WRT160NL]]
 
* [[OpenWRT: Build Firmware Linksys WRT160NL]]
 
* [[OpenWRT: Build Firmware Linksys WRT54GL]]
 
* [[OpenWRT: Build Firmware Linksys WRT54GL]]
 +
 +
===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 188: Line 236:
 
===Misc===
 
===Misc===
  
 +
* [[OpenWRT: Setup WiFi]]
 +
* [[OpenWRT: Setup PPTP VPN Server]]
 
* [[OpenWRT: Setup OLSR di UBNT via CLI]]
 
* [[OpenWRT: Setup OLSR di UBNT via CLI]]
 
* [[OpenWRT: Mikrotik RB433]]
 
* [[OpenWRT: Mikrotik RB433]]

Latest revision as of 11:07, 14 June 2013

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

  • luci
  • olsrd
  • freifunk

Pastikan

  • Compile untuk AR71xx
  • Profile Linksys WRT160NL
  • 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

Development Trunk 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 rtorrent
./scripts/feeds install usb-modeswitch usb-modeswitch-data usbutils multiwan libdaemon

./scripts/feeds install 6in4 6rd 4th 6to4 6tunnel 4th aiccu dhcp6-server ip6tables radvd ip
./scripts/feeds install isc-dhcp-server-ipv6 isc-dhcp-server-ipv4 libip6tc libip4tc libiptc
./scripts/feeds install luci-proto-ipv6 luci-proto-3g luci-proto-core radvd radvdump 
./scripts/feeds install kmod-ipv6 kmod-tun kmod-sit kmod-iptunnel6 g6c wide-dhcpv6-server dnsmasq-dhcpv6
make defconfig
make menuconfig
make -j 3 world

Setup Menuconfig

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

Target System > Atheros AR7xxx/AR9xxx
Subtarget > Generic 
Target Profile > Linksys WRT160NL
Target Images > tar.gz 
Base system > wireless tools
Network >
    6in4
    6rd
    6relayd
    6to4
    6tunnel
    aiccu
    chat
    dhcp6-server
    ds-lite
    hostapd
    hostapd-mini
    hostapd-utils
    iftop
    iputils-ping6
    iputils-tracepath6
    iputils-traceroute6
    multiwan
    odhcp6c      
    ppp
       ppp-mod-pppoe       
    radvd
    radvdump
    wshaper
Network > Routing and Redirection > olsrd
                                    ip
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 > Time Synchronization > ntpclient
Network > Web Servers/Proxies > uhttpd
                                uhttpd-mod-lua
                                uhttpd-mod-tls
                                uhttpd-mod-ubus 
LuCI > 1. Collections >
            luci
            luci-ssl
       2. Modules >
            luci-mod-failsafe
            luci-mod-freifunk
       3. Applications >
            luci-app-freifunk-diagnostics
            luci-app-freifunk-policyrouting
            luci-app-freifunk-widgets
            luci-app-meshwizard
            luci-app-multiwan
            luci-app-ntpc
            luci-app-olsr
            luci-app-olsr-services
            luci-app-olsr-viz
            luci-app-radv
            luci-app-siitwizard
            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
            luci-theme-openwrt
       6. Protocols >
            luci-proto-3g
            luci-proto-ipv6
            luci-proto-relay
       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
Kernel Modules > USB Support >
    kmod-usb-serial
         kmod-usb-serial-ipw
         kmod-usb-serial-option
         kmod-usb-serial-qualcomm
         kmod-usb-serial-wwan
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/

Tepatnya

~/openwrt.trunk/trunk/bin/ar71xx/openwrt-ar71xx-generic-wrt160nl-squashfs-factory.bin
~/openwrt.trunk/trunk/bin/ar71xx/openwrt-ar71xx-generic-wrt160nl-squashfs-sysupgrade.bin

Referensi

Pranala Menarik

Build Firmware

IPv6

Flash Firmware

Misc

UBNT