Difference between revisions of "OpenWRT: Build Firmware"
Jump to navigation
Jump to search
Onnowpurbo (talk | contribs) |
Onnowpurbo (talk | contribs) |
||
Line 9: | Line 9: | ||
* Lakukan sebagai non-root user | * Lakukan sebagai non-root user | ||
* Lakukan semua perintah di <buildroot dir> misalnya ~/openwrt/trunk/ | * Lakukan semua perintah di <buildroot dir> misalnya ~/openwrt/trunk/ | ||
− | * Update OpenWrt | + | * Update OpenWrt source |
− | * Update | + | * Update & install package feeds. |
− | * Configure | + | * Configure build. |
− | * Start | + | * Start build. Ini akan secara automatis compile Ttoolchain, cross-compile sources, package packages, dan generate image siap untuk di flashed. |
* Proceed to Installing OpenWrt | * Proceed to Installing OpenWrt | ||
− | |||
==Persiapan== | ==Persiapan== |
Revision as of 08:09, 22 July 2012
Sumber:
- https://forum.openwrt.org/viewtopic.php?id=15201
- http://wiki.openwrt.org/doc/howto/build
- http://downloads.openwrt.org/docs/buildroot-documentation.html
Prosedur
- Lakukan sebagai non-root user
- Lakukan semua perintah di <buildroot dir> misalnya ~/openwrt/trunk/
- Update OpenWrt source
- Update & install package feeds.
- Configure build.
- Start build. Ini akan secara automatis compile Ttoolchain, cross-compile sources, package packages, dan generate image siap untuk di flashed.
- Proceed to Installing OpenWrt
Persiapan
Siapkan aplikasi pendukung
apt-get update apt-get install subversion
Menggunakan SVN
Sebagai user biasa lakukan
svn co svn://svn.openwrt.org/openwrt/branches/backfire ~/openwrt/trunk/ cd ~/openwrt/trunk/ ./scripts/feeds update ./scripts/feeds install <pkg_name_1> <pkg_name_2> ... <pkg_name_N> # After installing the package (creates the symlink for you, you can select it in menuconfig) make menuconfig # Choose your Target System/Subtarget/Target Profile and select packages/features make world
Update SVN
cd ~/openwrt/trunk/ svn update ./scripts/feeds update
Menggunakan GIT
git clone git://nbd.name/openwrt.git ~/openwrt/trunk/ cd ~/openwrt/trunk/ ./scripts/feeds update # You have to change feeds.conf to use the git packages repo. See the patch below. ./scripts/feeds install <pkg_name_1> <pkg_name_2> ... <pkg_name_N> # After installing the package (creates the symlink for you, you can select it in menuconfig) make menuconfig # Choose your Target System/Subtarget/Target Profile and select packages/features make world
Update GIT
cd ~/openwrt/trunk/ git pull ./scripts/feeds update
Tips
You should specify which chipset you are using. But on your target/linux/chipname/, there should be a makefile that tells you which build you are supposed to build.
For my case it was in kamikaze/target/linux/atheros/Makefile.
LINUX_VERSION:=2.6.23.17 <-- just change this to whatever is your rev is you probably need to know the subversion.
Referensi
- https://forum.openwrt.org/viewtopic.php?id=15201
- http://wiki.openwrt.org/doc/howto/build
- http://downloads.openwrt.org/docs/buildroot-documentation.html