# Build openwrt for raspberry pi zero w Host machine:Ubuntu 18.04 Target machine:raspberry pi zero w ```bash= git clone https://git.openwrt.org/openwrt/openwrt.git cd openwrt ./scripts/feeds update -a ./scripts/feeds install -a make menuconfig make V=99 ``` menuconfig的配置參照**資料一** --- 最後會在**bin/targets/bcm27xx/bcm2708**底下找到四個image壓縮檔 * openwrt-bcm27xx-bcm2708-rpi-ext4-factory.img.gz * openwrt-bcm27xx-bcm2708-rpi-ext4-sysupgrade.img.gz * openwrt-bcm27xx-bcm2708-rpi-squashfs-factory.img.gz * openwrt-bcm27xx-bcm2708-rpi-squashfs-sysupgrade.img.gz 之後藉由指令**dd**寫到sd card裡面。 ## 參考資料 1. [Build OpenWRT於Raspberry Pi4](https://ithelp.ithome.com.tw/articles/10255724?sc=rss.qu) 2. [Quick Image Building Guide](https://openwrt.org/docs/guide-developer/quickstart-build-images) 3. [Raspberry Pi](https://openwrt.org/toh/raspberry_pi_foundation/raspberry_pi) ###### tags: `openwrt` `linux` `raspberry pi`