首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往

怎么编译OpenWrt镜像?-基于Widora开发板

击左上方蓝色“一口Linux”,选择“设为星标

第一时间看干货文章

【就业】找工作简历模版

作者:滴水之功

第1步

准备相应的环境,我使用的环境是VMware16+ubuntu20.04,如图1所示安装编译所需的依赖包;

sudo apt-get install build-essential asciidoc binutils bzip2 gawk gettext git libncurses5-dev libz-dev patch python3 python2.7 unzip zlib1g-dev lib32gcc1 libc6-dev-i386 subversion flex uglifyjs git-core gcc-multilib p7zip p7zip-full msmtp libssl-dev texinfo libglib2.0-dev xmlto qemu-utils upx libelf-dev autoconf automake libtool autopoint device-tree-compiler g++-multilib antlr3 gperf wget curl swig rsync

图1第2步

如图2所示,在~目录下创建project文件夹,在project文件夹下下载相应的代码;

mkdir project,cd project

git clone https://github.com/openwrt/openwrt

图2第3步

如图3所示,进入openwrt目录下,执行./scripts/feeds update -a命令下载feeds.conf/feeds.conf.default中的所有最新包;

图3第4步

如图4所示,执行./scripts/feeds install -a命令将所有获得的包的符号链接安装到fees包中;

图4第5步

如图5所示,执行make menuconfig打开配置界面;

图5第6步

如图5所示,配置完之后右键移动到Save使用回车保存,如图6和图7所示,接下来选择Ok回车即可;

图6

图7第7步

如图8所示提前使用make download下载编译所需的依赖包,或者直接make也可以;

图8第8步

如图9所示使用make编译即可,如图10编译完成。如果要查看详细编译信息,使用make V=99编译;

图9

图10第9步

如图11所示,在/bin/targets/ramips/mt76x8目录下有固件生成,使用openwrt-ramips-mt76x8-widora_neo-32m-squashfs-sysupgrade.bin拿去刷机即可!刷机教程看我第一篇文章。

图11

参考链接:

GitHub - openwrt/openwrt: This repository is a mirror of https://git.openwrt.org/openwrt/openwrt.git It is for reference only and is not active for check-ins. We will continue to accept Pull Requests here. They will be merged via staging trees then into openwrt.git.

https://blog.csdn.net/m0_55584063/article/details/143952584

  • 发表于:
  • 原文链接https://page.om.qq.com/page/OmlGhDREJKCxBNwOij0u_ZwQ0
  • 腾讯「腾讯云开发者社区」是腾讯内容开放平台帐号(企鹅号)传播渠道之一,根据《腾讯内容开放平台服务协议》转载发布内容。
  • 如有侵权,请联系 cloudcommunity@tencent.com 删除。

扫码

添加站长 进交流群

领取专属 10元无门槛券

私享最新 技术干货

扫码加入开发者社群
领券