yisivi3001 发表于 2023-6-3 22:12:51

编译纯净的MT3000并添加自定义插件的过程

第一步:
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
sed -i '$a src-git kenzo https://github.com/kenzok8/openwrt-packages' feeds.conf.default
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: *** Error 255
make: Leaving directory '/home/vv/gl-infra-builder/mt7981'
make: *** Error 2
make: Leaving directory '/home/vv/gl-infra-builder/mt7981'
make: *** Error 2






tiancaiV 发表于 2023-6-4 07:11:33

去掉dnsmasq

不望月的狼人 发表于 2023-6-4 18:25:27

这是dnsmasq-full 和 dnsmasq冲突了,去掉dnsmasq即可。

yisivi3001 发表于 2023-6-11 16:05:30

本帖最后由 yisivi3001 于 2023-6-11 16:44 编辑

感谢,解决了,太棒了,固件编译成功
页: [1]
查看完整版本: 编译纯净的MT3000并添加自定义插件的过程