| .circleci | ||
| .github | ||
| buildtools | ||
| doc | ||
| release | ||
| toolchains | ||
| .gitignore | ||
| License | ||
| README_en.md | ||
| README.md | ||
| README.TXT | ||
Code compilation test
Target:MT7621 MT7986 IPQ4019 BCM4708
=======
NOTE:
- DO NOT USE root user for git or compilation!!!
- if you are in china, you need a network proxy
Compilation
-
Install Ubuntu 64bit,Ubuntu 22 LTS x64 and Mint 21 are recommended
-
Run
sudo ln -sf /bin/bash /bin/shin terminal -
Run
sudo apt-get updatein 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 pkg-config
- Run
git clone https://github.com/SWRT-dev/swrt-gplto clone the source code
MTK7621
-
Run
git clone https://github.com/SWRT-dev/mtk-toolchainsto clone the toolchains -
Run
cd mtk-toolchainsto enter the directory, and follow commands step by stepsudo ln -sf $(pwd)/toolchain-mipsel_1004kc_gcc-8.5.0_musl-1.1.24 /opt/ -
Run
cd ../swrt-gpl/release/src-mtk-mipsto enter the directory -
Build firmware
rt-ax53u :
make rt-ax53urt-ac85p :
make rt-ac85pr6800 :
make swrt-r6800rm-ac2100 :
make swrt-rm-ac2100jcg-q10pro :
make swrt-jcg-q10proh3c-tx1801 :
make swrt-h3c-tx1801xm-cr660x :
make swrt-xm-cr660xjcg-q20 :
make swrt-jcg-q20 -
Build result will be produced to
swrt-gpl/release/src-mtk-mips/imagedirectory
MTK7986
-
Run
git clone https://github.com/SWRT-dev/mtk-toolchainsto clone the toolchains -
Run
cd mtk-toolchainsto enter the directory, and follow commands step by stepsudo ln -sf $(pwd)/toolchain-aarch64_cortex-a53_gcc-8.4.0_musl /opt/ -
Run
cd ../swrt-gpl/release/src-mtk-armto enter the directory -
Build firmware
rm-ax6000 :
make swrt-rm-ax6000360t7 :
make swrt-swrt360t7 -
Build result will be produced to
swrt-gpl/release/src-mtk-arm/imagedirectory
QCA
-
Run
git clone https://github.com/SWRT-dev/qca-toolchainsto clone the toolchains -
Run
cd qca-toolchainsto enter the directory, and follow commands step by stepsudo ln -sf $(pwd)/toolchain-arm_cortex-a7_gcc-8.5.0_musl-1.1.24_eabi /opt/ -
Run
cd ../swrt-gpl/release/src-qca-ipq40xxto enter the directory -
Build firmware
rt-ac82u :
make rt-ac82urt-ac95u :
make rt-ac95u -
Build result will be produced to
swrt-gpl/release/src-qca-ipq40xx/imagedirectory
BCM470X
-
Run
cd ../swrt-gpl/release/src-bcm-470xto enter the directory -
Build firmware
sbrac3200p :
make swrt-sbrac3200pr7000p :
make swrt-r7000prt-ac68u :
make rt-ac68u -
Build result will be produced to
swrt-gpl/release/src-bcm-470x/imagedirectory
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.

