硬件方案
软件
软件源码
- OpenWRT源码(SDK)
mtk-openwrt-lede-4.2.0.0-20200203-28cb0822.tar.xz - MTK源码(WiFi Driver)
mtk-wifi-mt7621-mt7915-20200203.tar.xz
源码编译
$ tar -xvf mtk-openwrt-lede-4.2.0.0-20200203-28cb0822.tar.xz
$ tar -xvf mtk-wifi-mt7621-mt7915-20200203.tar.xz
$ cp -rf mtk-wifi-mt7621-mt7915/* mtk-openwrt-lede-4.2.0.0
$ cd mtk-openwrt-lede-4.2.0.0
$ cp -f autobuild/mt7621-mt7915-AP-AX1800/.config .
$ cp -f autobuild/mt7621-mt7915-AP-AX1800/config-4.4
target/linux/ramips/mt7621/config-4.4
$ make defconfig
$ make V=s
编译中遇到的问题
- 编译Android.mk时缺少Google的工具
$ sudo apt-get install ninja-build
- 编译bluedroid出错
解决方式是移除
$ rm -rf package/mtk/applications/bluedroid
下载固件
$ cd mtk-openwrt-lede-4.2.0.0/bin/targets/ramips/mt7621
$ ls
lede-ramips-mt7621-mt7621-rfb-ax-nand-squashfs-sysupgrade.bin lede-ramips-mt7621-mt7621-rfb-ax-nor-squashfs-sysupgrade.bin
此开发板使用NOR, 如何知晓? 开机启动log
Description: MIPS OpenWrt mt7621-rfb-ax-nor device tree blob