|
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
|
|