✋ Install OpenWrt Package
using ssh to connect your router
ssh root@IP # option: -p port
Then download package
cd /tmp # It is usually stored here. If you have limited memory, please find another location.
wget [URL of Package]
apk add --allow-untrusted ./pkg.apk # --allow-untrusted because software not included in software repositories generally lacks a digital signature and should be ignored.
🔧 Compiling OpenWrt SDK.
🚀 You need to prepare a Linux environment.
Demonstration system: Arch Linux amd64
sudo pacman -Syu --needed base-devel make git gawk ncurses openssl zlib zstd wget curl unzip python3 python-setuptools fillup rsync libxslt libxml2 boost findutils gcc g++ unzip patch
OR any package manager you using.
⏬ Download SDK
You have three choices All the mirrors of OpenWrt All the mirrors of ImmortalWrt Mirror by MoKanove
curl -LO ⚠️[SDK URL]
# Not have curl? Let's try wget
wget ⚠️[SDK URL]
📦 Unzip SDK
tar -xvf ⚠️SDK_PKG_NAME
🛠 Init SDK
cd ⚠️SDK_FOLDER_NAME
make defconfig
./scripts/feeds update -a && ./scripts/feeds install -a
📝 Clone source code
Please replace sdk-root with your actual SDK directory.
cd ⚠️sdk-root/package/
git clone ⚠️[URI]
🚀 Launch
Make sure your at SDK root
make package/⚠️project_name/compile -j$(nproc)
# debug + V=s
⚖️ License
This Document is licensed under the MoPL