openEuler embedded编译镜像报错Applying ‘0001-arm64-add-zImage-support-for-arm64.patch‘ failed

ERROR: linux-openeuler-5.10-r0 do_patch: Applying '0001-arm64-add-zImage-support-for-arm64.patch' failed:

stdout: checking file arch/arm64/Kconfig

Hunk #1 succeeded at 2192 (offset 102 lines).

checking file arch/arm64/Makefile

checking file arch/arm64/boot/Makefile

checking file arch/arm64/boot/compressed/Kconfig

checking file arch/arm64/boot/compressed/Makefile

checking file arch/arm64/boot/compressed/decompress.c

checking file arch/arm64/boot/compressed/head.S

stderr: patch: **** malformed patch at line 1180: diff --git a/arch/arm64/boot/compressed/hyp-stub.S b/arch/arm64/boot/compressed/hyp-stub.S

ERROR: Logfile of failure stored in: /mnt/build/tmp/work/qemu_aarch64-openeuler-linux/linux-openeuler/5.10-r0/temp/log.do_patch.982691

ERROR: Task (/mnt/embedded/src/yocto-poky/../yocto-meta-openeuler/meta-openeuler/recipes-kernel/linux/linux-openeuler.bb:do_patch) failed with exit code '1'

NOTE: Tasks Summary: Attempted 144 tasks of which 133 didn't need to be rerun and 1 failed.

解决办法:找到本地0001-arm64-add-zImage-support-for-arm64.patch的patch文件,与gitee上的patch进行对比,发现两个文件不一致。

下载gitee上的patch替换后,重新编译正常。

gitee上该文件的链接如下:

patches/arm64/0001-arm64-add-zImage-support-for-arm64.patch · openEuler/yocto-embedded-tools - Gitee.com

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值