Android build steps.

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

Re: Android build steps.

Postby lyf4sci » Thu May 19, 2016 1:46 pm

Hi All,

I tried the same procedure for Marshmallow but it is not working.

Is there anybody tried the same ?

Also I am not able to find the file location
device/fsl/wandboard/logo/out.bmp.gz


Kindly provide some hint.

Regards,
Lyf
lyf4sci
 
Posts: 8
Joined: Thu May 12, 2016 11:45 am

Re: Android build steps.

Postby Wig » Thu May 26, 2016 7:14 am

Thank you guys, everybody has confuse which default cross-compiler is correct on marshmallow, and somebody discuss before, today I tested and I have conclusion as below:

1. In u-boot, only arm-eabi-4.8 or arm-eabi-4.6 can booting success now, not support arm-linux-androideabi-4.9, so we need modify build/core/Makefile line 974:
BOOTLOADER_CROSS_TOOLCHAIN := `pwd`/prebuilts/gcc/linux-x86/arm/arm-eabi-4.8/bin/arm-eabi-
the main reason is we use SPL for this release, and arm-linux-androideabi-4.9 only support android type like u-boot.imx.

2. the kernel and rootfs use arm-linux-androideabi-4.9 is better! so we need 2 cross compiler for this release, and Makefile no need modify for kernel part, thank you!
Wig
 
Posts: 80
Joined: Mon Apr 20, 2015 7:20 am

Re: Android build steps.

Postby Billy » Tue Jun 14, 2016 6:21 pm

Hi guys, I've been trying to modify the CONFIG_BOOTDELAY parameter with no success.

This is for Android 5.0.2 on a quad board.
On building u-boot I continually get these errors from make
This is a snippet of the last several lines.
I've checked and double checked the toolchain
The source folder is that downloaded from the Wandboard download page 5.0.2-ga_fullsource

Code: Select all
board/wandboard/wandboard.c: In function 'setup_display':
/media/billy/androidspace/android5_current__build/bootable/bootloader/uboot-imx/arch/arm/include/asm/imx-common/iomux-v3.h:200:25: error: 'MX6Q_PAD_DI0_PIN4__GPIO4_IO20' undeclared (first use in this function)
  imx_iomux_v3_setup_pad(MX6Q_##def);
                         ^
board/wandboard/wandboard.c:380:2: note: in expansion of macro 'SETUP_IOMUX_PAD'
  SETUP_IOMUX_PAD(PAD_DI0_PIN4__GPIO4_IO20);
  ^
/media/billy/androidspace/android5_current__build/bootable/bootloader/uboot-imx/arch/arm/include/asm/imx-common/iomux-v3.h:200:25: note: each undeclared identifier is reported only once for each function it appears in
  imx_iomux_v3_setup_pad(MX6Q_##def);
                         ^
board/wandboard/wandboard.c:380:2: note: in expansion of macro 'SETUP_IOMUX_PAD'
  SETUP_IOMUX_PAD(PAD_DI0_PIN4__GPIO4_IO20);
  ^
board/wandboard/wandboard.c:380:2: warning: passing argument 1 of 'imx_iomux_v3_setup_pad' makes integer from pointer without a cast [enabled by default]
In file included from /media/billy/androidspace/android5_current__build/bootable/bootloader/uboot-imx/arch/arm/include/asm/arch/mx6-pins.h:9:0,
                 from board/wandboard/wandboard.c:14:
/media/billy/androidspace/android5_current__build/bootable/bootloader/uboot-imx/arch/arm/include/asm/imx-common/iomux-v3.h:182:6: note: expected 'iomux_v3_cfg_t' but argument is of type 'const iomux_v3_cfg_t *'
 void imx_iomux_v3_setup_pad(iomux_v3_cfg_t pad);
      ^
make[1]: *** [board/wandboard/wandboard.o] Error 1
make: *** [board/wandboard] Error 2


Any thoughts greatly appreciated.
Cheers
Billy
Billy
 
Posts: 21
Joined: Wed Dec 16, 2015 11:02 am

Re: Android build steps.

Postby Wig » Wed Jun 15, 2016 10:41 am

What's your compile step? and have you modify source code?
I need the more detail explanation, thank you!
Wig
 
Posts: 80
Joined: Mon Apr 20, 2015 7:20 am

Re: Android build steps.

Postby Billy » Wed Jun 15, 2016 11:34 am

Hello Wig, as far as modification goes, all I changed was CONFIG_BOOTDELAY in wandboard.h

I must admit, I tried doing that then rebuilding android but the bootdelay stays at 5 seconds.(so does it not build u-boot again?)

But then I tried downloading u-boot again and without modifying got the same errors.
Here's my process
from the u-boot-imx dir
export CROSS_COMPILE=/home/billy/Android/Sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-
export ARCH=arm
make distclean
make wandboard_quad_config
make
I tried other compiler toolchains I have too with same result.

thanks for your interest
Billy
Billy
 
Posts: 21
Joined: Wed Dec 16, 2015 11:02 am

Re: Android build steps.

Postby Billy » Wed Jun 15, 2016 3:51 pm

Sorry Wig, just to say, I know I can set bootdelay in U-boot command line after stopping autoboot but it would be good to do it in the build process so I don't have to do it manually for production.

Also, another question:
When the board fires up the correct resolution gets set for my connected HDMI monitor.
Do you know where to set that as default so that if I powered up without a monitor, then happened to plug it in later the resolution is set correctly.

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

Re: Android build steps.

Postby leo26781 » Sat Nov 05, 2016 7:44 am

Hi ,

I followed the steps mentioned in the "http://thesoulofamachine.blogspot.in/2015/12/android-lollipop-build-and-install-on.html" and was able to build android source successfully.

I followed the below steps for creating the SD card :


"
$ sudo dd if=/dev/zero of=/dev/sdX bs=1M count=1
$ sudo ./wand_fsl_sdcard-part.sh /dev/sdX
$ dd if=bootable/bootloader/uboot-imx/SPL of=/dev/sdX bs=1K seek=1
$ sudo mount -t vfat /dev/sdX1 /media/imx6
$ sudo mount -t ext4 /dev/sdX5 /media/system
$ mkdir -p /media/imx6/boot
$ cp kernel_imx/arch/arm/boot/uImage /media/imx6/boot/
$ cp bootable/bootloader/uboot-imx/u-boot.img /media/imx6/boot/
$ cp bootable/bootloader/uboot-imx/out.bmp.gz /media/imx6/boot/
$ cp bootable/bootloader/uboot-imx/uEnv.txt /media/imx6/boot/
$ mkimage -A arm -O linux -T ramdisk -C none -a 0x10800800 -n "Android Root Filesystem" -d out/target/product/wandboard/ramdisk.img /media/imx6/boot/uramdisk.img
$ sudo cp -a out/target/product/wandboard/system/* /media/system/
$ sudo umount /dev/sdX*


"

When I tried to boot the board , it gets stuck in the wandboard logo.

Has any one faced this , if so please giude me
leo26781
 
Posts: 8
Joined: Sat Nov 05, 2016 7:04 am

Re: Android build steps.

Postby nevmair » Sun Nov 06, 2016 12:13 pm

post the output from the console port.
nevmair
 
Posts: 43
Joined: Mon Feb 16, 2015 3:42 pm

Re: Android build steps.

Postby leo26781 » Mon Nov 07, 2016 5:21 pm

Hi ,

I cconnected the board to my PC using Serial port to USB and run the minicom. but not able to see anything.:


I'm attaching the screenshot.
Attachments
IMG_20161107_224614.jpg
IMG_20161107_224614.jpg (3.34 MiB) Viewed 775 times
leo26781
 
Posts: 8
Joined: Sat Nov 05, 2016 7:04 am

Re: Android build steps.

Postby nevmair » Mon Nov 07, 2016 9:58 pm

With the wand board you need a gender bender and a NULL modem on the serial port.
nevmair
 
Posts: 43
Joined: Mon Feb 16, 2015 3:42 pm

PreviousNext

Return to Software - Android

Who is online

Users browsing this forum: Baidu [Spider] and 8 guests

cron