Olimex Support Forum

OLinuXino Android / Linux boards and System On Modules => A13 => Topic started by: joek on May 23, 2016, 07:37:31 PM

Title: frustrated with android building
Post by: joek on May 23, 2016, 07:37:31 PM
Hello guys,my name is Joe,i would like to share with you my problem that i am experiencing with android build for A13 tablet similar to olinuxino A13 "q8_a13_tablet_defconfig" and i hope you will help me boot android successfully.
So first i am using Ubuntu 14.04 LTS 64bit,and i am willing to boot from sdcard.
I have Android 4.3.1 source from AOSP and Linux 3.4 and uboot from sunxi.
First,for test purposes i followed all instructions on https://linux-sunxi.org/Manual_build_howto to compile linux kernel and uboot and building the script.bin and boot.scr,and then flash them on my "MicroSd HC class 4 8GB" sdcard.i also downloaded a linaro rootfs and all boot successfully.
When building the linux kernel i am only enabling the "ThumbEE cpu" and the wifi drivers.
When building the uboot i am only enabling the "Workaround to boot old kernel".And all is ok and it's booting with no problem even the wifi worked.
Note:for the above instructions i am using CROSS_COMPILE=arm-linux-gnueabihf- for both kernel and uboot.My arm-linux-gnueabihf- version is 4.7.3 linaro,and same for gcc.

Now i decided to start building the android 4.3.1 source and i copied the "device/softwinner" folder from android4.1 wish it comes in a tar file downloaded form Olinuxino github.
i modified the init files (replaced all "nandx" variables with "mmcblk0px".
My sdcard partitions look like this:from https://linux-sunxi.org/Boot_Android_from_SdCard
i tried couple ways for formating the sdcard ,one way using Gparted" and the second way using the instruction from the above page.
here is the init.sun5i.rc:
Here is my boot.cmd script:
The "prebuilts" folder inside the android source "../prebuilts/gcc/linux-x86/" has multiple toolchains "arm-eabi-4.6","arm-eabi-4.7","arm-linux-androideabi-4.6","arm-linux-androideabi-4.7".
I tried to compile the linux kernel and uboot using all these versions and ofcource i tried first with "arm-linux-gnueabihf-"and i tried to use uImage and zImage converted to uImage using mkimage command.
When i boot the board,the uboot comes first and post some commands on screen,then it loads the kernel with no problem,when the kernel loaded the android logo appears and that's it,it hangs here.
Now i tried to hack the problem by adding mkdir after " mount ext4 /dev/mmcblk0p3 /system wait noatime nodev barrier=0" but with no luck.
I am out of ideas,i will be glad if someone really help me know what is going on and fix the problem,maybe it is a crosscompiler issue.
Thank you for your time,appreciate your reply.
Title: Re: frustrated with android building
Post by: joek on May 23, 2016, 07:57:06 PM
I would like also to know,should i compile the kernel and uboot with the same toolchain that compiled android source?
What Image should i use:zImage or converted zImage or just the uImage althought i tried them all.
I also enabled android device drivers in menuconfig of the kernel build.
I did lots of researches about compiling android kernels and the android boot process,all i found is just scripts and few lines of commands, i cant really find a clear declaration on how to configure android for a real device.
Title: Re: frustrated with android building
Post by: joek on May 30, 2016, 09:07:52 PM
Anybody?