Android build steps.

Discuss Android on the Wandboard, as well as app development for or on the Wandboard.

Android build steps.

Postby mindentropy » Tue Jan 26, 2016 7:22 am

Hi All,
I have written a step by step guide on building android from source in my blog here http://thesoulofamachine.blogspot.com/2015/12/android-lollipop-build-and-install-on.html . If you have any feedback please do let me know.

Thanks.
mindentropy
 
Posts: 21
Joined: Sun Aug 31, 2014 9:32 am

Re: Android build steps.

Postby repu1sion » Wed Jan 27, 2016 12:40 am

Hi.
You asked for feedback so I did ;)

The guide is rather ordinary. Also it contains probably nothing specific about Wandboard.
You could build almost any Android with
Code: Select all
source ./build/envsetup.sh
lunch TARGET
make -jN

Even google' official pages do the job here:
http://source.android.com/source/initializing.html
http://source.android.com/source/building.html

Also there is no reason to hack u-boot to set resolution as there is a common practice to use uEnv.txt file to describe all needed options.

About card partitioning - there is a script wand_fsl_sdcard-part.sh which worked for Kitkat4.4 and still works for Lollypop on Ubuntu 14.04LTS (not sure about 15.10).

I think you need to contact the Wandboard admins so they pin up your topic so it will be like a guide for newbies as they don't have an official one.
In that case that would be probably helpful.

Thanks for the guide, anyway.
repu1sion
 
Posts: 12
Joined: Mon Jun 01, 2015 4:00 pm

Re: Android build steps.

Postby mindentropy » Wed Jan 27, 2016 2:43 pm

Thanks for the feedback. It is ordinary I agree but the problems that come up specific to building on Ubuntu 15.10 is what I was trying to help with.

Card partitioning script does not work. Yes I could have easily fixed the script but I thought doing it manually will give a better idea. It is notes for me too ;)

I tried uEnv.txt I think. I will update it once I get some free time.
mindentropy
 
Posts: 21
Joined: Sun Aug 31, 2014 9:32 am

Re: Android build steps.

Postby Billy » Tue Apr 19, 2016 1:30 pm

Hi again MindEntropy, after developing my app I am back to getting Android up and running on the wandboard.

Followed your details and hit this problem.

U-Boot SPL 2014.10 (Dec 17 2015 - 22:12:31)
reading boot/u-boot.img
reading boot/u-boot.img


U-Boot 2014.10 (Dec 17 2015 - 22:12:31)

CPU: Freescale i.MX6Q rev1.2 at 792 MHz
Reset cause: POR
Board: Wandboard
I2C: ready
DRAM: 2 GiB
MMC: FSL_SDHC: 0, FSL_SDHC: 1
*** Warning - bad CRC, using default environment

auto-detected panel HDMI
Display: HDMI (1024x768)
In: serial
Out: serial
Err: serial
Net: FEC [PRIME]
Hit any key to stop autoboot: 0
switch to partitions #0, OK
mmc0 is current device
reading boot.scr
** Unable to read file boot.scr **
reading boot/uEnv.txt
261 bytes read in 11 ms (22.5 KiB/s)
Loaded environment from boot/uEnv.txt
Importing environment...
reading boot/uramdisk.img
726651 bytes read in 53 ms (13.1 MiB/s)
reading boot/zImage
Booting from net ...

So unable to read file boot.scr

Any thoughts
thanks
Billy
Billy
 
Posts: 21
Joined: Wed Dec 16, 2015 11:02 am

Re: Android build steps.

Postby Billy » Tue Apr 19, 2016 3:21 pm

Got a bit further now, but now stuck on the "android" screen - just sticks on that?

anyone had this happen?

Cheers
Billy
Billy
 
Posts: 21
Joined: Wed Dec 16, 2015 11:02 am

Re: Android build steps.

Postby lyf4sci » Fri May 13, 2016 5:58 pm

Hi Billy,

Even I got on the same "android" screen.

Could you share your thought.
lyf4sci
 
Posts: 8
Joined: Thu May 12, 2016 11:45 am

Re: Android build steps.

Postby mindentropy » Mon May 16, 2016 6:05 pm

Have you checked whether you created the system and data partitions?
mindentropy
 
Posts: 21
Joined: Sun Aug 31, 2014 9:32 am

Re: Android build steps.

Postby lyf4sci » Tue May 17, 2016 7:02 am

Hi Mindentropy,

Yeah I am creating both the partitions.

Also I am facing strange issue on creating partitions. I am using Gparted tool to create the partition. The name assigned for each partition misses the intermediate one. For example,
Instead of naming like (when created using fsl script)

sdb1 sdb2 sdb3 sdb4 sdb5 sdb6 sdb7 sdb8 sdb9


it is created as (when created manually)

sdb1 sdb2 sdb3 sdb5 sdb6 sdb7 sdb8 sdb9 asb10


In the above sdb3 is the extended partition. I am not sure why the sdb4 is ignored in between.

Also I am to access the root terminal using UART interface.
lyf4sci
 
Posts: 8
Joined: Thu May 12, 2016 11:45 am

Re: Android build steps.

Postby nevmair » Tue May 17, 2016 2:03 pm

Total wild guess here ... based on my own experience.

Partition 4 missing is caused by either
a) not enough space on the device to create it or
b) you did not specify it as a primary partition.

I'm guessing that you made partition 3 too big, that is why you don't have partition 4.
Partition 3 should be about 1.1 GB, just big enough to hold partition 5, 6, 7, 8 and 9.
Partition 4 should be the rest of the storage device.
see this post (viewtopic.php?f=11&t=1153)

Without partition 4, your mount points are off. They are defined in a file called freescale.fstab.

do a fdisk -l /dev/sdb and post the result

Like I said, this is a total guess.

Neville
nevmair
 
Posts: 43
Joined: Mon Feb 16, 2015 3:42 pm

Re: Android build steps.

Postby lyf4sci » Tue May 17, 2016 3:09 pm

Hi Nevamir,

You are correct. I didnt give enough space for 4th partition.
Now it works like magic. But the screen resolution doesn't fit in properly for HDMI display. resolution used is 1024 x 768

I am not able to use bottom buttons functionality like Home, Back, etc.. since screen size doesn't fits in.
lyf4sci
 
Posts: 8
Joined: Thu May 12, 2016 11:45 am

Next

Return to Software - Android

Who is online

Users browsing this forum: Bing [Bot], Google [Bot], Yahoo [Bot] and 11 guests