Ubuntu touch for xt1064? - Ubuntu Touch Q&A, Help & Troubleshooting
Hey guys! I have a Motorola xt1064 and I would love to try Ubuntu touch, is there a port for it or could someone port for me? xD thanks in advance!
Sent from my XT1064 using XDA Free mobile app
EDIT: WRONG DEVICE!
Me too! Right now I'm actually trying to port it now using the official porting guide, However I am having some trouble When I run
Code:
make -j4
I get the error:
Code:
make: *** No rule to make target '/home/peter/phablet2/out/target/product/surnia/obj/STATIC_LIBRARIES/libmake_f2fs_intermediates/export_includes', needed by '/home/peter/phablet2/out/target/product/surnia/obj/EXECUTABLES/recovery_intermediates/import_includes'. Stop.
make: *** Waiting for unfinished jobs....
hello_there_everyone said:
EDIT: WRONG DEVICE! WHERE'S THE DELETE BUTTON!
Me too! Right now I'm actually trying to port it now using the official porting guide, However I am having some trouble When I run
Code:
make -j4
I get the error:
Code:
make: *** No rule to make target '/home/peter/phablet2/out/target/product/surnia/obj/STATIC_LIBRARIES/libmake_f2fs_intermediates/export_includes', needed by '/home/peter/phablet2/out/target/product/surnia/obj/EXECUTABLES/recovery_intermediates/import_includes'. Stop.
make: *** Waiting for unfinished jobs....
Click to expand...
Click to collapse
I have got this problem while trying to build Cm13, and I know how to solve it.
I will help you to solve this problem, but can you build for xt1521?
nguyenquangduc2000 said:
I have got this problem while trying to build Cm13, and I know how to solve it.
I will help you to solve this problem, but can you build for xt1521?
Click to expand...
Click to collapse
Yes I can help with building the xt1521, the builds are basically the same as the normal Moto e 2nd gen! Anyway, if you can help me with this problem I will be most pleased and then I can share my build on Github.
First you need download cyanogenmod tree, device specific code and extract proprietary blobs from your device . (You can follow this instruction https://wiki.cyanogenmod.org/w/Build_for_surnia ). After that, copy device, hardware and vendor folder from ~/android/system to ~/phablet
Then the most important thing is downloading vendor of motorola:
Code:
cd
sudo apt-get install svn
svn export [url]https://github.com/TheMuppets/proprietary_vendor_motorola/trunk/msm8916-common[/url]
svn export [url]https://github.com/TheMuppets/proprietary_vendor_motorola/trunk/surnia[/url]
You will see 2 folder named msm8916 and surnia in Home folder. Copy both 2 folder to phablet/vendor. It is enough for building. Goodluck
nguyenquangduc2000 said:
First you need download cyanogenmod tree, device specific code and extract proprietary blobs from your device . (You can follow this instruction
Code:
https://wiki.cyanogenmod.org/w/Build_for_surnia
). After that, copy device, hardware and vendor folder from ~/android/system to ~/phablet
Then the most important thing is downloading vendor of motorola:
Code:
cd
sudo apt-get install svn
svn export [https://github.com/TheMuppets/proprietary_vendor_motorola/trunk/msm8916-common
svn export https://github.com/TheMuppets/proprietary_vendor_motorola/trunk/surnia
You will see 2 folder named msm8916 and surnia in Home folder. Copy both 2 folder to phablet/vendor. It is enough for building. Goodluck
Click to expand...
Click to collapse
Hmm... After following your steps I now get a error when running
Code:
make recoveryimage
(As I forgot to do that before):
Code:
/home/peter/phablet2/kernel/motorola/msm8916/kernel/sched/core.c: In function 'cpu_cgroup_allow_attach':
/home/peter/phablet2/kernel/motorola/msm8916/kernel/sched/core.c:9713:18: error: invalid operands to binary != (have 'kuid_t' and 'kuid_t')
/home/peter/phablet2/kernel/motorola/msm8916/kernel/sched/core.c:9713:46: error: invalid operands to binary != (have 'kuid_t' and 'kuid_t')
/home/peter/phablet2/kernel/motorola/msm8916/scripts/Makefile.build:308: recipe for target 'kernel/sched/core.o' failed
Here is some info that may help:
Code:
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.4.2
TARGET_PRODUCT=full_surnia
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=generic
HOST_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.4.0-21-generic-x86_64-with-Ubuntu-16.04-xenial
HOST_BUILD_TYPE=release
BUILD_ID=KOT49H
OUT_DIR=/home/peter/phablet2/out
============================================
Thanks in advance for your help!
Make sure you have do
Code:
./extract-files.sh
And recheck your kernel folder. Go to ~/Android/system rerun
Code:
repo sync
source build/envsetup.sh
breakfast surnia
And copy kernel folder again
Have you done building system.img ?
nguyenquangduc2000 said:
Have you done building system.img ?
Click to expand...
Click to collapse
nguyenquangduc2000 said:
Make sure you have do
Code:
./extract-files.sh
And recheck your kernel folder. Go to ~/Android/system rerun
Code:
repo sync
source build/envsetup.sh
breakfast surnia
And copy kernel folder again
Click to expand...
Click to collapse
Unfortunately, after following your steps I still get the same error, however it could be because it was saying when extracting files
Code:
Remote object /system/[file name here] Doesn't exist
I will try again...
hello_there_everyone said:
Unfortunately, after following your steps I still get the same error, however it could be because it was saying when extracting files
Code:
Remote object /system/[file name here] Doesn't exist
I will try again...
Click to expand...
Click to collapse
I think @squid2 can help you !
Hmm... After downloading the kernel again it took 2 hours then produced this error
Code:
ake[1]: Leaving directory '/home/peter/phablet2/kernel/motorola/msm8916'
make -C kernel/motorola/msm8916 O=/home/peter/phablet2/out/target/product/surnia/obj/KERNEL_OBJ INSTALL_MOD_PATH=../../system ARCH=arm CROSS_COMPILE="/home/peter/phablet2/prebuilts/misc/linux-x86/ccache/ccache /home/peter/phablet2/prebuilts/gcc/linux-x86/arm/arm-eabi-4.7/bin/arm-eabi-" modules_install
make[1]: Entering directory '/home/peter/phablet2/kernel/motorola/msm8916'
INSTALL drivers/staging/prima/wlan.ko
DEPMOD 3.10.49
make[1]: Leaving directory '/home/peter/phablet2/kernel/motorola/msm8916'
mdpath=`find /home/peter/phablet2/out/target/product/surnia/system/lib/modules -type f -name modules.order`; if [ "$mdpath" != "" ];then mpath=`dirname $mdpath`; ko=`find $mpath/kernel -type f -name *.ko`; for i in $ko; do /home/peter/phablet2/prebuilts/gcc/linux-x86/arm/arm-eabi-4.7/bin/arm-eabi-strip --strip-unneeded $i; mv $i /home/peter/phablet2/out/target/product/surnia/system/lib/modules/; done; fi
mdpath=`find /home/peter/phablet2/out/target/product/surnia/system/lib/modules -type f -name modules.order`; if [ "$mdpath" != "" ];then mpath=`dirname $mdpath`; rm -rf $mpath; fi
mdpath=`find /home/peter/phablet2/out/target/product/surnia/system/lib/modules -type f -name modules.order`; if [ "$mdpath" != "" ];then mpath=`dirname $mdpath`; ko=`find $mpath/kernel -type f -name *.ko`; for i in $ko; do /home/peter/phablet2/prebuilts/gcc/linux-x86/arm/arm-eabi-4.7/bin/arm-eabi-strip --strip-unneeded $i; mv $i /home/peter/phablet2/out/target/product/surnia/system/lib/modules/; done; fi
mdpath=`find /home/peter/phablet2/out/target/product/surnia/system/lib/modules -type f -name modules.order`; if [ "$mdpath" != "" ];then mpath=`dirname $mdpath`; rm -rf $mpath; fi
target Prebuilt: (/home/peter/phablet2/out/target/product/surnia/kernel)
Target dt image: /home/peter/phablet2/out/target/product/surnia/dt.img
DTB combiner:
/home/peter/phablet2/out/host/linux-x86/bin/dtbTool: invalid option -- '2'
dtbTool [options] -o <output file> <input DTB path>
options:
--output-file/-o output file
--dtc-path/-p path to dtc
--page-size/-s page size in bytes
--verbose/-v verbose
--help/-h this help screen
device/motorola/surnia/mkbootimg.mk:9: recipe for target '/home/peter/phablet2/out/target/product/surnia/dt.img' failed
make: *** [/home/peter/phablet2/out/target/product/surnia/dt.img] Error 255
I feel like I'm close!
I think you can create dt.img independent with building Ubuntu. You can use
Code:
make dt.img
to build dt.img and then copy it to /home/peter/phablet2/out/target/product/surnia/
nguyenquangduc2000 said:
I think you can create dt.img independent with building Ubuntu. You can use
Code:
make dt.img
to build dt.img and then copy it to /home/peter/phablet2/out/target/product/surnia/
Click to expand...
Click to collapse
After running that code I now get this error:
Code:
build/core/base_rules.mk:529: warning: overriding recipe for target '/home/peter/phablet2/out/target/product/surnia/system/xbin/wget'
external/busybox/Android.mk:184: warning: ignoring old recipe for target '/home/peter/phablet2/out/target/product/surnia/system/xbin/wget'
build/core/Makefile:32: warning: overriding recipe for target '/home/peter/phablet2/out/target/product/surnia/system/etc/wifi/wpa_supplicant.conf'
build/core/base_rules.mk:529: warning: ignoring old recipe for target '/home/peter/phablet2/out/target/product/surnia/system/etc/wifi/wpa_supplicant.conf'
build/core/Makefile:32: warning: overriding recipe for target '/home/peter/phablet2/out/target/product/surnia/system/etc/apns-conf.xml'
build/core/base_rules.mk:529: warning: ignoring old recipe for target '/home/peter/phablet2/out/target/product/surnia/system/etc/apns-conf.xml'
PRODUCT_COPY_FILES device/motorola/surnia/audio/audio_effects.conf:system/etc/audio_effects.conf ignored.
build/core/Makefile:32: warning: overriding recipe for target '/home/peter/phablet2/out/target/product/surnia/system/bin/rild'
build/core/base_rules.mk:529: warning: ignoring old recipe for target '/home/peter/phablet2/out/target/product/surnia/system/bin/rild'
build/core/Makefile:32: warning: overriding recipe for target '/home/peter/phablet2/out/target/product/surnia/system/lib/libril.so'
build/core/base_rules.mk:529: warning: ignoring old recipe for target '/home/peter/phablet2/out/target/product/surnia/system/lib/libril.so'
No private recovery resources for TARGET_DEVICE surnia
device/motorola/surnia/mkbootimg.mk:16: warning: overriding recipe for target '/home/peter/phablet2/out/target/product/surnia/boot.img'
build/core/Makefile:489: warning: ignoring old recipe for target '/home/peter/phablet2/out/target/product/surnia/boot.img'
make: *** No rule to make target 'dt.img'. Stop.
I can feel we're nearly there...
hello_there_everyone said:
After running that code I now get this error:
Code:
build/core/base_rules.mk:529: warning: overriding recipe for target '/home/peter/phablet2/out/target/product/surnia/system/xbin/wget'
external/busybox/Android.mk:184: warning: ignoring old recipe for target '/home/peter/phablet2/out/target/product/surnia/system/xbin/wget'
build/core/Makefile:32: warning: overriding recipe for target '/home/peter/phablet2/out/target/product/surnia/system/etc/wifi/wpa_supplicant.conf'
build/core/base_rules.mk:529: warning: ignoring old recipe for target '/home/peter/phablet2/out/target/product/surnia/system/etc/wifi/wpa_supplicant.conf'
build/core/Makefile:32: warning: overriding recipe for target '/home/peter/phablet2/out/target/product/surnia/system/etc/apns-conf.xml'
build/core/base_rules.mk:529: warning: ignoring old recipe for target '/home/peter/phablet2/out/target/product/surnia/system/etc/apns-conf.xml'
PRODUCT_COPY_FILES device/motorola/surnia/audio/audio_effects.conf:system/etc/audio_effects.conf ignored.
build/core/Makefile:32: warning: overriding recipe for target '/home/peter/phablet2/out/target/product/surnia/system/bin/rild'
build/core/base_rules.mk:529: warning: ignoring old recipe for target '/home/peter/phablet2/out/target/product/surnia/system/bin/rild'
build/core/Makefile:32: warning: overriding recipe for target '/home/peter/phablet2/out/target/product/surnia/system/lib/libril.so'
build/core/base_rules.mk:529: warning: ignoring old recipe for target '/home/peter/phablet2/out/target/product/surnia/system/lib/libril.so'
No private recovery resources for TARGET_DEVICE surnia
device/motorola/surnia/mkbootimg.mk:16: warning: overriding recipe for target '/home/peter/phablet2/out/target/product/surnia/boot.img'
build/core/Makefile:489: warning: ignoring old recipe for target '/home/peter/phablet2/out/target/product/surnia/boot.img'
make: *** No rule to make target 'dt.img'. Stop.
I can feel we're nearly there...
Click to expand...
Click to collapse
Yes, we are near! https://drive.google.com/open?id=0B4uHuS2eIEMBZWRQRHljcXN5SGM
I do not know if dt.img of cm13 can work or not. But you can try it.
nguyenquangduc2000 said:
Yes, we are near! https://drive.google.com/open?id=0B4uHuS2eIEMBZWRQRHljcXN5SGM
I do not know if dt.img of cm13 can work or not. But you can try it.
Click to expand...
Click to collapse
Unfortunately it didn't work and I still get the same error...
hello_there_everyone said:
Unfortunately it didn't work and I still get the same error...
Click to expand...
Click to collapse
Uhm... Maybe you miss some thing in device and kernel folder. Rerun
Code:
repo sync
and try again.
Can you upload your source to Github? I will try to fix that problem
@hello_there_everyone
Have you finished building?
Related
Help, compile warnings
============================================ build/core/copy_headers.mk:15: warning: overriding commands for target `out/target/product/I7500/obj/include/libpv/getactualaacconfig.h' build/core/copy_headers.mk:15: warning: ignoring old commands for target `out/target/product/I7500/obj/include/libpv/getactualaacconfig.h' /bin/bash: line 0: cd: sdk/layoutopt/app/src/resources: No such file or directory build/core/Makefile:17: warning: overriding commands for target `out/target/product/I7500/system/etc/apns-conf.xml' build/core/Makefile:17: warning: ignoring old commands for target `out/target/product/I7500/system/etc/apns-conf.xml' javac 1.5.0_19 Ubuntu 10.4 Anyone know why this error happens, system.img is generated but when i put img on the emulator causes eternal android load, why this happen?
[Q] Building CM from source problem (lunch not found)
I'm trying to port CM10 to my Pipo M8 RK3066 tablet. I have followed alot of guides but I need some help: (I will edit the thread with all the problem I encounter). Kubuntu 12.10 x64 running on VM Here is what I did so far: Android-SDK is installed in /opt/... Code: $ mkdir -p ~/bin $ mkdir -p ~/android/system $ curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo $ chmod a+x ~/bin/repo export PATH=${PATH}:~/bin $ cd ~/android/system/ $ repo init -u git://github.com/CyanogenMod/android.git -b jellybean $ repo sync -j4 $ cd ~/android/system/vendor/cm $ ./get-prebuilts $ make -j4 otatools +Extract boot.img from running device with dump_image $ build/tools/device/mkvendor.sh pipo m8 /your/path/to/my/boot.img lunch was not found, fixed with: Code: $ . build/envsetup.sh New problem: Code: Construct recovery from boot mkdir -p /home/mexus/android/system/out/target/product/m8/obj/PACKAGING/recovery_patch_intermediates/ target Jar: bouncycastle (/home/mexus/android/system/out/target/common/obj/JAVA_LIBRARIES/bouncycastle_intermediates/javalib.jar) PATH=/home/mexus/android/system/out/host/linux-x86/bin:$PATH /home/mexus/android/system/out/host/linux-x86/bin/imgdiff /home/mexus/android/system/out/target/product/m8/boot.img /home/mexus/android/system/out/target/product/m8/recovery.img /home/mexus/android/system/out/target/product/m8/obj/PACKAGING/recovery_patch_intermediates/recovery_from_boot.p target SharedLib: libutils (/home/mexus/android/system/out/target/product/m8/obj/SHARED_LIBRARIES/libutils_intermediates/LINKED/libutils.so) [COLOR="Red"]Error: footer size 2130427508 != decompressed size 71179 failed to break apart source image[/COLOR] make: *** [/home/mexus/android/system/out/target/product/m8/obj/PACKAGING/recovery_patch_intermediates/recovery_from_boot.p] Error 1 make: *** Waiting for unfinished jobs.... '/home/mexus/android/system/out/target/common/obj/JAVA_LIBRARIES/bouncycastle_intermediates/classes.dex' as 'classes.dex'... [email protected]:~/android/system$
If it is asking you to install python then I would do so because python is one of the required packages for building Android. Make sure you use python version 2.6.x-2.7.x not python version 3 because it is not compatible with the current build system. Also can you post a log of the error message your getting? Sent from my SCH-I535 using xda premium
shimp208 said: If it is asking you to install python then I would do so because python is one of the required packages for building Android. Make sure you use python version 2.6.x-2.7.x not python version 3 because it is not compatible with the current build system. Also can you post a log of the error message your getting? Sent from my SCH-I535 using xda premium Click to expand... Click to collapse python is installed. I'm talking about python-lunch (it's nowhere mentioned in the guides)
mexusbg said: python is installed. I'm talking about python-lunch (it's nowhere mentioned in the guides) Click to expand... Click to collapse You should install it anyway. Sent with my Sonic Screwdriver
Wolf Pup said: You should install it anyway. Sent with my Sonic Screwdriver Click to expand... Click to collapse After python-lunch is installed: Code: mexu[email protected]:~/android/system$ build/tools/device/mkvendor.sh pipo m8 /home/mexus/boot.img Arguments: pipo m8 /home/mexus/boot.img Output will be in /home/mexus/android/system/device/pipo/m8 7908 blocks Done! Use the following command to set up your build environment: lunch full_m8-eng And use the follwowing command to build a recovery: . build/tools/device/makerecoveries.sh full_m8-eng [U][COLOR="Red"][email protected]:~/android/system$ lunch full_m8-eng No such file: full_m8-eng[/COLOR][/U] [email protected]:~/android/system$
lunch was not found, fixed with: Code: $ . build/envsetup.sh New problem: Code: Construct recovery from boot mkdir -p /home/mexus/android/system/out/target/product/m8/obj/PACKAGING/recovery_patch_intermediates/ target Jar: bouncycastle (/home/mexus/android/system/out/target/common/obj/JAVA_LIBRARIES/bouncycastle_intermediates/javalib.jar) PATH=/home/mexus/android/system/out/host/linux-x86/bin:$PATH /home/mexus/android/system/out/host/linux-x86/bin/imgdiff /home/mexus/android/system/out/target/product/m8/boot.img /home/mexus/android/system/out/target/product/m8/recovery.img /home/mexus/android/system/out/target/product/m8/obj/PACKAGING/recovery_patch_intermediates/recovery_from_boot.p target SharedLib: libutils (/home/mexus/android/system/out/target/product/m8/obj/SHARED_LIBRARIES/libutils_intermediates/LINKED/libutils.so) [COLOR="Red"]Error: footer size 2130427508 != decompressed size 71179 failed to break apart source image[/COLOR] make: *** [/home/mexus/android/system/out/target/product/m8/obj/PACKAGING/recovery_patch_intermediates/recovery_from_boot.p] Error 1 make: *** Waiting for unfinished jobs.... '/home/mexus/android/system/out/target/common/obj/JAVA_LIBRARIES/bouncycastle_intermediates/classes.dex' as 'classes.dex'... [email protected]:~/android/system$
mexusbg said: lunch was not found, fixed with: Code: $ . build/envsetup.sh New problem: Code: Construct recovery from boot mkdir -p /home/mexus/android/system/out/target/product/m8/obj/PACKAGING/recovery_patch_intermediates/ target Jar: bouncycastle (/home/mexus/android/system/out/target/common/obj/JAVA_LIBRARIES/bouncycastle_intermediates/javalib.jar) PATH=/home/mexus/android/system/out/host/linux-x86/bin:$PATH /home/mexus/android/system/out/host/linux-x86/bin/imgdiff /home/mexus/android/system/out/target/product/m8/boot.img /home/mexus/android/system/out/target/product/m8/recovery.img /home/mexus/android/system/out/target/product/m8/obj/PACKAGING/recovery_patch_intermediates/recovery_from_boot.p target SharedLib: libutils (/home/mexus/android/system/out/target/product/m8/obj/SHARED_LIBRARIES/libutils_intermediates/LINKED/libutils.so) [COLOR="Red"]Error: footer size 2130427508 != decompressed size 71179 failed to break apart source image[/COLOR] make: *** [/home/mexus/android/system/out/target/product/m8/obj/PACKAGING/recovery_patch_intermediates/recovery_from_boot.p] Error 1 make: *** Waiting for unfinished jobs.... '/home/mexus/android/system/out/target/common/obj/JAVA_LIBRARIES/bouncycastle_intermediates/classes.dex' as 'classes.dex'... [email protected]:~/android/system$ Click to expand... Click to collapse hi could you resolve above error if yes then how
Help with zImage kernel compilation
This is my first time trying to compile my own kernel, i am dealing some problems and need help i get these messages when executing the commang "make" CHK include/linux/version.h SYMLINK include/asm -> include/asm-arm make[1]: `include/asm-arm/mach-types.h' is up to date. CHK include/linux/utsrelease.h CC kernel/bounds.s CC scripts/mod/empty.o arm-linux-gnueabi-gcc: error trying to exec 'cc1': execvp: No such file or directory arm-linux-gnueabi-gcc: error trying to exec 'cc1make[1]: *** [kernel/bounds.s] Error 1 ': execvp: make: *** [prepare0] Error 2 make: No such file or directory *** Waiting for unfinished jobs....make[2]: *** [scripts/mod/empty.o] Error 1 make[1]: *** [scripts/mod] Error 2 make: *** [scripts] Error 2 i red quite many webpages and i follow this guides http://lanrat.com/how-to-compile-a-linux-kernel-for-android/ http://hertaville.com/2012/09/28/development-environment-raspberry-pi-cross-compiler/ i am running ubuntu 14.04 lts 64 bit. i am trying to compile kernel 2.6.32 for s3c6410. old chipset but even if brick it i do not care much any help ?
spkraul said: This is my first time trying to compile my own kernel, i am dealing some problems and need help i get these messages when executing the commang "make" CHK include/linux/version.h SYMLINK include/asm -> include/asm-arm make[1]: `include/asm-arm/mach-types.h' is up to date. CHK include/linux/utsrelease.h CC kernel/bounds.s CC scripts/mod/empty.o arm-linux-gnueabi-gcc: error trying to exec 'cc1': execvp: No such file or directory arm-linux-gnueabi-gcc: error trying to exec 'cc1make[1]: *** [kernel/bounds.s] Error 1 ': execvp: make: *** [prepare0] Error 2 make: No such file or directory *** Waiting for unfinished jobs....make[2]: *** [scripts/mod/empty.o] Error 1 make[1]: *** [scripts/mod] Error 2 make: *** [scripts] Error 2 i red quite many webpages and i follow this guides http://lanrat.com/how-to-compile-a-linux-kernel-for-android/ http://hertaville.com/2012/09/28/development-environment-raspberry-pi-cross-compiler/ i am running ubuntu 14.04 lts 64 bit. i am trying to compile kernel 2.6.32 for s3c6410. old chipset but even if brick it i do not care much any help ? Click to expand... Click to collapse Which toolchain and version of the toolchain are you using? I would recommend checking out this information on someone who ran into the same problem as you and how they fixed it. Let me know if you still have questions.
i execute <<cd linux>>, <<make mrproper>>, <<make V=1 all>> and i get the following messages [email protected]:~$ cd linux bash: cd: linux: No such file or directory [email protected]:~$ make mrproper make: *** No rule to make target `mrproper'. Stop. [email protected]:~$ cd /home/alex/o2droid/kern_2.6.32 [email protected]:~/o2droid/kern_2.6.32$ make prproper make: *** No rule to make target `prproper'. Stop. [email protected]:~/o2droid/kern_2.6.32$ make V=1 all set -e; : ' CHK include/linux/version.h'; mkdir -p include/linux/; (echo \#define LINUX_VERSION_CODE 132640; echo '#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))' < /home/alex/o2droid/kern_2.6.32/Makefile > include/linux/version.h.tmp; if [ -r include/linux/version.h ] && cmp -s include/linux/version.h include/linux/version.h.tmp; then rm -f include/linux/version.h.tmp; else : ' UPD include/linux/version.h'; mv -f include/linux/version.h.tmp include/linux/version.h; fi make -f scripts/Makefile.build obj=arch/arm/tools include/asm-arm/mach-types.h make[1]: `include/asm-arm/mach-types.h' is up to date. rm -f include/config/kernel.release echo 2.6.32.9-00163-g4c4becf-dirty > include/config/kernel.release set -e; : ' CHK include/linux/utsrelease.h'; mkdir -p include/linux/; if [ `echo -n "2.6.32.9-00163-g4c4becf-dirty" | wc -c ` -gt 64 ]; then echo '"2.6.32.9-00163-g4c4becf-dirty" exceeds 64 characters' >&2; exit 1; fi; (echo \#define UTS_RELEASE \"2.6.32.9-00163-g4c4becf-dirty\" < include/config/kernel.release > include/linux/utsrelease.h.tmp; if [ -r include/linux/utsrelease.h ] && cmp -s include/linux/utsrelease.h include/linux/utsrelease.h.tmp; then rm -f include/linux/utsrelease.h.tmp; else : ' UPD include/linux/utsrelease.h'; mv -f include/linux/utsrelease.h.tmp include/linux/utsrelease.h; fi set -e; if [ -L include/asm ]; then asmlink=`readlink include/asm | cut -d '-' -f 2`; if [ "$asmlink" != "arm" ]; then echo "ERROR: the symlink include/asm points to asm-$asmlink but asm-arm was expected"; echo " set ARCH or save .config and run 'make mrproper' to fix it"; exit 1; fi; test -e $asmlink || rm include/asm; elif [ -d include/asm ]; then echo "ERROR: include/asm is a directory but a symlink was expected"; exit 1; fi if [ ! -L include/asm ]; then : ' SYMLINK include/asm -> include/asm-arm'; if [ ! -d include/asm-arm ]; then mkdir -p include/asm-arm; fi; ln -fsn asm-arm include/asm; fi mkdir -p .tmp_versions ; rm -f .tmp_versions/* make -f scripts/Makefile.build obj=scripts/basic (cat /dev/null; ) > scripts/basic/modules.order make -f scripts/Makefile.build obj=. (cat /dev/null; ) > modules.order mkdir -p kernel/ /opt/cross/bin/arm-linux-gnueabi-gcc -Wp,-MD,kernel/.bounds.s.d -nostdinc -isystem include -Iinclude -I/home/alex/o2droid/kern_2.6.32/arch/arm/include -include include/linux/autoconf.h -D__KERNEL__ -mlittle-endian -Iarch/arm/mach-s3c6400/include -Iarch/arm/mach-s3c6410/include -Iarch/arm/plat-s3c64xx/include -Iarch/arm/plat-s3c/include -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -Os -mabi=aapcs-linux -mno-thumb-interwork -funwind-tables -msoft-float -Uarm -fomit-frame-pointer -g -O3 -marm -march=armv6zk -mfpu=vfp -mtune=arm1176jzf-s -mtune=arm1136j-s -mfloat-abi=softfp -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(bounds)" -D"KBUILD_MODNAME=KBUILD_STR(bounds)" -fverbose-asm -S -o kernel/bounds.s kernel/bounds.c arm-linux-gnueabi-gcc: error trying to exec 'cc1': execvp: No such file or directory make[1]: *** [kernel/bounds.s] Error 1 make: *** [prepare0] Error 2 i am using toolchain arm-eabi 4.6 i red the documentation i have nothing like <<cc1>> under usr/bin I don't have a /usr/local/libexec directory i installed anything about cc1 from package manager and still nothing changed. i did something wrong with <<make menuconfig>> or else ? i also follow this guide https://github.com/argentinos/o2droid/tree/i8000/kern_2.6.32 i use the wrong toolchain ?
spkraul said: i am using toolchain arm-eabi 4.6 i red the documentation i have nothing like <<cc1>> under usr/bin I don't have a /usr/local/libexec directory i installed anything about cc1 from package manager and still nothing changed. i did something wrong with <<make menuconfig>> or else ? i also follow this guide https://github.com/argentinos/o2droid/tree/i8000/kern_2.6.32 i use the wrong toolchain ? Click to expand... Click to collapse If you follow the guide in the repository that is meant for a pure Linux kernel, what def config under arch/arm/configs did you use? Try using a procedure similar to the following: Code: export TOP= [where you installed the toolchain or top of android AOSP code base] export PATH=$TOP/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/bin:$PATH (use corresponding arm-eabi bin path) export ARCH=arm export SUBARCH=arm export CROSS_COMPILE=arm-eabi- make NAMEOFDEVICE_defconfig make -jx (Where x is the number of jobs you want -j4 is a safe option)
i followed your commands and no result yet. same problems i checked this guide http://ubuntuforums.org/showthread.php?t=2213325 and got the following [email protected]:~$ arm-none-linux-gnueabi-gcc -print-prog-name=cc1 arm-none-linux-gnueabi-gcc: command not found [email protected]:~$ arm-linux-gnueabi-gcc -print-prog-name=cc1 /usr/lib/gcc-cross/arm-linux-gnueabi/4.7/cc1 [email protected]:~$ arm-linux-gnueabihf-gcc -print-prog-name=cc1 The program 'arm-linux-gnueabihf-gcc' is currently not installed. You can install it by typing: sudo apt-get install gcc-arm-linux-gnueabihf [email protected]:~$ dpkg -l | grep '\<gcc' ii gcc 4:4.8.2-1ubuntu6 amd64 GNU C compiler ii gcc-4.6 4.6.4-6ubuntu2 amd64 GNU C compiler ii gcc-4.6-base:amd64 4.6.4-6ubuntu2 amd64 GCC, the GNU Compiler Collection (base package) ii gcc-4.6-base:i386 4.6.4-6ubuntu2 i386 GCC, the GNU Compiler Collection (base package) ii gcc-4.6-multilib 4.6.4-6ubuntu2 amd64 GNU C compiler (multilib files) ii gcc-4.7-arm-linux-gnueabi 4.7.3-12ubuntu1cross1.85 amd64 GNU C compiler ii gcc-4.7-arm-linux-gnueabi-base 4.7.3-12ubuntu1cross1.85 amd64 GCC, the GNU Compiler Collection (base package) ii gcc-4.8 4.8.2-19ubuntu1 amd64 GNU C compiler ii gcc-4.8-arm-linux-gnueabihf-base 4.8.2-16ubuntu4cross0.11 amd64 GCC, the GNU Compiler Collection (base package) ii gcc-4.8-base:amd64 4.8.2-19ubuntu1 amd64 GCC, the GNU Compiler Collection (base package) ii gcc-4.8-base:i386 4.8.2-19ubuntu1 i386 GCC, the GNU Compiler Collection (base package) ii gcc-4.8-multilib 4.8.2-19ubuntu1 amd64 GNU C compiler (multilib files) ii gcc-4.9-base:amd64 4.9-20140406-0ubuntu1 amd64 GCC, the GNU Compiler Collection (base package) ii gcc-4.9-base:i386 4.9-20140406-0ubuntu1 i386 GCC, the GNU Compiler Collection (base package) ii gcc-arm-linux-gnueabi 4:4.7.2-1 amd64 The GNU C compiler for armel architecture ii gcc-multilib 4:4.8.2-1ubuntu6 amd64 GNU C compiler (multilib files) i am using omniaII_defconfig
upd... i am searching and testing possible solutions, but nothing is working. i stuck on this mistake. cc1 exists on my pc and is executable. i also tried another toolchain 4.4.3 which is considered more compatible, but stuck on the same error again. really driving me crazy. i have too much job to do on the kernel improvement, but if i will never be able to compile it it doasn't worth trying. i appreciate your help. any ideas ?
spkraul said: upd... i am searching and testing possible solutions, but nothing is working. i stuck on this mistake. cc1 exists on my pc and is executable. i also tried another toolchain 4.4.3 which is considered more compatible, but stuck on the same error again. really driving me crazy. i have too much job to do on the kernel improvement, but if i will never be able to compile it it doasn't worth trying. i appreciate your help. any ideas ? Click to expand... Click to collapse After looking more into it I noticed there is a script included in the files for building the kernel called make_kernel, you should be able to build the kernel running the script, "./make_kernel -k" with the -k option being defined by the script to make the kernel. You may have to tweak the script to suite your build environment.
thanks a lot. i did run the script many times, with many ways. i see some compilation being done, but i always after a few minutes i end with the message "Error ... kernel not compiled!" i guess some code errors cause it, but how to locate them and fix them under millions of programming lines ? i red that before being able to compile a kernel and before this kernle is funtional you must fix many errors and deal many problems, but i am not sure how difficult this is going to be in my case. i always get messages of this type " warning: variable ‘*’ set but not used [-Wunused-but-set-variable] " you follow any specific procedure to deal with these errors ?
spkraul said: thanks a lot. i did run the script many times, with many ways. i see some compilation being done, but i always after a few minutes i end with the message "Error ... kernel not compiled!" i guess some code errors cause it, but how to locate them and fix them under millions of programming lines ? i red that before being able to compile a kernel and before this kernle is funtional you must fix many errors and deal many problems, but i am not sure how difficult this is going to be in my case. i always get messages of this type " warning: variable ‘*’ set but not used [-Wunused-but-set-variable] " you follow any specific procedure to deal with these errors ? Click to expand... Click to collapse In the error messages you will see what file the error is in and which line the error occurs going to that file and line(s) the error occurred at is the best place to start. Instead of using the script take the commands in the script and do them manually in the order the script would execute them in, until you get an error you can troubleshoot or it compiles successfully.
AOSP cannot find libmincrypt when building recovery binary
I am compiling Marshmallow 6.0.1 release. I run: Code: $ . build/envsetup.sh $ lunch # select arm_64 eng $ make dist Everything works fine until it tries to build the recovery binary: Code: target StaticExecutable: recovery (out/target/product/generic_arm64/obj/EXECUTABLES/recovery_intermediates/LINKED/recovery) out/target/product/generic_arm64/obj/STATIC_LIBRARIES/libminadbd_intermediates/libminadbd.a(adb_auth_client.o): In function `adb_auth_verify(unsigned char*, unsigned char*, int)': /home/tyler/AOSP/system/core/adb/adb_auth_client.cpp:154: undefined reference to `RSA_verify' out/target/product/generic_arm64/obj/STATIC_LIBRARIES/libfusesideload_intermediates/libfusesideload.a(fuse_sideload.o): In function `fetch_block': /home/tyler/AOSP/bootable/recovery/fuse_sideload.c:276: undefined reference to `SHA256_hash' collect2: error: ld returned 1 exit status build/core/executable_internal.mk:75: recipe for target 'out/target/product/generic_arm64/obj/EXECUTABLES/recovery_intermediates/LINKED/recovery' failed make: *** [out/target/product/generic_arm64/obj/EXECUTABLES/recovery_intermediates/LINKED/recovery] Error 1 I tried searching for it using Code: $ find . | grep libmincrypt and I found that I only have the static library built (libmincrypt.a). Do I need the shared lib version of libmincrypt for the Android.mk in $AOSP/bootable/recovery to work? If so, how can I rebuild and get the shared lib?
[HELP] Kernel issues when trying to compile LineageOS
So, I am trying to port LineageOS 15.1 to the Galaxy S8, but I keep getting stuck here, receiving some weird errors. I am quite new to this whole world so I have no understanding of the errors. Can someone help me or point me into the direction of fixing this? Code: [ 0% 34/88264] Building Kernel Config FAILED: /home/george_gica14/lineage/out/target/product/dreamlte/obj/KERNEL_OBJ/.config /bin/bash -c "(make -j8 CFLAGS_MODULE=\"-fno-pic\" -C kernel/samsung/universal8895 O=/home/george_gica14/lineage/out/target/product/dreamlte/obj/KERNEL_OBJ ARCH=arm64 CROSS_COMPILE=\" aarch64-linux-a ndroid-\" VARIANT_DEFCONFIG= SELINUX_DEFCONFIG= exynos8895-dreamlte_defconfig ) && (if [ ! -z \"\" ]; then echo \"Overriding kernel config with ''\"; echo >> /home/george_gica14/lineage/out/target/product/dreamlte/obj/KERNEL_OBJ/.config; make -j8 -C kernel/samsung/universal8895 O=/home/george_gica14/lineage/out/target/product/dreaml te/obj/KERNEL_OBJ ARCH=arm64 CROSS_COMPILE=\" aarch64-linux-android-\" oldconfig; fi ) && (make -j8 -C kernel/samsung/universal8895 O=/home/george_gica14/lineage/out/target/product/dreamlte/obj/KERN EL_OBJ ARCH=arm64 CROSS_COMPILE=\" aarch64-linux-android-\" savedefconfig ) && (if [ ! -z \"\" ]; then echo \"Using additional config ''\"; kernel/samsung/u niversal8895/scripts/kconfig/merge_config.sh -m -O /home/george_gica14/lineage/out/target/product/dreamlte/obj/KERNEL_OBJ /home/george_gica14/lineage/out/target/product/dreamlte/obj/KERNEL_OBJ/.config kernel/samsung/universal8895/arch/arm64/configs/; make -j8 -C kernel/samsung/universal8895 O=/home/george_gica14/lineage/out/target/product/dreamlte/obj/KERNEL_OBJ ARCH=arm64 CRO SS_COMPILE=\" aarch64-linux-android-\" KCONFIG_ALLCONFIG=/home/george_gica14/lineage/out/target/product/dreamlte/obj/KERNEL_OBJ/.config alldefconfig; fi )" make: Entering directory '/home/george_gica14/lineage/kernel/samsung/universal8895' make[1]: Entering directory '/home/george_gica14/lineage/out/target/product/dreamlte/obj/KERNEL_OBJ' ./scripts/fetch-latest-wireguard.sh: line 5: .wireguard-fetch-lock: Permission denied ./scripts/fetch-latest-wireguard.sh: line 5: .wireguard-fetch-lock: Permission denied GEN ./Makefile ./scripts/fetch-latest-wireguard.sh: line 5: .wireguard-fetch-lock: Permission denied Kconfig:15:warning: environment variable ANDROID_MAJOR_VERSION undefined net/Kconfig:83: can't open file "net/wireguard/Kconfig" /home/george_gica14/lineage/kernel/samsung/universal8895/scripts/kconfig/Makefile:110: recipe for target 'exynos8895-dreamlte_defconfig' failed make[2]: *** [exynos8895-dreamlte_defconfig] Error 1 /home/george_gica14/lineage/kernel/samsung/universal8895/Makefile:592: recipe for target 'exynos8895-dreamlte_defconfig' failed make[1]: *** [exynos8895-dreamlte_defconfig] Error 2 make[1]: Leaving directory '/home/george_gica14/lineage/out/target/product/dreamlte/obj/KERNEL_OBJ' Makefile:152: recipe for target 'sub-make' failed make: *** [sub-make] Error 2 make: Leaving directory '/home/george_gica14/lineage/kernel/samsung/universal8895' [ 0% 43/88264] target thumb C++: libv8src_32 <= external/v8/src/asmjs/asm-typer.cc ninja: build stopped: subcommand failed. 23:09:51 ninja failed with: exit status 1 #### failed to build some targets (01:20 (mm:ss)) #### [email protected]:~/lineage$