Android4.2.2 porting on SD card by Ubuntu?

Started by mandar.khire, March 25, 2016, 09:05:08 AM

Previous topic - Next topic

mandar.khire

Hi,
I followed instructions given in the link for Build Android 4.2.2 from scratch.
https://olimex.wordpress.com/2014/01/30/how-to-build-android-4-2-2-for-a20-olinuxino-micro-from-scratch/

But not understand how to port that compiled Android in SD card using Ubuntu 14.04.

I seen when pack command complete:-
----------image is at----------
.../lichee/tools/pack/sun7i_android_olinuxino-a20.img

Same way in .../android4.2/out/target/product/olinuxino-a20/ has
1. userdata.img
2.system.img
3. recovery.img
4.ramdisk.img
5.boot.img

in .../lichee/out/android/common/ I can see
1. uImage
2. zImage
3. bImage
4.u-boot.bin

Question is:- As per instructions I built Android & not get any error in log.
How Can I port it in SD card using Ubuntu?
How SD card get partitions etc?
When I used Wandboard (The other board) , I found that they kept shell script for making SD card.
After compiled Android successfully we should use it, then SD card get partitions 5-6 different size.
Then by Readme file we should follow commands, then that SD card became boot-able Android SD card.

Is Olimex has something same way?
Need help.

ericb

For the LIME2 we are using the Phoenix Suite (not Live Suite). Unfortunately, I've only been able to get Phoenix Suite to run on Windows, but, it is working. I think I found the Windows installer at http://linux-sunxi.org.

Here is the process I following for the LIME2:

1) Start with the power off to your board and the USB cable disconnected.
2) Launch Phoenix Suite
3) Click on the Firmware icon and then load your IMG file.
4) Hold down the FEL button on your board.
5) Connect the USB cable. You could connect the USB cable earlier, but, make sure that it is now powering your board which might prevent your board from going into FEL mode ( http://linux-sunxi.org/FEL ).
6) While holding down the FEL button apply power. Continue holding the FEL button for about 2 seconds.
7) Within 10 seconds you should see the Phoenix Suite automatically detect the board and begin programming the IMG file.

Note that the value of the storage type setting in the FEX file will determine if Phoenix Suite tries to place the image in on-board flash or the SD card. http://linux-sunxi.org/Fex_Guide

Good luck,
Eric


mandar.khire

Thanks ericb,
Your detail given steps are really helpful for those who using Windows!
My question is:-
1. how can we do same thing via Ubuntu 14.04?
2. Is there no one tried to port Custom compiled Android image on SD card for Olimex A20 Micro by using Ubuntu 14.04?

ericb

#1: Unfortunately I don't know. I started a post with a similar question and received some suggestions, but, I haven't had time to dig in and implement anything. See post, "Load NAND Flash From Commandline Use FEL?".

Eric

mandar.khire

Thanks ericb once again,
Your given link is very useful for port custom compiled Android image on NAND Flash.
Is there any one know about port custom compiled Android image on SD card?
I tried RnD with other board ie Wandboard.
They gave complete source of Android which edited by them means they included BSP related to their board.
I found one major difference is that,
They include u-boot related files & we have choice that whether we use per-compiled it or we can follow steps for custom compile it.
I not found u-boot related files in Olimex Android related source given by
https://olimex.wordpress.com/2014/01/30/how-to-build-android-4-2-2-for-a20-olinuxino-micro-from-scratch/

Otherwise every other thing is same generated in olimex.
I even curious that they give shell script for partition blank sd card, but I don't know that for Olimex same partitioning needed or not?

help needed!