OpenWrt Source Code compilation operation
The first step, download the source package and unzip, the source code is as follows:
mtk-openwrt-3.10.14-proc.tar.gz
Step two, unzip the source package
Tar zxvf mtk-openwrt-3.10.14-proc.tar.gz
Step three, set the environment variable Source/etc/profile
Fourth step, start compiling
Make-j 3 v=99 2>&1 |tee build.log|grep-i Error
This is the error written in the Build.log file, leaving only the main big red error
An error is reported and the glib library needs to be compiled manually.
Compiling glib manually
CD build_dir/host/pkg-config-0.28/glib/
./configure--enable-iconv-cache=no--with-libiconv=gnu
CD-
Fifth step, continue compiling the input command make V=s
will also report the following error, error as shown below:
You need to go to the source directory to modify INCLUDE/KERNEL-DEFAULTS.MK 51 and 52 lines:
/home/chenwei/mtk-openwrt-3.10.14/mtk-openwrt-3.10.14-proc/build_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro _uclibc-0.9.33.2/linux-3.10.14
/home/chenwei/mtk-openwrt-3.10.14/mtk-openwrt-3.10.14-proc/build_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro _uclibc-0.9.33.2/linux-kernel
Then continue make V=s
The error is shown in the following figure:
(The red part needs to be modified to your source path) execute the following command:
cd/home/chenwei/mtk-openwrt-3.10.14/mtk-openwrt-3.10.14-proc/build_dir/target-mipsel_24kec+dsp_uclibc-0.9.33.2 /linux-ramips_mt7621/
Ln-s linux-3.10.14-p112871 Linux-kernel
Then go back to the previous directory: CD-
Make V=s
The compilation was successful, as shown in the following figure:
may not compile the environment will not report these errors, only need to modify the source directory name can be directly compiled through.