CubieBoard中文论坛

 找回密码
 立即注册
搜索
热搜: unable
查看: 12088|回复: 9

编译android固件

[复制链接]
发表于 2012-12-9 00:58:24 | 显示全部楼层 |阅读模式
http://linux-sunxi.org/Android

Android
From linux-sunxi
Jump to: navigation, search
Building Android (operating system) for an embedded A10 device can be done in a variety of ways. One method is to use the repo tool from google and point to a git repository.

Here is one example of building and flashing Android on the "cubieboard". This same method should apply to other A10 boards.

Android repo setup instructions for Android on A10
1) Install Java 1.6 JDK (recently Oracle has made this more difficult, but you can do it following these instructions

Get the binary here: JDK 1.6.024 download page

2) setup repo tool

3) Get the sources and sync the android repository (this will download a large amount of files and take a while)

mkdir cubie_android_ics && cd cubie_android_ics
repo init -u https://github.com/matson-hall/manifest.git -b ics-cubieboard
cp .repo/manifests/local_manifest.xml .repo/
repo sync

4) build android -- (Note: you will need around 40GB of free space to build android)

source build/envsetup.sh
lunch 4   # option 4 is cubieboard-eng
make -j4   # there maybe errors like to ask you "make update-api"

5) Create the install image:

chmod +x ./tools/pack-cm.sh
./tools/pack-cm.sh

You will see:

---------image is at-------------
/home/username/cubie/allwinner-pack-tools/pack/sun4i_linux_cubieboard.img

Install LiveSuit on Linux (64bit)
sudo apt-get install dkms
git clone https://github.com/matson-hall/allwinner-pack-tools.git -b cubieboard
unzip allwinner-pack-tools/tools/Livesuit-linux.zip
chmod +x LiveSuit_For_Linux64/LiveSuit.run
./LiveSuit_For_Linux64/LiveSuit.run #livesuit will be installed to ~/Bin

Flash nand flash on your board
sudo ~/Bin/LiveSuit/LiveSuit.sh #run livesuit

1) Livesuit GUI will start

2) Choose the image we built just now (sun4i_linux_cubieboard.img)

3) Disconnect all power to board, connect USB cable to board side, but not computer, then hold down "usb boot" button on your board, and plug in USB to computer -- a new device should be detected. If using a virtual machine you may need to modify your .vmx file to include the "skip reset usb-quirk" option. Instead of this method, you can follow the instructions to get into FEL mode.

4) It should ask to format the partition first, say yes.

5) You should see the progress bar increasing.

6) flashing should complete in about 3-4 minutes

回复

使用道具 举报

发表于 2012-12-18 15:14:58 | 显示全部楼层
根据这个wiki build出来的image烧录后无法启动,不知道有没有人遇到这样的问题?

在官网上downlad的TV的image是可以正常启动的,但那个CM9的image也无法启动
回复 支持 反对

使用道具 举报

发表于 2013-2-1 14:55:44 | 显示全部楼层
我试了下,按这个步骤可以启动的,只是那个绿灯不会亮。
回复 支持 反对

使用道具 举报

发表于 2013-3-26 21:55:48 | 显示全部楼层
repo init -u https://github.com/matson-hall/manifest.git -b ics-cubieboard
cp .repo/manifests/local_manifest.xml .repo/
repo sync
无论如何都下载不完啊,如果想用最新的源代码的话,到最后总是提示用户名密码,怎么办呢?
回复 支持 反对

使用道具 举报

发表于 2013-4-3 23:48:23 | 显示全部楼层
我也是在repo sync中报了许多error,请教,有人知道吗?
回复 支持 反对

使用道具 举报

发表于 2013-4-8 16:08:14 | 显示全部楼层
需要密碼,去那要
回复 支持 反对

使用道具 举报

发表于 2013-4-8 16:40:24 | 显示全部楼层
请申请github账号
回复 支持 反对

使用道具 举报

发表于 2013-4-9 14:15:18 | 显示全部楼层
Username for 'https://github.com': bokies
Password for 'https://bokies@github.com':
fatal: https://github.com/matson-hall/l ... ice=git-upload-pack not found: did you run git update-server-info on the server?
error: Cannot fetch linux-allwinner

error: Exited sync due to fetch errors

巳申请github账号,每次入密碼后都出現上面錯誤
回复 支持 反对

使用道具 举报

发表于 2013-4-16 16:55:41 | 显示全部楼层
照上面的编译,绿灯不亮,能进入android系统,但是HDMI没有输出,什么原因呢?
回复 支持 反对

使用道具 举报

发表于 2013-6-21 09:11:49 | 显示全部楼层
请问对应A20的android工程从哪里可以下?多谢
回复 支持 反对

使用道具 举报

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

本版积分规则

QQ|Archiver|手机版|粤ICP备13051116号|cubie.cc---深刻的嵌入式技术讨论社区

GMT+8, 2024-4-18 11:37 , Processed in 0.032723 second(s), 15 queries .

Powered by Discuz! X3.4

© 2001-2012 Comsenz Inc. | Style by Coxxs

返回顶部