注意,不要用"root"用户进行编译, 国内用户编译前最好准备好梯子
默认登陆IP 192.168.1.1 密码 password
首先装好 Linux 系统,推荐 Debian 或 Ubuntu LTS
安装编译依赖
'''
sudo apt update -y
sudo apt full-upgrade -y
sudo apt install -y ack antlr3 asciidoc autoconf automake autopoint binutils bison build-essential
bzip2 ccache clang cmake cpio curl device-tree-compiler flex gawk gcc-multilib g++-multilib gettext
genisoimage git gperf haveged help2man intltool libc6-dev-i386 libelf-dev libfuse-dev libglib2.0-dev
libgmp3-dev libltdl-dev libmpc-dev libmpfr-dev libncurses5-dev libncursesw5-dev libpython3-dev
libreadline-dev libssl-dev libtool llvm lrzsz msmtp ninja-build p7zip p7zip-full patch pkgconf
python3 python3-pyelftools python3-setuptools qemu-utils rsync scons squashfs-tools subversion
swig texinfo uglifyjs upx-ucl unzip vim wget xmlto xxd zlib1g-dev
'''
''' git clone https://github.com/coolsnowwolf/lede cd lede ./scripts/feeds update -a ./scripts/feeds install -a make menuconfig
下载 dl 库,编译固件 (-j 后面是线程数,第一次编译推荐用单线程) make download -j8 make V=s -j1 ''' 本套代码保证肯定可以编译成功。里面包括了 R24 所有源代码,包括 IPK 的。