forum.gl-inet.cn

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
热搜: 活动 交友 discuz
    查看: 3279|回复: 3

    [固件资源] 编译纯净的MT3000并添加自定义插件的过程

    [复制链接]

    8

    主题

    37

    帖子

    184

    积分

    注册会员

    Rank: 2

    积分
    184
    发表于 2023-6-3 22:12:51 | 显示全部楼层 |阅读模式
    第一步:
    git clone https://github.com/gl-inet/gl-infra-builder.git && cd gl-infra-builder

    第二步:
    git checkout v4.2.0_mt3000_release1


    第三步:
    python3 setup.py -c configs/config-mt798x-7.6.6.1.yml && cd mt7981

    第四步:
    修改feeds.conf.default
    [color=var(--color-prettylights-syntax-string)][backcolor=var(--color-canvas-subtle)]sed -i '$a src-git kenzo https://github.com/kenzok8/openwrt-packages' feeds.conf.default
    [color=var(--color-prettylights-syntax-string)][backcolor=var(--color-canvas-subtle)]sed -i '$a src-git small https://github.com/kenzok8/small' feeds.conf.default

    第五步:
    ./scripts/gen_config.py target_mt7981_gl-mt3000 luci

    第六步:
    选择自定义插件
    make menuconfig


    第七步:
    make V=s -j$(nproc)


    然后报错了,如下图,到底是什么原因呢?
    1、直接海外物理服务器编译,排除性能问题
    2、排除网络问题
    3、不是root账户,避免权限导致问题
    4、操作系统全新安装的Ubuntu 20.04,升级至最新

    测试了4天,系统装了七八次,怎么都搞不定

    然后就报错了,非常无语

    Configuring urngd.
    Configuring mii_mgr.
    Configuring luci-i18n-firewall-zh-cn.
    Configuring ppp-mod-pppoe.
    Collected errors:
    * check_data_file_clashes: Package dnsmasq-full wants to install file /home/vv/gl-infra-builder/mt7981/build_dir/target-aarch64_cortex-a53_musl/root-mediatek/etc/hotplug.d/ntp/25-dnsmasqsec
            But that file is already provided by package  * dnsmasq
    * check_data_file_clashes: Package dnsmasq-full wants to install file /home/vv/gl-infra-builder/mt7981/build_dir/target-aarch64_cortex-a53_musl/root-mediatek/etc/init.d/dnsmasq
            But that file is already provided by package  * dnsmasq
    * check_data_file_clashes: Package dnsmasq-full wants to install file /home/vv/gl-infra-builder/mt7981/build_dir/target-aarch64_cortex-a53_musl/root-mediatek/etc/uci-defaults/50-dnsmasq-migrate-resolv-conf-auto.sh
            But that file is already provided by package  * dnsmasq
    * check_data_file_clashes: Package dnsmasq-full wants to install file /home/vv/gl-infra-builder/mt7981/build_dir/target-aarch64_cortex-a53_musl/root-mediatek/usr/lib/dnsmasq/dhcp-script.sh
            But that file is already provided by package  * dnsmasq
    * check_data_file_clashes: Package dnsmasq-full wants to install file /home/vv/gl-infra-builder/mt7981/build_dir/target-aarch64_cortex-a53_musl/root-mediatek/usr/sbin/dnsmasq
            But that file is already provided by package  * dnsmasq
    * check_data_file_clashes: Package dnsmasq-full wants to install file /home/vv/gl-infra-builder/mt7981/build_dir/target-aarch64_cortex-a53_musl/root-mediatek/usr/share/acl.d/dnsmasq_acl.json
            But that file is already provided by package  * dnsmasq
    * check_data_file_clashes: Package dnsmasq-full wants to install file /home/vv/gl-infra-builder/mt7981/build_dir/target-aarch64_cortex-a53_musl/root-mediatek/usr/share/dnsmasq/dhcpbogushostname.conf
            But that file is already provided by package  * dnsmasq
    * check_data_file_clashes: Package dnsmasq-full wants to install file /home/vv/gl-infra-builder/mt7981/build_dir/target-aarch64_cortex-a53_musl/root-mediatek/usr/share/dnsmasq/rfc6761.conf
            But that file is already provided by package  * dnsmasq
    * opkg_install_cmd: Cannot install package dnsmasq-full.
    * check_data_file_clashes: Package dnsmasq-full wants to install file /home/vv/gl-infra-builder/mt7981/build_dir/target-aarch64_cortex-a53_musl/root-mediatek/etc/hotplug.d/ntp/25-dnsmasqsec
            But that file is already provided by package  * dnsmasq
    * check_data_file_clashes: Package dnsmasq-full wants to install file /home/vv/gl-infra-builder/mt7981/build_dir/target-aarch64_cortex-a53_musl/root-mediatek/etc/init.d/dnsmasq
            But that file is already provided by package  * dnsmasq
    * check_data_file_clashes: Package dnsmasq-full wants to install file /home/vv/gl-infra-builder/mt7981/build_dir/target-aarch64_cortex-a53_musl/root-mediatek/etc/uci-defaults/50-dnsmasq-migrate-resolv-conf-auto.sh
            But that file is already provided by package  * dnsmasq
    * check_data_file_clashes: Package dnsmasq-full wants to install file /home/vv/gl-infra-builder/mt7981/build_dir/target-aarch64_cortex-a53_musl/root-mediatek/usr/lib/dnsmasq/dhcp-script.sh
            But that file is already provided by package  * dnsmasq
    * check_data_file_clashes: Package dnsmasq-full wants to install file /home/vv/gl-infra-builder/mt7981/build_dir/target-aarch64_cortex-a53_musl/root-mediatek/usr/sbin/dnsmasq
            But that file is already provided by package  * dnsmasq
    * check_data_file_clashes: Package dnsmasq-full wants to install file /home/vv/gl-infra-builder/mt7981/build_dir/target-aarch64_cortex-a53_musl/root-mediatek/usr/share/acl.d/dnsmasq_acl.json
            But that file is already provided by package  * dnsmasq
    * check_data_file_clashes: Package dnsmasq-full wants to install file /home/vv/gl-infra-builder/mt7981/build_dir/target-aarch64_cortex-a53_musl/root-mediatek/usr/share/dnsmasq/dhcpbogushostname.conf
            But that file is already provided by package  * dnsmasq
    * check_data_file_clashes: Package dnsmasq-full wants to install file /home/vv/gl-infra-builder/mt7981/build_dir/target-aarch64_cortex-a53_musl/root-mediatek/usr/share/dnsmasq/rfc6761.conf
            But that file is already provided by package  * dnsmasq
    * opkg_install_cmd: Cannot install package luci-app-bypass.
    * check_data_file_clashes: Package dnsmasq-full wants to install file /home/vv/gl-infra-builder/mt7981/build_dir/target-aarch64_cortex-a53_musl/root-mediatek/etc/hotplug.d/ntp/25-dnsmasqsec
            But that file is already provided by package  * dnsmasq
    * check_data_file_clashes: Package dnsmasq-full wants to install file /home/vv/gl-infra-builder/mt7981/build_dir/target-aarch64_cortex-a53_musl/root-mediatek/etc/init.d/dnsmasq
            But that file is already provided by package  * dnsmasq
    * check_data_file_clashes: Package dnsmasq-full wants to install file /home/vv/gl-infra-builder/mt7981/build_dir/target-aarch64_cortex-a53_musl/root-mediatek/etc/uci-defaults/50-dnsmasq-migrate-resolv-conf-auto.sh
            But that file is already provided by package  * dnsmasq
    * check_data_file_clashes: Package dnsmasq-full wants to install file /home/vv/gl-infra-builder/mt7981/build_dir/target-aarch64_cortex-a53_musl/root-mediatek/usr/lib/dnsmasq/dhcp-script.sh
            But that file is already provided by package  * dnsmasq
    * check_data_file_clashes: Package dnsmasq-full wants to install file /home/vv/gl-infra-builder/mt7981/build_dir/target-aarch64_cortex-a53_musl/root-mediatek/usr/sbin/dnsmasq
            But that file is already provided by package  * dnsmasq
    * check_data_file_clashes: Package dnsmasq-full wants to install file /home/vv/gl-infra-builder/mt7981/build_dir/target-aarch64_cortex-a53_musl/root-mediatek/usr/share/acl.d/dnsmasq_acl.json
            But that file is already provided by package  * dnsmasq
    * check_data_file_clashes: Package dnsmasq-full wants to install file /home/vv/gl-infra-builder/mt7981/build_dir/target-aarch64_cortex-a53_musl/root-mediatek/usr/share/dnsmasq/dhcpbogushostname.conf
            But that file is already provided by package  * dnsmasq
    * check_data_file_clashes: Package dnsmasq-full wants to install file /home/vv/gl-infra-builder/mt7981/build_dir/target-aarch64_cortex-a53_musl/root-mediatek/usr/share/dnsmasq/rfc6761.conf
            But that file is already provided by package  * dnsmasq
    * opkg_install_cmd: Cannot install package luci-app-酸-plus.
    make[2]: *** [package/Makefile:71: package/install] Error 255
    make[2]: Leaving directory '/home/vv/gl-infra-builder/mt7981'
    make[1]: *** [package/Makefile:113: /home/vv/gl-infra-builder/mt7981/staging_dir/target-aarch64_cortex-a53_musl/stamp/.package_install] Error 2
    make[1]: Leaving directory '/home/vv/gl-infra-builder/mt7981'
    make: *** [/home/vv/gl-infra-builder/mt7981/include/toplevel.mk:230: world] Error 2






    回复

    使用道具 举报

    2

    主题

    173

    帖子

    980

    积分

    高级会员

    Rank: 4

    积分
    980
    发表于 2023-6-4 07:11:33 来自手机 | 显示全部楼层
    去掉dnsmasq
    回复

    使用道具 举报

    16

    主题

    373

    帖子

    2325

    积分

    金牌会员

    Rank: 6Rank: 6

    积分
    2325
    发表于 2023-6-4 18:25:27 | 显示全部楼层
    这是dnsmasq-full 和 dnsmasq冲突了,去掉dnsmasq即可。
    回复

    使用道具 举报

    8

    主题

    37

    帖子

    184

    积分

    注册会员

    Rank: 2

    积分
    184
     楼主| 发表于 2023-6-11 16:05:30 | 显示全部楼层
    本帖最后由 yisivi3001 于 2023-6-11 16:44 编辑

    感谢,解决了,太棒了,固件编译成功
    回复

    使用道具 举报

    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    Archiver|手机版|小黑屋|gl-inet.cn ( 粤ICP备18130956号 )

    GMT+8, 2024-11-1 10:33 , Processed in 0.018628 second(s), 25 queries .

    Powered by Discuz! X3.4

    Copyright © 2001-2021, Tencent Cloud.

    快速回复 返回顶部 返回列表