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.4内核编译报错 #11661

Closed
1 task done
slippersheepig opened this issue Nov 14, 2023 · 2 comments
Closed
1 task done

5.4内核编译报错 #11661

slippersheepig opened this issue Nov 14, 2023 · 2 comments

Comments

@slippersheepig
Copy link

反馈bug/问题模板,提建议请删除

1.关于你要提交的问题

Q:是否搜索了issue (使用 "x" 选择)

  • 没有类似的issue

2. 详细叙述

(1) 具体问题

A:路由器编译固件遇到内核版本HASH不一致问题

(2) 路由器型号和固件版本

A:gl-inet mt1300,编译5.4.260内核固件

(3) 详细日志

A:make[1]: Entering directory '/workdir/openwrt'
make[2]: Entering directory '/workdir/openwrt/target/linux'
make[3]: Entering directory '/workdir/openwrt/target/linux/ramips'
mkdir -p /workdir/openwrt/dl
SHELL= flock /workdir/openwrt/tmp/.linux-5.4.260.tar.xz.flock -c ' /workdir/openwrt/scripts/download.pl "/workdir/openwrt/dl" "linux-5.4.260.tar.xz" "9830820714c8f5985c50071cc9e1b40533ee81a4f6c704916c7148d16e54ebfeO" "" "@KERNEL/linux/kernel/v5.x" '
Cannot find appropriate hash command, ensure the provided hash is either a MD5 or SHA256 checksum.
make[3]: *** [Makefile:24: /workdir/openwrt/dl/linux-5.4.260.tar.xz] Error 255
make[3]: Leaving directory '/workdir/openwrt/target/linux/ramips'
make[2]: *** [Makefile:11: download] Error 2
make[2]: Leaving directory '/workdir/openwrt/target/linux'
time: target/linux/download#0.05#0.04#0.09
ERROR: target/linux failed to build.
make[1]: *** [target/Makefile:30: target/linux/download] Error 1
make[1]: Leaving directory '/workdir/openwrt'
make: *** [/workdir/openwrt/include/toplevel.mk:203: download] Error 2
Error: Process completed with exit code 2.

@Hirro029
Copy link

修改一下./include/kernel-5.4这个文件

LINUX_KERNEL_HASH-5.4.260 = 9830820714c8f5985c50071cc9e1b40533ee81a4f6c704916c7148d16e54ebfeO
改为
LINUX_KERNEL_HASH-5.4.260 = 9830820714c8f5985c50071cc9e1b40533ee81a4f6c704916c7148d16e54ebfe
就能正常编译了

@slippersheepig
Copy link
Author

修改一下./include/kernel-5.4这个文件 把 LINUX_KERNEL_HASH-5.4.260 = 9830820714c8f5985c50071cc9e1b40533ee81a4f6c704916c7148d16e54ebfeO 改为 LINUX_KERNEL_HASH-5.4.260 = 9830820714c8f5985c50071cc9e1b40533ee81a4f6c704916c7148d16e54ebfe 就能正常编译了

谢谢,这个可以PR吗😂

467815891a pushed a commit to 467815891a/lede that referenced this issue Dec 14, 2023
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

2 participants