Building LeMaker Android 4.2 from Source

129 41597
gaara  
Edited by gaara at Fri Feb 13, 2015 14:24

Hi ,

A msg to say that I've build the kernel using your tutorial with success, and Kubuntu 14.10 x64.
For 14.10, the version of make is 4.0, so I had to change back the version to 3.8:
  1. sudo apt-get purge make -y
  2. sudo dpkg -i make*.deb
Copy the Code
And download make here: http://packages.ubuntu.com/trusty/make
then you can install make 3.81 with
  1. sudo dpkg -i <package>.deb
Copy the Code
or using gdebi.

Then, no more
  1. dragon image.cfg sys_partition.fex [Failed]
Copy the Code
like lenny at #78.
but I have:
  1. ---------------------- Build Complete ----------------------
  2. You will find the new image here: /home/gaara/ANDROID/bpi_android.img
  3. Burn this image to an SD card using PhoenixCard
  4. ------------------------------------------------------------
Copy the Code

Thanks to mattrix !

houston we have a problem making the image in the packaging phase.
http://paste.debian.net/150064/

pack.log.gz

741 Bytes, Downloads: 2

liab  
xevilstar replied at Mon Feb 16, 2015 17:34
houston we have a problem making the image in the packaging phase.
http://paste.debian.net/150064/

I don't read the log, but with 99% it's a make error. Build android manually in the android folder.

source build/envsetup.sh
lunch
extract-bsp
make -j`nproc`

In the build script after make this is better:

make -j`nproc`
if [ $? != 0 ] ; then
echo
echo "Error make!"
exit
fi
pack

Edited by xevilstar at Thu Feb 19, 2015 12:31

will install an ubuntu virtual machine and try thanks. I will keep you in the loop

the error occurs both with and without bluetooth enabled (by the way bluetooth is needed).

Checking build tools versions...
external/bluetooth/bluedroid/Android.mk:8: NO BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR, using only generic configuration
CEDARX_PRODUCTOR: GENERIC
find: `src': No such file or directory
./build_android.sh: line 8: 125388 Killed   

which src dir is it searching for ?

moreover following your advice....

source build/envsetup.sh
lunch
     16. sugar_lemaker-eng
     17. sugar_ref001-eng
     18. sugar_standard-eng
     19. wing_evb_v10-eng
     20. full_panda-userdebug

Which would you like? [full-eng] 16
build/core/product_config.mk:223: *** Cannot locate config makefile for product "extract".  Stop.

** Don't have a product spec for: 'extract'
** Do you have the right repo manifest?

** Invalid variant: 'bsp16'
** Must be one of user userdebug eng

./update.sh
From https://github.com/ChrisP-Android/lemaker_android
* branch            HEAD       -> FETCH_HEAD
Already up-to-date.

uname -a
Linux ubuntu 3.13.0-45-generic #74-Ubuntu SMP Tue Jan 13 19:36:28 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.2.2
TARGET_PRODUCT=full
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a
HOST_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.13.0-45-generic-x86_64-with-Ubuntu-14.04-trusty
HOST_BUILD_TYPE=release
BUILD_ID=JDQ39
OUT_DIR=out
============================================

make --version
GNU Make 3.81
Copyright (C) 2006  Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.



adding more cores and ram it goes further on but fails with a "cannot allocate memory" error. I am trying to add ram

All,
I got the build to compile in a VM. Thanks for the help!
I do have an issue that the Android build running on my BananaPro does not have working WIFI. I assume I need to tweak something. Maybe the BoardConfig.mk file?
Does anyone have an existing config for the BananaPro wifi chip?
Thanks

You have to log in before you can reply Login | Sign Up

Points Rules