The first thing to have is a CENTOS7STEP1: Update the source of the system:
Yum Install update
But found the official source seems to be the wall, so he went to change the source, looking for 163 of the source of exchange. The final link for the specific operation.
But after changing the source found that 163 of the source only support to CENTOS6 、、、、、、 but tears collapsed. So I changed the source back.
Again update the source, incredibly can.
Step2: add git kernel again
1 Yum install Git-core
Git should be used to add GitHub's open source code.
Step3: Install the necessary compilation tools, or the dependent files required for compilation.
Yum install libtool autoconf automake gcc-multilib Bison screens gcc g++ binutils patch bzip2 Flex make Gette XT Unzip Libc6 git-core git build-essential libncurses5-dev zlib1g-dev gawk quilt AsciiDoc Libz-dev Subversion
This is a reference to the copy of Ubuntu, because some of the names may be caused by some not installed. So when running make menuconfig in the back of the error. Can be based on the contents of the error shown in the corresponding to the one by one installation. Here are some of them:
1 yum-y install OpenSSL openssl-devel//2 Yum Group install "Development Tools" /c4>//install GCC compiler 3 yum install ncurses-libs4 yum install ncurses-devel 5 yum-y install OpenSSL openssl-devel6 Yum-y install git7
Step4: Download OpenWrt source code
Trunk (now the newest is CHAOS clamer):
git clone git://git.openwrt.org/openwrt.git
Barrier Breaker 14.07 Branch:
git clone git: // Git.openwrt.org/14.07/openwrt.git
STEP5: Update download and install expansion packs
1. Enter the working directory OpenWrt
CD OpenWrt
2. Make a copy of the FEEDS.CONF.DEFAULTF named feeds.conf
Feeds.conf. default feeds.conf
3. Open feeds.conf with vim and add njit-client source to the last line.
SRC-SVN NJIT https://Github.com/liuqun/openwrt-clients/trunk/njit
4. Update the download extension package to install them in the package/feeds/directory
./scripts/feeds update-A. /scripts/feeds install-a
STEP6: Configuring OpenWrt
(There may be an error, because the above-mentioned dependency file is not installed complete, according to the error Baidu to install the missing installation can run)
Make Menuconfig
The following menu will then appear:
Which: Target system is the choice of the router chip model;
Target profile is the model of the selected router;
There is also a choice of Luci, you can choose a different Luci theme package Luci ITEM.
Most important in the Njit8021xclient selection on the network, you can also add a Web version.
Arrow keys navigate the menu. <Enter> selects submenus---> (or empty│ │ ----). Highlighted letters is hotkeys. Pressing <Y> │ <N> excludes, <M> modularizes features. Press <Esc><Esc> to│ │ for Search. Legend: [*] built- in
According to his English prompt we can know: press ENTER to enter; y OK, install the software directly in the firmware; M chooses to generate a IPK package (not included in the firmware for this compilation); n do not select; press two times <esc> return to the previous level menu or exit.
STEP7: Compiling
Make v=s//can output debug information
Best to open before compiling
CD package/kernel/mac80211/files/lib/wifi/0// change option disabled 1 to
On the virtual machine compiled an afternoon finally compiled, put in the router chaos Clamer directly can be used. Half of the success.
Njit-client dialing has been failure, and then on the Internet to ask, as if it is a timeout problem, it can be changed to a small 2000 or so.
Let's change it, and change whether you can work again.
Reference:
http://www.7forz.com/1973/http://www.bananawolf.com/html/2012/09/831.html
Compiling openwrt+njit-client under CentOS 7