您好,登錄后才能下訂單哦!
簡介
openwrt是一個開源的主要針對路由器的系統(tǒng)。國內(nèi)基于其開發(fā)的知名路由器有小米路由器、極路由等,其他基于其開發(fā)的小路由器更是數(shù)不勝數(shù)。
openwrt的官網(wǎng)路徑如下:https://dev.openwrt.org/
開發(fā)環(huán)境搭建
1、安裝必要的安裝包:
yum install autoconf binutils bison bzip2 flex gawk gcc gcc-c++ gettext make ncurses-devel patch unzip wget zlib-devel curl curl-devel openssl-devel perl perl-devel cpio expat-devel gettext-devel xz openssh-clients subversion cmake libtool
安裝版本管理工具git(不推薦用svn,因為它的功能已經(jīng)out了。 現(xiàn)在android的代碼都是基于git封裝的repo腳本管理的)
wget xz -d git-latest.tar.xz tar -xvf git-latest.tar cd git-{date} autoconf ./configure --with-curl=/usr/local make make install #測試git是否安裝成功 git --version #顯示git的版本。
2、下載源代碼(推薦下載1407版本,應(yīng)為這是目前最新的穩(wěn)定版本,真的很好用)
git clone git://git.openwrt.org/14.07/openwrt.git #這個下載比較慢,要有點耐心。
3、編譯openwrt
cd openwrt ./script/feeds update -a #更新所有附加的包(如:luci 等等) ./script/feeds install -a #安裝所有更新的包 make menuconfig #設(shè)置編譯配置 make download #提前下載需要編譯軟件的源代碼(可以跳過) make V=99 #V=99表示顯示編譯詳情(便于調(diào)試編譯錯誤) #等待編譯完成,編譯完成后所有的輸出鏡像和ipk包會在openwrt/bin目錄下。
openwrt框架簡單說明
這里簡單介紹一下openwrt的各個目錄的作用以及關(guān)鍵的一些文件的說明。
(to be continue)
定制openwrt
定制openwrt就需要根據(jù)您手上的板子來了,這里就不詳細介紹了。
免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進行舉報,并提供相關(guān)證據(jù),一經(jīng)查實,將立刻刪除涉嫌侵權(quán)內(nèi)容。