美文网首页
Ubuntu16.04 64位+RK3229+android5.

Ubuntu16.04 64位+RK3229+android5.

作者: ProgZack | 来源:发表于2017-09-30 16:00 被阅读384次

问题1

AS arch/arm/boot/compressed/head.o
LZO arch/arm/boot/compressed/piggy.lzo
/bin/sh: 1: lzop: not found
/home/mops/rk3288_6.0/kernel/arch/arm/boot/compressed/Makefile:196: recipe for target 'arch/arm/boot/compressed/piggy.lzo' failed
make[2]: *** [arch/arm/boot/compressed/piggy.lzo] Error 1
/home/mops/rk3288_6.0/kernel/arch/arm/boot/Makefile:53: recipe for target 'arch/arm/boot/compressed/vmlinux' failed
make[1]: *** [arch/arm/boot/compressed/vmlinux] Error 2
/home/mops/rk3288_6.0/kernel/arch/arm/Makefile:304: recipe for target 'zImage' failed
make: *** [zImage] Error 2

解决方案:

缺少lzop
执行:
apt-get install lzop

问题2:

Kernel: arch/arm/boot/zImage is ready
make: *** [kernel.img] Error 127

解决方案:

Ubuntu64位在执行mkkrnimg时需要32位的lib,所以安装
sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386

问题3:

java 环境必须是 openjdk-7-jdk,否则导致报出ERROR,编译失败.
而且由于Ubuntu16.04代码库里已经不包含openjdk7,所以要手动添加仓库

解决方案:

sudo add-apt-repository ppa:openjdk-r/ppa
sudo apt-get update
sudo apt-get install openjdk-7-jdk
PATH=/usr/lib/jvm/java-7-openjdk-amd64/bin:$PATH

问题4:

libz.so.1: cannot open shared object file: No such file or directory
make[2]: *** [scripts/mod/empty.o] Error 1
make[1]: *** [scripts/mod] Error 2
make: *** [scripts] Error 2

解决方案:查找so对应的包,安装即可

apt-file search libz.so.1
发现libz.so.1在lib32z1中,所以:
sudo apt-get install lib32z1

一般都是些包或者库的缺失,值得注意的是问题2问题3。

相关文章

网友评论

      本文标题:Ubuntu16.04 64位+RK3229+android5.

      本文链接:https://www.haomeiwen.com/subject/kjmgextx.html