Based on OpenWrt Lede
Support the old router firmware, such as ar71xx
, etc.
Recommend Ubuntu 20.24
or Ubuntu 22.04
Tips: If you use Ubuntu 22.04, pleaes use
gcc-9.5.0
andg++-9.5.0
to compile.
sudo apt update
sudo apt install ack 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 libfuse-dev \
libglib2.0-dev libgmp3-dev libltdl-dev libmpc-dev libmpfr-dev libncurses5-dev \
libncursesw5-dev libpython3-dev libreadline-dev libssl-dev libtool lrzsz mkisofs msmtp \
ninja-build p7zip p7zip-full patch pkgconf python2.7 python3 python3-pyelftools \
python3-setuptools qemu-utils rsync scons squashfs-tools subversion swig texinfo \
upx-ucl unzip vim wget xmlto xxd zlib1g-dev
Tips:
mkisofs
on Ubuntu 20.04, for Ubuntu 22.04 is calledgenisoimage
./scripts/feeds update -a
./scripts/feeds install -a
make menuconfig
make -j 8
For debug:
make V=sc -j 1