matson 发表于 2013-1-8 21:50:38

最简单快捷的版本编译cubieboard固件

1. 下载源代码
$gwet http://dl.cubieboard.org/software/sources/cubieboard_opentv.tar.gz

2. 解压缩
$tar -zxf cubieboard_opentv.tar.gz
$cd cubieboard_opentv

3. 编译
$source build/envsetup.sh
$lunch
选择cubieboard
$make -j4

4.生成固件
$tools/pack-cm.sh

5.使用livesuit烧写


jk_ken 发表于 2013-4-9 11:20:07

arm-linux-gcc之类的都不用配置吗?

matson 发表于 2013-4-9 13:55:14

jk_ken 发表于 2013-4-9 11:20 static/image/common/back.gif
arm-linux-gcc之类的都不用配置吗?

应该是要用apt-get install gcc-arm-linux-gnueabihf

raymon 发表于 2013-4-9 19:18:33

UNEXPECTED TOP-LEVEL ERROR:
java.lang.OutOfMemoryError: Java heap space
        at java.util.Arrays.copyOf(Arrays.java:2734)
        at java.util.ArrayList.ensureCapacity(ArrayList.java:167)
        at java.util.ArrayList.add(ArrayList.java:351)
        at com.android.dx.dex.file.MixedItemSection.add(MixedItemSection.java:182)
        at com.android.dx.dex.file.StringIdItem.addContents(StringIdItem.java:91)
        at com.android.dx.dex.file.UniformItemSection.prepare0(UniformItemSection.java:76)
        at com.android.dx.dex.file.Section.prepare(Section.java:214)
        at com.android.dx.dex.file.DexFile.toDex0(DexFile.java:511)
        at com.android.dx.dex.file.DexFile.toDex(DexFile.java:216)
        at com.android.dx.command.dexer.Main.writeDex(Main.java:574)
        at com.android.dx.command.dexer.Main.run(Main.java:218)
        at com.android.dx.command.dexer.Main.main(Main.java:174)
        at com.android.dx.command.Main.main(Main.java:95)
make: *** Error 3

编译出錯

matson 发表于 2013-4-9 21:36:32

raymon 发表于 2013-4-9 19:18 static/image/common/back.gif
UNEXPECTED TOP-LEVEL ERROR:
java.lang.OutOfMemoryError: Java heap space
        at java.util.Arrays.copyOf( ...

编译android的环境,google推荐是配备了16GB的内存,8GB应该也可以编译。但是如果小于这个数很容易出现各种疑难杂症。

raymon 发表于 2013-4-10 16:18:53

問題還是存在

我的電腦是 i5 3.2GH SATA 500GB 16GB Memory
Ubuntu 10.04. 也試過 12.04. 都是同樣錯誤.

我跟google方法下載,編译,都沒問題,能起動emulator

但編译及下載 cubieboard 就問題多多.
上網試過很多方法都不成

matson 发表于 2013-4-10 21:22:46

raymon 发表于 2013-4-10 16:18 static/image/common/back.gif
問題還是存在

我的電腦是 i5 3.2GH SATA 500GB 16GB Memory


那就很奇怪了。看log也确实是系统的memory不够导致的。我的环境是ubuntu 12.04 x64的

raymon 发表于 2013-4-12 01:09:53

终于搅清楚,是JAVA环境设置问题。巳解决

raymon 发表于 2013-4-12 01:10:31

谢谢 matson

jk_ken 发表于 2013-4-16 16:57:53

matson 发表于 2013-4-10 21:22 static/image/common/back.gif
那就很奇怪了。看log也确实是系统的memory不够导致的。我的环境是ubuntu 12.04 x64的 ...

matson我照着编译android,打包成img用livesuit烧到nand里面去,启动能进入android,但hdmi没输出,是什么原因呢》?
页: [1] 2 3
查看完整版本: 最简单快捷的版本编译cubieboard固件