一.OpenWRT编译目录不能属于root用户,修改目录权限
chgrp -R group dir
chown -R user dir
二.下载OpenWRT源码
https://github.com/openwrt/openwrt
三.解压OpenWRT源码,修改feed源feeds.conf.default
src-git packages https://github.com/openwrt/packages
src-git luci https://github.com/openwrt/luci
src-git routing https://github.com/openwrt-routing/packages
src-git telephony https://github.com/openwrt/telephony
四.准备相关依赖,见OpenWRT移植(一)
https://openwrt.org/docs/guide-developer/build-system/start
Install the build system on the host
Use the build system to compile a firmware image
Work with patches in the build system
五.配置
https://blog.csdn.net/subfate/article/details/49532145
六.编译后目标文件
中间拷贝目录openwrt-master/build_dir
openwrt-master/bin/targets/omap/generic