[Q] Kernel version question - HTC EVO 3D

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.

Related

Build.sh and Makefile says diff toolchain

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

tun.ko

Hallo,
Is there someone here who can create a tun.ko VPN Adapter for the Archos XS JB?
I am desperately looking for it,
Thanks, Ingo
Hi !
please , can you post here :
> adb shell uname -a
> adb shell uname -r
...also please > adb shell cat /proc/version
Thanks !
Linux localhost 3.0.21 #1 SMP PREEMPT Tue Dec 4 23:29:16 CET 2012 armv7l unknown
3.0.21
Linux version 3.0.21 ([email protected]) (gcc version 4.4.1 (GCC) ) #1 SMP PREEMPT Tue D
ec 4 23:29:16 CET 2012
IngoPan said:
Linux localhost 3.0.21 #1 SMP PREEMPT Tue Dec 4 23:29:16 CET 2012 armv7l unknown
3.0.21
Linux version 3.0.21 ([email protected]) (gcc version 4.4.1 (GCC) ) #1 SMP PREEMPT Tue D
ec 4 23:29:16 CET 2012
Click to expand...
Click to collapse
OK , thanks !
Here is your tun.ko ! :good:
...also, I had reached the same result, but I was not 100% sure
[email protected]:~/archos/g10/firm/raw$ dd if=zImage bs=1 skip=836674 | lzop | strings | grep 'Linux version'
Linux version 3.0.21 ([email protected]\
3392386+0 records in
3392386+0 records out
3392386 bytes (3.4 MB) copied, 1.47227 s, 2.3 MB/s
Click to expand...
Click to collapse
THANKS! But to get this working, we need the rooted initramfs you posted in the the other thread. Right now, its just impossible to flash the initramfs (initramfs could not be found).
Hello! Could you please re-share this tun.ko?

[Q] kernel name not there

Hello,
Hope this is not in the wrong place.
I downloaded 4.0.4 "IRAQ" stock rom from sammobile and came here to get cf-root for it.
The problem is for the first time i can't find the kernel model where it usually is
"Go to Settings -> About phone -> Kernel Version. Note the string present there:
2.6.35.7-I9100XXKG1-CL349526"
this rom has the following in its place:
Linux version 3.0.15-1060868 ([email protected]) (gcc version 4.4.3 (GCC) ) #3 SMP PREEMPT Fri Aug 24 11:55:55 KST 2012
(copy pasted from adb shell cat /proc/version)
so i am back to 4.0.3 "EGYPT"
Was there a way of finding out the kernel so i could get the proper root file for it?
hmm i think i posted this in the wrong section. Could a mod move this to Q & A please?

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.

Categories

Resources