Toybrick

RV1126 kernel编译不过

todo9351

新手上路

积分
19
楼主
发表于 2022-3-21 16:47:09    查看: 2219|回复: 3 | [复制链接]    打印 | 只看该作者

  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

新手上路

积分
19
沙发
 楼主| 发表于 2022-3-22 13:39:47 | 只看该作者
改 make-linux.sh 编过了
回复

使用道具 举报

纯纯小白

注册会员

积分
88
板凳
发表于 2022-3-26 15:36:39 | 只看该作者
todo9351 发表于 2022-3-22 13:39
改 make-linux.sh 编过了

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

使用道具 举报

纯纯小白

注册会员

积分
88
地板
发表于 2022-4-3 19:46:51 | 只看该作者
todo9351 发表于 2022-3-22 13:39
改 make-linux.sh 编过了

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

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

产品中心 购买渠道 开源社区 Wiki教程 资料下载 关于Toybrick


快速回复 返回顶部 返回列表