avatar

Linux-qemu模拟arm64

编译arm64(aarch64) Kernel可能会遇到的问题

问题1:

1
2
3
4
5
6
7
  HOSTCC  scripts/extract-cert
scripts/extract-cert.c:21:10: fatal error: openssl/bio.h: No such file or directory
#include <openssl/bio.h>
^~~~~~~~~~~~~~~
compilation terminated.
make[1]: *** [scripts/Makefile.host:103: scripts/extract-cert] Error 1
make: *** [Makefile:1133: scripts] Error 2
1
sudo apt-get install libssl-dev

问题2:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
  HOSTCC  scripts/extract-cert
HOSTCC scripts/mod/mk_elfconfig
CC scripts/mod/devicetable-offsets.s
CC scripts/mod/empty.o
MKELF scripts/mod/elfconfig.h
HOSTCC scripts/mod/modpost.o
HOSTCC scripts/mod/sumversion.o
UPD scripts/mod/devicetable-offsets.h
HOSTCC scripts/mod/file2alias.o
HOSTLD scripts/mod/modpost
CC kernel/bounds.s
CALL scripts/atomic/check-atomics.sh
/bin/sh: 1: bc: not found
make[1]: *** [Kbuild:24: include/generated/timeconst.h] Error 127
make[1]: *** Waiting for unfinished jobs....
make: *** [Makefile:1148: prepare0] Error 2
1
apt install bc
文章作者: 咲夜南梦
文章链接: http://yoursite.com/2020/08/04/Linux-qemu%E6%A8%A1%E6%8B%9Farm64/
版权声明: 本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 咲夜南梦's 博客
打赏
  • 微信
    微信
  • 支付宝
    支付宝

评论