编译OpenWrt随手笔记

来源:互联网 发布:网络变声电话 编辑:程序博客网 时间:2024/04/28 07:11


1.虚拟机安装Ubuntu

    不多说了。


2.新建目录

mkdir openwrtcd openwrt


3.安装软件包

sudo apt-get updatesudo apt-get install gcc g++ binutils patch bzip2 flex bison make autoconf gettext texinfo unzip zip unrar p7zip p7zip-rar p7zip-full sharutils subversion libncurses5-dev ncurses-term zlib1g-dev gawk git-core

4.拉取源码

主分支:

git clone git://git.openwrt.org/openwrt.git

或者 svn方式(好像官网推荐的是git):

svn checkout svn://svn.openwrt.org/openwrt/branches/backfire




5.运行安装代码

cd openwrt./scripts/feeds update -a./scripts/feeds install -a




如果提示:

可能没有装ssl的原因,

sudo apt-get install libssh-dev


安装完成:



6.设置项

make menuconfig


Target System 选型号后,Subtarget选子型号

选好后Esc退出,保存。


7.编译

make V=99

编译好后会再bin/ramips 下面生成刷机包








0 0
原创粉丝点击