Build.sh and Makefile says diff toolchain - Android Q&A, Help & Troubleshooting

In Build.sh says I should use toolchain 4.2.1 and in /kernel/Makefile it says should use gcc 4.3.1 and in proc/version says
Linux version 2.6.29 ([email protected]) (gcc version 4.3.1 (for S3C64XX Samsung Electronics AP Development Team) ) #2 Wed Apr 6 19:32:04 KST 2011
What should I do?

u can use whatever Toolchain u like ..
(linaro, codesourcery, ....)
it should just match your ARCH

Related

[Q] Kernel version question

How does one set kernel version?
I have disabled CONFIG_LOCALVERSION_AUTO and set CONFIG_LOCALVERSION to CONFIG_LOCALVERSION="evo3dguy".
I have even changed ro.build.display.id but the kernel version still displays Linux version 2.6.35.13-g84f8edd ([email protected]) (gcc version 4.4.0 (GCC) ) #1 SMP PREEMPT Fri Aug 5 01:14:20 CST 2011
From my understanding the g84f8edd would be added via CONFIG_LOCALVERSION_AUTO=y so I set it to # CONFIG_LOCALVERSION_AUTO is not set, which should disable it, so it can't git rev-parse --verify HEAD and display g84f8edd, yet it does anyway.
So what is needed to change this
Linux version 2.6.35.13-g84f8edd ([email protected]) (gcc version 4.4.0 (GCC) ) #1 SMP PREEMPT Fri Aug 5 01:14:20 CST 2011
Linux version 2.6.35.13-evo3dguy ([email protected]) (gcc version 4.4.0 (GCC) ) #1 SMP PREEMPT Fri Aug 5 01:14:20 CST 2011
I download the source from htc, made my changes build kernel but the version doesn't change, I have also downloaded other sources posted here and compiled those kernels they display the authors name.
So what do I need to change or add to have evo3dguy displayed?
evo3dguy said:
How does one set kernel version?
I have disabled CONFIG_LOCALVERSION_AUTO and set CONFIG_LOCALVERSION to CONFIG_LOCALVERSION="evo3dguy".
I have even changed ro.build.display.id but the kernel version still displays Linux version 2.6.35.13-g84f8edd ([email protected]) (gcc version 4.4.0 (GCC) ) #1 SMP PREEMPT Fri Aug 5 01:14:20 CST 2011
From my understanding the g84f8edd would be added via CONFIG_LOCALVERSION_AUTO=y so I set it to # CONFIG_LOCALVERSION_AUTO is not set, which should disable it, so it can't git rev-parse --verify HEAD and display g84f8edd, yet it does anyway.
So what is needed to change this
Linux version 2.6.35.13-g84f8edd ([email protected]) (gcc version 4.4.0 (GCC) ) #1 SMP PREEMPT Fri Aug 5 01:14:20 CST 2011
Linux version 2.6.35.13-evo3dguy ([email protected]) (gcc version 4.4.0 (GCC) ) #1 SMP PREEMPT Fri Aug 5 01:14:20 CST 2011
I download the source from htc, made my changes build kernel but the version doesn't change, I have also downloaded other sources posted here and compiled those kernels they display the authors name.
So what do I need to change or add to have evo3dguy displayed?
Click to expand...
Click to collapse
There are a few ways to go about changing this.
The most handy version I have at the moment is a flag to add to the make command:
make -j2 LINUX_VERSION="2.6.29 jk original"
I know there is a place in the kernel source code also you can edit. If you've downloaded somebody else's custom source code, grep the code for their linux version output. I want to say it was in the actual .config file is where I used to change it.
Hope that helps!
There are several way to do this. What I do is create a small bash script to compile my kernels.
Code:
#!/bin/bash
export LOCALVERSION="-Vampirefo"
make clean
make -j4
if I type uname -r
I get
2.6.35.14-Vampirefo
if i type
cat /proc/version
I get
Linux version 2.6.35.14-Vampirefo ([email protected]) (gcc version 4.4.4 (crosstool-NG 1.12.4) ) #1 SMP PREEMPT Sat Oct 22 22:18:02 EDT 2011
vampirefo said:
There are several way to do this. What I do is create a small bash script to compile my kernels.
Code:
#!/bin/bash
export LOCALVERSION="-Vampirefo"
make clean
make -j4
if I type uname -r
I get
2.6.35.14-Vampirefo
if i type
cat /proc/version
I get
Linux version 2.6.35.14-Vampirefo ([email protected]) (gcc version 4.4.4 (crosstool-NG 1.12.4) ) #1 SMP PREEMPT Sat Oct 22 22:18:02 EDT 2011
Click to expand...
Click to collapse
to bring the question round circle, in android about phone -> software information where it shows the kernel version, it obtains the information from the /proc/version file and then uses regex to parse and display!
hope that helps connect all the dots!
joeykrim said:
to bring the question round circle, in android about phone -> software information where it shows the kernel version, it obtains the information from the /proc/version file and then uses regex to parse and display!
hope that helps connect all the dots!
Click to expand...
Click to collapse
Joeykrim, Vampirefo
Thanks so much for the help and information, my kernel now displays what I wanted.

[Q] How to ROOT Samsung Galaxy Note 2 Clone?

How to ROOT this ****ing phone? xD
Spec:
1 sim card
MT6577
Android: 4.1.1
Build number: JRO03C.N7100ZSALIA
Baseband version: N7100XXALIE
Kernel: Linux version 3.0.31 - 178067 ([email protected]) (gcc version 4.4.3 (GCC) ) #1 SMP PREEMPT Wed May 29 14:21:02 CST 2013
I tried Root_with_Restore_by_Bin4ry_v31 but without effect.
use this:
http://forum.xda-developers.com/showthread.php?t=2160490

How to determine exact kernel 3.4 version for upstream patching?

Hallo,
i want to upstream-patch a kernel (with patches from kernel. org). Cat /proc/version gives me that (and uname -a even less):
Linux version 3.4.0-cyanogenmod-g57d54c6 ([email protected]) (gcc version 4.7 (GCC) ) #1 SMP PREEMPT Tue Oct 21 07:11:50 PDT 2014
How can i determine the exact kernel version like 3.4.104?
It's probably not needed for CM kernels but Samsung kernel use the same pattern and for incremental patches i need the exact version number i guess.
DualJoe said:
Hallo,
i want to upstream-patch a kernel (with patches from kernel. org). Cat /proc/version gives me that (and uname -a even less):
Linux version 3.4.0-cyanogenmod-g57d54c6 ([email protected]) (gcc version 4.7 (GCC) ) #1 SMP PREEMPT Tue Oct 21 07:11:50 PDT 2014
How can i determine the exact kernel version like 3.4.104?
It's probably not needed for CM kernels but Samsung kernel use the same pattern and for incremental patches i need the exact version number i guess.
Click to expand...
Click to collapse
Your Kernel is 3.4.0-cyanogenmod-g57d54c6, if thats what you wanted to know.
Tommy-Geenexus said:
Your Kernel is 3.4.0-cyanogenmod-g57d54c6, if thats what you wanted to know.
Click to expand...
Click to collapse
Not exactly. The latest 3.4 kernel is 3.4.104. The one that Samsung provides for the I9506 is probably 3.4.98, 3.4.92 or something else. Correct me if i'm wrong, but i need to know the exact version of my kernel to use the incremental patches from kernel.org to get to latest patch state.
Edit:
This is the output of the target kernel:
Code:
# uname -a
Linux localhost 3.4.0 #3 SMP PREEMPT Tue Sep 23 23:09:10 CEST 2014 armv7l GNU/Linux
# cat /proc/version
Linux version 3.4.0 (gcc version 4.8 (GCC) ) #3 SMP PREEMPT Tue Sep 23 23:09:10 CEST 2014
DualJoe said:
Not exactly. The latest 3.4 kernel is 3.4.104. The one that Samsung provides for the I9506 is probably 3.4.98, 3.4.92 or something else. Correct me if i'm wrong, but i need to know the exact version of my kernel to use the incremental patches from kernel.org to get to latest patch state.
Edit:
This is the output of the target kernel:
Code:
# uname -a
Linux localhost 3.4.0 #3 SMP PREEMPT Tue Sep 23 23:09:10 CEST 2014 armv7l GNU/Linux
# cat /proc/version
Linux version 3.4.0 (gcc version 4.8 (GCC) ) #3 SMP PREEMPT Tue Sep 23 23:09:10 CEST 2014
Click to expand...
Click to collapse
Like i said, your kernel is 3.4.0.
No oem upstreams their kernels.
You need to start upstreaming from the scratch.
Sent from my Xperia Z C6603
Tommy-Geenexus said:
Like i said, your kernel is 3.4.0.
No oem upstreams their kernels.
You need to start upstreaming from the scratch.
Click to expand...
Click to collapse
Oh, i didn't know that. I can probably check first patch diffs as well then to double prove that. At least the minor "0" in "3.4.0" makes sense now. The good thing probably is i can use the all-in-one patch so i don't need to use all the incremental patches one by one.
Thank you for clearing that up.

What would happen?

What would happen if I flash a different kernel on my phone that doesn't match. Also my phone has MT6582.
The name of my phone is Starmobile Diamond S1. (Can't post link)
My phone kernel is:
Code:
3.4.5
[email protected] #1
Fri Nov. 22 09:42:58 CST 2013
and I found this:
Code:
3.4.67
([email protected])
(gcc version 4.7 (GCC) ) #1 SMP PREEMPT Wed Sep 17 18:52:18 CST 2014
Do you guys have kitkat rom/kernel so that I can flash or port some custom rom?
Can anyone answer this?
Only one way to find out? Just make sure it is for your device. If not you will not be happy at all and need a new device.

chinese phone porting and kernel logo

hi all - so i have 2 questions, I got given a highscreen thor phone, and really struggling to find roms for it, for now it seems miui has one which i will try.
Is it possible to use a cmw backup as my Base Rom (see this article: http://forum.xda-developers.com/showthread.php?t=1908008) or do i need to try find a stock rom somewhere?
ALso - I tried flashing a carbon rom to this phone and the 1st pic that loads is terrible! it shows 6 copies of the same terrible pic- i tried downloading a app to fix but it says phone not supported!
Any ideas? i want to try port a cwm to this and compare the miui.. im a bit of a CM fan - but the stock rom is just so plain..
Specs:
MT6592
Build Number: TBW978117_9404_V006110
Build Date UTC: 20140221-070751
Version: 4.2.2
BaseBand: MOLY.WR8.W1315.MD.WG.MP.V21.P9.2014/02/21 14:47
Kernel v: 3.4.39 ([email protected]) (gcc version 4.6.x-google 20120106 (prerelease) (GCC) ) #1 SMP Fri Feb 21
Uboot build v: - should be root shell
LCD Driver: -should be root shell
IMEI 1: ****
IMEI 1: ****

Categories

Resources