Ubuntu touch for moto g2014 - Ubuntu Touch Development and Hacking

Anyone successfully ported ?
sent from moto g2014 with cm13

I'm working on it

help me?
Linux Lounge said:
I'm working on it
Click to expand...
Click to collapse
please help me !
i'm trying to port an lenovo vibe k5 (A6020I36) to ubuntu touch and i'm geting trouble with the variable of the compiler.
can you help me?
i found the source code from the system direct from manufactor and now i'm try to compile the kernel to be able to use ubuntu touch all 415 variable are now ready to ubuntu,but show msg of error
this is the msg:
/home/anderson/Downloads/lenovo_vibe_k5_osc_201604/kernel/arch/x86/Makefile:111: CONFIG_X86_X32 enabled but no binutils support
make[2]: Nada a ser feito para `all'.
make[2]: Nada a ser feito para `relocs'.
Using /home/anderson/Downloads/lenovo_vibe_k5_osc_201604/kernel as source for kernel
GEN /home/anderson/Downloads/lenovo_vibe_k5_osc_201604/kernel/out/Makefile
CHK include/generated/uapi/linux/version.h
CHK include/generated/utsrelease.h
CC kernel/bounds.s
aarch64-linux-android-gcc: No such file or directory
Is your PATH set correctly?
make[2]: ** [kernel/bounds.s] Erro 2
make[1]: ** [prepare0] Erro 2
make: ** [sub-make] Erro 2

adres21858 said:
please help me !
i'm trying to port an lenovo vibe k5 (A6020I36) to ubuntu touch and i'm geting trouble with the variable of the compiler.
can you help me?
i found the source code from the system direct from manufactor and now i'm try to compile the kernel to be able to use ubuntu touch all 415 variable are now ready to ubuntu,but show msg of error
this is the msg:
/home/anderson/Downloads/lenovo_vibe_k5_osc_201604/kernel/arch/x86/Makefile:111: CONFIG_X86_X32 enabled but no binutils support
make[2]: Nada a ser feito para `all'.
make[2]: Nada a ser feito para `relocs'.
Using /home/anderson/Downloads/lenovo_vibe_k5_osc_201604/kernel as source for kernel
GEN /home/anderson/Downloads/lenovo_vibe_k5_osc_201604/kernel/out/Makefile
CHK include/generated/uapi/linux/version.h
CHK include/generated/utsrelease.h
CC kernel/bounds.s
aarch64-linux-android-gcc: No such file or directory
Is your PATH set correctly?
make[2]: ** [kernel/bounds.s] Erro 2
make[1]: ** [prepare0] Erro 2
make: ** [sub-make] Erro 2
Click to expand...
Click to collapse
same pb resolved by using gcc from cm14.1
export PATH=$PATH:/home/xxxxxx/android/system/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin/

Related

[Sprint] Kernel Development - OC

Okay I've been reading and reading and finally got all the tools to build a kernel from the source that Samsung had on their site for DJ30. Since these are very identical to the other galaxy s devices they should overclock decently. Will report with more progress later.
-------------------------
Status - Downloaded source and repo and building configuration to make kernel.
Sent from my SPH-P100 using XDA App
Interested in your development... my Sprint Tab arrives tomorrow, decided to give it a 30 day try before I try the Nook Color.
Doesn't appear to be a lot of development yet, hoping to see that change.
One question, is the Zroot method still the preferred method to rooting the device?
I used superoneclick 1.5.5
Sent from my SPH-P100 using XDA App
------------------------------------------------------------
Trying to compile a test kernel to make sure everything is going to work correctly and running into this crazy error if any of the dev's can chime in please do I already installed all the repo's and linked them.
[email protected]:~/.Tab_Kernel_sources/Kernel$ make ARCH=arm CROSS_COMPILE=../home/max/GalaxyTab/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/
make: ../home/max/GalaxyTab/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/gcc: Command not found
CHK include/linux/version.h
make[1]: `include/asm-arm/mach-types.h' is up to date.
CHK include/linux/utsrelease.h
SYMLINK include/asm -> include/asm-arm
CC kernel/bounds.s
/bin/sh: ../home/max/GalaxyTab/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/gcc: not found
make[1]: *** [kernel/bounds.s] Error 127
make: *** [prepare0] Error 2
seems like you're missing (a part of) the gcc compiler... the part to compile for ARM it would seem...
maxjivi05 said:
I used superoneclick 1.5.5
Sent from my SPH-P100 using XDA App
------------------------------------------------------------
Trying to compile a test kernel to make sure everything is going to work correctly and running into this crazy error if any of the dev's can chime in please do I already installed all the repo's and linked them.
[email protected]:~/.Tab_Kernel_sources/Kernel$ make ARCH=arm CROSS_COMPILE=../home/max/GalaxyTab/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/
make: ../home/max/GalaxyTab/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/gcc: Command not found
CHK include/linux/version.h
make[1]: `include/asm-arm/mach-types.h' is up to date.
CHK include/linux/utsrelease.h
SYMLINK include/asm -> include/asm-arm
CC kernel/bounds.s
/bin/sh: ../home/max/GalaxyTab/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/gcc: not found
make[1]: *** [kernel/bounds.s] Error 127
make: *** [prepare0] Error 2
Click to expand...
Click to collapse
Made it a bit farther, got that error fixed had to install lsb along with a few other things now I'm sitting on this error. Any and all help is greatly appreciated! We can get this working!
------------------------------------
[email protected]:~/.Tab_Kernel_sources/Kernel$ make
CHK include/linux/version.h
make[1]: `include/asm-arm/mach-types.h' is up to date.
CHK include/linux/utsrelease.h
SYMLINK include/asm -> include/asm-arm
CC kernel/bounds.s
GEN include/linux/bounds.h
CC arch/arm/kernel/asm-offsets.s
GEN include/asm/asm-offsets.h
CALL scripts/checksyscalls.sh
HOSTCC scripts/genksyms/genksyms.o
SHIPPED scripts/genksyms/lex.c
SHIPPED scripts/genksyms/parse.h
SHIPPED scripts/genksyms/keywords.c
HOSTCC scripts/genksyms/lex.o
SHIPPED scripts/genksyms/parse.c
HOSTCC scripts/genksyms/parse.o
HOSTLD scripts/genksyms/genksyms
CC scripts/mod/empty.o
HOSTCC scripts/mod/mk_elfconfig
MKELF scripts/mod/elfconfig.h
HOSTCC scripts/mod/file2alias.o
HOSTCC scripts/mod/modpost.o
scripts/mod/modpost.c: In function ‘get_markers’:
scripts/mod/modpost.c:1562: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result
scripts/mod/modpost.c: In function ‘add_marker’:
scripts/mod/modpost.c:1982: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result
HOSTCC scripts/mod/sumversion.o
HOSTLD scripts/mod/modpost
HOSTCC scripts/selinux/mdp/mdp
HOSTCC scripts/kallsyms
scripts/kallsyms.c: In function ‘read_symbol’:
scripts/kallsyms.c:112: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result
HOSTCC scripts/conmakehash
CC init/main.o
In file included from init/main.c:85:
include/linux/kernel_sec_common.h:7:22: error: mach/map.h: No such file or directory
include/linux/kernel_sec_common.h:8:29: error: mach/regs-clock.h: No such file or directory
make[1]: *** [init/main.o] Error 1
make: *** [init] Error 2
[email protected]:~/.Tab_Kernel_sources/Kernel$ make ARCH=arm CROSS_COMPILE=../home/max/GalaxyTab/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/
make: ../home/max/GalaxyTab/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/gcc: Command not found
CHK include/linux/version.h
make[1]: `include/asm-arm/mach-types.h' is up to date.
CHK include/linux/utsrelease.h
SYMLINK include/asm -> include/asm-arm
CC kernel/bounds.s
/bin/sh: ../home/max/GalaxyTab/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/gcc: not found
make[1]: *** [kernel/bounds.s] Error 127
make: *** [prepare0] Error 2
I'm not a dev, but I sure can test on my sprint tablet
I have a Linux blade at home, what are the tools necessary to compile from source, and what repo are you using for the sprint tab drivers and such?
Simple solution here is that you are missing GCC or have an incorrect version installed. I wrote a how to compile thread in the Streak section a few months bak ill dig it up and post it here.
try
apt-get install build-essential
Already installed build essential.
Sent from my SPH-P100 using XDA App
The readme file tells you where to get the compiler from, decompress it to /opt/toolchain.
And this thread has pretty good explanations on how to build the kernel http://forum.xda-developers.com/showthread.php?t=837170
A little farther int he process of getting this sucker compiled... Got this error now... *I forgot how much of a pain it was to go through setting things up perfectly! lol.. any and all help is greatly appreciated!
-------------------------------------
make[1]: /opt/toolchains/arm-2009q3/bin/arm-none-linux-gnueabi-gcc: Command not found
cp: cannot stat `/home/max/.Tab_Kernel_sources/Kernel/modules.order': No such file or directory
make[1]: *** [_modinst_] Error 1
make: *** [sub-make] Error 2
[email protected]:~/.Tab_Kernel_sources/Kernel$
This is the most disappointing thread ever.
maxjivi05 said:
A little farther int he process of getting this sucker compiled... Got this error now... *I forgot how much of a pain it was to go through setting things up perfectly! lol.. any and all help is greatly appreciated!
-------------------------------------
make[1]: /opt/toolchains/arm-2009q3/bin/arm-none-linux-gnueabi-gcc: Command not found
cp: cannot stat `/home/max/.Tab_Kernel_sources/Kernel/modules.order': No such file or directory
make[1]: *** [_modinst_] Error 1
make: *** [sub-make] Error 2
[email protected]:~/.Tab_Kernel_sources/Kernel$
Click to expand...
Click to collapse
It's pretty obvious from that line that it can't find that particular binary in your toolchain directory...
I followed the instructions in the readme file and compiled the kernel already, it was extremely simple. You ran the build_kernel.sh file right... after editing it?
Yes I did and its been 5 years since I've done anything with Linux so its a rather learning curve to get anything done. With lack of development on tab thought it would be a good place to start. I've done normal kernel build before but nothing for a phone and it wasn't rather hard either it was just a few commands and everything was already in the right directories
Sent from my SPH-P100 using XDA App
FYI I grabbed the kernel source and cross toolchain, installed the toolchain to /opt (on my desktop Linux box) added the toolchain's bin directory to the start of $PATH, edited the (iirc - am posting from a Windows box) build.sh script and the kernel built fine first time.
I need to set the path to the raminitfs file in .config and then try again and make sure it boots ok
Anyway just a post to say that it must be your setup. I see you have installed the toolchain to /home/max/GalaxyTab/prebuilt/linux-x86/toolchain/ and in your latest post there's the following error: make[1]: /opt/toolchains/arm-2009q3/bin/arm-none-linux-gnueabi-gcc: Command not found
So there's obviously a path problem there. I also see you're using a plain "make" command without setting the ARCH env var.
I'd recommend giving the build.sh script a go (after editing the toolchain path), as it sets up all the env vars, etc., for you automatically.
okay, I was missing a file went I was doing my repo sync... which didn't make sense but i got it worked out... finally able to compile going to apply the patches and recompile and will repo, but thanks for the people who did help figure out the issue...
maxjivi05 said:
With lack of development on tab
Click to expand...
Click to collapse
HUH?
10 characters
Does anyone have an untouched sprint kernel pulled from a device? I rooted mine and it's seeminly impossible to pull the initrd out of it.
jstigall said:
Does anyone have an untouched sprint kernel pulled from a device? I rooted mine and it's seeminly impossible to pull the initrd out of it.
Click to expand...
Click to collapse
Nevermind, I got it... I have a booting Sprint kernel that works great.
Do you have a link to the patches you want to include, I may be able to get the CPU frequency adjustments you want to make built.
jstigall said:
Nevermind, I got it... I have a booting Sprint kernel that works great.
Do you have a link to the patches you want to include, I may be able to get the CPU frequency adjustments you want to make built.
Click to expand...
Click to collapse
Currently there are 2 files that tell the kernel the freq to run at, and 3 spots at the bottom of each that need changed. Located in /ARM/ARCH/OMAP something I need to get more info when I get home I'll edit this post and let you know but there is a file called cpu24xx.c and cpu34xx.c, I was going to compile a working kernel with those files edited to run 1200MHz to test and see if that would work if that didn't work there were some patches made on the other galaxy s devices I have links to thanks to SetiroN for providing, which they are a little different then the files for the galaxy source but I'll post it when I get home and have time!

[Q&A] Android Dev. How-To Guide: Compiling the Android/Linux kernel for the Epic Tou

[Q&A] Android Dev. How-To Guide: Compiling the Android/Linux kernel for the Epic Tou
Q&A for Android Dev. How-To Guide: Compiling the Android/Linux kernel for the Epic Touch 4G
Some developers prefer that questions remain separate from their main development thread to help keep things organized. Placing your question within this thread will increase its chances of being answered by a member of the community or by the developer.
Before posting, please use the forum search and read through the discussion thread for Android Dev. How-To Guide: Compiling the Android/Linux kernel for the Epic Touch 4G. If you can't find an answer, post it here, being sure to give as much information as possible (firmware version, steps to reproduce, logcat if available) so that you can get help.
Thanks for understanding and for helping to keep XDA neat and tidy!
error in making of kernal cod e
[email protected]:~/new/kernel_imx$ export ARCH=arm
[email protected]:~/new/kernel_imx$ export CROSS_COMPILE=/home/user/wandboard-4.4.2_1-presource/wand-4.4.2_1/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/bin/arm-eabi-
[email protected]:~/new/kernel_imx$ make wandboard_defconfig
#
# configuration written to .config
#
[email protected]:~/new/kernel_imx$ make -j4
make: /home/user/wandboard-4.4.2_1-presource/wand-4.4.2_1/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/bin/arm-eabi-gcc: Command not found
scripts/kconfig/conf --silentoldconfig Kconfig
make: /home/user/wandboard-4.4.2_1-presource/wand-4.4.2_1/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/bin/arm-eabi-gcc: Command not found
CHK include/linux/version.h
CHK include/generated/utsrelease.h
HOSTCC scripts/kallsyms
CC scripts/mod/empty.o
/bin/sh: 1: /home/user/wandboard-4.4.2_1-presource/wand-4.4.2_1/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/bin/arm-eabi-gcc: not found
make[2]: *** [scripts/mod/empty.o] Error 127
make[1]: *** [scripts/mod] Error 2
make[1]: *** Waiting for unfinished jobs....
make[1]: `include/generated/mach-types.h' is up to date.
make: *** [scripts] Error 2
make: *** Waiting for unfinished jobs....
CC kernel/bounds.s
/bin/sh: 1: /home/user/wandboard-4.4.2_1-presource/wand-4.4.2_1/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/bin/arm-eabi-gcc: not found
make[1]: *** [kernel/bounds.s] Error 127
make: *** [prepare0] Error 2
i also got msg that GCC is already installed
Hii,
even i got the same error and i followed abt step to install GCC . i got an response as :gcc is already the newest version.
still i m having the error as:
[email protected]:~/kernel_imx$ make -j4
make: /home/user/wandboard-4.4.2_1-presource/wand-4.4.2_1/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/bin/arm-eabi-gcc: Command not found
scripts/kconfig/conf --silentoldconfig Kconfig
make: /home/user/wandboard-4.4.2_1-presource/wand-4.4.2_1/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/bin/arm-eabi-gcc: Command not found
CHK include/linux/version.h
CHK include/generated/utsrelease.h
CC scripts/mod/empty.o
/bin/sh: 1: /home/user/wandboard-4.4.2_1-presource/wand-4.4.2_1/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/bin/arm-eabi-gcc: not found
make[2]: *** [scripts/mod/empty.o] Error 127
make[1]: *** [scripts/mod] Error 2
make: *** [scripts] Error 2
make: *** Waiting for unfinished jobs....
help me out plz

[Q] Kernel compilation Problem , Noob so pls Help

i've Tried to Compile Kernel for my Xperia m ( nicki ) but , i get this error
[email protected]:/media/stuffs/sw/work/android/kernel/android_kernel_sony_msm8x27-cm-12.0# ARCH=arm CROSS_COMPILE=/media/stuffs/sw/work/arm-eabi-4.4.3/bin/arm-eabi
- make nicki
make: execvp: /media/stuffs/sw/work/android/kernel/android_kernel_sony_msm8x27-cm-12.0/scripts/gcc-wrapper.py: Permission denied
HOSTCC scripts/basic/fixdep
/bin/sh: 1: scripts/basic/fixdep: Permission denied
make[2]: *** [scripts/basic/fixdep] Error 126
make[1]: *** [scripts_basic] Error 2
make: *** No rule to make target `nicki'. Stop.
Im not using Ubuntu , is the error due to that ? Pls help
Hi there,
Please wait until mods will move this thread to the device specific forum http://forum.xda-developers.com/xperia-m/help
Stand by
Try "sudo make nicki"

Compile stock Lolipop kernel

I've downloaded stock kernel source from this website, the problem is that I get this error when compiling:
Code:
[email protected]:~/kernel$ make
CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[1]: 'include/generated/mach-types.h' is up to date.
CALL scripts/checksyscalls.sh
CHK include/generated/compile.h
CHK kernel/config_data.h
CC drivers/leds/leds-qpnp.o
drivers/leds/leds-qpnp.c: In function ‘qpnp_led_set’:
drivers/leds/leds-qpnp.c:2213:14: error: ‘led_sequence_lock’ undeclared (first use in this function)
mutex_lock(&led_sequence_lock); /* RGB LED synchronize in kddi */
^
drivers/leds/leds-qpnp.c:2213:14: note: each undeclared identifier is reported only once for each function it appears in
scripts/Makefile.build:307: recipe for target 'drivers/leds/leds-qpnp.o' failed
make[2]: *** [drivers/leds/leds-qpnp.o] Error 1
scripts/Makefile.build:443: recipe for target 'drivers/leds' failed
make[1]: *** [drivers/leds] Error 2
Makefile:951: recipe for target 'drivers' failed
make: *** [drivers] Error 2
[email protected]:~/kernel$
I didn't modify anything, I am using arm-linux-gnueabi-linaro_4.8.4-2014.11 toolchain, thanks
I managed to get it to compile, there are some files that need to be fixed first in order to get it working :good:

Error to compile kernel msm 3.18 for vibe k5

I need a little help because a small mistake happened when I tried to compile the kernel 3.18 pro vibe k5 plus. I want to update to this version because it has the latest security fixes and optimizations. I do not know if the error has occurred because the processor of this cell phone is ARMV7 and the 3.18 devices are configured with ARMV8.
obs: I used the official settings of the device, which was picked up on the lenovo website
.CONFIG: https://raw.githubusercontent.com/n...020/arch/arm64/configs/wt82918-perf_defconfig (lenovo vibe k5 plus)
kernel msm 3.18: https://github.com/android-linux-stable/msm-3.18
LOG ERROR
Code:
CC drivers/platform/msm/qpnp-revid.o
../drivers/platform/msm/qpnp-revid.c: In function 'qpnp_read_byte':
../drivers/platform/msm/qpnp-revid.c:80:47: error: 'struct spmi_device' has no member named 'sid'
rc = spmi_ext_register_readl(spmi->ctrl, spmi->sid, addr, &val, 1);
^
../drivers/platform/msm/qpnp-revid.c:80:31: warning: passing argument 1 of 'spmi_ext_register_readl' from incompatible pointer type
error, forbidden warning: qpnp-revid.c:80
make[4]: *** [../scripts/Makefile.build:258: drivers/platform/msm/qpnp-revid.o] Error 1
make[3]: *** [../scripts/Makefile.build:402: drivers/platform/msm] Error 2
make[2]: *** [../scripts/Makefile.build:402: drivers/platform] Error 2
make[1]: *** [/home/nathan/Git/msm-3.18/Makefile:968: drivers] Error 2
make[1]: Leaving directory '/home/nathan/Git/msm-3.18/out'
make: *** [Makefile:145: sub-make] Error 2
FILE ERROR
https://github.com/android-linux-st....18.r34-rel/drivers/platform/msm/qpnp-revid.c

Categories

Resources