Build OpenWrt Menggunakan ImageBuilder
Ditulis Oleh: Hendra Hendriana
Persyaratan
- Akses Internet
- Linux / VM dengan OS Linux
Step Pertama
- Download OpenWrt ImageBuilder 21.02.5
wget https://downloads.openwrt.org/releases/21.02.5/targets/armvirt/64/openwrt-imagebuilder-21.02.5-armvirt-64.Linux-x86_64.tar.xz
Jika ingin memakai versi lain bisa download di
https://downloads.openwrt.org/releases/
. - Extract dan masuk ke folder openwrt-imagebuilder-21.02.5-armvirt-64.Linux-x86_64
tar -J -x -f openwrt-imagebuilder-21.02.5-armvirt-64.Linux-x86_64.tar.xz && cd openwrt-imagebuilder-21.02.5-armvirt-64.Linux-x86_64
- Sesuaikan Config, Files, Packages . Kemudian jika sudah disesuaikan build dengan perintah berikut
make image PROFILE="profile-name" \ PACKAGES="pkg1 pkg2 pkg3 -pkg4 -pkg5 -pkg6" \ FILES="files"
Contoh build untuk Amlogic S905x
make image PROFILE="Default" PACKAGES="\ cgi-io libiwinfo libiwinfo-data libiwinfo-lua liblua liblucihttp liblucihttp-lua \ libubus-lua lua luci luci-app-firewall luci-app-opkg luci-base luci-lib-base \ luci-lib-ip luci-lib-jsonc luci-lib-nixio luci-mod-admin-full luci-mod-network \ luci-mod-status luci-mod-system luci-proto-ipv6 luci-proto-ppp luci-ssl \ luci-theme-bootstrap px5g-wolfssl rpcd rpcd-mod-file rpcd-mod-iwinfo rpcd-mod-luci \ rpcd-mod-rrdns uhttpd uhttpd-mod-ubus luci-compat \ ath9k-htc-firmware btrfs-progs hostapd hostapd-utils kmod-ath kmod-ath9k kmod-ath9k-common \ kmod-ath9k-htc kmod-cfg80211 kmod-crypto-acompress kmod-crypto-crc32c kmod-crypto-hash \ kmod-fs-btrfs kmod-mac80211 wireless-tools wpa-cli wpa-supplicant \ " FILES="files"
- Hasil OpenWrt akan berada di /bin/targets/armvirt/64/
Step Kedua
- Update dan Install package yang dibutuhkan
Ubuntusudo apt-get update -y sudo apt-get full-upgrade -y sudo apt-get install -y $(curl -fsSL https://raw.githubusercontent.com/ophub/amlogic-s9xxx-armbian/main/compile-kernel/tools/script/ubuntu2004-openwrt-depends)
Arch
pacman -S base-devel
- Clone Repo Ophub
git clone --depth 1 https://github.com/ophub/amlogic-s9xxx-openwrt.git
masuk ke folder dan buat folder openwrt-armvirt
cd amlogic-s9xxx-openwrt && mkdir openwrt-armvirt
copy rootfs dari hasil build openwrt tadi ke folder amlogic-s9xxx-openwrt
- kemudian
sudo ./make -b s905x -k 5.15.94 -s 1024
Step Terakhir
Last step yaitu burn firmware yang sudah kalian buat, bisa menggunakan Rufus atau Balena Etcher
Sumber & Referensi