/immortalwrt-mt798x

Primary LanguageShellMIT LicenseMIT

Quickstart

Run to clone the source code.

git clone --depth=1 https://github.com/hanwckf/immortalwrt-mt798x.git

Run to enter source directory.

cd immortalwrt-mt798x

Run to obtain all the latest package definitions defined in feeds.conf / feeds.conf.default

./scripts/feeds update -a

Run to install symlinks for all obtained packages into package/feeds/

./scripts/feeds install -a

Copy the configuration file for your device from the defconfig directory to the project root directory and rename it .config

MT7981

cp -f defconfig/mt7981-ax3000.config .config

MT7986

cp -f defconfig/mt7986-ax6000.config .config

MT7986 256M Low Memory

cp -f defconfig/mt7986-ax6000-256m.config .config Run make menuconfig to select your preferred configuration for the toolchain, target system & firmware packages.

Run make -j$(nproc) to build your firmware. This will download all sources, build the cross-compile toolchain and then cross-compile the GNU/Linux kernel & all chosen applications for your target system.

Tips

  • It may take a long time to create a .config file and build the OpenWrt firmware. Thus, before create repository to build your own firmware, you may check out if others have already built it which meet your needs by simply search Actions-Openwrt in GitHub.
  • Add some meta info of your built firmware (such as firmware architecture and installed packages) to your repository introduction, this will save others' time.

Credits

License

MIT © P3TERX