Olimex Support Forum

OLinuXino Android / Linux boards and System On Modules => A13 => Topic started by: DarkAngel on January 06, 2013, 07:38:35 PM

Title: Build Android image - need help
Post by: DarkAngel on January 06, 2013, 07:38:35 PM
Hey @all,

I have try to build the Android image but I fail at the last step "$pack".

I use Ubuntu 12.04 and have install:
- java version "1.6.0_38"
- gcc/g++4.4

The source is from here: https://docs.google.com/open?id=0B-bAEPML8fwldWIzY29GNDJ2ZW8

And this are the steps:

- $mkdir -p exdroid/lichee
- $cd exdroid/lichee
- $cd ..
- $mkdir android4.0
- $cd android4.0                                     
- $cd lichee
- $./build.sh -p a13_nuclear -k 3.0
- $cd ../android4.0
- $source build/envsetup.sh
- $lunch    //Ñ¡Ôñ nuclear_evb-eng
- $extract-bsp
- $make -j8
- $pack


Has anybody a idea why "$pack" not work?


Edit 08.01.13:
Mmh..., has nobody a idea?

Or has anybody a good instruction to build the Android image for the A13?


Thanks for the help  ;)

DarkAngel
Title: Re: Build Android image - need help
Post by: bitterguo on January 11, 2013, 02:43:14 AM
Same with you. and my pack out like this(Maybe help with you)

bitter@bitter-DT:~/work/exdroid/android4.0$ pack
cp: cannot stat `/home/bitter/work/exdroid/android4.0/out/target/product/nuclear-evb/system/media/bootanimation.zip': No such file or directory
android modify tools files sun5i copied!
!!!Packing for crane!!!
`chips/sun5i/configs/android/default/env.cfg' -> `out/env.cfg'
`chips/sun5i/configs/android/default/image.cfg' -> `out/image.cfg'
`chips/sun5i/configs/android/a13-evb/sys_config1.fex' -> `out/sys_config1.fex'
`chips/sun5i/configs/android/a13-evb/sys_config.fex' -> `out/sys_config.fex'
`/home/bitter/work/exdroid/lichee/out/android/u-boot.bin' -> `bootfs/linux/u-boot.bin'
argc = 2
input name sys_config.fex
Script 1 source file Path=/home/bitter/work/exdroid/lichee/tools/pack/out/sys_config.fex
Script 1 bin file Path=/home/bitter/work/exdroid/lichee/tools/pack/out/sys_config.bin
parser 1 file ok
argc = 2
input name sys_config1.fex
Script 1 source file Path=/home/bitter/work/exdroid/lichee/tools/pack/out/sys_config1.fex
Script 1 bin file Path=/home/bitter/work/exdroid/lichee/tools/pack/out/sys_config1.bin
parser 1 file ok

update source file Path=/home/bitter/work/exdroid/lichee/tools/pack/out/sys_config1.bin
boot0 file Path=/home/bitter/work/exdroid/lichee/tools/pack/out/boot0.bin
boot1 file Path=/home/bitter/work/exdroid/lichee/tools/pack/out/boot1.bin

update ok

update source file Path=/home/bitter/work/exdroid/lichee/tools/pack/out/sys_config1.bin
boot0 file Path=/home/bitter/work/exdroid/lichee/tools/pack/out/card_boot0.fex
boot1 file Path=/home/bitter/work/exdroid/lichee/tools/pack/out/card_boot1.fex

update ok
download map file = /home/bitter/work/exdroid/lichee/tools/pack/out/dlinfo.fex

partitation file Path=/home/bitter/work/exdroid/lichee/tools/pack/out/sys_config.bin
mbr_name file Path=/home/bitter/work/exdroid/lichee/tools/pack/out/mbr.fex
download_name file Path=/home/bitter/work/exdroid/lichee/tools/pack/out/dlinfo.fex

update mbr: partcount = 9
update mbr file ok
fail:/home/bitter/work/exdroid/lichee/tools/pack/out/bootfs/vendor/system/media 0
disk : c
CopyRootToFS(/home/bitter/work/exdroid/lichee/tools/pack/out/bootfs)

c:\linux

c:\os_show

c:\sprite

c:\vendor

c:\vendor\system

c:\vendor\system\usr

c:\vendor\system\usr\keylayout

c:\vendor\system\media
c:\magic.bin
find magic !!
RealLen=0x529400
CPlugin Free lib
CPlugin Free lib
FileLength=529400 FileSizeHigh=0
FileLength=20000 FileSizeHigh=0
FileLength=8bf800 FileSizeHigh=0
FileLength=cbc77b4 FileSizeHigh=0
FileLength=912800 FileSizeHigh=0
/home/bitter/work/exdroid/lichee/tools/pack/pctools/linux/eDragonEx//home/bitter/work/exdroid/lichee/tools/pack/outBuildImg 0
Dragon execute image.cfg SUCCESS !
CPlugin Free lib
CPlugin Free lib
---------image is at-------------

/home/bitter/work/exdroid/lichee/tools/pack/sun5i_android_a13-evb.img

/home/bitter/work/exdroid/android4.0








Title: Re: Build Android image - need help
Post by: fabianpie on January 11, 2013, 08:26:44 AM
Hi,
It would be interested if Olimex share with us how they compiled the standard and LCD Android images.
Regards,
Fabian
Title: Re: Build Android image - need help
Post by: murerten on January 11, 2013, 10:51:26 PM
Hi all,

I think you are looking at the wrong place. If you read this message you can see where the image is:

Quote from: bitterguo on January 11, 2013, 02:43:14 AM
...
...
...
---------image is at-------------

/home/bitter/work/exdroid/lichee/tools/pack/sun5i_android_a13-evb.img

Title: Re: Build Android image - need help
Post by: asianremedy on January 14, 2013, 11:58:05 AM
I had troubles to compile an image too but had a success yesterday. Finally I found a way to add USB GPS & USB BT support. Now this board is a fully functional device for me. I'll give a brief explanation of what I did to compile.

Unfortunately Ubuntu 12.04 is currently only experimentally supported and is not guaranteed to work for compilation. That's what you need to have a success:

install Ubuntu 10.04 (64-bit) (make all the system/software updates)
install java version "1.6.0_38"
run in terminal:
  sudo apt-get install git-core gnupg flex bison gperf build-essential \
  zip curl zlib1g-dev libc6-dev lib32ncurses5-dev ia32-libs \
  x11proto-core-dev libx11-dev lib32readline5-dev lib32z-dev \
  libgl1-mesa-dev g++-multilib mingw32 tofrodos python-markdown \
  libxml2-utils xsltproc uboot-mkimage

Like it was mentioned previously run these steps:

unpack a13.tar.gz
mkdir exdroid
put android4.0 & lichee directories to exdroid                                   
- $cd exdroid/lichee
- $./build.sh -p a13_nuclear -k 3.0
- $cd ../android4.0
- $source build/envsetup.sh
- $lunch    //choose nuclear_evb-eng
- $extract-bsp
- $make -i -j8 (it will ignore all the errors as well as give you a finished build)
- $pack

---------image is at-------------

/exdroid/lichee/tools/pack/sun5i_android_a13-evb.img

hope it helps

p.s. one thing to mention though is this image has settings for 800x480 lcd setup if you need 800x600 vga follow these steps before packing image:

download settings file A13_config_600x800.fex_ok (link is inside A13 manual pdf)
rename it to sys_config1.fex
replace the existing sys_config1.fex located at /exdroid/lichee/tools/pack/chips/sun5i/configs/android/a13-evb
$pack
Title: Re: Build Android image - need help
Post by: murerten on January 14, 2013, 09:44:41 PM
You can also check the first message in this post:

https://www.olimex.com/forum/index.php?topic=57.msg186#msg186 (https://www.olimex.com/forum/index.php?topic=57.msg186#msg186)
Title: Re: Build Android image - need help
Post by: aauer1 on January 16, 2013, 11:26:29 AM
Hello,

I also compiled the Android sources on Ubuntu 12.10 32-bit. Right now, I have troubles with the pack util. Because pack invokes some executables in lichee/pctools/linux/mod_update (script, update_mbr, ...) which are compiled for a 64-bit OS and I'm running a 32-bit Ubuntu.
Are these binaries available as 32-bit executables or is the sourcecode of them available?

Thanks,
Andreas
Title: Re: Build Android image - need help
Post by: sergey_kzn on March 25, 2013, 12:21:04 PM
Hi,
I compiled android image from a13.tar.gz (I use instructions from a13.txt). It is loaded, but vga does not work. What could I do wrong?
Title: Re: Build Android image - need help
Post by: drspastic on March 25, 2013, 02:07:32 PM
please share any nice android images for sdcard
Title: Re: Build Android image - need help
Post by: sqt on August 15, 2013, 09:13:56 PM
Hi,
I also compiled android image from a13.tar.gz in ubuntu 10.04. It all went fine until the last step pack. It says that there is no pack command found in my system. Please tell me if i need to download and install some packages?
Title: Re: Build Android image - need help
Post by: murerten on August 26, 2013, 10:14:29 PM
Don't forget to

source build/envsetup.sh

If you didn't enter this pack command cannot be found.
Title: Re: Build Android image - need help
Post by: karrister on December 20, 2013, 02:37:57 AM
Quote from: murerten on August 26, 2013, 10:14:29 PM
Don't forget to

source build/envsetup.sh

If you didn't enter this pack command cannot be found.

I think the lunch command is also needed for the pack to work.


I have an issue of my own. I do the steps as required (as listed in this thread above) but the image I get is 240MB in size. I am not able to flash it with Livesuit. On Linux Livesuit says invalid image file, on Windows Livesuit it says something similar (in Asian English ;).

Also the default image available online for A13 olinuxino seems to be around 400MB so that also arouse my suspicion related to the image file size that I get.

Anyone has any ideas? It is the a13-sdk available for download from the Olimex A13 wiki page. Thanks a lot for all the help!