- 使用git下载源码
git clone https://github.com/qdk0901/openwrt-uboot-mt7628.git
将下载的源码拷贝到openwrt源码下的package/uboot目录下,如下图
在menuconfig中选择uboot-mt7628这个package
执行下面的命令编译uboot
make package/uboot-mt7628/prepare V=s
make package/uboot-mt7628/compile V=s
- 最后,生成的uboot文件会出现在openwrt源码的bin目录下,如下图