root@Ubuntu-riscv64:/usr/src/linux-5.14# make ARCH=riscv headers_install INSTALL ./usr/include root@Ubuntu-riscv64:/usr/src/linux-5.14# make ARCH=riscv headers root@Ubuntu-riscv64:/usr/src/linux-5.14# make ARCH=riscv headers root@Ubuntu-riscv64:/usr/src/linux-5.14# make ARCH=riscv menuconfig HOSTCC scripts/kconfig/lxdialog/inputbox.o /bin/sh: 1: scripts/basic/fixdep: Exec format error make[1]: *** [scripts/Makefile.host:112: scripts/kconfig/lxdialog/inputbox.o] Error 126 make[1]: *** Deleting file 'scripts/kconfig/lxdialog/inputbox.o' make: *** [Makefile:625: menuconfig] Error 2 root@Ubuntu-riscv64:/usr/src/linux-5.14#
root@Ubuntu-riscv64:/usr/src/linux-5.14# make ARCH=riscv headers_check =================== WARNING =================== Since Linux 5.5, 'make headers_check' is no-op, and will be removed after Linux 5.15 release. Please remove headers_check from your scripts. =============================================== root@Ubuntu-riscv64:/usr/src/linux-5.14#
重新下份代码
root@Ubuntu-riscv64:/usr/src/linux-5.14# make ARCH=riscv menuconfig HOSTCC scripts/basic/fixdep UPD scripts/kconfig/mconf-cfg HOSTCC scripts/kconfig/mconf.o HOSTCC scripts/kconfig/lxdialog/checklist.o HOSTCC scripts/kconfig/lxdialog/inputbox.o HOSTCC scripts/kconfig/lxdialog/menubox.o HOSTCC scripts/kconfig/lxdialog/textbox.o HOSTCC scripts/kconfig/lxdialog/util.o HOSTCC scripts/kconfig/lxdialog/yesno.o HOSTCC scripts/kconfig/confdata.o HOSTCC scripts/kconfig/expr.o LEX scripts/kconfig/lexer.lex.c /bin/sh: 1: flex: not found make[1]: *** [scripts/Makefile.host:9: scripts/kconfig/lexer.lex.c] Error 127 make: *** [Makefile:625: menuconfig] Error 2 root@Ubuntu-riscv64:/usr/src/linux-5.14# lscpu Architecture: riscv64 Byte Order: Little Endian CPU(s): 4 On-line CPU(s) list: 0-3 Thread(s) per core: 4 Core(s) per socket: 1 Socket(s): 1 L1d cache: 32 KiB L1i cache: 32 KiB L2 cache: 2 MiB