RK3368 RK3128编译问题总结

  1.build@build--machine:~/rk3288/kernel$ make rk3288-tb_8846.img
scripts/kconfig/conf --silentoldconfig Kconfig
^C
build@build--machine:~/rk3288/kernel$ make rk3288-tb_8846.img
  CC      scripts/mod/devicetable-offsets.s
  GEN     scripts/mod/devicetable-offsets.h
  HOSTCC  scripts/mod/file2alias.o
  HOSTLD  scripts/mod/modpost
  CHK     include/generated/uapi/linux/version.h
  CHK     include/generated/utsrelease.h
make[1]: `include/generated/mach-types.h' is up to date.
  CALL    scripts/checksyscalls.sh
  CHK     include/generated/compile.h
  GEN     drivers/video/rockchip/screen/lcd.h
  Kernel: arch/arm/boot/Image is ready
  LD      arch/arm/boot/compressed/vmlinux
  OBJCOPY arch/arm/boot/zImage
  Kernel: arch/arm/boot/zImage is ready
make: *** [kernel.img] Error 127

#### make failed to build some targets (18 seconds) ####

解决办法:
安装64bit机子对32bit程序运行的支持.
#sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386


  2.make中出现:Communication error with Jack server 127. Try 'jack-diagnose'

    解决方法:

 jack-admin kill-server
 jack-admin uninstall-server

3.

./prebuilts/sdk/tools/jack-admin: line 163: curl: command not found

./prebuilts/sdk/tools/jack-admin: line 163: curl: command not found

./prebuilts/sdk/tools/jack-admin: line 163: curl: command not found

./prebuilts/sdk/tools/jack-admin: line 163: curl: command not found

Communication error with Jack server (127), try 'jack-diagnose' or see Jack server log

安装curl:sudo apt-get install curl 4. [  0% 57/35046] Building with Jack: out/target/common/obj/...A_LIBRARIES/framework_intermediates/with-local/classes.dex FAILED: /bin/bash out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/with-local/classes.dex.rsp Out of memory error (version 1.2-rc4 'Carnac' (298900 f95d7bdecfceb327f9d201a1348397ed8a843843 by [email protected])). GC overhead limit exceeded. Try increasing heap size with java option '-Xmx'. Warning: This may have produced partial or corrupted output. ninja: build stopped: subcommand failed. make: *** [ninja_wrapper] 错误 1

出现这个错误是由于电脑内存不足,在命令行分别执行以下三条语句,然后继续编译

export JACK_SERVER_VM_ARGUMENTS="-Dfile.encoding=UTF-8 -XX:+TieredCompilation -Xmx4g"

./prebuilts/sdk/tools/jack-admin kill-server ./prebuilts/sdk/tools/jack-admin start-server 5. /bin/sh: 1: lzop: not found 安装:sudo apt-get install lzop  

你可能感兴趣的:(锐芯微-RK3368,LInux-ubuntu)