- Ubuntu
- sudo apt-get update (更新)
- sudo apt-get install gcc
sudo apt-get install g++
sudo apt-get install binutils
sudo apt-get install patch
sudo apt-get install bzip2
sudo apt-get install flex
sudo apt-get install bison
sudo apt-get install make
sudo apt-get install autoconf
sudo apt-get install gettext
sudo apt-get install texinfo
sudo apt-get install unzip
sudo apt-get install sharutils
sudo apt-get install subversion
sudo apt-get install libncurses5-dev
sudo apt-get install ncurses-term
sudo apt-get install zlib1g-dev
sudo apt-get install gawk
sudo apt-get install asciidoc
sudo apt-get install libz-dev
- mkdir openwrt 创建一个openwrt文件夹
- svn co svn://svn.openwrt.org/openwrt/branches/backfire (稳定版)svn co svn://svn.openwrt.org/openwrt/trunk/(最新版)
- /scripts/feeds update -a 更新软件包
./scripts/feeds install -a 安装软件包(如果其中有失败部分,改feeds.conf.default) - (中国镜像,好像luci和xwrt有一个装上就行了)与openwrt.org的源码svn路径仅仅多了一个.cn
svn://svn.openwrt.org.cn/openwrt/branches/backfire
svn://svn.openwrt.org.cn/openwrt/trunk
luci的源码镜像:
svn://svn.openwrt.org.cn/luci/luci/branches
svn://svn.openwrt.org.cn/luci/luci/trunk
- /scripts/feeds update -a 更新软件包
./scripts/feeds install -a 安装软件包
- 在 root 用户下 在根目录执行 sudo chmod -R 777 openwrt 然后再切换到普通用户运行make menuconfig
- 终于进编译界面了。。。。。。
openwrt 进编译之前的准备
最新推荐文章于 2021-02-18 16:20:54 发布