Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

最新代码5.15内核编译错误 #12080

Open
1 task done
ysuolmai opened this issue Apr 18, 2024 · 6 comments
Open
1 task done

最新代码5.15内核编译错误 #12080

ysuolmai opened this issue Apr 18, 2024 · 6 comments

Comments

@ysuolmai
Copy link

详细叙述

最新版默认6.1,编译出来没看到nss,菜单里也没看到有WiFi,就换成5.15来编译,死活不能成功.看到有类似issue但是没有人解释原因直接被complete了。

重复 issue

  • 没有类似的 issue

具体型号

兆能M2

详细日志

Packaged contents of /home/parallels/lede/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq60xx/packages/ipkg-aarch64_cortex-a53/kmod-crypto-user into /home/parallels/lede/bin/targets/qualcommax/ipq60xx/packages/kmod-crypto-user_5.15.155-1_aarch64_cortex-a53.ipk
NOTICE: module '/home/parallels/lede/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq60xx/linux-5.15.155/lib/crypto/libarc4.ko' is built-in.
rstrip.sh: /home/parallels/lede/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq60xx/packages/ipkg-aarch64_cortex-a53/kmod-crypto-arc4/lib/modules/5.15.155/arc4.ko: relocatable
Packaged contents of /home/parallels/lede/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq60xx/packages/ipkg-aarch64_cortex-a53/kmod-crypto-arc4 into /home/parallels/lede/bin/targets/qualcommax/ipq60xx/packages/kmod-crypto-arc4_5.15.155-1_aarch64_cortex-a53.ipk
rstrip.sh: /home/parallels/lede/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq60xx/packages/ipkg-aarch64_cortex-a53/kmod-crypto-authenc/lib/modules/5.15.155/authenc.ko: relocatable
rstrip.sh: /home/parallels/lede/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq60xx/packages/ipkg-aarch64_cortex-a53/kmod-crypto-authenc/lib/modules/5.15.155/authencesn.ko: relocatable
Packaged contents of /home/parallels/lede/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq60xx/packages/ipkg-aarch64_cortex-a53/kmod-crypto-authenc into /home/parallels/lede/bin/targets/qualcommax/ipq60xx/packages/kmod-crypto-authenc_5.15.155-1_aarch64_cortex-a53.ipk
rstrip.sh: /home/parallels/lede/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq60xx/packages/ipkg-aarch64_cortex-a53/kmod-crypto-hmac/lib/modules/5.15.155/hmac.ko: relocatable
Packaged contents of /home/parallels/lede/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq60xx/packages/ipkg-aarch64_cortex-a53/kmod-crypto-hmac into /home/parallels/lede/bin/targets/qualcommax/ipq60xx/packages/kmod-crypto-hmac_5.15.155-1_aarch64_cortex-a53.ipk
ERROR: module '/home/parallels/lede/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq60xx/linux-5.15.155/arch/arm64/crypto/sha512-arm64.ko' is missing.
make[3]: *** [modules/crypto.mk:1090: /home/parallels/lede/bin/targets/qualcommax/ipq60xx/packages/kmod-crypto-sha512_5.15.155-1_aarch64_cortex-a53.ipk] Error 1
make[3]: Leaving directory '/home/parallels/lede/package/kernel/linux'
time: package/kernel/linux/compile#2.43#0.16#2.55
ERROR: package/kernel/linux failed to build.
make[2]: *** [package/Makefile:116: package/kernel/linux/compile] Error 1
make[2]: Leaving directory '/home/parallels/lede'
make[1]: *** [package/Makefile:110: /home/parallels/lede/staging_dir/target-aarch64_cortex-a53_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/parallels/lede'
make: *** [/home/parallels/lede/include/toplevel.mk:231: world] Error 2

@ysuolmai
Copy link
Author

换成5.4也是一样的问题, sha512-arm64.ko 缺失
log.txt

@eearphon
Copy link

kmod-crypto-sha512 拿掉一试

@ysuolmai
Copy link
Author

kmod-crypto-sha512 拿掉一试

又提示sha256-arm64.ko缺失...

make[3]: Leaving directory '/home/parallels/lede/package/network/config/netifd'
time: package/network/config/netifd/compile#0.08#0.02#0.10
make[3]: Entering directory '/home/parallels/lede/package/firmware/linux-firmware'
make[3]: Nothing to be done for 'compile'.
make[3]: Leaving directory '/home/parallels/lede/package/firmware/linux-firmware'
time: package/firmware/linux-firmware/compile#0.09#0.01#0.10
make[3]: Entering directory '/home/parallels/lede/package/kernel/linux'
mkdir -p /home/parallels/lede/staging_dir/target-aarch64_cortex-a53_musl/root-qualcommax/stamp

SHELL= flock /home/parallels/lede/tmp/.root-copy.flock -c 'cp -fpR /home/parallels/lede/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq60xx/packages/.pkgdir/kernel/. /home/parallels/lede/staging_dir/target-aarch64_cortex-a53_musl/root-qualcommax/'
touch /home/parallels/lede/staging_dir/target-aarch64_cortex-a53_musl/root-qualcommax/stamp/.kernel_installed
NOTICE: module '/home/parallels/lede/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq60xx/linux-5.4.273/crypto/sha256_generic.ko' is built-in.
NOTICE: module '/home/parallels/lede/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq60xx/linux-5.4.273/lib/crypto/libsha256.ko' is built-in.
ERROR: module '/home/parallels/lede/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq60xx/linux-5.4.273/arch/arm64/crypto/sha256-arm64.ko' is missing.
make[3]: *** [modules/crypto.mk:1039: /home/parallels/lede/bin/targets/qualcommax/ipq60xx/packages/kmod-crypto-sha256_5.4.273-1_aarch64_cortex-a53.ipk] Error 1
make[3]: Leaving directory '/home/parallels/lede/package/kernel/linux'
time: package/kernel/linux/compile#2.09#0.13#2.22
ERROR: package/kernel/linux failed to build.
make[2]: *** [package/Makefile:116: package/kernel/linux/compile] Error 1
make[2]: Leaving directory '/home/parallels/lede'
make[1]: *** [package/Makefile:110: /home/parallels/lede/staging_dir/target-aarch64_cortex-a53_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/parallels/lede'
make: *** [/home/parallels/lede/include/toplevel.mk:231: world] Error 2

@ysuolmai
Copy link
Author

更新一下, 我搜了一下,看到有个类似的,说法是在
https://forum.openwrt.org/t/sha512-arm-ko-is-missing-solved/159488

解法是加 CONFIG_ARM_CRYPTO 到config-5.15, target/linux/qualcommax/下面只有config-6.1, 我就加到了 target/linux/qualcommax/ipq60xx/config-default里, 加了CONFIG_ARM64_CRYPTO=y, 现在又出了新的错误码

rx.o
  CC [M]  /home/parallels/lede/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq60xx/backports-6.1.24/drivers/net/wireless/ath/ath11k/wmi.o
  CC [M]  /home/parallels/lede/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq60xx/backports-6.1.24/drivers/net/wireless/ath/ath11k/mac.o
  CC [M]  /home/parallels/lede/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq60xx/backports-6.1.24/drivers/net/wireless/ath/ath11k/reg.o
  CC [M]  /home/parallels/lede/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq60xx/backports-6.1.24/drivers/net/wireless/ath/ath11k/htc.o
  CC [M]  /home/parallels/lede/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq60xx/backports-6.1.24/drivers/net/wireless/ath/ath11k/qmi.o
/home/parallels/lede/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq60xx/backports-6.1.24/drivers/net/wireless/ath/ath11k/qmi.c:29:56: error: expected ')' before 'bool'
   29 | module_param_named(cold_boot_cal, ath11k_cold_boot_cal, bool, 0644);
      |                                                        ^~~~~
      |                                                        )
/home/parallels/lede/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq60xx/backports-6.1.24/drivers/net/wireless/ath/ath11k/qmi.c:30:32: error: expected ')' before string constant
   30 | MODULE_PARM_DESC(cold_boot_cal,
      |                                ^
      |                                )
   31 |                  "Decrease the channel switch time but increase the driver load time (Default: true)");
      |                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[11]: *** [scripts/Makefile.build:262: /home/parallels/lede/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq60xx/backports-6.1.24/drivers/net/wireless/ath/ath11k/qmi.o] Error 1
make[10]: *** [scripts/Makefile.build:497: /home/parallels/lede/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq60xx/backports-6.1.24/drivers/net/wireless/ath/ath11k] Error 2
make[9]: *** [scripts/Makefile.build:497: /home/parallels/lede/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq60xx/backports-6.1.24/drivers/net/wireless/ath] Error 2
make[8]: *** [scripts/Makefile.build:497: /home/parallels/lede/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq60xx/backports-6.1.24/drivers/net/wireless] Error 2
make[7]: *** [Makefile:1750: /home/parallels/lede/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq60xx/backports-6.1.24] Error 2
make[6]: *** [Makefile.build:13: modules] Error 2
make[5]: *** [Makefile.real:93: modules] Error 2
make[4]: *** [Makefile:121: modules] Error 2
make[4]: Leaving directory '/home/parallels/lede/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq60xx/backports-6.1.24'
make[3]: *** [Makefile:401: /home/parallels/lede/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq60xx/backports-6.1.24/.built] Error 2
make[3]: Leaving directory '/home/parallels/lede/package/kernel/mac80211'
time: package/kernel/mac80211/regular/compile#8.16#0.74#8.72
    ERROR: package/kernel/mac80211 failed to build (build variant: regular).
make[2]: *** [package/Makefile:116: package/kernel/mac80211/compile] Error 1
make[2]: Leaving directory '/home/parallels/lede'
make[1]: *** [package/Makefile:110: /home/parallels/lede/staging_dir/target-aarch64_cortex-a53_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/parallels/lede'
make: *** [/home/parallels/lede/include/toplevel.mk:231: world] Error 2

@WYC-2020
Copy link
Contributor

5.15都被砍掉了很多配置和patch都删除了, 如果你只是简单改成5.15编译 那肯定失败,非要5.15自己回退回去看看

@ysuolmai
Copy link
Author

5.15都被砍掉了很多配置和patch都删除了, 如果你只是简单改成5.15编译 那肯定失败,非要5.15自己回退回去看看

嗯我放弃了, 编6.1可以成功,但是没有wifi. 大雕说要改dts, 但是改了也是没有效果. 暂时先用别人的代码编译了用了.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants