The source code is suitable for Rockchip OpenWrt SDK
Only supported devices:
embedfire_doornet1
embedfire_doornet2
embedfire_lubancat1
embedfire_lubancat1n
embedfire_lubancat2
embedfire_lubancat2n
friendlyarm_nanopi-r2c
friendlyarm_nanopi-r2s
friendlyarm_nanopi-r4s
friendlyarm_nanopi-r4se
friendlyarm_nanopi-r5s
friendlyarm_nanopi-r5c
hinlink_opc-h66k
hinlink_opc-h68k
hinlink_opc-h69k
Next plan to add equipment:
friendlyarm_nanopi-r6c
friendlyarm_nanopi-r6s
friendlyarm_nanopc-t6
hinlink_h88k
How to compile the OpenWrt firmware you need
Notice:
-
NOT compile with root user! ! !
-
Domestic users had better prepare a ladder before compiling
-
Default login IP 192.168.1.1 password password
-
Install compilation dependencies
sudo apt update -y sudo apt install -y ack antlr3 asciidoc autoconf automake autopoint binutils bison build-essential \ bzip2 ccache cmake cpio curl device-tree-compiler fastjar flex gawk gettext gcc-multilib g++-multilib \ git gperf haveged help2man intltool libc6-dev-i386 libelf-dev libglib2.0-dev libgmp3-dev libltdl-dev vpnc \ libmpc-dev libmpfr-dev libncurses5-dev libncursesw5-dev libreadline-dev libssl-dev libtool lrzsz aria2 lib32gcc-s1 \ mkisofs msmtp nano ninja-build p7zip p7zip-full patch pkgconf python2.7 python3 python3-pip libpython3-dev qemu-utils \ rsync scons squashfs-tools subversion swig texinfo uglifyjs upx-ucl unzip vim wget xmlto xxd zlib1g-dev libfuse-dev
-
Download source code, update feeds and choose configuration
git clone https://github.com/DHDAXCW/lede-rockchip cd lede-rockchip ./scripts/feeds update -a ./scripts/feeds install -a make menuconfig
-
make -j8 download V=s
download dl library -
Enter
make -j10 V=s
(-j1 is followed by the number of threads. It is recommended to use single thread for the first compilation) to start compiling the firmware you want.
This set of code is guaranteed to compile successfully. It includes all source codes of R21, including IPK.
Second compilation:
cd lede
git pull
./scripts/feeds update -a && ./scripts/feeds install -a
make defconfig
make -j8 download
make -j$(($(nproc) + 1)) V=s
If reconfiguration is required:
rm -rf ./tmp && rm -rf .config
make menuconfig
make -j$(($(nproc) + 1)) V=s
-
Output path after compilation is complete:bin/targets
-
from upstream source code https://github.com/coolsnowwolf/lede