A31编译笔记

先装jdk
http://www.oracle.com/technetwork/java/javase/archive-139210.html
download java SE 6
http://www.oracle.com/technetwork/java/javasebusiness/downloads/java-archive-downloads-javase6-419409.html

Java SE Development Kit 6u45
jdk-6u45-linux-i586.bin

registery first
download

run
$./jdk-6u45-linux-i586.bin

$sudo mkdir /opt/java
$sudo mv jdk1.6.0_45 /opt/java/

$sudo vi /etc/profile
export JAVA_HOME=/opt/java/jdk1.6.0_45
export CLASSPATH=.:$JAVA_HOME/jre/lib/rt.jar:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
export PATH=$JAVA_HOME/bin:$PATH
#export JRE_HOME=$JAVA_HOME/jre

重启,或者注销

$java -version
java version "1.6.0_45"
Java(TM) SE Runtime Environment (build 1.6.0_45-b06)
Java HotSpot(TM) Server VM (build 20.45-b01, mixed mode)

$tar -xvf lichee.tar.gz
$cd lichee
./build.sh -p sun6i_fiber
./gen_check_code ./resume1.bin ./super/resume/resume1.code
./gen_check_code: ./gen_check_code: cannot execute binary file

$vi /home/d01zm/workspace/A31/A31-V2.0/lichee/linux-3.3/arch/arm/mach-sun6i/pm/standby/Makefile

change
#cp resume1.bin ./super/resume/resume1.code
./gen_check_code ./resume1.bin ./super/resume/resume1.code

to

cp resume1.bin ./super/resume/resume1.code
#./gen_check_code ./resume1.bin ./super/resume/resume1.code



$tar -xvf android.tar.gz
$cd android/
$source build/envsetup.sh
$lunch    //选择相应的产品


执行extract-bsp出错
android/../lichee/out/android/bImage: No such file or directory
lichee下没有out目录,bImage在linux3.3/目录下有。

进入lichee
./build.sh -p sun6i_fiber -m kernel
"mkimage" command not found -U-boot images will not be built

$sudo apt-get install uboot-mkimage

/bin/sh:1:arm-linux-gnueabi-arm-linux-gnueabi-gcc:not found
删除 v4.2/lichee/linux-3.3/modules/eurasia_km/eurasiacon/binary2_sunxi_android_release/


ub 12.04  64bit
mount wrong fs type ....
$apt-get install nfs-common


在Ubuntu下安装jdk解压出现问题:./jdk-6u45-linux-i586.bin: 113: ./install.sfx.1535: not found。
Failed to extract the files.  Please refer to the Troubleshooting section of
the Installation Instructions on the download page for more information
机器字长和jdk版本不匹配,64位的系统,选择了586的jdk。
之后到Oracle网站去下载了64位的jdk(jdk-6u45-linux-x64.bin),修改添加执行权限后,运行该文件,解压成功!


external/bluetooth/bluedroid/Android.mk:8: NO BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR, using only generic configuration
$sudo apt-get install ia32-libs lib32z1-dev lib32bz2-dev

 /bin/bash: bison: command not found
方法:sudo apt-get install bison

/bin/bash: xsltproc: command not found

方法:sudo apt-get install xsltproc

/bin/bash: xmllint: command not found
方法:sudo apt-get  install libxml2-utils

make[1]: lzma: Command not found

方法:sudo apt-get  install lzma

/bin/bash:flex command not found
sudo apt-get install flex


target : framework
out of memery: kill process java ...
加大swap
http://blog.sina.com.cn/s/blog_6d6e54f701010jxt.html


target generated:libbcc <= frameworks/compile/libcc/tools/build/gen-build-info.py
....
cwd=repo_dir)
File "/usr/lib/python2.7/subprocess.py", line 679, in __init__
errred,errwrite)
File "/usr/lib/python2.7/subprocess.py" line 1249, in _execute_child raise child_exception
OSError: [Errno 2] No such file or directory
make :*** [out/host/]....BuildInfo.cpp] Error 1

$sudo apt-get install git-core
作者:帅得不敢出门

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值