Skip to content

Latest commit

 

History

History
133 lines (67 loc) · 3.86 KB

README_en.md

File metadata and controls

133 lines (67 loc) · 3.86 KB

ENGLISH 中文

Code compilation test

Target:MT7621 MT7986 IPQ4019 BCM4708

status CircleCI

=======

NOTE:

  1. DO NOT USE root user for git or compilation!!!
  2. if you are in china, you need a network proxy

Compilation

  1. Install Ubuntu 64bit,Ubuntu 22 LTS x64 and Mint 21 are recommended

  2. Runsudo ln -sf /bin/bash /bin/sh in terminal

  3. Run sudo apt-get update in terminal, and then run

sudo apt-get -y install build-essential asciidoc binutils bison bzip2 gawk gettext git libncurses5-dev libz-dev patch python3.5 python2.7 unzip zlib1g-dev lib32gcc1 libc6-dev-i386 subversion flex uglifyjs git-core gcc-multilib p7zip p7zip-full msmtp libssl-dev texinfo libglib2.0-dev xmlto qemu-utils upx libelf-dev autoconf automake libtool autopoint device-tree-compiler g++-multilib antlr3 gperf wget libncurses5:i386 libelf1:i386 lib32z1 lib32stdc++6 gtk-doc-tools intltool binutils-dev cmake lzma liblzma-dev lzma-dev uuid-dev liblzo2-dev xsltproc dos2unix libstdc++5 docbook-xsl-* sharutils autogen shtool gengetopt libltdl-dev libtool-bin

  1. Run git clone https://github.com/SWRT-dev/swrt-gpl to clone the source code

MTK7621

  1. Run git clone https://github.com/SWRT-dev/mtk-toolchains to clone the toolchains

  2. Run cd mtk-toolchains to enter the directory, and follow commands step by step

    sudo ln -sf $(pwd)/toolchain-mipsel_1004kc_gcc-8.5.0_musl-1.1.24 /opt/

  3. Run cd ../swrt-gpl/release/src-mtk-mips to enter the directory

  4. Build firmware

    rt-ax53u : make rt-ax53u

    rt-ac85p : make rt-ac85p

    r6800 : make swrt-r6800

    rm-ac2100 : make swrt-rm-ac2100

    jcg-q10pro : make swrt-jcg-q10pro

    h3c-tx1801 : make swrt-h3c-tx1801

    xm-cr660x : make swrt-xm-cr660x

    jcg-q20 : make swrt-jcg-q20

  5. Build result will be produced to swrt-gpl/release/src-mtk-mips/image directory

MTK7986

  1. Run git clone https://github.com/SWRT-dev/mtk-toolchains to clone the toolchains

  2. Run cd mtk-toolchains to enter the directory, and follow commands step by step

    sudo ln -sf $(pwd)/toolchain-aarch64_cortex-a53_gcc-8.4.0_musl /opt/

  3. Run cd ../swrt-gpl/release/src-mtk-arm to enter the directory

  4. Build firmware

    rm-ax6000 : make swrt-rm-ax6000

    360t7 : make swrt-swrt360t7

  5. Build result will be produced to swrt-gpl/release/src-mtk-arm/image directory

QCA

  1. Run git clone https://github.com/SWRT-dev/qca-toolchains to clone the toolchains

  2. Run cd qca-toolchains to enter the directory, and follow commands step by step

    sudo ln -sf $(pwd)/toolchain-arm_cortex-a7_gcc-8.5.0_musl-1.1.24_eabi /opt/

  3. Run cd ../swrt-gpl/release/src-qca-ipq40xx to enter the directory

  4. Build firmware

    rt-ac82u : make rt-ac82u

    rt-ac95u : make rt-ac95u

  5. Build result will be produced to swrt-gpl/release/src-qca-ipq40xx/image directory

BCM470X

  1. Run cd ../swrt-gpl/release/src-bcm-470x to enter the directory

  2. Build firmware

    sbrac3200p : make swrt-sbrac3200p

    r7000p : make swrt-r7000p

    rt-ac68u : make rt-ac68u

  3. Build result will be produced to swrt-gpl/release/src-bcm-470x/image directory

This source code is promised to be compiled successfully.

You can use this source code freely, but please link this GitHub repository when redistributing. Thank you for your cooperation!

Donate

If you think this project is helpful to you, please donate to us so that the project can continue to develop and become more complete.

PayPal

Support via PayPal

Alipay 支付宝

alipay

Wechat 微信

wechat