Linux localhost 3.10.61-S6_UniKernel_v2-0003_rb #2 SMP PREEMPT Sun Jun 28 13:01:53 BST 2015 aarch64
Kali GNU/Linux 1.1.0 (moto) [running on Android via Linux Deploy]
Last login: Mon Jul 27 01:42:02 2015 from localhost
[email protected]:~$ su
Password:
su: Authentication failure
[email protected]:~$ sudo -i
sudo: PERM_ROOT: setresuid(0, -1, -1): Permission denied
[email protected]:~$
And now ?
me tooo
same problem here in asus zenfone 2
Related
Hi
I'm trying to compile FUSE (the kernel module fuse.ko) for my Galaxy S2. (to run ntfs-3g)
My Galaxy S2 is running Android 2.3.3 (XWKF4)
Kernel: 2.6.35.7-I9100XWKF4-CL280512
modinfo of a working kernel module:
Code:
$ file vibrator.ko
vibrator.ko: ELF 32-bit LSB relocatable, ARM, version 1 (SYSV), not stripped
$ modinfo ./vibrator.ko
filename: ./vibrator.ko
license: GPL v2
description: TouchSense Kernel Module
author: Immersion Corporation
depends:
vermagic: 2.6.35.7-I9100XWKF4-CL280512 SMP preempt mod_unload modversions ARMv7
I tried to compile the module with different setups - but "insmod" on the device fails always with "insmod: init_module 'fuse.ko' failed (Exec format error)" and " fuse disagrees about version of symbol module_layout"
My setups were:
plain 2.6.35.7 Kernel + toolchain of Android NDK
Official GT-I9100 Source + Sourcery G++ Lite 2009q3-68 toolchain (Samsung recommended)
Official GT-I9100 Source Update 1+ Sourcery G++ Lite 2009q3-68 toolchain
Official GT-I9100 Source Update 2+ Sourcery G++ Lite 2009q3-68 toolchain
The builds of the three official Samsung sources gave me the following fuse.ko:
Code:
$ file ~/Desktop/fuse.ko
fuse.ko: ELF 32-bit LSB relocatable, ARM, version 1 (SYSV), not stripped
$ modinfo ~/Desktop/fuse.ko
filename: fuse.ko
alias: devname:fuse
alias: char-major-10-229
license: GPL
description: Filesystem in Userspace
author: Miklos Szeredi
depends:
vermagic: 2.6.35.7-I9100XWKF4-CL280512 SMP preempt mod_unload modversions ARMv7
parm: max_user_bgreq:Global limit for the maximum number of backgrounded requests an unprivileged user can set (uint)
parm: max_user_congthresh:Global limit for the maximum congestion threshold an unprivileged user can set (uint)
Has anyone a idea how to create a working fuse.ko?
Thanks!
Indeed does anyone have any information about compiling new kernel modules for the Galaxy SII?
edit. Found this for you, should solve your problem.
http://forum.xda-developers.com/showthread.php?t=1123643&highlight=compile+module#
How did you set the vermagic to the correct string? I just get:
2.6.35.7 SMP preempt mod_unload modversions ARMv7
without the I9100XWKF4-CL280512 part.
edit2. Never mind, appended it to the EXTRAVERSION variable in the Makefile.
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.
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?
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.
hi
plz i need Tun.ko moudel for my phone
plz modification tun.ko
i try make it but i cant
kernel:2.6.35.7
kernal by uname -a
linux localhost 2.6.35.7 #3 preempt tue jun 4 19:18:21 cst 2013 armv71 GNU/linux
version android 2.3
plz help me
and config.gz from my phone in attachments
AKBIROCK3 said:
hi
plz i need Tun.ko moudel for my phone
plz modification tun.ko
i try make it but i cant
kernel:2.6.35.7
kernal by uname -a
linux localhost 2.6.35.7 #3 preempt tue jun 4 19:18:21 cst 2013 armv71 GNU/linux
version android 2.3
plz help me
and config.gz from my phone in attachments
Click to expand...
Click to collapse
any one plllllllllllllllllllllllllllllllllllllllllllllllllzzzzzzzzzzzzzzzzzzzzz