Toybrick

RK3399ProD内核编译

yuxsun

注册会员

积分
64
发表于 2019-6-30 18:26:55    查看: 6893|回复: 3 | [复制链接]    打印 | 显示全部楼层
3399pro内核编译之前需要安装哪个64位的交叉编译器,还有需要安装哪些工具,
我下载了你们RK3399ProD的内核源码:https://github.com/rockchip-toybrick/kernel
我现在在Ubuntu16 64位的系统使用命令 ./make.sh linux prod编译时报如下错误,
好像是安装的环境缺了点什么:
gcc: error: unrecognized command line option '-mlittle-endian'
gcc: error: unrecognized command line option '-mgeneral-regs-only'
  CC      kernel/bounds.s
make[2]: *** [scripts/mod/empty.o] Error 1
make[1]: *** [scripts/mod] Error 2
make[1]: *** Waiting for unfinished jobs....
  CHK     include/generated/timeconst.h
gcc: error: unrecognized command line option '-mlittle-endian'
gcc: error: unrecognized command line option '-mgeneral-regs-only'
make[1]: *** [kernel/bounds.s] Error 1
make[1]: *** Waiting for unfinished jobs....
  UPD     include/generated/timeconst.h

而且我也像论坛里的这位哥们安装了genext2fs。


回复

使用道具 举报

qiu

版主

积分
1130
发表于 2019-7-1 09:24:23 | 显示全部楼层
这个应该是编译工具链没找到,环境变量没设置。  在android 的工程目录下  运行一下source build/envsetup.sh,再尝试编译一下Kernel
回复

使用道具 举报

yuxsun

注册会员

积分
64
 楼主| 发表于 2019-7-1 13:25:57 | 显示全部楼层
我没下载整个andriod工程,那个太大了,不知道要下载到猴年马月,只是下载了内核源码https://github.com/rockchip-toybrick/kernel, 然后编译的,必须要下载整个Android源码吗?
回复

使用道具 举报

snsing

注册会员

积分
94
发表于 2019-8-29 08:41:35 | 显示全部楼层
yuxsun 发表于 2019-7-1 13:25
我没下载整个andriod工程,那个太大了,不知道要下载到猴年马月,只是下载了内核源码https://github.com/ro ...

你好,你解决没有呢?我和你问题一样~!
回复

使用道具 举报

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

本版积分规则

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


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