一、Ubuntu 12.04LTS环境准备:
sudo apt-get install build-essential subversion git-core libncurses5-dev zlib1g-dev gawk flex quilt libssl-dev
xsltproc libxml-parser-perl mercurial bzr ecj cvs unzip
二、源码下载:
Main repository
git clone git://git.openwrt.org/openwrt.git
Packages feed
git clone git://git.openwrt.org/packages.git
14.07 branch (Barrier Breaker)
Main repository
git clone git://git.openwrt.org/14.07/openwrt.git
Packages feed
git clone git://git.openwrt.org/14.07/packages.git
三、Downloading and Installing Feeds
install only individual packages:
./scripts/feeds install PACKAGENAME
instal all
./scripts/feeds update -a
./scripts/feeds install -a
mabe you can editor feeds.conf.default
四、编译配置
阅读以下文章即可。
http://wiki.openwrt.org/zh-cn/start
http://wiki.openwrt.org/about/toolchain
http://wiki.openwrt.org/doc/howto/buildroot.exigence
http://wiki.openwrt.org/doc/howto/build
http://wiki.openwrt.org/doc/devel/patches
1、下载源码
git clone git://git.openwrt.org/14.07/openwrt.git
下载后的文件目录:
BSDmakefile config Config.in docs feeds.conf.default include LICENSE Makefile package README rules.mk scripts target toolchain tools
2、然后,下载安装feeds(Feeds是OpenWrt环境所需要的软件包套件packages/LuCI等)
./scripts/feeds update -a
./scripts/feeds install -a
只有安装之后,在后面的make menuconfig时,才可以对相关配置进行选择。
3、make V=99
显示:WARNING:your configuration is out of sync. Please run make menuconfig, oldconfig or defconfig!
此时会进行很长时间,需要很多在线下载。
4、这时你应该选择哪些东西被编译
make menuconfig
make defconfig
make prereq
注:如果没进行配置选择,默认编译出的是ar71xx相关的产品
ls bin/ar71xx/会列出生成的产品固件
5、后面就得根据具体芯片及方案做定制了
sudo apt-get install build-essential subversion git-core libncurses5-dev zlib1g-dev gawk flex quilt libssl-dev
xsltproc libxml-parser-perl mercurial bzr ecj cvs unzip
二、源码下载:
https://dev.openwrt.org/wiki/GetSource
Main repository
git clone git://git.openwrt.org/openwrt.git
Packages feed
git clone git://git.openwrt.org/packages.git
14.07 branch (Barrier Breaker)
Main repository
git clone git://git.openwrt.org/14.07/openwrt.git
Packages feed
git clone git://git.openwrt.org/14.07/packages.git
三、Downloading and Installing Feeds
install only individual packages:
./scripts/feeds install PACKAGENAME
instal all
./scripts/feeds update -a
./scripts/feeds install -a
mabe you can editor feeds.conf.default
四、编译配置
阅读以下文章即可。
http://wiki.openwrt.org/zh-cn/start
http://wiki.openwrt.org/about/toolchain
http://wiki.openwrt.org/doc/howto/buildroot.exigence
http://wiki.openwrt.org/doc/howto/build
http://wiki.openwrt.org/doc/devel/patches
我的步骤:
1、下载源码
git clone git://git.openwrt.org/14.07/openwrt.git
下载后的文件目录:
BSDmakefile config Config.in docs feeds.conf.default include LICENSE Makefile package README rules.mk scripts target toolchain tools
2、然后,下载安装feeds(Feeds是OpenWrt环境所需要的软件包套件packages/LuCI等)
./scripts/feeds update -a
./scripts/feeds install -a
只有安装之后,在后面的make menuconfig时,才可以对相关配置进行选择。
3、make V=99
显示:WARNING:your configuration is out of sync. Please run make menuconfig, oldconfig or defconfig!
此时会进行很长时间,需要很多在线下载。
4、这时你应该选择哪些东西被编译
make menuconfig
make defconfig
make prereq
注:如果没进行配置选择,默认编译出的是ar71xx相关的产品
ls bin/ar71xx/会列出生成的产品固件
5、后面就得根据具体芯片及方案做定制了