1.初始环境的配置
sudo apt-get update sudo apt-get install git-core build-essential libssl-dev libncurses5-dev unzip gawk
sudo apt-get install subversion mercurial
2.下载源码
note:以下操作必须以非root用户操作,否则需要更改用户
下载对应版本的opwenwrt源码 (可以用SVN和git),在实际过程中发现SVN连接老是有问题,建议用git下载源码 ,如下:
git clone git://git.openwrt.org/15.05/openwrt.git //版本可选(链接中的15.05就是对应的版本号)该过程会在当前的目录下创建openwrt这个目录
3.下载更新feeds
note:缺少这步会有些库找不到
cd openwrt
./scripts/feeds update -a
./scripts/feeds install –a
4. 检查当前编译环境是否缺失包(三选一)
make menuconfig (most likely you would like to use this)
make defconfig
make prereq
相关文章
- Ubuntu设置默认arm-linux-gcc交叉编译环境
- ubuntu下安装交叉编译工具链的方法总结
- Ubuntu16.04下搭建海思的arm-hisiv300-linux-gcc交叉编译环境
- 【Ubuntu】ARM交叉编译开发环境解决“没有那个文件或目录”问题
- FFmpeg和X264的交叉编译环境
- Ubuntu 16.04 安装 arm-linux-gcc 嵌入式交叉编译环境 问题汇总
- ubuntu 交叉编译arm架构的mysql
- ubuntu下aarch64-linux-gnu(交叉编译) gdb/gdbserver(二)
- Ubuntu搭建Android架构so库交叉编译环境
- 搭建海思3516 + QT5.9.0交叉编译环境