lede icon indicating copy to clipboard operation
lede copied to clipboard

固件编译失败,提示修复902-drivers-mfd-Add-a-driver-for-IEI-WT61P803-PUZZLE-MCU.patch

Open dodogao opened this issue 1 month ago • 1 comments

详细叙述

Applying /home/gaoh/lede/target/linux/mvebu/patches-6.6/901-dt-bindings-Add-IEI-vendor-prefix-and-IEI-WT61P803-P.patch using plaintext: patching file Documentation/devicetree/bindings/hwmon/iei,wt61p803-puzzle-hwmon.yaml patching file Documentation/devicetree/bindings/leds/iei,wt61p803-puzzle-leds.yaml patching file Documentation/devicetree/bindings/mfd/iei,wt61p803-puzzle.yaml patching file Documentation/devicetree/bindings/vendor-prefixes.yaml

Applying /home/gaoh/lede/target/linux/mvebu/patches-6.6/902-drivers-mfd-Add-a-driver-for-IEI-WT61P803-PUZZLE-MCU.patch using plaintext: patching file drivers/mfd/Kconfig Hunk #1 succeeded at 2298 (offset 24 lines). patching file drivers/mfd/Makefile The next patch would create the file drivers/mfd/iei-wt61p803-puzzle.c, which already exists! Applying it anyway. patching file drivers/mfd/iei-wt61p803-puzzle.c Hunk #1 FAILED at 1. 1 out of 1 hunk FAILED -- saving rejects to file drivers/mfd/iei-wt61p803-puzzle.c.rej The next patch would create the file include/linux/mfd/iei-wt61p803-puzzle.h, which already exists! Applying it anyway. patching file include/linux/mfd/iei-wt61p803-puzzle.h Hunk #1 FAILED at 1. 1 out of 1 hunk FAILED -- saving rejects to file include/linux/mfd/iei-wt61p803-puzzle.h.rej Patch failed! Please fix /home/gaoh/lede/target/linux/mvebu/patches-6.6/902-drivers-mfd-Add-a-driver-for-IEI-WT61P803-PUZZLE-MCU.patch! make[4]: *** [Makefile:29: /home/gaoh/lede/build_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/linux-mvebu_cortexa9/linux-6.6.158/.prepared_40a1b98a1cf4f6267f3d5dc92f0a3976] Error 1 make[4]: Leaving directory '/home/gaoh/lede/target/linux/mvebu' make[3]: *** [Makefile:11: compile] Error 2 make[3]: Leaving directory '/home/gaoh/lede/target/linux' time: target/linux/compile#1.80#15.85#13.19 ERROR: target/linux failed to build. make[2]: *** [target/Makefile:30: target/linux/compile] Error 1 make[2]: Leaving directory '/home/gaoh/lede' make[1]: *** [target/Makefile:23: /home/gaoh/lede/staging_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/stamp/.target_compile] Error 2 make[1]: Leaving directory '/home/gaoh/lede'

重复 issue

  • [x] 没有类似的 issue

具体型号

Linksys WRT1900ACS

详细日志

Applying /home/gaoh/lede/target/linux/mvebu/patches-6.6/901-dt-bindings-Add-IEI-vendor-prefix-and-IEI-WT61P803-P.patch using plaintext: patching file Documentation/devicetree/bindings/hwmon/iei,wt61p803-puzzle-hwmon.yaml patching file Documentation/devicetree/bindings/leds/iei,wt61p803-puzzle-leds.yaml patching file Documentation/devicetree/bindings/mfd/iei,wt61p803-puzzle.yaml patching file Documentation/devicetree/bindings/vendor-prefixes.yaml

Applying /home/gaoh/lede/target/linux/mvebu/patches-6.6/902-drivers-mfd-Add-a-driver-for-IEI-WT61P803-PUZZLE-MCU.patch using plaintext: patching file drivers/mfd/Kconfig Hunk #1 succeeded at 2298 (offset 24 lines). patching file drivers/mfd/Makefile The next patch would create the file drivers/mfd/iei-wt61p803-puzzle.c, which already exists! Applying it anyway. patching file drivers/mfd/iei-wt61p803-puzzle.c Hunk #1 FAILED at 1. 1 out of 1 hunk FAILED -- saving rejects to file drivers/mfd/iei-wt61p803-puzzle.c.rej The next patch would create the file include/linux/mfd/iei-wt61p803-puzzle.h, which already exists! Applying it anyway. patching file include/linux/mfd/iei-wt61p803-puzzle.h Hunk #1 FAILED at 1. 1 out of 1 hunk FAILED -- saving rejects to file include/linux/mfd/iei-wt61p803-puzzle.h.rej Patch failed! Please fix /home/gaoh/lede/target/linux/mvebu/patches-6.6/902-drivers-mfd-Add-a-driver-for-IEI-WT61P803-PUZZLE-MCU.patch! make[4]: *** [Makefile:29: /home/gaoh/lede/build_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/linux-mvebu_cortexa9/linux-6.6.158/.prepared_40a1b98a1cf4f6267f3d5dc92f0a3976] Error 1 make[4]: Leaving directory '/home/gaoh/lede/target/linux/mvebu' make[3]: *** [Makefile:11: compile] Error 2 make[3]: Leaving directory '/home/gaoh/lede/target/linux' time: target/linux/compile#1.80#15.85#13.19 ERROR: target/linux failed to build. make[2]: *** [target/Makefile:30: target/linux/compile] Error 1 make[2]: Leaving directory '/home/gaoh/lede' make[1]: *** [target/Makefile:23: /home/gaoh/lede/staging_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/stamp/.target_compile] Error 2 make[1]: Leaving directory '/home/gaoh/lede'

dodogao avatar Oct 05 '26 04:10 dodogao

已修复。

根因是添加 mvebu Linux 6.18 支持时,经过 6.18 API 适配的 IEI WT61P803 驱动源文件被放进了通用的 target/linux/mvebu/files/。该目录也会覆盖到 Linux 6.6 和 6.12,导致 902、903、904 补丁再次尝试创建相同文件,其中 902 首先失败。

现已将这四个源文件移动到版本专用的 target/linux/mvebu/files-6.18/,6.6 和 6.12 继续使用各自原有的完整补丁链。

修复提交:coolsnowwolf/lede@88f08888bbd5804b660379f185125536d7d44ea1

已使用以下配置验证 Linux 6.6.158 内核完整编译通过:

CONFIG_TARGET_mvebu=y
CONFIG_TARGET_mvebu_cortexa9=y
CONFIG_TARGET_mvebu_cortexa9_DEVICE_linksys_wrt1900acs=y

生成的 vmlinux 为 ARM EABI5 32 位内核,补丁队列无 reject。

coolsnowwolf avatar Oct 05 '26 13:10 coolsnowwolf