Toybrick

标题: RV1126 kernel编译不过 [打印本页]

作者: todo9351    时间: 2022-3-21 16:47
标题: RV1126 kernel编译不过

  1. ~/data-200g/npu/kernel$ ./make-linux.sh arm
  2. #
  3. # configuration written to .config
  4. #
  5. scripts/kconfig/conf  --syncconfig Kconfig
  6.   CC      scripts/mod/empty.o
  7.   CC      scripts/mod/devicetable-offsets.s
  8. gcc: error: unrecognized argument in option '-mabi=aapcs-linux'
  9. gcc: note: valid arguments to '-mabi=' are: ms sysv
  10. gcc: error: unrecognized command line option '-mlittle-endian'
  11. gcc: error: unrecognized command line option '-mfpu=vfp'
  12. gcc: error: unrecognized argument in option '-mabi=aapcs-linux'
  13. gcc: note: valid arguments to '-mabi=' are: ms sysv
  14. gcc: error: unrecognized command line option '-mlittle-endian'
  15. gcc: error: unrecognized command line option '-mfpu=vfp'
  16. make[2]: *** [scripts/Makefile.build:334: scripts/mod/empty.o] Error 1
  17. make[2]: *** Waiting for unfinished jobs....
  18. make[2]: *** [scripts/Makefile.build:131: scripts/mod/devicetable-offsets.s] Error 1
  19. make[1]: *** [scripts/Makefile.build:637: scripts/mod] Error 2
  20. make: *** [Makefile:1217: scripts] Error 2
  21. cp: cannot stat 'arch/arm/boot/zImage': No such file or directory
复制代码
我要编RV1126 的KERNEL , 按照如下教程
https://t.rock-chips.com/wiki.php?filename=%E8%BD%AF%E4%BB%B6%E5%BC%80%E5%8F%91/Kernel
发现如上问题。
本地采用的是 UBUNTU 20虚拟机,RV1126的 toybrick的开发板。

请问如何解决?

作者: todo9351    时间: 2022-3-22 13:39
改 make-linux.sh 编过了
作者: 纯纯小白    时间: 2022-3-26 15:36
todo9351 发表于 2022-3-22 13:39
改 make-linux.sh 编过了

请问是命令直接改成make-linux.sh 吗?前面的./还要吗?

作者: 纯纯小白    时间: 2022-4-3 19:46
todo9351 发表于 2022-3-22 13:39
改 make-linux.sh 编过了

请问你是在Ubuntu环境下交叉编译的吗?




欢迎光临 Toybrick (https://t.rock-chips.com/) Powered by Discuz! X3.3