Firefly开源社区
标题:
Ubuntu18.04编译ROC-RK3588-RT的sdk时报错
[打印本页]
作者:
ladiossopp
时间:
2024-10-21 11:00
标题:
Ubuntu18.04编译ROC-RK3588-RT的sdk时报错
在Ubuntu-18.04的虚拟机上按照
https://wiki.t-firefly.com/zh_CN/ROC-RK3588-RT/linux_compile.html
进行下载编译,用的普通用户,英文环境,下载同步都完成后,开始编译,第一步
编译 u-boot可以通过,第二步在
编译 kernel出现下面报错
#
# configuration written to .config
#
SYNC include/config/auto.conf.cmd
HOSTCC scripts/dtc/dtc.o
HOSTCC scripts/dtc/flattree.o
HOSTCC scripts/dtc/fstree.o
HOSTCC scripts/dtc/data.o
HOSTCC scripts/dtc/livetree.o
HOSTCC scripts/dtc/treesource.o
HOSTCC scripts/dtc/srcpos.o
HOSTCC scripts/dtc/checks.o
HOSTCC scripts/dtc/util.o
LEX scripts/dtc/dtc-lexer.lex.c
YACC scripts/dtc/dtc-parser.tab.[ch]
HOSTCC scripts/dtc/dtc-lexer.lex.o
HOSTCC scripts/dtc/dtc-parser.tab.o
HOSTLD scripts/dtc/dtc
UPD include/config/kernel.release
DTC arch/arm64/boot/dts/rockchip/roc-rk3588-rt-ext.dtb
CC scripts/mod/empty.o
HOSTCC scripts/mod/mk_elfconfig
MKELF scripts/mod/elfconfig.h
HOSTCC scripts/mod/modpost.o
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[2]: *** [scripts/mod/devicetable-offsets.s] Error 1
Makefile:1505: recipe for target 'scripts_mod' failed
make[1]: *** [scripts_mod] Error 2
arch/arm64/Makefile:214: recipe for target 'roc-rk3588-rt-ext.img' failed
make: *** [roc-rk3588-rt-ext.img] 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
无论创建仓库使用方法一还是方法二都在这里报错,网上查可能是交叉编译环境变量配置有问题,请教怎么能够解决?
tchip_askquestions
error.txt
2024-10-21 10:49 上传
点击文件名下载附件
下载积分: 灯泡 -1 , 经验 -1
5.61 KB, 下载次数: 0, 下载积分: 灯泡 -1 , 经验 -1
作者:
ladiossopp
时间:
2024-10-23 15:29
已解决,将kernel/include/uapi目录下的asm-generic目录备份,拷贝一份改名为asm,再编译就可以了
欢迎光临 Firefly开源社区 (https://dev.t-firefly.com/)
Powered by Discuz! X3.1