编译ROC-RK3588-RT的sdk代码报错
在Ubuntu-18.04的PC上,下载sdk代码rk3588_linux_release_20230114_v1.0
按照 1. 编译 Linux 固件 — Firefly Wiki (t-firefly.com) 步骤编译ROC-RK3588-RT的linux代码时,报错如下:
=========================
#
# configuration written to .config
#
SYNC include/config/auto.conf.cmd
CC scripts/mod/devicetable-offsets.s
In file included from ./include/linux/types.h:6,
from ./include/linux/mod_devicetable.h:12,
from scripts/mod/devicetable-offsets.c:3:
./include/uapi/linux/types.h:5:10: fatal error: asm/types.h: No such file or directory
5 | #include <asm/types.h>
| ^~~~~~~~~~~~~
compilation terminated.
scripts/Makefile.build:117: recipe for target 'scripts/mod/devicetable-offsets.s' failed
make: *** Error 1
Makefile:1505: recipe for target 'scripts_mod' failed
make: *** Error 2
arch/arm64/Makefile:214: recipe for target 'roc-rk3588-rt.img' failed
make: *** Error 2
ERROR: Running build_extboot failed!
ERROR: exit code 2 from line 785:
make ARCH=$RK_ARCH $RK_KERNEL_DTS.img -j$RK_JOBS
应该是编译环境没设置好,再看看wiki
页:
[1]