怎样编译MT3000固件
MT2500的固件基于openwrt 21.02版本修改而来,目前,我们已经将相关代码开源,并且提供纯净版固件的编译方法。一、编译
以下是我在ubuntu 20.4上编译MT3000纯净版固件的完整过程。
1. 安装编译openwrt必须的依赖软件包
sudo apt install build-essential libncurses5-dev gawk git libssl-dev gettext zlib1g-dev swig unzip time rsync python3 python3-setuptools python3-yaml
2. 克隆代码并执行编译(注意make -j17命令,我的电脑是16核的,所以是17,原则上电脑核心数加1可以最大效率的执行编译,请根据实际情况选择)git clone https://github.com/gl-inet/gl-infra-builder.git
cd gl-infra-builder
python3 setup.py -cconfigs/config-mt798x-7.6.6.1.yml
cd mt7981
./scripts/gen_config.py target_mediatek_gl-mt3000<span style="background-color: white;"> </span>luci
3. 编译出的镜像文件bin/targets/mediatek/mt7981/openwrt-mediatek-mt7981-glinet_gl-mt3000-squashfs-factory.img用于uboot升级,bin/targets/mediatek/mt7981/openwrt-mediatek-mt7981-glinet_gl-mt3000-squashfs-sysupgrade.tar用于系统中升级
二、升级
1. 固件升级
直接将openwrt-mediatek-mt7981-glinet_gl-mt3000-squashfs-sysupgrade.tar文件拖到本地升级界面进行升级,注意,升级时会警告非官方固件,可以忽略并选择不要保留配置
升级完开源固件后可通过192.168.1.1登录开源固件的luci页面
2. uboot 刷机
如果出现固件刷死的情况,可以使用uboot刷回出厂固件,uboot刷机步骤请参考下面的链接
https://docs.gl-inet.cn/3/features/uboot/
三、在源代码中加入自己的软件包
参考以下链接
https://forum.gl-inet.cn/forum.p ... &pid=2710&fromuid=1
https://forum.gl-inet.cn/forum.p ... id=6&extra=page%3D1
四、编译好的镜像
待补充 {:6_196:} 支持一个 jkle 发表于 2023-2-1 15:10
请问无线网卡可以正常使用吗?
应该是可以的,不过我没试,还是推荐使用自编译带官方UI的 官方固件支持定时限速吗? 官方固件支持定时限速吗?准备上车一台,做主路由,对狗东云限速。 定时限速暂不支持。 hxh521314 发表于 2023-2-6 16:34
官方固件支持定时限速吗?准备上车一台,做主路由,对狗东云限速。
限速还要定时? 萝卜大侠 发表于 2023-2-7 09:20
限速还要定时?
那当然,跑pcdn要尽量白天被白嫖,下载尽量避免高峰期占满。
大侠能安排下这个功能不?
昨晚下单,结果没充电头了 hxh521314 发表于 2023-2-7 09:57
那当然,跑pcdn要尽量白天被白嫖,下载尽量避免高峰期占满。
大侠能安排下这个功能不?
昨晚下单,结果没 ...
这个功能官方固件应该是不会添加的,不过我支持你自己写个脚本啥的还是可以的哈 萝卜大侠 发表于 2023-2-7 11:09
这个功能官方固件应该是不会添加的,不过我支持你自己写个脚本啥的还是可以的哈 ...
之前都没接触过,感觉有难度啊。 萝卜大侠 发表于 2023-2-7 11:09
这个功能官方固件应该是不会添加的,不过我支持你自己写个脚本啥的还是可以的哈 ...
充电器头子,10V4A输出的可以吗?我昨天没买到带头的,今天让客服帮我换有头的,不给换。 UBUNUT20.04版本提示错误了,小白请教怎么搞??
UBUNTU18.06版本就到这提示图一语法错误!怎么办了
king@ubuntu:~/gl-infra-builder/mt7981$ ./scripts/gen_config.py target_mediatek_gl-mt3000<span style="background-color: white;"> </span>luci
bash: 未预期的符号 `<' 附近有语法错误
改成./scripts/gen_config.py target_mediatek_gl-mt3000"span style="background-color: white;"" "/span"luci这样就提示另外的错误
king@ubuntu:~/gl-infra-builder/mt7981$ ./scripts/gen_config.py target_mediatek_gl-mt3000"span style="background-color: white;"" "/span"luci
Profile target_mediatek_gl-mt3000span style=background-color: not found
Command '' not found, but can be installed with:
sudo apt install libpam-mount
sudo apt install openssh-server
sudo apt install openvswitch-common
sudo apt install openvswitch-switch
sudo apt install php-common
sudo apt install bpfcc-tools
sudo apt install burp
sudo apt install cryptmount
sudo apt install dolphin-emu
sudo apt install mailutils-mh
sudo apt install mmh
sudo apt install nmh
[*]./scripts/gen_config.py target_mediatek_gl-mt3000<span style="background-color: white;"> </span>luci
这行 东西貌似不对头。:dizzy:
是不是要改成./scripts/gen_config.py target_mt7981_gl-mt3000 luci
???
Yeung 发表于 2023-2-13 16:06
[*]./scripts/gen_config.py target_mediatek_gl-mt3000 luci
这行 东西貌似不对头。
我也这样觉得的 一直不理解开源openwrt编译出的mtk方案的固件。是自带默认开启了硬件加速吗?路由模式打流还会有百分之几十的CPU占用 开源编译的支持160mhz吗? 照着教程好像编译不了,最后一段脚本应该是 "./scripts/gen_config.py target_mt7981_gl-mt3000 luci" 吧? king0769 发表于 2023-2-8 09:53
UBUNTU18.06版本就到这提示图一语法错误!怎么办了
/scripts/gen_config.py target_mediatek_gl-mt3000 luci
页:
[1]
2