I have an SM-807T tablet, which has very little available for it so far and i need a selinux permissiveable kernel. Being seasoned in programming linux and compiling i attempted to create my own, so i got the correct source code from samsung, changed the selinux flag and compiled, no problems. Everything compiled correctly, so i got the stock boot.img tore it apart, replaced the kernel and put it back together. attempted to flash it and it got stuck in an infinite loop. Backtrack, thanks to some stellar members here in an earlier thread i got ahold again of the stock kernel and restored my tablet, fast forward a few more days i still cant get it to work, only thing i can find is people saying that when you compile the kernel you need to replace the drivers on the ramdisk... i understand that however it seems that this kernel all modules are self contained. Can anyone direct m on what i may be doing wrong? i can provide any information that may be needed, i just dont know what could be required so i hope the explanation itself can surfice until someone can let me know what kind of information i need to post.
Thank you.
Are you compiling a kitkat or lollipop kernel and is your boot loader and current Rom compatible with that kernel?
Have you looked at the kernel logs?
ashyx said:
Are you compiling a kitkat or lollipop kernel and is your boot loader and current Rom compatible with that kernel?
Have you looked at the kernel logs?
Click to expand...
Click to collapse
Thank you for the reply, It is a kitkat kernel as it is the only available version, lollipop source has not been released yet. My rom version is the same of the source
KOT49H.T807TUVU1ANK SuperSkillRom Build
T807TUVU1ANK source code.
also what kernel logs are you referring too, are there logs in the android os that may be logging the restart error?
the baseband version is T807TUVU1BOE1, is it possible that could be causing my issue?
ashyx said:
Have you looked at the kernel logs?
Click to expand...
Click to collapse
I missed this part the first read What kernel logs are you referring to, compile logs or logs in the android os that might be logging the error? If it is the later, where exactly would i find those?
In an android terminal such as adb or recovery. su then cat /proc/last_kmsg > /sdcard/last_kmsg
This has to be done immediately after the last boot.
ashyx said:
In an android terminal such as adb or recovery. su then cat /proc/last_kmsg > /sdcard/last_kmsg
This has up be done immediately after the last boot.
Click to expand...
Click to collapse
Thank you for that, i found what happened though im still at a loss at how to fix it. My linux knowledge stops at things i haven't encountered before.
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
is the panic line. I will attach the whole log if you think there might be more helpful information in there.
Which config did you use when building and where did you get the ramdisk from?
ashyx said:
Which config did you use when building and where did you get the ramdisk from?
Click to expand...
Click to collapse
the ramdisk used was the boot.img from my rom i am using, superskill v1
the config i used to compile was chagalllte_usa_tmo_00_defconfig.
Ceirnos said:
the ramdisk used was the boot.img from my rom i am using, superskill v1
the config i used to compile was chagalllte_usa_tmo_00_defconfig.
Click to expand...
Click to collapse
When you say from the Rom do you mean the boot.img was included with it or you pulled it from the device itself?
ashyx said:
When you say from the Rom do you mean the boot.img was included with it or you pulled it from the device itself?
Click to expand...
Click to collapse
Included with it, should i have pulled from the device instead? i had figured it would have been the same after the flash.
Again I thank you for your time and patience helping me with this.
Ceirnos said:
Included with it, should i have pulled from the device instead? i had figured it would have been the same after the flash.
Again I thank you for your time and patience helping me with this.
Click to expand...
Click to collapse
No it shouldn't make a difference. I think your problem is with the ram disk. Did you build the kernel with the ramdisk or just repack it and did you change anything?
If it's a repack, have you tried to repack the working kernel with the same ramdisk to make sure its not something to do with the way you are repacking the kernel with the ramdisk?
ashyx said:
No it shouldn't make a difference. I think your problem is with the ram disk. Did you build the kernel with the ramdisk or just repack it and did you change anything?
If it's a repack, have you tried to repack the working kernel with the same ramdisk to make sure its not something to do with the way you are repacking the kernel with the ramdisk?
Click to expand...
Click to collapse
The simplest things cause the biggest headaches, upon your advice i tried repacking the working kernel and it did not work. i attempted a different method and no i have a working permissive-able kernel. Thank you very much. I will rebuild it into a stock boot.img as well an test it out in order to allow the SM-T807T users who dont want to mess with compiling a more flexible kernel as well.
Your help was invaluable as i dont think i would have considered my repacking method to be the fault.
No worries, glad you got it sorted.
Related
I am working on rooting a new tablet. I am having difficulties getting the boot.img file to boot the system
I believe its because i do not know what base to use when using mkbootimg command.
How can i get the kernel base? i have done lots of searching and found that it could be in /proc/config however that does not yield any offset.
Any ideas how to work out the base without access to the kernel source?
Thanks for your help.
Hi all and happy nex year, first post ever here !
Your forums think im too noob to post this on devemopment section lol .
i have a Samsung Galaxy SII X from telus model SGH-t989D (t989dtlkj3) with 2.6.35.11 kernel. After all coverage about Carrier IQ i found your rom Telus SGH-T989D Stock, Rooted, Lightly Tweaked, 100% [CIQ Free] I was impressed in the work you do on this roms, and i just wanna tell you that i learn a lot from your work.
After read a bit on the subject i got the concusion that you can open a ssh session on your phone and type
Code:
cd /
find / -name '*iq*'
That in my case return
Code:
/system/xbin/uniq
/sys/devices/virtual/tty/[B]sdio_tty_ciq_00[/B]
/sys/devices/virtual/input/input0/uniq
/sys/devices/virtual/input/input2/uniq
/sys/devices/virtual/input/input4/uniq
/sys/devices/virtual/input/input5/uniq
/sys/devices/virtual/input/input7/uniq
/sys/devices/virtual/input/input8/uniq
/sys/devices/virtual/input/input9/uniq
/sys/devices/virtual/input/input10/uniq
/sys/devices/i2c-5/5-0025/input/input6/uniq
/sys/devices/i2c-6/6-0055/pm8058-keypad/input/input1/uniq
/sys/devices/i2c-6/6-0055/pm8058-pwrkey/input/input3/uniq
/sys/class/tty/[B]sdio_tty_ciq_00[/B]
/dev/[B]sdio_tty_ciq_00[/B]
After read your post Here and some source code read HERE i can tell that i have some kind of Carrier IQ on my phone right !!! But wait if i understand correcly, its like some services that are autostarted in the kernel at boot time.
In your ROM we can find a file named boot.img and im pretty sure its the kernel [CIQ Free] right ? i see in your updater-script that you use something like this for the updating the kernel
Code:
assert(package_extract_file("boot.img", "/tmp/boot.img"),
write_raw_image("/tmp/boot.img", "/dev/block/mmcblk0p8"),
delete("/tmp/boot.img"));
My question is: can i update/flash ONLY my kernel using a command like flash_image for update my kernel (/dev/block/mmcblk0p8) to your CIQ Free boot.img ?
something like this ssh on phone and type
flash_image boot /sdcard/boot.img ???
Thank for the help
MrWarLock said:
My question is: can i update/flash ONLY my kernel using a command like flash_image for update my kernel (/dev/block/mmcblk0p8) to your CIQ Free boot.img ?
something like this ssh on phone and type
flash_image boot /sdcard/boot.img ???
Thank for the help
Click to expand...
Click to collapse
If I've read the thread for Mr. X's ROM, it seems as though he has included his CIQ-free recompiled kernel with it. So when you flashed the ROM, it also flashed the kernel. So if I understand what you're trying to say, you want to flash the CIQ-free kernel over itself?
I quickly looked through the contents of a flashable kernel (faux 6u) and what you're saying seems to be true. The kernel does seem to be the boot.img file seeing as how the flashable .zip file contains that file, a couple of scripts, a .so file, and a binary.
Sent from my SGH-T989D
So when you flashed the ROM, it also flashed the kernel. So if I understand what you're trying to say, you want to flash the CIQ-free kernel over itself?
Click to expand...
Click to collapse
i dont have flashed or use odin/CWM for install this Rom (My phone are allready rooted). I just wanna know if i can take the boot.img that are the kernel free CIQ (thats file are in the Mr X Rom) and install it to my phone via ssh
Like i said, can i use a command like flash_image ?
Thanks for any help/tips
MrWarLock said:
i dont have flashed or use odin/CWM for install this Rom (My phone are allready rooted). I just wanna know if i can take the boot.img that are the kernel free CIQ (thats file are in the Mr X Rom) and install it to my phone via ssh
Like i said, can i use a command like flash_image ?
Thanks for any help/tips
Click to expand...
Click to collapse
You can install any kernel you like but it wont disable the ciq located in rom, you have to remove the apps, libraries and if you want to go as far as i did, edit the system framework extensively as well as some apks.
Fully reading my threads would have informed you on what i had edited as i has posted actively about what i found and where.
okay, i have stock ME7, but i try using adb commands and im hit with "adbd cannot run in production builds"
ive heard the solution for this was to flash a different kernel, but when i do, still nothing?
anyone know how to fix this?
Maybe you need to decompile the boot.img and check the adbd service to make sure it's set up right
CNexus said:
Maybe you need to decompile the boot.img and check the adbd service to make sure it's set up right
Click to expand...
Click to collapse
It was although leak me7 it wasnt the kernel :/
How do you find the kernel config file and copy it?
What do you mean exactly ? The kernel is related to two things.
1: the boot.img file
2: the modules that are part of/installed with a rom
Mr Hofs said:
What do you mean exactly ? The kernel is related to two things.
1: the boot.img file
2: the modules that are part of/installed with a rom
Click to expand...
Click to collapse
Im looking for the kernal config file that was used to compile and install a kernal on my device. Isnt there some sort of related config file?
Im looking to use a config file that would allow me to compile a new kernel in linux.
I think you need to start with decompiling the boot.img.
Mr Hofs said:
I think you need to start with decompiling the boot.img.
Click to expand...
Click to collapse
What would be away to access the boot image? Terminal Emulator? If so what would be some useful commands? Thank you.
Hi all,
Over on Android Forums a thread has posted claiming Keis/OTA is downloading a new version of the Stock ROM. Version NJ3? Has anyone here seen this?
Yes my wife got it last week.
Any benefit seen? Or is it more a bloatware update?
She hasn't noticed anything. Hard for her to tell really not knowing anything lol
Has anyone had a chance to grab this updated tar? I am on full CM11, I will give it a go via Keis for PC if it would still attempt to download. I know it won't actually work not being stock.
vsanch24 said:
Has anyone had a chance to grab this updated tar? I am on full CM11, I will give it a go via Keis for PC if it would still attempt to download. I know it won't actually work not being stock.
Click to expand...
Click to collapse
im checking this link out http://opensource.samsung.com/reception/receptionSub.do?method=sub&sub=F&searchValue=sph-l710
6th_Hokage said:
im checking this link out http://opensource.samsung.com/reception/receptionSub.do?method=sub&sub=F&searchValue=sph-l710
Click to expand...
Click to collapse
Interesting, I downloaded the NJ3 (in the middle of the list) but not sure how at apply it. Do you have any ideas? Or do we just change the .zip to a .tar and ODIN will work its' magic?
vsanch24 said:
Interesting, I downloaded the NJ3 (in the middle of the list) but not sure how at apply it. Do you have any ideas? Or do we just change the .zip to a .tar and ODIN will work its' magic?
Click to expand...
Click to collapse
i just checked it out.....it's not the actual update unfortunately open the zip and you'll see what i mean
That's the source code for the updated kernel. It doesn't contain any platform binaries
CNexus said:
That's the source code for the updated kernel. It doesn't contain any platform binaries
Click to expand...
Click to collapse
it has a folder in it called platform tho but when you read the Platform_read_me.txt file thing it says it's for making modules but that you have to download the module stuff separately...
You won't get anything from that file in terms of getting a rom going, trust me.
The most you could do is build the kernel zImage, but you're even limited in that because you'd need the updated boot.img for repacking your compiled zImage.
CNexus said:
You won't get anything from that file in terms of getting a rom going, trust me.
The most you could do is build the kernel zImage, but you're even limited in that because you'd need the updated boot.img for repacking your compiled zImage.
Click to expand...
Click to collapse
i see thats good info thank you
Anyone have luck grabbing the full updated rom? I tried with kies but this happened: (from a post I did on Android Forums)
... I think something has changed as now there is a small program that downloads into the temp folder. Once that finishes it asks for elevated permissions and then starts a new direct download to the phone while it is attached. I am guessing they got wind of these instructions and changed their kies upgrade method.....