OpenWrt System mt7621 Firmware compilation

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.