Installing Android from source

Moderators: mdrjr, odroid

Installing Android from source

Unread postby Omnihuron » Sun Apr 05, 2015 10:19 am

Hello,

I am attempting to build a sort of Android tablet using Odroid-C1 and a 9" touchscreen.
I have compiled Android from source with the touchscreen's VID and PID.

I now have the file "selfinstall-odroidc.bin"

How do I install this file to my SD card? Do I just copy it? Do I have to turn it into a .img and then use the writer tool?
I am hoping to do this without purchasing the separate kit.

Thanks in advance!
Omnihuron
 
Posts: 37
Joined: Tue Feb 10, 2015 2:12 pm
languages_spoken: english
ODROIDs: C1

Re: Installing Android from source

Unread postby Omnihuron » Sun Apr 05, 2015 11:43 am

Okay, apparently I was able to just use the img writer tool to load the bin onto the SD card. My android installed and booted up!

However, the touchscreen is still not being detected. I followed the steps in the magazine and confirmed my VID and PID in the hid-ids.h file are correct. Any ideas why it might not be detecting it still?

edit: actually I haven't done the .idc step yet. Is this necessary? Shouldn't it be detecting it right away? I will start working on it anyway
edit 2: okay the idc file is in place but still not detecting the touchscreen. I'm kind of stumped.
Omnihuron
 
Posts: 37
Joined: Tue Feb 10, 2015 2:12 pm
languages_spoken: english
ODROIDs: C1

Re: Installing Android from source

Unread postby Omnihuron » Sun Apr 05, 2015 4:02 pm

Update: I found out that when I compiled it last time it complained that I needed to run "make mrproper" in my kernel folder, so I did so, then recompiled. This worked but I did not realize it was wiping my config changes! I am still receiving this make mrproper error after I make changes - what is the correct way to make the changes and have it compile?
Omnihuron
 
Posts: 37
Joined: Tue Feb 10, 2015 2:12 pm
languages_spoken: english
ODROIDs: C1

Re: Installing Android from source

Unread postby tobetter » Mon Apr 06, 2015 11:17 am

Omnihuron wrote:Update: I found out that when I compiled it last time it complained that I needed to run "make mrproper" in my kernel folder, so I did so, then recompiled. This worked but I did not realize it was wiping my config changes! I am still receiving this make mrproper error after I make changes - what is the correct way to make the changes and have it compile?

If you only replace the kernel you built, no need to compile whole Android. Just build kernel with make uImage and install it by fastboot. It would work.
In case if you like to go through whole Android build with your custom changes after changing kernel config, do the instructions below.
Code: Select all
$ cd kernel
$ make menuconfig
$ cp .config arch/arm/configs/odroidc_defconfig
$ make mrproper
$ cd ..
$ make
tobetter
 
Posts: 2085
Joined: Mon Feb 25, 2013 10:55 am
Location: Kitchener, ON, Canada
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1

Re: Installing Android from source

Unread postby Omnihuron » Mon Apr 06, 2015 11:32 am

Hey thanks for the reply! I am in the process of resetting my android source to initial state, so I will have to rebuild everything. I will try those steps when it finishes - sounds like cp .config will solve the problem! Out of curiosity, should I not build by following the steps from this wiki: http://odroid.com/dokuwiki/doku.php?id= ... ng_android

those steps of course being:
$ source build/envsetup.sh
$ lunch odroidc-eng
$ make -j4
Omnihuron
 
Posts: 37
Joined: Tue Feb 10, 2015 2:12 pm
languages_spoken: english
ODROIDs: C1

Re: Installing Android from source

Unread postby tobetter » Mon Apr 06, 2015 12:08 pm

If you don't have any change on Android source tree except Kernel, no reason to build whole Android source. Just install Kernel, uImage, by fastboot on top of Android release. It should work. If you need to change some other files like *.rc or Android resource files, just remount root file system and push the files by the command adb push. Building and installing while image take too much time.
tobetter
 
Posts: 2085
Joined: Mon Feb 25, 2013 10:55 am
Location: Kitchener, ON, Canada
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1

Re: Installing Android from source

Unread postby Omnihuron » Mon Apr 06, 2015 1:08 pm

While trying to compile I receive error:

make: *** No rule to make target `external/wpa_supplicant_8/wpa_supplicant/src/drivers/drivers.mk'. Stop.

Any idea what might be causing it? Only thing I could find on Google is that I might need to sync repo again
Omnihuron
 
Posts: 37
Joined: Tue Feb 10, 2015 2:12 pm
languages_spoken: english
ODROIDs: C1

Re: Installing Android from source

Unread postby Omnihuron » Tue Apr 07, 2015 3:29 am

Okay I wiped everything and did sync repo again for a clean copy.

Made all my changes, and now I'm getting this error:

CC arch/arm/mm/rodata.o
/home/allan/odroid-c1/kernel/arch/arm/mm/rodata.c: In function ‘set_page_attributes’:
/home/allan/odroid-c1/kernel/arch/arm/mm/rodata.c:91:4: error: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 4 has type ‘pmd_t’ [-Werror=format=]
pr_err("%s: pmd %p=%08lx for %08lx not page table\n",
^
cc1: some warnings being treated as errors
make[3]: *** [arch/arm/mm/rodata.o] Error 1
make[2]: *** [arch/arm/mm] Error 2
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory `/home/allan/odroid-c1/kernel'
make: *** [out/target/product/odroidc/obj/KERNEL_OBJ/arch/arm/boot/uImage] Error 2

Couldn't find anything meaningful on Google for this. This seems like an error with the actual rodata file - am I missing something?
Thanks for any insight

edit: did I download the wrong branch? I see a few active branches in the Android github - I downloaded the one the wiki suggests, s805_4.4.2_master
but it looks like I might want to download odroid_4412_master since it is the default branch?
Omnihuron
 
Posts: 37
Joined: Tue Feb 10, 2015 2:12 pm
languages_spoken: english
ODROIDs: C1

Re: Installing Android from source

Unread postby tobetter » Tue Apr 07, 2015 9:05 am

How did you download the source tree, repo command? You had been success to build and now you failed?
Obviously you should download s805_4.4.2_master branch.
tobetter
 
Posts: 2085
Joined: Mon Feb 25, 2013 10:55 am
Location: Kitchener, ON, Canada
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1

Re: Installing Android from source

Unread postby Omnihuron » Tue Apr 07, 2015 11:30 am

Yes I used the commands int he wiki, repo init and repo sync. Yes now I can't get it to successfully compile.

make: *** [out/target/product/odroidc/obj/KERNEL_OBJ/arch/arm/boot/uImage] Error 2

I keep getting the above error over and over but it seems to be caused by a different file every time.
Omnihuron
 
Posts: 37
Joined: Tue Feb 10, 2015 2:12 pm
languages_spoken: english
ODROIDs: C1

Re: Installing Android from source

Unread postby tobetter » Tue Apr 07, 2015 11:40 am

Omnihuron wrote:Yes I used the commands int he wiki, repo init and repo sync. Yes now I can't get it to successfully compile.

make: *** [out/target/product/odroidc/obj/KERNEL_OBJ/arch/arm/boot/uImage] Error 2

I keep getting the above error over and over but it seems to be caused by a different file every time.

If you are trying to compile the kernel only, you can change the directory to kernel and build uImage there.
Code: Select all
$ cd kernel
$ make odroidc_defconfig
$ make uImage

Then download uImage by fastboot.
tobetter
 
Posts: 2085
Joined: Mon Feb 25, 2013 10:55 am
Location: Kitchener, ON, Canada
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1

Re: Installing Android from source

Unread postby Omnihuron » Tue Apr 07, 2015 4:06 pm

I am trying to compile everything. I use rm -rf target before each compile, then follow the build instructions in the wiki and use make -j4, but I always get the error:

LD arch/arm/kernel/built-in.o
target thumb C: libc_common <= bionic/libc/bionic/setegid.c
bionic/libc/bionic/semaphore.c: In function 'sem_unlink':
bionic/libc/bionic/semaphore.c:150:29: warning: unused parameter 'name' [-Wunused-parameter]
bionic/libc/bionic/semaphore.c: In function 'sem_timedwait':
bionic/libc/bionic/semaphore.c:269:10: warning: unused variable 'ret' [-Wunused-variable]
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory `/home/allan/odroid-c1/kernel'
make: *** [out/target/product/odroidc/obj/KERNEL_OBJ/arch/arm/boot/uImage] Error 2

Not sure what is causing the problem here.
Omnihuron
 
Posts: 37
Joined: Tue Feb 10, 2015 2:12 pm
languages_spoken: english
ODROIDs: C1

Re: Installing Android from source

Unread postby tobetter » Tue Apr 07, 2015 4:15 pm

Omnihuron wrote:I am trying to compile everything. I use rm -rf target before each compile, then follow the build instructions in the wiki and use make -j4, but I always get the error:

LD arch/arm/kernel/built-in.o
target thumb C: libc_common <= bionic/libc/bionic/setegid.c
bionic/libc/bionic/semaphore.c: In function 'sem_unlink':
bionic/libc/bionic/semaphore.c:150:29: warning: unused parameter 'name' [-Wunused-parameter]
bionic/libc/bionic/semaphore.c: In function 'sem_timedwait':
bionic/libc/bionic/semaphore.c:269:10: warning: unused variable 'ret' [-Wunused-variable]
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory `/home/allan/odroid-c1/kernel'
make: *** [out/target/product/odroidc/obj/KERNEL_OBJ/arch/arm/boot/uImage] Error 2

Not sure what is causing the problem here.

Could you show me the output of these commands?
Code: Select all
$ git branch -a
$ git remote -v
tobetter
 
Posts: 2085
Joined: Mon Feb 25, 2013 10:55 am
Location: Kitchener, ON, Canada
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1

Re: Installing Android from source

Unread postby kokonuts » Tue Apr 07, 2015 5:25 pm

what to better is trying to say, that if your changes only in kernel , then use other partition from what they provide, then use only your kernel.img
kokonuts
 
Posts: 88
Joined: Wed Jan 28, 2015 12:52 am
languages_spoken: english
ODROIDs: not yet, waiting for wifi to work on c1

Re: Installing Android from source

Unread postby Omnihuron » Wed Apr 08, 2015 4:37 pm

Sorry for the late reply. I am still playing around with it.
tobetter, when I run those commands I just get an error:

allan@allan-VirtualBox:~/odroid-c1$ git branch -a
fatal: Not a git repository (or any of the parent directories): .git
allan@allan-VirtualBox:~/odroid-c1$ git remote -v
fatal: Not a git repository (or any of the parent directories): .git
Omnihuron
 
Posts: 37
Joined: Tue Feb 10, 2015 2:12 pm
languages_spoken: english
ODROIDs: C1

Re: Installing Android from source

Unread postby tobetter » Wed Apr 08, 2015 4:41 pm

Omnihuron wrote:Sorry for the late reply. I am still playing around with it.
tobetter, when I run those commands I just get an error:

allan@allan-VirtualBox:~/odroid-c1$ git branch -a
fatal: Not a git repository (or any of the parent directories): .git
allan@allan-VirtualBox:~/odroid-c1$ git remote -v
fatal: Not a git repository (or any of the parent directories): .git

You must run the command in kernel directory.
tobetter
 
Posts: 2085
Joined: Mon Feb 25, 2013 10:55 am
Location: Kitchener, ON, Canada
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1

Re: Installing Android from source

Unread postby Omnihuron » Wed Apr 08, 2015 4:50 pm

Sorry, I am very new to this!

Here are the results:

allan@allan-VirtualBox:~/odroid-c1/kernel$ git branch -a
* (no branch)
remotes/hardkernel/odroid-3.0.y
remotes/hardkernel/odroid-3.0.y-android
remotes/hardkernel/odroid-3.13.y
remotes/hardkernel/odroid-3.13.y-linaro
remotes/hardkernel/odroid-3.14.y-linaro
remotes/hardkernel/odroid-3.8.y
remotes/hardkernel/odroid-3.8.y-rt
remotes/hardkernel/odroidc-3.10.y
remotes/hardkernel/odroidc-3.10.y-android
remotes/hardkernel/odroidw-3.12.y
remotes/hardkernel/odroidw-3.12.y-test
remotes/hardkernel/odroidxu-3.4.y
remotes/hardkernel/odroidxu-3.4.y-android
remotes/hardkernel/odroidxu-3.4.y-android-jb
remotes/hardkernel/odroidxu3-3.10.y
remotes/hardkernel/odroidxu3-3.10.y-android
remotes/m/s805_4.4.2_master -> hardkernel/odroidc-3.10.y-android
allan@allan-VirtualBox:~/odroid-c1/kernel$ git remote -v
hardkernel https://github.com/hardkernel/linux (fetch)
hardkernel https://github.com/hardkernel/linux (push)
Omnihuron
 
Posts: 37
Joined: Tue Feb 10, 2015 2:12 pm
languages_spoken: english
ODROIDs: C1

Re: Installing Android from source

Unread postby Omnihuron » Wed Apr 08, 2015 5:01 pm

Also as a note, I tried your above instructions of going into kernel and using make odroidc_defconfig and make uImage and received this error:

CC arch/arm/mm/rodata.o
arch/arm/mm/rodata.c: In function ‘set_page_attributes’:
arch/arm/mm/rodata.c:91:4: error: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 4 has type ‘pmd_t’ [-Werror=format=]
pr_err("%s: pmd %p=%08lx for %08lx not page table\n",
^
cc1: some warnings being treated as errors
make[1]: *** [arch/arm/mm/rodata.o] Error 1
make: *** [arch/arm/mm] Error 2
Omnihuron
 
Posts: 37
Joined: Tue Feb 10, 2015 2:12 pm
languages_spoken: english
ODROIDs: C1

Re: Installing Android from source

Unread postby tobetter » Wed Apr 08, 2015 5:03 pm

Omnihuron wrote:Sorry, I am very new to this!

Here are the results:

allan@allan-VirtualBox:~/odroid-c1/kernel$ git branch -a
* (no branch)
remotes/hardkernel/odroid-3.0.y
remotes/hardkernel/odroid-3.0.y-android
remotes/hardkernel/odroid-3.13.y
remotes/hardkernel/odroid-3.13.y-linaro
remotes/hardkernel/odroid-3.14.y-linaro
remotes/hardkernel/odroid-3.8.y
remotes/hardkernel/odroid-3.8.y-rt
remotes/hardkernel/odroidc-3.10.y
remotes/hardkernel/odroidc-3.10.y-android
remotes/hardkernel/odroidw-3.12.y
remotes/hardkernel/odroidw-3.12.y-test
remotes/hardkernel/odroidxu-3.4.y
remotes/hardkernel/odroidxu-3.4.y-android
remotes/hardkernel/odroidxu-3.4.y-android-jb
remotes/hardkernel/odroidxu3-3.10.y
remotes/hardkernel/odroidxu3-3.10.y-android
remotes/m/s805_4.4.2_master -> hardkernel/odroidc-3.10.y-android
allan@allan-VirtualBox:~/odroid-c1/kernel$ git remote -v
hardkernel https://github.com/hardkernel/linux (fetch)
hardkernel https://github.com/hardkernel/linux (push)

No problem.
Since you are not on any branch, suggest you to execute repo start s805_4.4.2_master --all after repo sync.

Code: Select all
$ repo sync
$ repo start s805_4.4.2_master --all


In case if you are going to build kernel to create uImage, just do the commands below on kernel directory.
Code: Select all
$ git checkout --track hardkernel/odroidc-3.10.y-android
$ make odroidc_defconfig
$ make
tobetter
 
Posts: 2085
Joined: Mon Feb 25, 2013 10:55 am
Location: Kitchener, ON, Canada
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1

Re: Installing Android from source

Unread postby Omnihuron » Wed Apr 08, 2015 6:25 pm

Thank you tobetter, unfortunately it did not seem to make a difference. It took a much longer time to compile but eventually reached the same error:

CC arch/arm/mm/rodata.o
host C++: libart-compiler <= art/compiler/llvm/compiler_llvm.cc
/home/allan/odroid-c1/kernel/arch/arm/mm/rodata.c: In function ‘set_page_attributes’:
/home/allan/odroid-c1/kernel/arch/arm/mm/rodata.c:91:4: error: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 4 has type ‘pmd_t’ [-Werror=format=]
pr_err("%s: pmd %p=%08lx for %08lx not page table\n",
^
cc1: some warnings being treated as errors
make[3]: *** [arch/arm/mm/rodata.o] Error 1
make[2]: *** [arch/arm/mm] Error 2
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory `/home/allan/odroid-c1/kernel'
make: *** [out/target/product/odroidc/obj/KERNEL_OBJ/arch/arm/boot/uImage] Error 2


should I perhaps just start over with a new environment?
Omnihuron
 
Posts: 37
Joined: Tue Feb 10, 2015 2:12 pm
languages_spoken: english
ODROIDs: C1

Re: Installing Android from source

Unread postby tobetter » Wed Apr 08, 2015 6:30 pm

Omnihuron wrote:Thank you tobetter, unfortunately it did not seem to make a difference. It took a much longer time to compile but eventually reached the same error:

CC arch/arm/mm/rodata.o
host C++: libart-compiler <= art/compiler/llvm/compiler_llvm.cc
/home/allan/odroid-c1/kernel/arch/arm/mm/rodata.c: In function ‘set_page_attributes’:
/home/allan/odroid-c1/kernel/arch/arm/mm/rodata.c:91:4: error: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 4 has type ‘pmd_t’ [-Werror=format=]
pr_err("%s: pmd %p=%08lx for %08lx not page table\n",
^
cc1: some warnings being treated as errors
make[3]: *** [arch/arm/mm/rodata.o] Error 1
make[2]: *** [arch/arm/mm] Error 2
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory `/home/allan/odroid-c1/kernel'
make: *** [out/target/product/odroidc/obj/KERNEL_OBJ/arch/arm/boot/uImage] Error 2


should I perhaps just start over with a new environment?

Hey, what's the version of toolchain are you using?
Try this if you have the same, otherwise check the link for toolchain install, http://odroid.com/dokuwiki/doku.php?id= ... lchain_492.
Code: Select all
$ arm-linux-gnueabihf-gcc -v
Using built-in specs.
COLLECT_GCC=arm-linux-gnueabihf-gcc
COLLECT_LTO_WRAPPER=/opt/toolchains/gcc-linaro-arm-linux-gnueabihf-4.9-2014.09_linux/bin/../libexec/gcc/arm-linux-gnueabihf/4.9.2/lto-wrapper
Target: arm-linux-gnueabihf
Configured with: /cbuild/slaves/oorts/crosstool-ng/builds/arm-linux-gnueabihf-linux/.build/src/gcc-linaro-4.9-2014.09/configure --build=i686-build_pc-linux-gnu --host=i686-build_pc-linux-gnu --target=arm-linux-gnueabihf --prefix=/cbuild/slaves/oorts/crosstool-ng/builds/arm-linux-gnueabihf-linux/install --with-sysroot=/cbuild/slaves/oorts/crosstool-ng/builds/arm-linux-gnueabihf-linux/install/arm-linux-gnueabihf/libc --enable-languages=c,c++,fortran --disable-multilib --enable-multiarch --with-arch=armv7-a --with-tune=cortex-a9 --with-fpu=vfpv3-d16 --with-float=hard --with-pkgversion='crosstool-NG linaro-1.13.1-4.9-2014.09 - Linaro GCC 4.9-2014.09' --with-bugurl=https://bugs.launchpad.net/gcc-linaro --enable-__cxa_atexit --enable-libmudflap --enable-libgomp --enable-libssp --with-gmp=/cbuild/slaves/oorts/crosstool-ng/builds/arm-linux-gnueabihf-linux/.build/arm-linux-gnueabihf/build/static --with-mpfr=/cbuild/slaves/oorts/crosstool-ng/builds/arm-linux-gnueabihf-linux/.build/arm-linux-gnueabihf/build/static --with-mpc=/cbuild/slaves/oorts/crosstool-ng/builds/arm-linux-gnueabihf-linux/.build/arm-linux-gnueabihf/build/static --with-isl=/cbuild/slaves/oorts/crosstool-ng/builds/arm-linux-gnueabihf-linux/.build/arm-linux-gnueabihf/build/static --with-cloog=/cbuild/slaves/oorts/crosstool-ng/builds/arm-linux-gnueabihf-linux/.build/arm-linux-gnueabihf/build/static --with-libelf=/cbuild/slaves/oorts/crosstool-ng/builds/arm-linux-gnueabihf-linux/.build/arm-linux-gnueabihf/build/static --enable-threads=posix --disable-libstdcxx-pch --enable-linker-build-id --enable-plugin --enable-gold --with-local-prefix=/cbuild/slaves/oorts/crosstool-ng/builds/arm-linux-gnueabihf-linux/install/arm-linux-gnueabihf/libc --enable-c99 --enable-long-long --with-mode=thumb --disable-multilib --with-float=hard
Thread model: posix
gcc version 4.9.2 20140904 (prerelease) (crosstool-NG linaro-1.13.1-4.9-2014.09 - Linaro GCC 4.9-2014.09)
tobetter
 
Posts: 2085
Joined: Mon Feb 25, 2013 10:55 am
Location: Kitchener, ON, Canada
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1

Re: Installing Android from source

Unread postby Omnihuron » Wed Apr 08, 2015 6:36 pm

I checked the install as well to make sure it works correctly, here are results:

allan@allan-VirtualBox:~/odroid-c1$ arm-linux-gnueabihf-gcc -v
Using built-in specs.
COLLECT_GCC=arm-linux-gnueabihf-gcc
COLLECT_LTO_WRAPPER=/opt/toolchains/gcc-linaro-arm-linux-gnueabihf-4.9-2014.09_linux/bin/../libexec/gcc/arm-linux-gnueabihf/4.9.2/lto-wrapper
Target: arm-linux-gnueabihf
Configured with: /cbuild/slaves/oorts/crosstool-ng/builds/arm-linux-gnueabihf-linux/.build/src/gcc-linaro-4.9-2014.09/configure --build=i686-build_pc-linux-gnu --host=i686-build_pc-linux-gnu --target=arm-linux-gnueabihf --prefix=/cbuild/slaves/oorts/crosstool-ng/builds/arm-linux-gnueabihf-linux/install --with-sysroot=/cbuild/slaves/oorts/crosstool-ng/builds/arm-linux-gnueabihf-linux/install/arm-linux-gnueabihf/libc --enable-languages=c,c++,fortran --disable-multilib --enable-multiarch --with-arch=armv7-a --with-tune=cortex-a9 --with-fpu=vfpv3-d16 --with-float=hard --with-pkgversion='crosstool-NG linaro-1.13.1-4.9-2014.09 - Linaro GCC 4.9-2014.09' --with-bugurl=https://bugs.launchpad.net/gcc-linaro --enable-__cxa_atexit --enable-libmudflap --enable-libgomp --enable-libssp --with-gmp=/cbuild/slaves/oorts/crosstool-ng/builds/arm-linux-gnueabihf-linux/.build/arm-linux-gnueabihf/build/static --with-mpfr=/cbuild/slaves/oorts/crosstool-ng/builds/arm-linux-gnueabihf-linux/.build/arm-linux-gnueabihf/build/static --with-mpc=/cbuild/slaves/oorts/crosstool-ng/builds/arm-linux-gnueabihf-linux/.build/arm-linux-gnueabihf/build/static --with-isl=/cbuild/slaves/oorts/crosstool-ng/builds/arm-linux-gnueabihf-linux/.build/arm-linux-gnueabihf/build/static --with-cloog=/cbuild/slaves/oorts/crosstool-ng/builds/arm-linux-gnueabihf-linux/.build/arm-linux-gnueabihf/build/static --with-libelf=/cbuild/slaves/oorts/crosstool-ng/builds/arm-linux-gnueabihf-linux/.build/arm-linux-gnueabihf/build/static --enable-threads=posix --disable-libstdcxx-pch --enable-linker-build-id --enable-plugin --enable-gold --with-local-prefix=/cbuild/slaves/oorts/crosstool-ng/builds/arm-linux-gnueabihf-linux/install/arm-linux-gnueabihf/libc --enable-c99 --enable-long-long --with-mode=thumb --disable-multilib --with-float=hard
Thread model: posix
gcc version 4.9.2 20140904 (prerelease) (crosstool-NG linaro-1.13.1-4.9-2014.09 - Linaro GCC 4.9-2014.09)


Just for completion's sake, here is the ending for my .bashrc file as well, maybe there's something wrong with it:

JAVA_HOME=/usr/bin/jdk1.6.0_45/bin
export JAVA_HOME

PATH=$PATH:$JAVA_HOME

# Variable ANDROID_JAVA_HOME
ANDROID_JAVA_HOME=/usr/bin/jdk1.6.0_45
export ANDROID_JAVA_HOME

PATH=$PATH:$ANDROID_JAVA_HOME

export ARCH=arm
export CROSS_COMPILE=arm-linux-gnueabihf-
export SUBARCH=arm
export PATH=/opt/toolchains/gcc-linaro-arm-linux-gnueabihf-4.9-2014.09_linux/bin/:$PATH

CPLUS_INCLUDE_PATH=/opt/toolchains/gcc-linaro-arm-linux-gnueabihf-4.9-2014.09_linux/arm-linux-gnueabihf/include
export CPLUS_INCLUDE_PATH

C_INCLUDE_PATH=/opt/toolchains/gcc-linaro-arm-linux-gnueabihf-4.9-2014.09_linux/arm-linux-gnueabihf/i$
export C_INCLUDE_PATH

export PATH=/opt/toolchains/gcc-linaro-arm-none-eabi-4.8-2014.04_linux/bin:$PATH
Omnihuron
 
Posts: 37
Joined: Tue Feb 10, 2015 2:12 pm
languages_spoken: english
ODROIDs: C1

Re: Installing Android from source

Unread postby tobetter » Wed Apr 08, 2015 6:40 pm

Omnihuron wrote:I checked the install as well to make sure it works correctly, here are results:

allan@allan-VirtualBox:~/odroid-c1$ arm-linux-gnueabihf-gcc -v
Using built-in specs.
COLLECT_GCC=arm-linux-gnueabihf-gcc
COLLECT_LTO_WRAPPER=/opt/toolchains/gcc-linaro-arm-linux-gnueabihf-4.9-2014.09_linux/bin/../libexec/gcc/arm-linux-gnueabihf/4.9.2/lto-wrapper
Target: arm-linux-gnueabihf
Configured with: /cbuild/slaves/oorts/crosstool-ng/builds/arm-linux-gnueabihf-linux/.build/src/gcc-linaro-4.9-2014.09/configure --build=i686-build_pc-linux-gnu --host=i686-build_pc-linux-gnu --target=arm-linux-gnueabihf --prefix=/cbuild/slaves/oorts/crosstool-ng/builds/arm-linux-gnueabihf-linux/install --with-sysroot=/cbuild/slaves/oorts/crosstool-ng/builds/arm-linux-gnueabihf-linux/install/arm-linux-gnueabihf/libc --enable-languages=c,c++,fortran --disable-multilib --enable-multiarch --with-arch=armv7-a --with-tune=cortex-a9 --with-fpu=vfpv3-d16 --with-float=hard --with-pkgversion='crosstool-NG linaro-1.13.1-4.9-2014.09 - Linaro GCC 4.9-2014.09' --with-bugurl=https://bugs.launchpad.net/gcc-linaro --enable-__cxa_atexit --enable-libmudflap --enable-libgomp --enable-libssp --with-gmp=/cbuild/slaves/oorts/crosstool-ng/builds/arm-linux-gnueabihf-linux/.build/arm-linux-gnueabihf/build/static --with-mpfr=/cbuild/slaves/oorts/crosstool-ng/builds/arm-linux-gnueabihf-linux/.build/arm-linux-gnueabihf/build/static --with-mpc=/cbuild/slaves/oorts/crosstool-ng/builds/arm-linux-gnueabihf-linux/.build/arm-linux-gnueabihf/build/static --with-isl=/cbuild/slaves/oorts/crosstool-ng/builds/arm-linux-gnueabihf-linux/.build/arm-linux-gnueabihf/build/static --with-cloog=/cbuild/slaves/oorts/crosstool-ng/builds/arm-linux-gnueabihf-linux/.build/arm-linux-gnueabihf/build/static --with-libelf=/cbuild/slaves/oorts/crosstool-ng/builds/arm-linux-gnueabihf-linux/.build/arm-linux-gnueabihf/build/static --enable-threads=posix --disable-libstdcxx-pch --enable-linker-build-id --enable-plugin --enable-gold --with-local-prefix=/cbuild/slaves/oorts/crosstool-ng/builds/arm-linux-gnueabihf-linux/install/arm-linux-gnueabihf/libc --enable-c99 --enable-long-long --with-mode=thumb --disable-multilib --with-float=hard
Thread model: posix
gcc version 4.9.2 20140904 (prerelease) (crosstool-NG linaro-1.13.1-4.9-2014.09 - Linaro GCC 4.9-2014.09)


Just for completion's sake, here is the ending for my .bashrc file as well, maybe there's something wrong with it:

JAVA_HOME=/usr/bin/jdk1.6.0_45/bin
export JAVA_HOME

PATH=$PATH:$JAVA_HOME

# Variable ANDROID_JAVA_HOME
ANDROID_JAVA_HOME=/usr/bin/jdk1.6.0_45
export ANDROID_JAVA_HOME

PATH=$PATH:$ANDROID_JAVA_HOME

export ARCH=arm
export CROSS_COMPILE=arm-linux-gnueabihf-
export SUBARCH=arm
export PATH=/opt/toolchains/gcc-linaro-arm-linux-gnueabihf-4.9-2014.09_linux/bin/:$PATH

CPLUS_INCLUDE_PATH=/opt/toolchains/gcc-linaro-arm-linux-gnueabihf-4.9-2014.09_linux/arm-linux-gnueabihf/include
export CPLUS_INCLUDE_PATH

C_INCLUDE_PATH=/opt/toolchains/gcc-linaro-arm-linux-gnueabihf-4.9-2014.09_linux/arm-linux-gnueabihf/i$
export C_INCLUDE_PATH

export PATH=/opt/toolchains/gcc-linaro-arm-none-eabi-4.8-2014.04_linux/bin:$PATH

Ok, seems toolchain itself is fine. Let's try to build the kernel only if it shows the same error.
Code: Select all
$ cd kernel
$ make odroidc_defconfig
$ make uImage

In order to sure if your kernel source is correct for C1, try the command in kernel directory and you shouldn't have and diff.
Code: Select all
$ git diff hardkernel/odroidc-3.10.y-android
tobetter
 
Posts: 2085
Joined: Mon Feb 25, 2013 10:55 am
Location: Kitchener, ON, Canada
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1

Re: Installing Android from source

Unread postby Omnihuron » Wed Apr 08, 2015 6:53 pm

The diff command produced a very large amount of output, which I have attached to this reply as a .txt

Looks like a lot of it is just from the differences in the config files - but there may be something problematic?

difftxt.txt
(184.93 KiB) Downloaded 66 times



edit: also, same exact error when trying to make uImage:

arch/arm/mm/mmu.c:611:23: warning: ‘early_pte_alloc_and_install’ defined but not used [-Wunused-function]
static pte_t * __init early_pte_alloc_and_install(pmd_t *pmd,
^
CC arch/arm/mm/rodata.o
arch/arm/mm/rodata.c: In function ‘set_page_attributes’:
arch/arm/mm/rodata.c:91:4: error: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 4 has type ‘pmd_t’ [-Werror=format=]
pr_err("%s: pmd %p=%08lx for %08lx not page table\n",
^
cc1: some warnings being treated as errors
make[1]: *** [arch/arm/mm/rodata.o] Error 1
make: *** [arch/arm/mm] Error 2
Omnihuron
 
Posts: 37
Joined: Tue Feb 10, 2015 2:12 pm
languages_spoken: english
ODROIDs: C1

Re: Installing Android from source

Unread postby tobetter » Wed Apr 08, 2015 7:00 pm

Omnihuron wrote:The diff command produced a very large amount of output, which I have attached to this reply as a .txt

Looks like a lot of it is just from the differences in the config files - but there may be something problematic?

difftxt.txt

If it shows difference, you are in wrong branch. Please check if you have done proper command to download the source tree by repo init. The branch for C1 is s805_4.4.2_master, and specifically the branch of kernel is odroidc-3.10.y-android.
tobetter
 
Posts: 2085
Joined: Mon Feb 25, 2013 10:55 am
Location: Kitchener, ON, Canada
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1

Re: Installing Android from source

Unread postby Omnihuron » Wed Apr 08, 2015 7:01 pm

The command I used is the same from the wiki:
repo init -u https://github.com/hardkernel/android.git -b s805_4.4.2_master

how do I select a specific branch?
Omnihuron
 
Posts: 37
Joined: Tue Feb 10, 2015 2:12 pm
languages_spoken: english
ODROIDs: C1

Re: Installing Android from source

Unread postby tobetter » Wed Apr 08, 2015 7:33 pm

Omnihuron wrote:The command I used is the same from the wiki:
repo init -u https://github.com/hardkernel/android.git -b s805_4.4.2_master

how do I select a specific branch?

The command itself is correct, once you done do repo sync and repo start s805_4.4.2_master --all. I have no idea why your 2nd build is failed while your 1st build was success.
tobetter
 
Posts: 2085
Joined: Mon Feb 25, 2013 10:55 am
Location: Kitchener, ON, Canada
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1

Re: Installing Android from source

Unread postby Omnihuron » Thu Apr 09, 2015 7:28 am

So I completely started over with a new virtual machine and clean installed everything - java 6, make 3.82, the toolchains, etc.

Got the exact same error again about the roadata.o file!

To me this seems like there is an error with the actual file
Omnihuron
 
Posts: 37
Joined: Tue Feb 10, 2015 2:12 pm
languages_spoken: english
ODROIDs: C1

Re: Installing Android from source

Unread postby tobetter » Thu Apr 09, 2015 7:47 am

Omnihuron wrote:So I completely started over with a new virtual machine and clean installed everything - java 6, make 3.82, the toolchains, etc.

Got the exact same error again about the roadata.o file!

To me this seems like there is an error with the actual file

It's ridiculous since there were no update almost a month on Github and our daily basis build system had not met such error by today.
Still I doubt your kernel tree downloaded and no idea how is built on your end yet. Please try to build the kernel only, not Android, and check if still the error happens. If your branch is not matched with the remote branch hardkernel/odroidc-3.10.y-android, you are in wrong place.
tobetter
 
Posts: 2085
Joined: Mon Feb 25, 2013 10:55 am
Location: Kitchener, ON, Canada
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1

Re: Installing Android from source

Unread postby Omnihuron » Fri Apr 10, 2015 6:14 pm

Hey tobetter,

I have been trying various things for a while but to no luck. I just noticed a new post today (viewtopic.php?f=113&t=9399) there is a new version of the Android source with the warning it is being uploaded and may take 1-2 days. Do you think this change may have been interfering with my attempts to download it? Should I try to download it now or should I wait two days to ensure the newest source?
Omnihuron
 
Posts: 37
Joined: Tue Feb 10, 2015 2:12 pm
languages_spoken: english
ODROIDs: C1

Re: Installing Android from source

Unread postby tobetter » Fri Apr 10, 2015 6:37 pm

Omnihuron wrote:Hey tobetter,

I have been trying various things for a while but to no luck. I just noticed a new post today (viewtopic.php?f=113&t=9399) there is a new version of the Android source with the warning it is being uploaded and may take 1-2 days. Do you think this change may have been interfering with my attempts to download it? Should I try to download it now or should I wait two days to ensure the newest source?

I think you could try within a day. But apart from this, your source tree should be built as it is since you already had been succeeded and new source code does not have much different. I guess you are missing something but not sure what it is because I do not know what you did full command list. Myself also compiled the source tree downloaded from github in other machine, but there was no problem.
tobetter
 
Posts: 2085
Joined: Mon Feb 25, 2013 10:55 am
Location: Kitchener, ON, Canada
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1

Re: Installing Android from source

Unread postby Omnihuron » Sun Apr 12, 2015 3:29 am

So I can successfully compile the kernel by using sudo make menuconfig and sudo make. If I don't use sudo for either, it fails with the roadta.o error.

Trying to make the entire package still does not work however - using sudo make from the root folder fails saying that egl.cfg is already defined in generic, and if I don't use sudo it runs into a similar error as the rodata.o error, but with a different file.

Something strange is happening where using sudo seems to let the make command use the toolchains or something.

Should I try to fix the sudo, or is there an easy way to take my successfully compiled kernel and turn it into a selfinstall?

Thanks for helping me this long tobetter! :D
Omnihuron
 
Posts: 37
Joined: Tue Feb 10, 2015 2:12 pm
languages_spoken: english
ODROIDs: C1

Re: Installing Android from source

Unread postby Pavel_S » Mon Sep 21, 2015 7:49 am

Hello all.I am trying to compile the android. I get a similar error

host C++: tblgen <= external/llvm/utils/TableGen/DAGISelEmitter.cpp
host C++: tblgen <= external/llvm/utils/TableGen/DAGISelMatcherEmitter.cpp
host C++: tblgen <= external/llvm/utils/TableGen/DAGISelMatcherGen.cpp
host C++: tblgen <= external/llvm/utils/TableGen/DAGISelMatcherOpt.cpp
host C++: tblgen <= external/llvm/utils/TableGen/DAGISelMatcher.cpp
host C++: tblgen <= external/llvm/utils/TableGen/DFAPacketizerEmitter.cpp
host C++: tblgen <= external/llvm/utils/TableGen/DisassemblerEmitter.cpp
host C++: tblgen <= external/llvm/utils/TableGen/FastISelEmitter.cpp
make[1]: *** [sub-make] Error 2
make[1]: Output from the catalog `/home/pavel/odroid-c1/kernel'
make: *** [out/target/product/odroidc/obj/KERNEL_OBJ/arch/arm/boot/uImage] Error 2
make: *** waiting for completion of tasks...
root@pavel-desktop:/home/pavel/odroid-c1#

Please help me
Pavel_S
 
Posts: 28
Joined: Wed Sep 16, 2015 8:40 pm
languages_spoken: english
ODROIDs: odroid-c1

Re: Installing Android from source

Unread postby tobetter » Mon Sep 21, 2015 10:29 am

Pavel_S wrote:Hello all.I am trying to compile the android. I get a similar error

host C++: tblgen <= external/llvm/utils/TableGen/DAGISelEmitter.cpp
host C++: tblgen <= external/llvm/utils/TableGen/DAGISelMatcherEmitter.cpp
host C++: tblgen <= external/llvm/utils/TableGen/DAGISelMatcherGen.cpp
host C++: tblgen <= external/llvm/utils/TableGen/DAGISelMatcherOpt.cpp
host C++: tblgen <= external/llvm/utils/TableGen/DAGISelMatcher.cpp
host C++: tblgen <= external/llvm/utils/TableGen/DFAPacketizerEmitter.cpp
host C++: tblgen <= external/llvm/utils/TableGen/DisassemblerEmitter.cpp
host C++: tblgen <= external/llvm/utils/TableGen/FastISelEmitter.cpp
make[1]: *** [sub-make] Error 2
make[1]: Output from the catalog `/home/pavel/odroid-c1/kernel'
make: *** [out/target/product/odroidc/obj/KERNEL_OBJ/arch/arm/boot/uImage] Error 2
make: *** waiting for completion of tasks...
root@pavel-desktop:/home/pavel/odroid-c1#

Please help me

Seems kernel build is failed, but not able to catch the reason with this log.
Could you please capture the log more longer which contains kernel build log or please do "make" instead of like "make -j4".
tobetter
 
Posts: 2085
Joined: Mon Feb 25, 2013 10:55 am
Location: Kitchener, ON, Canada
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1

Re: Installing Android from source

Unread postby Pavel_S » Mon Sep 21, 2015 1:44 pm

Thanks for the support. It seems to get collected. The problem was the installation toolchain. After the command execution:

export ARCH=arm
export CROSS_COMPILE=arm-linux-gnueabihf-
export PATH=/opt/toolchains/gcc-linaro-arm-linux-gnueabihf-4.9-2014.09_linux/bin/:$PATH


Happened:

Creating filesystem with parameters:
Size: 1073741824
Block size: 4096
Blocks per group: 32768
Inodes per group: 8192
Inode size: 256
Journal blocks: 4096
Label:
Blocks: 262144
Block groups: 8
Reserved block group size: 63
Created filesystem with 1641/65536 inodes and 88308/262144 blocks
root@pavel-desktop:/home/pavel/odroid-c1#
This means that the process of compilation was successful?
Pavel_S
 
Posts: 28
Joined: Wed Sep 16, 2015 8:40 pm
languages_spoken: english
ODROIDs: odroid-c1

Re: Installing Android from source

Unread postby tobetter » Mon Sep 21, 2015 1:51 pm

Pavel_S wrote:Thanks for the support. It seems to get collected. The problem was the installation toolchain. After the command execution:

export ARCH=arm
export CROSS_COMPILE=arm-linux-gnueabihf-
export PATH=/opt/toolchains/gcc-linaro-arm-linux-gnueabihf-4.9-2014.09_linux/bin/:$PATH


Happened:

Creating filesystem with parameters:
Size: 1073741824
Block size: 4096
Blocks per group: 32768
Inodes per group: 8192
Inode size: 256
Journal blocks: 4096
Label:
Blocks: 262144
Block groups: 8
Reserved block group size: 63
Created filesystem with 1641/65536 inodes and 88308/262144 blocks
root@pavel-desktop:/home/pavel/odroid-c1#
This means that the process of compilation was successful?

Seems compile is success. :)
tobetter
 
Posts: 2085
Joined: Mon Feb 25, 2013 10:55 am
Location: Kitchener, ON, Canada
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1

Re: Installing Android from source

Unread postby Pavel_S » Mon Sep 21, 2015 2:39 pm

I can not make the installation image

Code: Select all
root@pavel-desktop:/home/pavel# cd odroid-c1
root@pavel-desktop:/home/pavel/odroid-c1# make selfinstall
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.4.2
TARGET_PRODUCT=full
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a
TARGET_CPU_VARIANT=generic
HOST_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.19.0-25-generic-x86_64-with-Ubuntu-14.04-trusty
HOST_BUILD_TYPE=release
BUILD_ID=KOT49H
OUT_DIR=out
============================================
including ./abi/cpp/Android.mk ...
including ./art/Android.mk ...
including ./bionic/Android.mk ...
build/core/binary.mk:509: цель `out/target/product/generic/obj/STATIC_LIBRARIES/libc_common_intermediates/string/strcat.o' указана несколько раз в одном правиле
including ./bootable/diskinstaller/Android.mk ...
including ./bootable/recovery/Android.mk ...
including ./build/libs/host/Android.mk ...
including ./build/target/board/Android.mk ...
including ./build/tools/Android.mk ...
including ./cts/Android.mk ...
out/target/product/generic/obj/APPS/SignatureTest_intermediates
including ./dalvik/Android.mk ...
including ./development/apps/BluetoothDebug/Android.mk ...
including ./development/apps/BuildWidget/Android.mk ...
including ./development/apps/CustomLocale/Android.mk ...
including ./development/apps/Development/Android.mk ...
including ./development/apps/DevelopmentSettings/Android.mk ...
including ./development/apps/Fallback/Android.mk ...
including ./development/apps/GestureBuilder/Android.mk ...
including ./development/apps/NinePatchLab/Android.mk ...
including ./development/apps/OBJViewer/Android.mk ...
including ./development/apps/SdkSetup/Android.mk ...
including ./development/apps/SettingInjectorSample/Android.mk ...
including ./development/apps/WidgetPreview/Android.mk ...
including ./development/apps/launchperf/Android.mk ...
including ./development/build/Android.mk ...
including ./development/cmds/monkey/Android.mk ...
including ./development/host/Android.mk ...
including ./development/ndk/Android.mk ...
including ./development/samples/AccelerometerPlay/Android.mk ...
including ./development/samples/ActionBarCompat/Android.mk ...
including ./development/samples/AliasActivity/Android.mk ...
including ./development/samples/AndroidBeamDemo/Android.mk ...
including ./development/samples/ApiDemos/Android.mk ...
including ./development/samples/AppNavigation/Android.mk ...
including ./development/samples/BackupRestore/Android.mk ...
including ./development/samples/BasicGLSurfaceView/Android.mk ...
including ./development/samples/BluetoothChat/Android.mk ...
including ./development/samples/BluetoothHDP/Android.mk ...
including ./development/samples/BusinessCard/Android.mk ...
including ./development/samples/Compass/Android.mk ...
including ./development/samples/ContactManager/Android.mk ...
including ./development/samples/CubeLiveWallpaper/Android.mk ...
including ./development/samples/FixedGridLayout/Android.mk ...
including ./development/samples/HeavyWeight/Android.mk ...
including ./development/samples/HelloActivity/Android.mk ...
including ./development/samples/HelloEffects/Android.mk ...
including ./development/samples/Home/Android.mk ...
including ./development/samples/HoneycombGallery/Android.mk ...
including ./development/samples/JetBoy/Android.mk ...
including ./development/samples/KeyChainDemo/Android.mk ...
including ./development/samples/LunarLander/Android.mk ...
including ./development/samples/MultiResolution/Android.mk ...
including ./development/samples/MySampleRss/Android.mk ...
including ./development/samples/NotePad/Android.mk ...
including ./development/samples/Obb/Android.mk ...
including ./development/samples/RSSReader/Android.mk ...
including ./development/samples/RandomMusicPlayer/Android.mk ...
including ./development/samples/RenderScript/Android.mk ...
including ./development/samples/SampleSyncAdapter/Android.mk ...
including ./development/samples/SearchableDictionary/Android.mk ...
including ./development/samples/SimpleJNI/Android.mk ...
including ./development/samples/SipDemo/Android.mk ...
including ./development/samples/SkeletonApp/Android.mk ...
including ./development/samples/Snake/Android.mk ...
including ./development/samples/SoftKeyboard/Android.mk ...
including ./development/samples/SpellChecker/Android.mk ...
including ./development/samples/StackWidget/Android.mk ...
including ./development/samples/Support13Demos/Android.mk ...
including ./development/samples/Support4Demos/Android.mk ...
including ./development/samples/Support7Demos/Android.mk ...
including ./development/samples/SupportAppNavigation/Android.mk ...
including ./development/samples/ToyVpn/Android.mk ...
including ./development/samples/TtsEngine/Android.mk ...
including ./development/samples/USB/Android.mk ...
including ./development/samples/UiAutomator/Android.mk ...
including ./development/samples/Vault/Android.mk ...
including ./development/samples/VoiceRecognitionService/Android.mk ...
including ./development/samples/VoicemailProviderDemo/Android.mk ...
including ./development/samples/WeatherListWidget/Android.mk ...
including ./development/samples/WiFiDirectDemo/Android.mk ...
including ./development/samples/WiFiDirectServiceDiscovery/Android.mk ...
including ./development/samples/Wiktionary/Android.mk ...
including ./development/samples/WiktionarySimple/Android.mk ...
including ./development/samples/XmlAdapters/Android.mk ...
including ./development/samples/training/NsdChat/Android.mk ...
including ./development/testrunner/Android.mk ...
including ./development/tools/apkcheck/Android.mk ...
including ./development/tools/elftree/Android.mk ...
including ./development/tools/emulator/test-apps/ConnectivityTest/Android.mk ...
including ./development/tools/emulator/test-apps/GpsLocationTest/Android.mk ...
including ./development/tools/etc1tool/Android.mk ...
including ./development/tools/hosttestlib/Android.mk ...
including ./development/tools/idegen/Android.mk ...
including ./development/tools/line_endings/Android.mk ...
including ./development/tools/mkstubs/Android.mk ...
including ./development/tools/recovery_l10n/Android.mk ...
including ./development/tools/yuv420sp2rgb/Android.mk ...
including ./development/tutorials/MoarRam/Android.mk ...
including ./development/tutorials/NotepadCodeLab/Notepadv1/Android.mk ...
including ./development/tutorials/NotepadCodeLab/Notepadv1Solution/Android.mk ...
including ./development/tutorials/NotepadCodeLab/Notepadv2/Android.mk ...
including ./development/tutorials/NotepadCodeLab/Notepadv2Solution/Android.mk ...
including ./development/tutorials/NotepadCodeLab/Notepadv3/Android.mk ...
including ./development/tutorials/NotepadCodeLab/Notepadv3Solution/Android.mk ...
including ./development/tutorials/ReverseDebug/Android.mk ...
including ./device/asus/deb/dumpstate/Android.mk ...
including ./device/asus/deb/recovery/Android.mk ...
including ./device/asus/deb/self-extractors/Android.mk ...
including ./device/asus/flo/Android.mk ...
including ./device/asus/grouper/Android.mk ...
including ./device/asus/tilapia/recovery/Android.mk ...
including ./device/asus/tilapia/self-extractors/Android.mk ...
including ./device/generic/goldfish/audio/Android.mk ...
including ./device/generic/goldfish/camera/Android.mk ...
including ./device/generic/goldfish/gps/Android.mk ...
including ./device/generic/goldfish/lights/Android.mk ...
including ./device/generic/goldfish/opengl/Android.mk ...
including ./device/generic/goldfish/power/Android.mk ...
including ./device/generic/goldfish/qemu-props/Android.mk ...
including ./device/generic/goldfish/qemud/Android.mk ...
including ./device/generic/goldfish/sensors/Android.mk ...
including ./device/google/accessory/arduino/Android.mk ...
including ./device/google/accessory/demokit/Android.mk ...
including ./device/hardkernel/common/Android.mk ...
including ./device/hardkernel/odroidc/fw_env/Android.mk ...
including ./device/lge/hammerhead/Android.mk ...
including ./device/lge/mako/Android.mk ...
including ./device/sample/Android.mk ...
including ./device/samsung/manta/Android.mk ...
including ./docs/source.android.com/Android.mk ...
including ./external/aac/Android.mk ...
including ./external/alsa-lib/Android.mk ...
including ./external/alsa-utils/Android.mk ...
including ./external/android-clat/Android.mk ...
including ./external/android-mock/Android.mk ...
including ./external/ant-glob/Android.mk ...
including ./external/antlr/Android.mk ...
including ./external/apache-harmony/Android.mk ...
including ./external/apache-http/Android.mk ...
including ./external/apache-xml/Android.mk ...
including ./external/bison/Android.mk ...
including ./external/blktrace/Android.mk ...
including ./external/bluetooth/bluedroid/Android.mk ...
including ./external/bouncycastle/Android.mk ...
including ./external/bsdiff/Android.mk ...
including ./external/busybox/Android.mk ...
including ./external/bzip2/Android.mk ...
including ./external/ceres-solver/Android.mk ...
including ./external/checkpolicy/Android.mk ...
including ./external/chromium-libpac/Android.mk ...
including ./external/chromium/Android.mk ...
including ./external/chromium_org/Android.mk ...
including ./external/clang/Android.mk ...
including ./external/compiler-rt/Android.mk ...
including ./external/curl/Android.mk ...
including ./external/dexmaker/Android.mk ...
including ./external/dhcpcd/Android.mk ...
including ./external/dnsmasq/Android.mk ...
including ./external/doclava/Android.mk ...
including ./external/droiddriver/Android.mk ...
including ./external/dropbear/Android.mk ...
including ./external/e2fsprogs/Android.mk ...
including ./external/easymock/Android.mk ...
including ./external/eclipse-windowbuilder/propertysheet/Android.mk ...
including ./external/eigen/Android.mk ...
including ./external/elfutils/Android.mk ...
including ./external/embunit/Android.mk ...
including ./external/emma/Android.mk ...
including ./external/ethtool/Android.mk ...
including ./external/exfat/Android.mk ...
including ./external/expat/Android.mk ...
including ./external/eyes-free/Android.mk ...
including ./external/fdlibm/Android.mk ...
including ./external/ffmpeg/Android.mk ...
including ./external/flac/Android.mk ...
including ./external/freetype/Android.mk ...
including ./external/fsck_msdos/Android.mk ...
including ./external/fuse/lib/Android.mk ...
including ./external/ganymed-ssh2/Android.mk ...
including ./external/gcc-demangle/Android.mk ...
including ./external/genext2fs/Android.mk ...
including ./external/giflib/Android.mk ...
including ./external/google-diff-match-patch/Android.mk ...
including ./external/grub/Android.mk ...
including ./external/gtest/Android.mk ...
including ./external/guava/Android.mk ...
including ./external/hamcrest/Android.mk ...
including ./external/harfbuzz/Android.mk ...
including ./external/harfbuzz_ng/Android.mk ...
including ./external/hyphenation/Android.mk ...
including ./external/icu4c/Android.mk ...
including ./external/iproute2/Android.mk ...
including ./external/ipsec-tools/Android.mk ...
including ./external/iptables/Android.mk ...
including ./external/iputils/Android.mk ...
including ./external/javasqlite/Android.mk ...
including ./external/javassist/Android.mk ...
including ./external/jdiff/Android.mk ...
including ./external/jhead/Android.mk ...
including ./external/jmdns/Android.mk ...
including ./external/jmonkeyengine/Android.mk ...
including ./external/jpeg/Android.mk ...
including ./external/jsilver/Android.mk ...
including ./external/jsr305/Android.mk ...
including ./external/junit/Android.mk ...
including ./external/koush/Superuser/Android.mk ...
including ./external/libcap-ng/Android.mk ...
including ./external/libffi/Android.mk ...
including ./external/libgsm/Android.mk ...
including ./external/liblzf/Android.mk ...
including ./external/libnfc-nci/Android.mk ...
including ./external/libnfc-nxp/Android.mk ...
including ./external/libnl-headers/Android.mk ...
including ./external/libogg/Android.mk ...
including ./external/libpcap/Android.mk ...
including ./external/libpng/Android.mk ...
including ./external/libselinux/Android.mk ...
including ./external/libsepol/Android.mk ...
including ./external/libusb/libusb/Android.mk ...
including ./external/libvorbis/Android.mk ...
including ./external/libvpx/Android.mk ...
including ./external/libxml2/Android.mk ...
including ./external/libxslt/Android.mk ...
including ./external/libyuv/Android.mk ...
including ./external/libzvbi/Android.mk ...
including ./external/linux-tools-perf/Android.mk ...
including ./external/littlemock/Android.mk ...
including ./external/llvm/Android.mk ...
including ./external/marisa-trie/Android.mk ...
including ./external/markdown/Android.mk ...
including ./external/mdnsresponder/Android.mk ...
including ./external/mesa3d/Android.mk ...
including ./external/mksh/Android.mk ...
including ./external/mockito/Android.mk ...
including ./external/mockwebserver/Android.mk ...
including ./external/mp4parser/Android.mk ...
including ./external/mtpd/Android.mk ...
including ./external/naver-fonts/Android.mk ...
including ./external/netcat/Android.mk ...
including ./external/netperf/Android.mk ...
including ./external/neven/Android.mk ...
including ./external/nist-pkits/Android.mk ...
including ./external/noto-fonts/Android.mk ...
including ./external/ntfs-3g/Android.mk ...
including ./external/oauth/core/src/main/java/Android.mk ...
including ./external/objenesis/Android.mk ...
including ./external/okhttp/Android.mk ...
including ./external/open-vcdiff/Android.mk ...
including ./external/opencv/Android.mk ...
including ./external/openfst/Android.mk ...
including ./external/openssh/Android.mk ...
including ./external/openssl/Android.mk ...
including ./external/oprofile/Android.mk ...
including ./external/pixman/Android.mk ...
including ./external/ppp/pppd/Android.mk ...
including ./external/pppoe/Android.mk ...
including ./external/protobuf/Android.mk ...
including ./external/qemu/Android.mk ...
including ./external/regex-re2/Android.mk ...
including ./external/remoteconf/Android.mk ...
including ./external/replicaisland/Android.mk ...
including ./external/robolectric/Android.mk ...
including ./external/safe-iop/Android.mk ...
including ./external/scrypt/Android.mk ...
including ./external/sepolicy/Android.mk ...
including ./external/sfntly/Android.mk ...
including ./external/sil-fonts/Android.mk ...
including ./external/skia/Android.mk ...
----------------ARCH_ARM_HAVE_NEON:
including ./external/smack/Android.mk ...
including ./external/smali/baksmali/Android.mk ...
including ./external/smali/deodexerant/Android.mk ...
including ./external/smali/smali/Android.mk ...
including ./external/sonivox/Android.mk ...
including ./external/speex/Android.mk ...
including ./external/sqlite/android/Android.mk ...
including ./external/sqlite/dist/Android.mk ...
including ./external/srec/Android.mk ...
including ./external/srtp/Android.mk ...
including ./external/stlport/Android.mk ...
including ./external/strace/Android.mk ...
including ./external/stressapptest/Android.mk ...
including ./external/svox/Android.mk ...
including ./external/tcpdump/Android.mk ...
including ./external/tinyalsa/Android.mk ...
including ./external/tinycompress/Android.mk ...
including ./external/tinyxml/Android.mk ...
including ./external/tinyxml2/Android.mk ...
including ./external/tremolo/Android.mk ...
including ./external/v8/Android.mk ...
including ./external/valgrind/Android.mk ...
including ./external/webp/Android.mk ...
including ./external/webrtc/Android.mk ...
including ./external/wpa_supplicant_8/Android.mk ...
including ./external/xmp_toolkit/Android.mk ...
including ./external/yaffs2/Android.mk ...
including ./external/zlib/Android.mk ...
including ./external/zxing/Android.mk ...
including ./frameworks/av/camera/Android.mk ...
including ./frameworks/av/cmds/screenrecord/Android.mk ...
including ./frameworks/av/cmds/stagefright/Android.mk ...
including ./frameworks/av/drm/common/Android.mk ...
including ./frameworks/av/drm/drmserver/Android.mk ...
including ./frameworks/av/drm/libdrmframework/Android.mk ...
including ./frameworks/av/drm/mediadrm/plugins/mock/Android.mk ...
including ./frameworks/av/libvideoeditor/Android.mk ...
including ./frameworks/av/media/common_time/Android.mk ...
including ./frameworks/av/media/libcpustats/Android.mk ...
including ./frameworks/av/media/libeffects/downmix/Android.mk ...
including ./frameworks/av/media/libeffects/factory/Android.mk ...
including ./frameworks/av/media/libeffects/loudness/Android.mk ...
including ./frameworks/av/media/libeffects/lvm/lib/Android.mk ...
including ./frameworks/av/media/libeffects/lvm/wrapper/Android.mk ...
including ./frameworks/av/media/libeffects/preprocessing/Android.mk ...
including ./frameworks/av/media/libeffects/proxy/Android.mk ...
including ./frameworks/av/media/libeffects/visualizer/Android.mk ...
including ./frameworks/av/media/libimageplayerservice/Android.mk ...
including ./frameworks/av/media/libmedia/Android.mk ...
including ./frameworks/av/media/libmedia_native/Android.mk ...
including ./frameworks/av/media/libmediaplayerservice/Android.mk ...
including ./frameworks/av/media/libnbaio/Android.mk ...
including ./frameworks/av/media/libstagefright/Android.mk ...
including ./frameworks/av/media/mediaserver/Android.mk ...
including ./frameworks/av/media/mtp/Android.mk ...
including ./frameworks/av/services/audioflinger/Android.mk ...
including ./frameworks/av/services/camera/libcameraservice/Android.mk ...
including ./frameworks/av/services/medialog/Android.mk ...
including ./frameworks/av/tools/resampler_tools/Android.mk ...
including ./frameworks/base/Android.mk ...
find: `src': Нет такого файла или каталога
including ./frameworks/compile/libbcc/Android.mk ...
including ./frameworks/compile/mclinker/Android.mk ...
including ./frameworks/compile/slang/Android.mk ...
including ./frameworks/ex/camera2/Android.mk ...
including ./frameworks/ex/carousel/Android.mk ...
including ./frameworks/ex/chips/Android.mk ...
including ./frameworks/ex/common/Android.mk ...
including ./frameworks/ex/variablespeed/Android.mk ...
including ./frameworks/ml/Android.mk ...
including ./frameworks/native/cmds/atrace/Android.mk ...
including ./frameworks/native/cmds/bugreport/Android.mk ...
including ./frameworks/native/cmds/dumpstate/Android.mk ...
including ./frameworks/native/cmds/dumpsys/Android.mk ...
including ./frameworks/native/cmds/flatland/Android.mk ...
including ./frameworks/native/cmds/installd/Android.mk ...
including ./frameworks/native/cmds/ip-up-vpn/Android.mk ...
including ./frameworks/native/cmds/rawbu/Android.mk ...
including ./frameworks/native/cmds/screenshot/Android.mk ...
including ./frameworks/native/cmds/service/Android.mk ...
including ./frameworks/native/cmds/servicemanager/Android.mk ...
including ./frameworks/native/libs/binder/Android.mk ...
including ./frameworks/native/libs/diskusage/Android.mk ...
including ./frameworks/native/libs/gui/Android.mk ...
including ./frameworks/native/libs/input/Android.mk ...
including ./frameworks/native/libs/ui/Android.mk ...
including ./frameworks/native/opengl/libagl/Android.mk ...
including ./frameworks/native/opengl/libs/Android.mk ...
including ./frameworks/native/opengl/tests/Android.mk ...
including ./frameworks/native/services/batteryservice/Android.mk ...
including ./frameworks/native/services/connectivitymanager/Android.mk ...
including ./frameworks/native/services/powermanager/Android.mk ...
including ./frameworks/native/services/sensorservice/Android.mk ...
including ./frameworks/native/services/surfaceflinger/Android.mk ...
including ./frameworks/native/services/systemwrite/Android.mk ...
including ./frameworks/opt/calendar/Android.mk ...
including ./frameworks/opt/colorpicker/Android.mk ...
including ./frameworks/opt/datetimepicker/Android.mk ...
including ./frameworks/opt/emoji/Android.mk ...
including ./frameworks/opt/inputmethodcommon/Android.mk ...
including ./frameworks/opt/mailcommon/Android.mk ...
including ./frameworks/opt/mms/Android.mk ...
including ./frameworks/opt/net/voip/Android.mk ...
including ./frameworks/opt/photoviewer/Android.mk ...
including ./frameworks/opt/telephony/Android.mk ...
including ./frameworks/opt/timezonepicker/Android.mk ...
including ./frameworks/opt/vcard/Android.mk ...
including ./frameworks/rs/Android.mk ...
including ./frameworks/support/tests/Android.mk ...
including ./frameworks/support/v13/Android.mk ...
including ./frameworks/support/v4/Android.mk ...
including ./frameworks/support/v7/appcompat/Android.mk ...
including ./frameworks/support/v7/gridlayout/Android.mk ...
including ./frameworks/support/v7/mediarouter/Android.mk ...
including ./frameworks/support/v8/renderscript/Android.mk ...
including ./frameworks/testing/Android.mk ...
including ./frameworks/uiautomator/Android.mk ...
including ./frameworks/volley/Android.mk ...
including ./frameworks/webview/Android.mk ...
including ./frameworks/wilhelm/src/Android.mk ...
including ./frameworks/wilhelm/tests/Android.mk ...
including ./hardware/akm/AK8975_FS/akmdfs/Android.mk ...
including ./hardware/akm/AK8975_FS/libsensors/Android.mk ...
including ./hardware/alsa_sound/Android.mk ...
including ./hardware/amlogic/audio/Android.mk ...
including ./hardware/amlogic/camera/Android.mk ...
including ./hardware/amlogic/gralloc/Android.mk ...
including ./hardware/amlogic/hwcomposer/Android.mk ...
including ./hardware/amlogic/libstagefrighthw/Android.mk ...
including ./hardware/amlogic/mali/driver/Android.mk ...
build/core/base_rules.mk:134: *** hardware/amlogic/mali/driver: MODULE.TARGET.ETC.egl.cfg already defined by device/generic/goldfish/opengl/system/egl.  Останов.
root@pavel-desktop:/home/pavel/odroid-c1#


that it is necessary to be done?
Pavel_S
 
Posts: 28
Joined: Wed Sep 16, 2015 8:40 pm
languages_spoken: english
ODROIDs: odroid-c1

Re: Installing Android from source

Unread postby tobetter » Mon Sep 21, 2015 3:46 pm

Pavel_S wrote:I can not make the installation image

Code: Select all
root@pavel-desktop:/home/pavel# cd odroid-c1
root@pavel-desktop:/home/pavel/odroid-c1# make selfinstall
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.4.2
TARGET_PRODUCT=full
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a
TARGET_CPU_VARIANT=generic
HOST_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.19.0-25-generic-x86_64-with-Ubuntu-14.04-trusty
HOST_BUILD_TYPE=release
BUILD_ID=KOT49H
OUT_DIR=out
============================================
including ./abi/cpp/Android.mk ...
including ./art/Android.mk ...
including ./bionic/Android.mk ...
build/core/binary.mk:509: цель `out/target/product/generic/obj/STATIC_LIBRARIES/libc_common_intermediates/string/strcat.o' указана несколько раз в одном правиле
including ./bootable/diskinstaller/Android.mk ...
including ./bootable/recovery/Android.mk ...
including ./build/libs/host/Android.mk ...
including ./build/target/board/Android.mk ...
including ./build/tools/Android.mk ...
including ./cts/Android.mk ...
out/target/product/generic/obj/APPS/SignatureTest_intermediates
including ./dalvik/Android.mk ...
including ./development/apps/BluetoothDebug/Android.mk ...
including ./development/apps/BuildWidget/Android.mk ...
including ./development/apps/CustomLocale/Android.mk ...
including ./development/apps/Development/Android.mk ...
including ./development/apps/DevelopmentSettings/Android.mk ...
including ./development/apps/Fallback/Android.mk ...
including ./development/apps/GestureBuilder/Android.mk ...
including ./development/apps/NinePatchLab/Android.mk ...
including ./development/apps/OBJViewer/Android.mk ...
including ./development/apps/SdkSetup/Android.mk ...
including ./development/apps/SettingInjectorSample/Android.mk ...
including ./development/apps/WidgetPreview/Android.mk ...
including ./development/apps/launchperf/Android.mk ...
including ./development/build/Android.mk ...
including ./development/cmds/monkey/Android.mk ...
including ./development/host/Android.mk ...
including ./development/ndk/Android.mk ...
including ./development/samples/AccelerometerPlay/Android.mk ...
including ./development/samples/ActionBarCompat/Android.mk ...
including ./development/samples/AliasActivity/Android.mk ...
including ./development/samples/AndroidBeamDemo/Android.mk ...
including ./development/samples/ApiDemos/Android.mk ...
including ./development/samples/AppNavigation/Android.mk ...
including ./development/samples/BackupRestore/Android.mk ...
including ./development/samples/BasicGLSurfaceView/Android.mk ...
including ./development/samples/BluetoothChat/Android.mk ...
including ./development/samples/BluetoothHDP/Android.mk ...
including ./development/samples/BusinessCard/Android.mk ...
including ./development/samples/Compass/Android.mk ...
including ./development/samples/ContactManager/Android.mk ...
including ./development/samples/CubeLiveWallpaper/Android.mk ...
including ./development/samples/FixedGridLayout/Android.mk ...
including ./development/samples/HeavyWeight/Android.mk ...
including ./development/samples/HelloActivity/Android.mk ...
including ./development/samples/HelloEffects/Android.mk ...
including ./development/samples/Home/Android.mk ...
including ./development/samples/HoneycombGallery/Android.mk ...
including ./development/samples/JetBoy/Android.mk ...
including ./development/samples/KeyChainDemo/Android.mk ...
including ./development/samples/LunarLander/Android.mk ...
including ./development/samples/MultiResolution/Android.mk ...
including ./development/samples/MySampleRss/Android.mk ...
including ./development/samples/NotePad/Android.mk ...
including ./development/samples/Obb/Android.mk ...
including ./development/samples/RSSReader/Android.mk ...
including ./development/samples/RandomMusicPlayer/Android.mk ...
including ./development/samples/RenderScript/Android.mk ...
including ./development/samples/SampleSyncAdapter/Android.mk ...
including ./development/samples/SearchableDictionary/Android.mk ...
including ./development/samples/SimpleJNI/Android.mk ...
including ./development/samples/SipDemo/Android.mk ...
including ./development/samples/SkeletonApp/Android.mk ...
including ./development/samples/Snake/Android.mk ...
including ./development/samples/SoftKeyboard/Android.mk ...
including ./development/samples/SpellChecker/Android.mk ...
including ./development/samples/StackWidget/Android.mk ...
including ./development/samples/Support13Demos/Android.mk ...
including ./development/samples/Support4Demos/Android.mk ...
including ./development/samples/Support7Demos/Android.mk ...
including ./development/samples/SupportAppNavigation/Android.mk ...
including ./development/samples/ToyVpn/Android.mk ...
including ./development/samples/TtsEngine/Android.mk ...
including ./development/samples/USB/Android.mk ...
including ./development/samples/UiAutomator/Android.mk ...
including ./development/samples/Vault/Android.mk ...
including ./development/samples/VoiceRecognitionService/Android.mk ...
including ./development/samples/VoicemailProviderDemo/Android.mk ...
including ./development/samples/WeatherListWidget/Android.mk ...
including ./development/samples/WiFiDirectDemo/Android.mk ...
including ./development/samples/WiFiDirectServiceDiscovery/Android.mk ...
including ./development/samples/Wiktionary/Android.mk ...
including ./development/samples/WiktionarySimple/Android.mk ...
including ./development/samples/XmlAdapters/Android.mk ...
including ./development/samples/training/NsdChat/Android.mk ...
including ./development/testrunner/Android.mk ...
including ./development/tools/apkcheck/Android.mk ...
including ./development/tools/elftree/Android.mk ...
including ./development/tools/emulator/test-apps/ConnectivityTest/Android.mk ...
including ./development/tools/emulator/test-apps/GpsLocationTest/Android.mk ...
including ./development/tools/etc1tool/Android.mk ...
including ./development/tools/hosttestlib/Android.mk ...
including ./development/tools/idegen/Android.mk ...
including ./development/tools/line_endings/Android.mk ...
including ./development/tools/mkstubs/Android.mk ...
including ./development/tools/recovery_l10n/Android.mk ...
including ./development/tools/yuv420sp2rgb/Android.mk ...
including ./development/tutorials/MoarRam/Android.mk ...
including ./development/tutorials/NotepadCodeLab/Notepadv1/Android.mk ...
including ./development/tutorials/NotepadCodeLab/Notepadv1Solution/Android.mk ...
including ./development/tutorials/NotepadCodeLab/Notepadv2/Android.mk ...
including ./development/tutorials/NotepadCodeLab/Notepadv2Solution/Android.mk ...
including ./development/tutorials/NotepadCodeLab/Notepadv3/Android.mk ...
including ./development/tutorials/NotepadCodeLab/Notepadv3Solution/Android.mk ...
including ./development/tutorials/ReverseDebug/Android.mk ...
including ./device/asus/deb/dumpstate/Android.mk ...
including ./device/asus/deb/recovery/Android.mk ...
including ./device/asus/deb/self-extractors/Android.mk ...
including ./device/asus/flo/Android.mk ...
including ./device/asus/grouper/Android.mk ...
including ./device/asus/tilapia/recovery/Android.mk ...
including ./device/asus/tilapia/self-extractors/Android.mk ...
including ./device/generic/goldfish/audio/Android.mk ...
including ./device/generic/goldfish/camera/Android.mk ...
including ./device/generic/goldfish/gps/Android.mk ...
including ./device/generic/goldfish/lights/Android.mk ...
including ./device/generic/goldfish/opengl/Android.mk ...
including ./device/generic/goldfish/power/Android.mk ...
including ./device/generic/goldfish/qemu-props/Android.mk ...
including ./device/generic/goldfish/qemud/Android.mk ...
including ./device/generic/goldfish/sensors/Android.mk ...
including ./device/google/accessory/arduino/Android.mk ...
including ./device/google/accessory/demokit/Android.mk ...
including ./device/hardkernel/common/Android.mk ...
including ./device/hardkernel/odroidc/fw_env/Android.mk ...
including ./device/lge/hammerhead/Android.mk ...
including ./device/lge/mako/Android.mk ...
including ./device/sample/Android.mk ...
including ./device/samsung/manta/Android.mk ...
including ./docs/source.android.com/Android.mk ...
including ./external/aac/Android.mk ...
including ./external/alsa-lib/Android.mk ...
including ./external/alsa-utils/Android.mk ...
including ./external/android-clat/Android.mk ...
including ./external/android-mock/Android.mk ...
including ./external/ant-glob/Android.mk ...
including ./external/antlr/Android.mk ...
including ./external/apache-harmony/Android.mk ...
including ./external/apache-http/Android.mk ...
including ./external/apache-xml/Android.mk ...
including ./external/bison/Android.mk ...
including ./external/blktrace/Android.mk ...
including ./external/bluetooth/bluedroid/Android.mk ...
including ./external/bouncycastle/Android.mk ...
including ./external/bsdiff/Android.mk ...
including ./external/busybox/Android.mk ...
including ./external/bzip2/Android.mk ...
including ./external/ceres-solver/Android.mk ...
including ./external/checkpolicy/Android.mk ...
including ./external/chromium-libpac/Android.mk ...
including ./external/chromium/Android.mk ...
including ./external/chromium_org/Android.mk ...
including ./external/clang/Android.mk ...
including ./external/compiler-rt/Android.mk ...
including ./external/curl/Android.mk ...
including ./external/dexmaker/Android.mk ...
including ./external/dhcpcd/Android.mk ...
including ./external/dnsmasq/Android.mk ...
including ./external/doclava/Android.mk ...
including ./external/droiddriver/Android.mk ...
including ./external/dropbear/Android.mk ...
including ./external/e2fsprogs/Android.mk ...
including ./external/easymock/Android.mk ...
including ./external/eclipse-windowbuilder/propertysheet/Android.mk ...
including ./external/eigen/Android.mk ...
including ./external/elfutils/Android.mk ...
including ./external/embunit/Android.mk ...
including ./external/emma/Android.mk ...
including ./external/ethtool/Android.mk ...
including ./external/exfat/Android.mk ...
including ./external/expat/Android.mk ...
including ./external/eyes-free/Android.mk ...
including ./external/fdlibm/Android.mk ...
including ./external/ffmpeg/Android.mk ...
including ./external/flac/Android.mk ...
including ./external/freetype/Android.mk ...
including ./external/fsck_msdos/Android.mk ...
including ./external/fuse/lib/Android.mk ...
including ./external/ganymed-ssh2/Android.mk ...
including ./external/gcc-demangle/Android.mk ...
including ./external/genext2fs/Android.mk ...
including ./external/giflib/Android.mk ...
including ./external/google-diff-match-patch/Android.mk ...
including ./external/grub/Android.mk ...
including ./external/gtest/Android.mk ...
including ./external/guava/Android.mk ...
including ./external/hamcrest/Android.mk ...
including ./external/harfbuzz/Android.mk ...
including ./external/harfbuzz_ng/Android.mk ...
including ./external/hyphenation/Android.mk ...
including ./external/icu4c/Android.mk ...
including ./external/iproute2/Android.mk ...
including ./external/ipsec-tools/Android.mk ...
including ./external/iptables/Android.mk ...
including ./external/iputils/Android.mk ...
including ./external/javasqlite/Android.mk ...
including ./external/javassist/Android.mk ...
including ./external/jdiff/Android.mk ...
including ./external/jhead/Android.mk ...
including ./external/jmdns/Android.mk ...
including ./external/jmonkeyengine/Android.mk ...
including ./external/jpeg/Android.mk ...
including ./external/jsilver/Android.mk ...
including ./external/jsr305/Android.mk ...
including ./external/junit/Android.mk ...
including ./external/koush/Superuser/Android.mk ...
including ./external/libcap-ng/Android.mk ...
including ./external/libffi/Android.mk ...
including ./external/libgsm/Android.mk ...
including ./external/liblzf/Android.mk ...
including ./external/libnfc-nci/Android.mk ...
including ./external/libnfc-nxp/Android.mk ...
including ./external/libnl-headers/Android.mk ...
including ./external/libogg/Android.mk ...
including ./external/libpcap/Android.mk ...
including ./external/libpng/Android.mk ...
including ./external/libselinux/Android.mk ...
including ./external/libsepol/Android.mk ...
including ./external/libusb/libusb/Android.mk ...
including ./external/libvorbis/Android.mk ...
including ./external/libvpx/Android.mk ...
including ./external/libxml2/Android.mk ...
including ./external/libxslt/Android.mk ...
including ./external/libyuv/Android.mk ...
including ./external/libzvbi/Android.mk ...
including ./external/linux-tools-perf/Android.mk ...
including ./external/littlemock/Android.mk ...
including ./external/llvm/Android.mk ...
including ./external/marisa-trie/Android.mk ...
including ./external/markdown/Android.mk ...
including ./external/mdnsresponder/Android.mk ...
including ./external/mesa3d/Android.mk ...
including ./external/mksh/Android.mk ...
including ./external/mockito/Android.mk ...
including ./external/mockwebserver/Android.mk ...
including ./external/mp4parser/Android.mk ...
including ./external/mtpd/Android.mk ...
including ./external/naver-fonts/Android.mk ...
including ./external/netcat/Android.mk ...
including ./external/netperf/Android.mk ...
including ./external/neven/Android.mk ...
including ./external/nist-pkits/Android.mk ...
including ./external/noto-fonts/Android.mk ...
including ./external/ntfs-3g/Android.mk ...
including ./external/oauth/core/src/main/java/Android.mk ...
including ./external/objenesis/Android.mk ...
including ./external/okhttp/Android.mk ...
including ./external/open-vcdiff/Android.mk ...
including ./external/opencv/Android.mk ...
including ./external/openfst/Android.mk ...
including ./external/openssh/Android.mk ...
including ./external/openssl/Android.mk ...
including ./external/oprofile/Android.mk ...
including ./external/pixman/Android.mk ...
including ./external/ppp/pppd/Android.mk ...
including ./external/pppoe/Android.mk ...
including ./external/protobuf/Android.mk ...
including ./external/qemu/Android.mk ...
including ./external/regex-re2/Android.mk ...
including ./external/remoteconf/Android.mk ...
including ./external/replicaisland/Android.mk ...
including ./external/robolectric/Android.mk ...
including ./external/safe-iop/Android.mk ...
including ./external/scrypt/Android.mk ...
including ./external/sepolicy/Android.mk ...
including ./external/sfntly/Android.mk ...
including ./external/sil-fonts/Android.mk ...
including ./external/skia/Android.mk ...
----------------ARCH_ARM_HAVE_NEON:
including ./external/smack/Android.mk ...
including ./external/smali/baksmali/Android.mk ...
including ./external/smali/deodexerant/Android.mk ...
including ./external/smali/smali/Android.mk ...
including ./external/sonivox/Android.mk ...
including ./external/speex/Android.mk ...
including ./external/sqlite/android/Android.mk ...
including ./external/sqlite/dist/Android.mk ...
including ./external/srec/Android.mk ...
including ./external/srtp/Android.mk ...
including ./external/stlport/Android.mk ...
including ./external/strace/Android.mk ...
including ./external/stressapptest/Android.mk ...
including ./external/svox/Android.mk ...
including ./external/tcpdump/Android.mk ...
including ./external/tinyalsa/Android.mk ...
including ./external/tinycompress/Android.mk ...
including ./external/tinyxml/Android.mk ...
including ./external/tinyxml2/Android.mk ...
including ./external/tremolo/Android.mk ...
including ./external/v8/Android.mk ...
including ./external/valgrind/Android.mk ...
including ./external/webp/Android.mk ...
including ./external/webrtc/Android.mk ...
including ./external/wpa_supplicant_8/Android.mk ...
including ./external/xmp_toolkit/Android.mk ...
including ./external/yaffs2/Android.mk ...
including ./external/zlib/Android.mk ...
including ./external/zxing/Android.mk ...
including ./frameworks/av/camera/Android.mk ...
including ./frameworks/av/cmds/screenrecord/Android.mk ...
including ./frameworks/av/cmds/stagefright/Android.mk ...
including ./frameworks/av/drm/common/Android.mk ...
including ./frameworks/av/drm/drmserver/Android.mk ...
including ./frameworks/av/drm/libdrmframework/Android.mk ...
including ./frameworks/av/drm/mediadrm/plugins/mock/Android.mk ...
including ./frameworks/av/libvideoeditor/Android.mk ...
including ./frameworks/av/media/common_time/Android.mk ...
including ./frameworks/av/media/libcpustats/Android.mk ...
including ./frameworks/av/media/libeffects/downmix/Android.mk ...
including ./frameworks/av/media/libeffects/factory/Android.mk ...
including ./frameworks/av/media/libeffects/loudness/Android.mk ...
including ./frameworks/av/media/libeffects/lvm/lib/Android.mk ...
including ./frameworks/av/media/libeffects/lvm/wrapper/Android.mk ...
including ./frameworks/av/media/libeffects/preprocessing/Android.mk ...
including ./frameworks/av/media/libeffects/proxy/Android.mk ...
including ./frameworks/av/media/libeffects/visualizer/Android.mk ...
including ./frameworks/av/media/libimageplayerservice/Android.mk ...
including ./frameworks/av/media/libmedia/Android.mk ...
including ./frameworks/av/media/libmedia_native/Android.mk ...
including ./frameworks/av/media/libmediaplayerservice/Android.mk ...
including ./frameworks/av/media/libnbaio/Android.mk ...
including ./frameworks/av/media/libstagefright/Android.mk ...
including ./frameworks/av/media/mediaserver/Android.mk ...
including ./frameworks/av/media/mtp/Android.mk ...
including ./frameworks/av/services/audioflinger/Android.mk ...
including ./frameworks/av/services/camera/libcameraservice/Android.mk ...
including ./frameworks/av/services/medialog/Android.mk ...
including ./frameworks/av/tools/resampler_tools/Android.mk ...
including ./frameworks/base/Android.mk ...
find: `src': Нет такого файла или каталога
including ./frameworks/compile/libbcc/Android.mk ...
including ./frameworks/compile/mclinker/Android.mk ...
including ./frameworks/compile/slang/Android.mk ...
including ./frameworks/ex/camera2/Android.mk ...
including ./frameworks/ex/carousel/Android.mk ...
including ./frameworks/ex/chips/Android.mk ...
including ./frameworks/ex/common/Android.mk ...
including ./frameworks/ex/variablespeed/Android.mk ...
including ./frameworks/ml/Android.mk ...
including ./frameworks/native/cmds/atrace/Android.mk ...
including ./frameworks/native/cmds/bugreport/Android.mk ...
including ./frameworks/native/cmds/dumpstate/Android.mk ...
including ./frameworks/native/cmds/dumpsys/Android.mk ...
including ./frameworks/native/cmds/flatland/Android.mk ...
including ./frameworks/native/cmds/installd/Android.mk ...
including ./frameworks/native/cmds/ip-up-vpn/Android.mk ...
including ./frameworks/native/cmds/rawbu/Android.mk ...
including ./frameworks/native/cmds/screenshot/Android.mk ...
including ./frameworks/native/cmds/service/Android.mk ...
including ./frameworks/native/cmds/servicemanager/Android.mk ...
including ./frameworks/native/libs/binder/Android.mk ...
including ./frameworks/native/libs/diskusage/Android.mk ...
including ./frameworks/native/libs/gui/Android.mk ...
including ./frameworks/native/libs/input/Android.mk ...
including ./frameworks/native/libs/ui/Android.mk ...
including ./frameworks/native/opengl/libagl/Android.mk ...
including ./frameworks/native/opengl/libs/Android.mk ...
including ./frameworks/native/opengl/tests/Android.mk ...
including ./frameworks/native/services/batteryservice/Android.mk ...
including ./frameworks/native/services/connectivitymanager/Android.mk ...
including ./frameworks/native/services/powermanager/Android.mk ...
including ./frameworks/native/services/sensorservice/Android.mk ...
including ./frameworks/native/services/surfaceflinger/Android.mk ...
including ./frameworks/native/services/systemwrite/Android.mk ...
including ./frameworks/opt/calendar/Android.mk ...
including ./frameworks/opt/colorpicker/Android.mk ...
including ./frameworks/opt/datetimepicker/Android.mk ...
including ./frameworks/opt/emoji/Android.mk ...
including ./frameworks/opt/inputmethodcommon/Android.mk ...
including ./frameworks/opt/mailcommon/Android.mk ...
including ./frameworks/opt/mms/Android.mk ...
including ./frameworks/opt/net/voip/Android.mk ...
including ./frameworks/opt/photoviewer/Android.mk ...
including ./frameworks/opt/telephony/Android.mk ...
including ./frameworks/opt/timezonepicker/Android.mk ...
including ./frameworks/opt/vcard/Android.mk ...
including ./frameworks/rs/Android.mk ...
including ./frameworks/support/tests/Android.mk ...
including ./frameworks/support/v13/Android.mk ...
including ./frameworks/support/v4/Android.mk ...
including ./frameworks/support/v7/appcompat/Android.mk ...
including ./frameworks/support/v7/gridlayout/Android.mk ...
including ./frameworks/support/v7/mediarouter/Android.mk ...
including ./frameworks/support/v8/renderscript/Android.mk ...
including ./frameworks/testing/Android.mk ...
including ./frameworks/uiautomator/Android.mk ...
including ./frameworks/volley/Android.mk ...
including ./frameworks/webview/Android.mk ...
including ./frameworks/wilhelm/src/Android.mk ...
including ./frameworks/wilhelm/tests/Android.mk ...
including ./hardware/akm/AK8975_FS/akmdfs/Android.mk ...
including ./hardware/akm/AK8975_FS/libsensors/Android.mk ...
including ./hardware/alsa_sound/Android.mk ...
including ./hardware/amlogic/audio/Android.mk ...
including ./hardware/amlogic/camera/Android.mk ...
including ./hardware/amlogic/gralloc/Android.mk ...
including ./hardware/amlogic/hwcomposer/Android.mk ...
including ./hardware/amlogic/libstagefrighthw/Android.mk ...
including ./hardware/amlogic/mali/driver/Android.mk ...
build/core/base_rules.mk:134: *** hardware/amlogic/mali/driver: MODULE.TARGET.ETC.egl.cfg already defined by device/generic/goldfish/opengl/system/egl.  Останов.
root@pavel-desktop:/home/pavel/odroid-c1#


that it is necessary to be done?

I guess you started build without "lunch" command it shows TARGET_PRODUCT=full on top of your log. Try to build again.
And if you do not need to flash your SD card for installation, you don't need to do make selfinstall. If you are capable to download built images with fastboot, just make command is good enough.
tobetter
 
Posts: 2085
Joined: Mon Feb 25, 2013 10:55 am
Location: Kitchener, ON, Canada
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1

Re: Installing Android from source

Unread postby Pavel_S » Mon Sep 21, 2015 4:21 pm

On the third time it turned out to create an image. Before assembly, I have replaced the file to your logo. But still loading logo NK. What else you need to replace the loading began with my logo?
Pavel_S
 
Posts: 28
Joined: Wed Sep 16, 2015 8:40 pm
languages_spoken: english
ODROIDs: odroid-c1

Re: Installing Android from source

Unread postby tobetter » Mon Sep 21, 2015 4:34 pm

Pavel_S wrote:On the third time it turned out to create an image. Before assembly, I have replaced the file to your logo. But still loading logo NK. What else you need to replace the loading began with my logo?

Do you need to replace LOGO with your private BMP file only?
Then you can simple download the file with fastboot. In C1, get into fastboot mode with fastboot command on U-boot. And attach USB cable with your desktop. Run fastboot flash logo <your logo.bmp> start to download and flash to your SD card.
tobetter
 
Posts: 2085
Joined: Mon Feb 25, 2013 10:55 am
Location: Kitchener, ON, Canada
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1

Re: Installing Android from source

Unread postby Pavel_S » Mon Sep 21, 2015 5:12 pm

I do not know how to go to fast boot :(
Pavel_S
 
Posts: 28
Joined: Wed Sep 16, 2015 8:40 pm
languages_spoken: english
ODROIDs: odroid-c1

Re: Installing Android from source

Unread postby tobetter » Mon Sep 21, 2015 5:17 pm

Pavel_S wrote:I do not know how to go to fast boot :(

When Android boot is completed, run reboot fastboot. Then your C1 will reboot and switch into fastboot mode in U-boot, not to start Android. Once you flash your logo, then you can reboot C1 to start Android again.
tobetter
 
Posts: 2085
Joined: Mon Feb 25, 2013 10:55 am
Location: Kitchener, ON, Canada
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1

Re: Installing Android from source

Unread postby Pavel_S » Mon Sep 21, 2015 8:24 pm

Thank you. But I need selfinstall with my logo, and I figured out how to change the logo when compiling selfinstall
Pavel_S
 
Posts: 28
Joined: Wed Sep 16, 2015 8:40 pm
languages_spoken: english
ODROIDs: odroid-c1

Re: Installing Android from source

Unread postby kevintd » Fri Nov 27, 2015 4:38 pm

i have a problem when make selfinstall
make: *** No rule to make target `selfinstall'. Stop.

anyone help me? please
kevintd
 
Posts: 11
Joined: Thu Nov 19, 2015 9:41 pm
languages_spoken: english

Re: Installing Android from source

Unread postby tobetter » Fri Nov 27, 2015 6:15 pm

kevintd wrote:i have a problem when make selfinstall
make: *** No rule to make target `selfinstall'. Stop.

anyone help me? please

What's the commands you tried before "make selfinstall"?
tobetter
 
Posts: 2085
Joined: Mon Feb 25, 2013 10:55 am
Location: Kitchener, ON, Canada
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1

Re: Installing Android from source

Unread postby kevintd » Fri Nov 27, 2015 6:48 pm

hi tobetter, thanks to see you again,
i did it follow guideline normally,

Code: Select all
$ mkdir odroid-c1
$ cd odroid-c1
$ repo init -u https://github.com/hardkernel/android.git -b s805_4.4.2_master
$ repo sync

then
Code: Select all
$ source build/envsetup.sh
$ lunch odroidc-eng
$ make -j4

-> compile to img file successfully

and finallly
Code: Select all
$ make selfinstall


i also installed toolchain for Uboot and kernel.
My env:
Code: Select all
$ echo $PATH
/opt/toolchains/gcc-linaro-arm-linux-gnueabihf-4.9-2014.09_linux/bin/:/opt/toolchains/gcc-linaro-arm-none-eabi-4.8-2014.04_linux/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/jvm/jdk1.6.0_45/jre/bin


Thank u
kevintd
 
Posts: 11
Joined: Thu Nov 19, 2015 9:41 pm
languages_spoken: english

Re: Installing Android from source

Unread postby tobetter » Fri Nov 27, 2015 7:16 pm

kevintd wrote:hi tobetter, thanks to see you again,
i did it follow guideline normally,

Code: Select all
$ mkdir odroid-c1
$ cd odroid-c1
$ repo init -u https://github.com/hardkernel/android.git -b s805_4.4.2_master
$ repo sync

then
Code: Select all
$ source build/envsetup.sh
$ lunch odroidc-eng
$ make -j4

-> compile to img file successfully

and finallly
Code: Select all
$ make selfinstall


i also installed toolchain for Uboot and kernel.
My env:
Code: Select all
$ echo $PATH
/opt/toolchains/gcc-linaro-arm-linux-gnueabihf-4.9-2014.09_linux/bin/:/opt/toolchains/gcc-linaro-arm-none-eabi-4.8-2014.04_linux/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/jvm/jdk1.6.0_45/jre/bin


Thank u

Weird, it should go flawlessly if you did the commands.
Why don't you try as following?
Code: Select all
$ source build/envsetup.sh
$ lunch odroidc-eng
$ make -j4 selfinstall
tobetter
 
Posts: 2085
Joined: Mon Feb 25, 2013 10:55 am
Location: Kitchener, ON, Canada
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1

Re: Installing Android from source

Unread postby kevintd » Sat Nov 28, 2015 2:59 pm

Great, i used your command, and now all works.
Thank you so much, tobetter.
kevintd
 
Posts: 11
Joined: Thu Nov 19, 2015 9:41 pm
languages_spoken: english

Re: Installing Android from source

Unread postby tobetter » Sat Nov 28, 2015 3:29 pm

kevintd wrote:Great, i used your command, and now all works.
Thank you so much, tobetter.

Good fo you! Little bit weird why it didn't work with previous command, but anyhow you have working command. :)
tobetter
 
Posts: 2085
Joined: Mon Feb 25, 2013 10:55 am
Location: Kitchener, ON, Canada
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1

Re: Installing Android from source

Unread postby Letov » Tue May 03, 2016 1:48 am

Hello all!

I am trying to make custom Android 4.4.2 on C1 from Hardkernel`s sources and I want add some applications to preinstall. Who knows, how this can be done?

I found that preinstall .apk stored in /device/hardkernel/proprietary/apk/
Also I found that all of them mentioned in /device/hardkernel/proprietary/proprietary.mk

Also I found script (/device/hardkernel/odroidc/preinstall.sh), which install apk from something "/cache", but if I think correctly, this script works in time prepare of android.

All of this i found by reading makefiles and exploring source tree and I suppose that can be another way.

Thanks in advance.

P.S. Please, sorry for my english.
Letov
 
Posts: 2
Joined: Tue May 03, 2016 12:06 am
languages_spoken: english, russian
ODROIDs: C1

Next

Return to Android

Who is online

Users browsing this forum: No registered users and 2 guests