The basic process is: Download The openwrt source code (attitude adjustment version is recommended), execute feeds update, make menuconfig (personalize by configuring feed. conf. default and menuconfig), make kernel_menuconfig, make V = 99
The following is my personalized configuration, mainly to support ovs and click modular router.
Added the feeds method to ovs and click to support callback.
cd $TOPDIRecho 'src-git openvswitch git://github.com/schuza/openvswitch.git' >> feeds.conf.default
echo 'src-git openwrtpackages git://github.com/rriggio/openwrt-packages.git' >> feeds.conf.default
. /Scripts/feeds update-. /scripts/feeds install-amake menuconfigselect Network-> openvswitch-switch, openvswitch-brcompat and openvswitch-controller (select the three, echo '# CONFIG_KERNEL_BRIDGE is not set'>. config
Among them, menuconfig needs to add some necessary components, such as tc, luci, usb mounting, one-Click Reset/wireless, QoS/HTB, all are selected in menucofnig, and y indicates compiling to the firmware, M is compiled but not compiled into the firmware.
3. add luci LuCI-> Collections -- <*> luci 4. add a Chinese Language Pack luci-> Translations -- <*> luci-i18n-chinese 5. add DDNS LuCI-> Applications-> <*> luci-app-ddns. 6. add a USB mount Base system-> <*> block-mount 7. added support for Kernel modules-> Filesystems-> <*> kmod-fs-ext4 8. add UTF8 encoding Kernel modules-> Native Language Support-> <*> kmod-nls-utf8 9. added Support for Kernel modules-> USB Support-> <*> kmod-USB-storage-extras. 110. add the automatic mounting tool Utilities-> Filesystem-> <*> badblocks 11. support Utilities-> <*> restorefactory 12. add one-click wireless Utilities switch-> <*> wifitoggle
In network, select openflow and tc. In Kernel Modules-> Network Support, select knomd-tun to save and exit.
Then make kernel_menuconfig
In Networking Support-> Networking options-> QoS, select Hierarchical Token Bucket (HTB) to save and exit.
After make is complete, the firmware is found in the bin/ar71xx directory, where factory is.
Slave --------------------------------------------------------------------------------------------------------------------------------
Tips: If you only want to compile a certain component, such as A. ipk, you can use sudo make package/xx/compile V = 99
Xx indicates the component name. For example, if you want to compile the click modular router component separately, Click is also available in the OpenWrt installation package, but the version is old and has been marked with BROKEN. Therefore, it is invisible in menuconfig, therefore, I need to compile and generate click separately. the ipk is then installed into the vro using opkg.
Https://github.com/rriggio/openwrt-packages/blob/master/click/Makefile
Copy this makefile to replace the Makefile with feeds/packages/net/click, then run cd $ TOPDIR:
sudo make package/click/compile V=99
You can generate a click_20131011-1_ar71xx.ipk in the bin/ar71xx/packages directory
To generate all packages components, run make package/compile.