Target:MT7621 MT7986 IPQ4019 BCM4708
=======
- DO NOT USE root user for git or compilation!!!
- if you are in china, you need a network proxy
-
Install Ubuntu 64bit,Ubuntu 22 LTS x64 and Mint 21 are recommended
-
Run
sudo ln -sf /bin/bash /bin/sh
in terminal -
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
- Run
git clone https://github.com/SWRT-dev/swrt-gpl
to clone the source code
-
Run
git clone https://github.com/SWRT-dev/mtk-toolchains
to clone the toolchains -
Run
cd mtk-toolchains
to 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-mips
to enter the directory -
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
-
Build result will be produced to
swrt-gpl/release/src-mtk-mips/image
directory
-
Run
git clone https://github.com/SWRT-dev/mtk-toolchains
to clone the toolchains -
Run
cd mtk-toolchains
to 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-arm
to enter the directory -
Build firmware
rm-ax6000 :
make swrt-rm-ax6000
360t7 :
make swrt-swrt360t7
-
Build result will be produced to
swrt-gpl/release/src-mtk-arm/image
directory
-
Run
git clone https://github.com/SWRT-dev/qca-toolchains
to clone the toolchains -
Run
cd qca-toolchains
to 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-ipq40xx
to enter the directory -
Build firmware
rt-ac82u :
make rt-ac82u
rt-ac95u :
make rt-ac95u
-
Build result will be produced to
swrt-gpl/release/src-qca-ipq40xx/image
directory
-
Run
cd ../swrt-gpl/release/src-bcm-470x
to enter the directory -
Build firmware
sbrac3200p :
make swrt-sbrac3200p
r7000p :
make swrt-r7000p
rt-ac68u :
make rt-ac68u
-
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!
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.