Difference between revisions of "OpenWRT: Build Firmware X86"
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		
		
	
Onnowpurbo (talk | contribs)  | 
				Onnowpurbo (talk | contribs)   | 
				||
| Line 51: | Line 51: | ||
==Konfigurasi Default==  | ==Konfigurasi Default==  | ||
| − | Konfigurasi untuk   | + | Konfigurasi untuk X86 untuk simulasi GNS3  | 
| − |   Target System (  | + | |
| − |   Target Profile (  | + |   Target System (x86)  --->  | 
| + |  Subtarget (Generic)  --->  | ||
| + |   Target Profile (Generic)  --->  | ||
  Target Images  --->  |   Target Images  --->  | ||
| + |        [*] tar.gz (NEW)  | ||
        [*] ext4 (NEW)  |         [*] ext4 (NEW)  | ||
| + |        [*] squashfs (NEW)  | ||
| + |        -*- Build GRUB images (Linux x86 or x86_64 host only)  | ||
| + |        [*]   Use Console Terminal (in addition to Serial) (NEW)  | ||
| + |        (ttyS0) Serial port device (NEW)  | ||
| + |        (38400) Serial port baud rate (NEW)  | ||
| + |        [*] Build VirtualBox image files (VDI)  | ||
| + |        [*] Build VMware image files (VMDK)  | ||
| + |        -*- Pad images to filesystem size (for JFFS2)   | ||
        [*] GZip images (NEW)  |         [*] GZip images (NEW)  | ||
| − |         (  | + |            *** Image Options ***  | 
| − |         (  | + |         (4) Kernel partition size (in MB)  | 
| − | + |         (48) Root filesystem partition size (in MB) (NEW)  | |
| − | + |         (/dev/sda2) Root partition on target device (NEW)    | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
  LuCI  --->  |   LuCI  --->  | ||
        1. Collections  --->  |         1. Collections  --->  | ||
| Line 148: | Line 80: | ||
              -*- luci-base  |               -*- luci-base  | ||
              -*- luci-mod-admin-full  |               -*- luci-mod-admin-full  | ||
| − | |||
| − | |||
| − | |||
| − | |||
        3. Applications  --->  |         3. Applications  --->  | ||
| − | |||
| − | |||
| − | |||
| − | |||
              -*- luci-app-firewall  |               -*- luci-app-firewall  | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
        4. Themes  --->  |         4. Themes  --->  | ||
              -*- luci-theme-bootstrap  |               -*- luci-theme-bootstrap  | ||
| − | |||
| − | |||
              <*> luci-theme-openwrt  |               <*> luci-theme-openwrt  | ||
        5. Protocols  --->  |         5. Protocols  --->  | ||
| Line 181: | Line 90: | ||
              -*- luci-proto-ppp  |               -*- luci-proto-ppp  | ||
        6. Libraries  --->  |         6. Libraries  --->  | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
Revision as of 09:58, 28 January 2015
Siapkan Aplikasi Pendukung
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 libncurses5-dev curl php-xml-parser \ libexpat1 libexpat1-dev libssl-dev libdaemon*
cd /usr/local/src wget http://www.cpan.org/modules/by-module/XML/XML-Parser-2.44.tar.gz tar zxvf XML-Parser-2.44.tar.gz cd /usr/local/src/XML-Parser-2.44 perl Makefile.PL make install
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 ./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
Hasilnya akan tersimpan di
~/openwrt.trunk/trunk/bin/
Konfigurasi Default
Konfigurasi untuk X86 untuk simulasi GNS3
Target System (x86)  --->
Subtarget (Generic)  --->
Target Profile (Generic)  --->
Target Images  --->
      [*] tar.gz (NEW)
      [*] ext4 (NEW)
      [*] squashfs (NEW)
      -*- Build GRUB images (Linux x86 or x86_64 host only)
      [*]   Use Console Terminal (in addition to Serial) (NEW)
      (ttyS0) Serial port device (NEW)
      (38400) Serial port baud rate (NEW)
      [*] Build VirtualBox image files (VDI)
      [*] Build VMware image files (VMDK)
      -*- Pad images to filesystem size (for JFFS2) 
      [*] GZip images (NEW)
          *** Image Options ***
      (4) Kernel partition size (in MB)
      (48) Root filesystem partition size (in MB) (NEW)
      (/dev/sda2) Root partition on target device (NEW) 
LuCI  --->
      1. Collections  --->
            -*- luci
            <*> luci-ssl
      2. Modules  --->
            -*- luci-base
            -*- luci-mod-admin-full
      3. Applications  --->
            -*- luci-app-firewall
      4. Themes  --->
            -*- luci-theme-bootstrap
            <*> luci-theme-openwrt
      5. Protocols  --->
            <*> luci-proto-3g
            <*> luci-proto-ipv6
            -*- luci-proto-ppp
      6. Libraries  --->