Difference between revisions of "OpenWRT: Build Firmware Raspberry Pi"
Jump to navigation
Jump to search
Onnowpurbo (talk | contribs) |
Onnowpurbo (talk | contribs) |
||
| (8 intermediate revisions by the same user not shown) | |||
| Line 8: | Line 8: | ||
cd /usr/local/src | cd /usr/local/src | ||
| − | wget http://www.cpan.org/modules/by-module/XML/XML-Parser-2. | + | wget http://www.cpan.org/modules/by-module/XML/XML-Parser-2.44.tar.gz |
| − | tar zxvf XML-Parser-2. | + | tar zxvf XML-Parser-2.44.tar.gz |
| − | cd /usr/local/src/XML-Parser-2. | + | cd /usr/local/src/XML-Parser-2.44 |
perl Makefile.PL | perl Makefile.PL | ||
make install | make install | ||
| Line 21: | Line 21: | ||
Lakukan sebagai '''user biasa''' | Lakukan sebagai '''user biasa''' | ||
| − | + | git clone git://git.openwrt.org/openwrt.git | |
| − | cd | + | 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 45: | Line 45: | ||
make world | make world | ||
| + | Hasilnya akan tersimpan di | ||
| + | ~/openwrt.trunk/trunk/bin/brcm2708 | ||
==Konfigurasi Default== | ==Konfigurasi Default== | ||
| Line 62: | Line 64: | ||
[*] include zImage | [*] include zImage | ||
[*] include FIT (NEW) | [*] include FIT (NEW) | ||
| + | Administration ---> | ||
| + | <*> asterisk11-gui | ||
| + | Kernel modules ---> | ||
| + | USB Support ---> | ||
| + | -*- kmod-usb-core | ||
| + | <*> kmod-usb-hid | ||
| + | <*> kmod-usb-printer | ||
| + | <*> kmod-usb-serial | ||
| + | <*> kmod-usb-serial-ark3116 | ||
| + | <*> kmod-usb-serial-belkin | ||
| + | <*> kmod-usb-serial-ch341 | ||
| + | <*> kmod-usb-serial-cp210 | ||
| + | <*> kmod-usb-serial-cypress-m8 | ||
| + | <*> kmod-usb-serial-dmx_usb_module | ||
| + | <*> kmod-usb-serial-ftdi | ||
| + | <*> kmod-usb-serial-gadget | ||
| + | <*> kmod-usb-serial-ipw | ||
| + | <*> kmod-usb-serial-keyspan | ||
| + | <*> kmod-usb-serial-mct | ||
| + | <*> kmod-usb-serial-mos7720 | ||
| + | <*> kmod-usb-serial-motorola-phone | ||
| + | <*> kmod-usb-serial-option | ||
| + | <*> kmod-usb-serial-oti6858 | ||
| + | <*> kmod-usb-serial-pl2303 | ||
| + | <*> kmod-usb-serial-qualcomm | ||
| + | <*> kmod-usb-serial-sierrawireless | ||
| + | <*> kmod-usb-serial-ti-usb | ||
| + | <*> kmod-usb-serial-visor | ||
| + | -*- kmod-usb-serial-wwan | ||
| + | -*- kmod-usb-storage | ||
| + | <*> kmod-usb-storage-extras | ||
| + | <*> kmod-usb2 | ||
| + | <*> kmod-usb3 | ||
| + | <*> kmod-usbmon | ||
| + | Wireless Drivers ---> | ||
| + | -*- kmod-ath | ||
| + | -*- kmod-ath9k | ||
| + | <*> kmod-ath9k-htc | ||
| + | <*> kmod-brcmfmac | ||
| + | -*- kmod-brcmutil | ||
| + | <*> kmod-carl9170 | ||
| + | -*- kmod-cfg80211 | ||
| + | -*- kmod-lib80211 | ||
| + | <*> kmod-libertas-sd | ||
| + | <*> kmod-libertas-usb | ||
| + | -*- kmod-mac80211 | ||
| + | <*> kmod-mac80211-hwsim | ||
| + | <*> kmod-net-rtl8188eu | ||
| + | <*> kmod-net-zd1201 | ||
| + | -*- kmod-p54-common | ||
| + | <*> kmod-p54-usb | ||
| + | <*> kmod-rt2500-usb | ||
| + | <*> kmod-rt2800-usb | ||
| + | -*- kmod-rt2x00-lib | ||
| + | <*> kmod-rt73-usb | ||
| + | <*> kmod-rtl8187 | ||
| + | <*> kmod-rtl8192cu | ||
| + | <*> kmod-zd1211rw | ||
| + | Network ---> | ||
| + | Telephony ---> | ||
| + | -*- asterisk11 | ||
| + | <*> sipp | ||
| + | <*> sipsak | ||
| + | -*- ahcpd | ||
| + | -*- chat | ||
| + | <*> hostapd | ||
| + | -*- hostapd-common | ||
| + | <*> hostapd-mini | ||
| + | <*> hostapd-utils | ||
| + | -*- iw | ||
| + | <*> odhcp6c | ||
| + | <*> odhcpd | ||
| + | <*> ppp | ||
| + | <*> ppp-mod-pppoe | ||
| + | -*- samba36-server | ||
| + | -*- wshaper | ||
| + | <*> wwan | ||
| + | LuCI ---> | ||
| + | 1. Collections ---> | ||
| + | -*- luci | ||
| + | <*> luci-ssl | ||
| + | 2. Modules ---> | ||
| + | -*- luci-base | ||
| + | -*- luci-mod-admin-full | ||
| + | <*> luci-mod-failsafe | ||
| + | <*> luci-mod-freifunk | ||
| + | <*> luci-mod-freifunk-community | ||
| + | <*> luci-mod-rpc | ||
| + | 3. Applications ---> | ||
| + | <*> luci-app-ahcp | ||
| + | <*> luci-app-asterisk | ||
| + | <*> luci-app-commands | ||
| + | <*> luci-app-ddns | ||
| + | -*- luci-app-firewall | ||
| + | <*> luci-app-freifunk-diagnostics | ||
| + | <*> luci-app-freifunk-policyrouting | ||
| + | <*> luci-app-multiwan | ||
| + | <*> luci-app-mwan3 | ||
| + | -*- luci-app-olsr | ||
| + | -*- luci-app-olsr-services | ||
| + | <*> luci-app-olsr-viz | ||
| + | <*> luci-app-radvd | ||
| + | <*> luci-app-samba | ||
| + | -*- luci-app-splash | ||
| + | <*> luci-app-statistics | ||
| + | <*> luci-app-upnp | ||
| + | <*> luci-app-wshaper | ||
| + | 4. Themes ---> | ||
| + | -*- luci-theme-bootstrap | ||
| + | <*> luci-theme-freifunk-bno | ||
| + | <*> luci-theme-freifunk-generic | ||
| + | <*> luci-theme-openwrt | ||
| + | 5. Protocols ---> | ||
| + | <*> luci-proto-3g | ||
| + | <*> luci-proto-ipv6 | ||
| + | -*- luci-proto-ppp | ||
| + | 6. Libraries ---> | ||
| + | 9. Freifunk ---> | ||
| + | -*- freifunk-common | ||
| + | <*> community-profiles | ||
| + | -*- freifunk-firewall | ||
| + | -*- freifunk-gwcheck | ||
| + | -*- freifunk-mapupdate | ||
| + | -*- freifunk-policyrouting | ||
| + | -*- freifunk-watchdog | ||
| + | <*> meshwizard | ||
| + | Utilities ---> | ||
| + | -*- collectd | ||
| + | -*- comgt | ||
| + | -*- libjson-script | ||
| + | -*- px5g | ||
| + | -*- rrdtool1 | ||
| + | <*> smstools3 | ||
| + | <*> usb-modeswitch | ||
| + | <*> usbmuxd | ||
| + | <*> usbreset | ||
| + | <*> usbutils | ||
| + | |||
| + | ==Flash SD Card== | ||
| + | |||
| + | Masukan SDCard ke slot di laptop. | ||
| + | Lakukan | ||
| + | |||
| + | fdisk /dev/sdb | ||
| + | |||
| + | Ketik | ||
| + | |||
| + | d - delete semua partisi yang ada | ||
| + | w - keluar & write sdcard menjadi kosong tanpa partisi | ||
| + | |||
| + | Lakukan | ||
| + | |||
| + | dd if=openwrt-brcm2708-sdcard-vfat-ext4.img of=/dev/sdb | ||
| + | |||
| + | |||
| + | ==Reset Password Root== | ||
| + | |||
| + | Reset password root dapat dilakukan dengan | ||
| + | * Sambungkan LAN RaspberryPi ke laptop | ||
| + | * Pastikan IP laptop DHCP dan dapat dari RaspberryPi | ||
| + | * telnet ke 192.168.1.1 | ||
| + | |||
| + | telnet 192.168.1.1 | ||
| + | |||
| + | Keluar | ||
| + | |||
| + | Trying 192.168.1.1... | ||
| + | Connected to 192.168.1.1. | ||
| + | Escape character is '^]'. | ||
| + | === IMPORTANT ============================ | ||
| + | Use 'passwd' to set your login password | ||
| + | this will disable telnet and enable SSH | ||
| + | ------------------------------------------ | ||
| + | |||
| + | |||
| + | BusyBox v1.22.1 (2015-01-22 09:29:07 WIB) built-in shell (ash) | ||
| + | Enter 'help' for a list of built-in commands. | ||
| + | |||
| + | _______ ________ __ | ||
| + | | |.-----.-----.-----.| | | |.----.| |_ | ||
| + | | - || _ | -__| || | | || _|| _| | ||
| + | |_______|| __|_____|__|__||________||__| |____| | ||
| + | |__| W I R E L E S S F R E E D O M | ||
| + | ----------------------------------------------------- | ||
| + | CHAOS CALMER (Bleeding Edge, r44053) | ||
| + | ----------------------------------------------------- | ||
| + | * 1 1/2 oz Gin Shake with a glassful | ||
| + | * 1/4 oz Triple Sec of broken ice and pour | ||
| + | * 3/4 oz Lime Juice unstrained into a goblet. | ||
| + | * 1 1/2 oz Orange Juice | ||
| + | * 1 tsp. Grenadine Syrup | ||
| + | ----------------------------------------------------- | ||
| + | root@OpenWrt:/# passwd | ||
| + | Changing password for root | ||
| + | New password: | ||
| + | Bad password: too weak | ||
| + | Retype password: | ||
| + | Password for root changed by root | ||
| + | root@OpenWrt:/# | ||
Latest revision as of 06:20, 9 May 2016
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
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
Hasilnya akan tersimpan di
~/openwrt.trunk/trunk/bin/brcm2708
Konfigurasi Default
Konfigurasi untuk RaspberryPi
Target System (Broadcom BCM2708/BCM2835)
Target Profile (RaspberryPi) --->
Target Images --->
[*] ext4 (NEW)
[*] GZip images (NEW)
(100) Boot (SD Card) filesystem partition size (in MB)
(4000) Root filesystem partition size (in MB)
[*] Include kernel in root filesystem --->
[*] include uImage (NEW)
[*] include zImage
[*] include FIT (NEW)
Administration --->
<*> asterisk11-gui
Kernel modules --->
USB Support --->
-*- kmod-usb-core
<*> kmod-usb-hid
<*> kmod-usb-printer
<*> kmod-usb-serial
<*> kmod-usb-serial-ark3116
<*> kmod-usb-serial-belkin
<*> kmod-usb-serial-ch341
<*> kmod-usb-serial-cp210
<*> kmod-usb-serial-cypress-m8
<*> kmod-usb-serial-dmx_usb_module
<*> kmod-usb-serial-ftdi
<*> kmod-usb-serial-gadget
<*> kmod-usb-serial-ipw
<*> kmod-usb-serial-keyspan
<*> kmod-usb-serial-mct
<*> kmod-usb-serial-mos7720
<*> kmod-usb-serial-motorola-phone
<*> kmod-usb-serial-option
<*> kmod-usb-serial-oti6858
<*> kmod-usb-serial-pl2303
<*> kmod-usb-serial-qualcomm
<*> kmod-usb-serial-sierrawireless
<*> kmod-usb-serial-ti-usb
<*> kmod-usb-serial-visor
-*- kmod-usb-serial-wwan
-*- kmod-usb-storage
<*> kmod-usb-storage-extras
<*> kmod-usb2
<*> kmod-usb3
<*> kmod-usbmon
Wireless Drivers --->
-*- kmod-ath
-*- kmod-ath9k
<*> kmod-ath9k-htc
<*> kmod-brcmfmac
-*- kmod-brcmutil
<*> kmod-carl9170
-*- kmod-cfg80211
-*- kmod-lib80211
<*> kmod-libertas-sd
<*> kmod-libertas-usb
-*- kmod-mac80211
<*> kmod-mac80211-hwsim
<*> kmod-net-rtl8188eu
<*> kmod-net-zd1201
-*- kmod-p54-common
<*> kmod-p54-usb
<*> kmod-rt2500-usb
<*> kmod-rt2800-usb
-*- kmod-rt2x00-lib
<*> kmod-rt73-usb
<*> kmod-rtl8187
<*> kmod-rtl8192cu
<*> kmod-zd1211rw
Network --->
Telephony --->
-*- asterisk11
<*> sipp
<*> sipsak
-*- ahcpd
-*- chat
<*> hostapd
-*- hostapd-common
<*> hostapd-mini
<*> hostapd-utils
-*- iw
<*> odhcp6c
<*> odhcpd
<*> ppp
<*> ppp-mod-pppoe
-*- samba36-server
-*- wshaper
<*> wwan
LuCI --->
1. Collections --->
-*- luci
<*> luci-ssl
2. Modules --->
-*- luci-base
-*- luci-mod-admin-full
<*> luci-mod-failsafe
<*> luci-mod-freifunk
<*> luci-mod-freifunk-community
<*> luci-mod-rpc
3. Applications --->
<*> luci-app-ahcp
<*> luci-app-asterisk
<*> luci-app-commands
<*> luci-app-ddns
-*- luci-app-firewall
<*> luci-app-freifunk-diagnostics
<*> luci-app-freifunk-policyrouting
<*> luci-app-multiwan
<*> luci-app-mwan3
-*- luci-app-olsr
-*- luci-app-olsr-services
<*> luci-app-olsr-viz
<*> luci-app-radvd
<*> luci-app-samba
-*- luci-app-splash
<*> luci-app-statistics
<*> luci-app-upnp
<*> luci-app-wshaper
4. Themes --->
-*- luci-theme-bootstrap
<*> luci-theme-freifunk-bno
<*> luci-theme-freifunk-generic
<*> luci-theme-openwrt
5. Protocols --->
<*> luci-proto-3g
<*> luci-proto-ipv6
-*- luci-proto-ppp
6. Libraries --->
9. Freifunk --->
-*- freifunk-common
<*> community-profiles
-*- freifunk-firewall
-*- freifunk-gwcheck
-*- freifunk-mapupdate
-*- freifunk-policyrouting
-*- freifunk-watchdog
<*> meshwizard
Utilities --->
-*- collectd
-*- comgt
-*- libjson-script
-*- px5g
-*- rrdtool1
<*> smstools3
<*> usb-modeswitch
<*> usbmuxd
<*> usbreset
<*> usbutils
Flash SD Card
Masukan SDCard ke slot di laptop. Lakukan
fdisk /dev/sdb
Ketik
d - delete semua partisi yang ada w - keluar & write sdcard menjadi kosong tanpa partisi
Lakukan
dd if=openwrt-brcm2708-sdcard-vfat-ext4.img of=/dev/sdb
Reset Password Root
Reset password root dapat dilakukan dengan
- Sambungkan LAN RaspberryPi ke laptop
- Pastikan IP laptop DHCP dan dapat dari RaspberryPi
- telnet ke 192.168.1.1
telnet 192.168.1.1
Keluar
Trying 192.168.1.1...
Connected to 192.168.1.1.
Escape character is '^]'.
=== IMPORTANT ============================
Use 'passwd' to set your login password
this will disable telnet and enable SSH
------------------------------------------
BusyBox v1.22.1 (2015-01-22 09:29:07 WIB) built-in shell (ash)
Enter 'help' for a list of built-in commands.
_______ ________ __
| |.-----.-----.-----.| | | |.----.| |_
| - || _ | -__| || | | || _|| _|
|_______|| __|_____|__|__||________||__| |____|
|__| W I R E L E S S F R E E D O M
-----------------------------------------------------
CHAOS CALMER (Bleeding Edge, r44053)
-----------------------------------------------------
* 1 1/2 oz Gin Shake with a glassful
* 1/4 oz Triple Sec of broken ice and pour
* 3/4 oz Lime Juice unstrained into a goblet.
* 1 1/2 oz Orange Juice
* 1 tsp. Grenadine Syrup
-----------------------------------------------------
root@OpenWrt:/# passwd
Changing password for root
New password:
Bad password: too weak
Retype password:
Password for root changed by root
root@OpenWrt:/#