Pages

Build custom ROM for Allwinner A10 based Android Tablets 2

  • PART II

If you have downloaded the kernel and Android OSP files you can dive right in to compiling the kernel images and building the actual firmware. The first part can be found here
Since we will be compiling the kernel images on an x86 machine we will need a cross compiler to build images that are compatible with the ARM cpu architecture. Fortunately Ubuntu comes pre-loaded with such cross compiler.

Step 1
Go to lichee/scripts and you should find a file named build_sun4i_crane.sh, open the file and change
export ARCH=arm
change this line
export CROSS_COMPILE=arm-none-linux-gnueabi-
to
  export CROSS_COMPILE=/home/arpandeb/android/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-
Please note that “/home/arpandeb†is my home directory, on your machine it will be different.
Save the file.

Step 2
 cd ~/a10/lichee ./build.sh -p sun4i_crane
It will take some time and the kernel will be compiled along with the associated drivers and modules. After the process is complete, you can view them by going to

cd ~/a10/lichee/output ls -l
You  should see two files bImage , zImage and one directory named “libâ€. The lib directory contains all the drivers and modules.

Step 3
Next step is to build the Android AOSP system, it will take few hours. To build Android

cd ~/android source build/envsetup.sh lunch

A simple text menu like the one showed above gets displayed. Select Option 6. For our target tablets like XTAB A10, VeeDee D10/Ployer MOMO9, iBerry BT07i, Olive VT300 or any other Allwinner A10 based tablet we have to create the board files. Now VeeDee D10, Plopyer Momo9, Olive VT300 are build on the same internal hardware and casing, so a single set of board files should suffice.
After you have selected the option, to compile Android type
make
Now you will see copious amount of texts scrolling by on your screen, it will take any where from 2 to 4 hours for the entire operation to get completed.

Step 4
Once it is over, download this filehttp://www.mediafire.com/?ddru5mbcpurwye3  ,mkfs.sh (this will create the actual firmware image). Overwrite the existing mkfs.sh. Now open the mkfs.sh file and change the following variables according to your system

export ANDROID_BUILD_TOP=/home/arpandeb/android export OUT=/home/arpandeb/android/a10out LINUXBSP_SRC=$ANDROID_ROOT/lichee
I have moved the “lichee†directory to be under /android to keep all things in one place, you can do that too. In the mkfs.sh, following variables refer to the location of the compiled drivers and modules, if you have moved them around, change it accordingly

DRV_DIR=$LINUXBSP_SRC/output/lib/modules/2.6.36-android LINUX_IMG=$LINUXBSP_SRC/output
If you have edited the mkfs.sh file, save it and close it and change the permission to 755 if necessary. Now

sudo ./mkfs.sh
It will show some out put and after few minutes your firmware is ready. You will find the .img files in the directory you defined in OUT, in my case it was in /home/arpandeb/android/aout. Once you go inside that directory you should see three files

root.img system.img recovery.img
Now create a directory under your home directory and name it firmware, for example
/home/arpandeb/firmware
Now copy the root.ing, system.img, recover.img and bImage (from android/lichee/output). Transfer the directory to a thumbdrive and take it to a PC running Windows for the next phase.

  • Sumber :http://arpandeb.com/03/2012/android-how-to-guides/how-to-build-custom-rom-for-allwinner-a10-based-android-tablets-part-ii.html
Related Posts Plugin for WordPress, Blogger...