【问题标题】:Downlgrading linux kernel version in openwrt throws build error在 openwrt 中降级 linux 内核版本会引发构建错误
【发布时间】:2018-05-08 12:15:06
【问题描述】:

我试图将 linux 内核版本从 4.4.14(trunk) 降级到 3.18.44。 我为我的目标 linux 系统 ipq806x 进行了必要的 makefile 更改。 但是在构建时我收到补丁失败错误。构建日志 sn-p 如下所示。有没有人遇到过这样的错误。请分享你的cmets。

pplying patch platform/301-ARM-qcom-add-Netgear-Nighthawk-X4-R7500-device-tree.patch
patching file arch/arm/boot/dts/Makefile
The next patch would create the file arch/arm/boot/dts/qcom-ipq8064-r7500.dts,
which already exists!  Applying it anyway.
patching file arch/arm/boot/dts/qcom-ipq8064-r7500.dts
Hunk #1 FAILED at 1.
1 out of 1 hunk FAILED -- rejects in file arch/arm/boot/dts/qcom-ipq8064-r7500.dts
Patch platform/301-ARM-qcom-add-Netgear-Nighthawk-X4-R7500-device-tree.patch does not apply (enforce with -f)
Makefile:26: recipe for target '/home/guru/punya/trunkpull_24112017/openwrt/build_dir/target-arm_cortex-a9+neon-vfpv4_musl-1.1.16_eabi/linux-ipq806x/linux-3.18.44/.quilt_checked' failed
make[4]: *** [/home/guru/punya/trunkpull_24112017/openwrt/build_dir/target-arm_cortex-a9+neon-vfpv4_musl-1.1.16_eabi/linux-ipq806x/linux-3.18.44/.quilt_checked] Error 1
make[4]: Leaving directory '/home/guru/punya/trunkpull_24112017/openwrt/target/linux/ipq806x'
Makefile:13: recipe for target 'compile' failed
make[3]: *** [compile] Error 2
make[3]: Leaving directory '/home/guru/punya/trunkpull_24112017/openwrt/target/linux'
target/Makefile:21: recipe for target 'target/linux/compile' failed
make[2]: *** [target/linux/compile] Error 2
make[2]: Leaving directory '/home/guru/punya/trunkpull_24112017/openwrt'
target/Makefile:16: recipe for target '/home/guru/punya/trunkpull_24112017/openwrt/staging_dir/target-arm_cortex-a9+neon-vfpv4_musl-1.1.16_eabi/stamp/.target_compile' failed
make[1]: *** [/home/guru/punya/trunkpull_24112017/openwrt/staging_dir/target-arm_cortex-a9+neon-vfpv4_musl-1.1.16_eabi/stamp/.target_compile] Error 2
make[1]: Leaving directory '/home/guru/punya/trunkpull_24112017/openwrt'
/home/guru/punya/trunkpull_24112017/openwrt/include/toplevel.mk:192: recipe for target 'world' failed
make: *** [world] Error 2

【问题讨论】:

  • 这个问题和C有关吗?
  • 抱歉,这是与构建相关的问题

标签: linux build linux-kernel openwrt


【解决方案1】:

从日志中可以清楚地看出,由于 dts 修补失败,编译失败。 如果失败的补丁文件不需要,则删除后尝试编译。

【讨论】:

    猜你喜欢
    • 2014-09-02
    • 1970-01-01
    • 2017-06-06
    • 2021-09-29
    • 1970-01-01
    • 2018-11-27
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多