How edit a kernel? - Nexus S Q&A, Help & Troubleshooting

I'm using MIUI rom for my Nexus S. I have tested Netarchy kernel, the most complete of his genre, but it give me stability issues.
I want take the default android kernel and add some non-invasive features like overclock, bln, etc. wich let's MIUI run stable.
My problem is that i don't know how i can edit a kernel. Unpack .img files, decompile and recompile them.
Anyone can help me with a small introduction?
Thanks a lot.

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}

dario3040 said:
Click to expand...
Click to collapse
seems like a reasonable request :S

I have to laugh?

fede91it said:
I'm using MIUI rom for my Nexus S. I have tested Netarchy kernel, the most complete of his genre, but it give me stability issues.
I want take the default android kernel and add some non-invasive features like overclock, bln, etc. wich let's MIUI run stable.
My problem is that i don't know how i can edit a kernel. Unpack .img files, decompile and recompile them.
Anyone can help me with a small introduction?
Thanks a lot.
Click to expand...
Click to collapse
first of all, wrong section..even though it is about "development"...still a question
anyways, there is no way to "edit a kernel" they have to be built from source. changes need to be made before you compile it.
there are many threads here on xda with tutorials -search >compile kernel<
a simple way to start is seach >mkbootimg< normally this would be compiled from source as well but there are a few threads that people have posted tutorials of the ins and outs and have packages for download.
basically with that you can "split" a boot.img separating the ramdisk (specific to the rom) and the kernel...then merge "your" miui ramdisk with a working (or built for other rom) kernel

You can start here:
http://forum.xda-developers.com/showthread.php?t=1039854

Moved to Q&A.

Related

[REF] Samsung GIT repository for i9003 source code

Samsung has oppened a GIT repository for our phone 2 days ago (more convenient than the usual sources tarballs), as you can see on this page : https://opensource.samsung.com/guest/listMyCommunity.do
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Here is the repository : git://opensource.samsung.com/p_411
I am sorry buddy but can u tell me that how it will be beneficial for us??? Sorry I have dont have knowledge about this but want to know eagerly about this.
Instead of messing with the tarballs used by Samsung to provide the GPL parts of kernel & co, they opened a git repository, which is more convenient to retrieve the source code. (Try Google if you want more informations )
It's good for the kernel devs, and source on the repository might be more up to date than the actual tarball provided by Samsung (can't verify, I'm at work)
means now kernal coding will be more convinient to kernal coders??
can add TV-OUT with this source code?
As I understand, the stuff in there is already spreaded in the web. It's just a repository good for starters, isn't?
Does coderworkx can find anything relevant for CM (that he does not already have/know)?
u mean to say that we have the access to the opencore, kernels and rom now? thats a great thing if thats what happend.
I think this can be of very good help...i see some omap3 stuff and camera stuff
This isn't helping !
These files do we have a 4 months now.
Oh then the same old source files
Sent from my GT-I9003 using XDA App
thanks a lot!
I think code has already had most of the files created/grabbed before this was released. Which is somewhat depressing :\ because this may be considered useless
How can you tell if it was the same exact files? Maybe it just looks the same for the most part because it is the source after all but maybe the official release has some more stuff or some updated files that will make the kernels and roms work properly...
Just hoping for that CM7 to work flawlessly. hehe
Same date of old fiorano.. Same files
Inviato dal mio GT-I9003 usando Tapatalk
I think skin will explain this better.

[MOD][CWM][SCRIPT]Reodex your ROM and be faster

This CWM script will reodex any custom ROM.
With BOOTCLASSPATH edit in dexo.sh it can work on any ROM and phone.
Reodexing gives some people perceivable speed up. And it frees data partition from system dalvik cache. So dalvik-cache rebuild is also accelerated.
I ran it with stock kernel (root injected). And had problems with running it on any custom kernel.
Also a good example of output from shell script into CWM console.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
bravomail said:
This CWM script will reodex any custom ROM.
With BOOTCLASSPATH edit in dexo.sh it can work on any ROM and phone.
Reodexing gives some people perceivable speed up. And it frees data partition from system dalvik cache. So dalvik-cache rebuild is also accelerated.
I ran it with stock kernel (root injected). And had problems with running it on any custom kernel.
Also a good example of output from shell script into CWM console.
Click to expand...
Click to collapse
Could this use for one apk or for whole ROM?
Swyped from T3DRO1CS RedHoXence
didnt you just get flamed on the Int One X forums for this mod being its using Tommys Code and no credit was giving at all?
XsMagical said:
didnt you just get flamed on the Int One X forums for this mod being its using Tommys Code and no credit was giving at all?
Click to expand...
Click to collapse
How 'bout you report the threads and leave the moderating to the moderators.
bravomail - Apart from the fact that your download link doesn't seem to work, I'm not comfortable with folks ripping off packages (even dumb little scripts) from other devs and posting them on XDA.
I will leave this link for anyone who wants it. Thread closed.

Gaguing Intrest in a AIO one click Rom cooker (Dirty Rom Cooker)

So I'm currently coding a One click AIO rom cooker for ALL OFFICIAL CM supported devices (if it's on the CyanogenMod Downloads page, it'll be included).
Pretty much all you have to do is:
1) Download the folder from my github (link will eventually be included in the thread)
2) select your device
3) Select your version of CM (CM7, CM9 or CM10). IF IT IS SUPPORTED OFFICIALLY (a one click compile CM10 for a HTC Wildfire is outside my coding knowledge and patience level)
4) Set Options (Name your mod, Compile a custom kernel or use stock, copy the rom to your SD card and reboot to recovery, etc)
5) hit go!
It will:
Set up your Linux install (should work for Ubuntu and Debian)
Download the CM Source
Download the required files for your specific device (provided it can be found in the CM repository)
Build the rom
If selected compile Kernel and then recompile including the new Kernel
Copy the rom to an easy folder for you to send to your SD card (or have it do it for you)
Should be easy to update, just repo sync, then recompile (I think)
Easy debugging. All errors are automatically logged to a easy to find file.
What does everyone think of this? I'm aiming to have it released around Christmas, At least a beta version (may not support all devices out of the box, but I will keep working to add more (I need to test each and every device to make sure the cooker works). This will be released under some open source license (currently researching)
Here's a screenshot of what I have working so far (not much but it's a start). It's based on the layout of Android Kitchen.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}

[DEV][PORT][B2G][REQUEST] Idea for porting B2G to i9001

I want to port Firefox OS to our i9001 and I want to try a different approach this time:
I Instead of compiling a working build, I will try to take a Firefox OS rom and I will port it. After taking a few roms apart, it appears to me that a B2G rom doesnt contain many things different from android. I found a S2 rom that is like a modified version of CM.
But I dont have got that much time atm, so you will have to be patient
If anybody is interested in helping me, I would be very happy
Hints:
- B2G is based on AOSP, not on CM
- Use CM9 (arco) as base (it's the most stable ICS rom available imo)
- Use the CM9 stock kernel along with some files of this ramdisk (of course you will have to modify it): https://github.com/mozilla-b2g/initramfs-galaxy-s2-ics
- Use CM9 as many /bin and /lib files of CM9 as possible, the ones generated for the S2 are incompatible.
- If it doesn't boot try using the libandroid_runtime.so file from B2G
- Use DDMS or Android Monitor to explore the errors
Good Luck! It's not an easy job ^^
You can read this thread, maybe help you
http://forum.xda-developers.com/showthread.php?t=1799287
_suke_ said:
You can read this thread, maybe help you
http://forum.xda-developers.com/showthread.php?t=1799287
Click to expand...
Click to collapse
He is the one that started that other thread...xD
broodplank1337 said:
Hints:
- B2G is based on AOSP, not on CM
- Use CM9 (arco) as base (it's the most stable ICS rom available imo)
- Use the CM9 stock kernel along with some files of this ramdisk (of course you will have to modify it): https://github.com/mozilla-b2g/initramfs-galaxy-s2-ics
- Use CM9 as many /bin and /lib files of CM9 as possible, the ones generated for the S2 are incompatible.
- If it doesn't boot try using the libandroid_runtime.so file from B2G
- Use DDMS or Android Monitor to explore the errors
Good Luck! It's not an easy job ^^
Click to expand...
Click to collapse
This will help that much! Thank you!
Azrael^^ said:
He is the one that started that other thread...xD
Click to expand...
Click to collapse
That´s true...
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}

[Q] Dual Recovery Xperia Tipo Dual ?

hello Xda,
I am new to Phone Rooting
i just installed Vengeance Kernel on my Tipo dual then i installed CWM Recovery .
Now when i reboot i faound i have dual Recovery
can i uninstall one of them ? if yes how ??
and what are Advantages / disadvantages of dual Recovery ?
Thanks in Adv,
You just do not enjoy "try new kernel" I do not know.
The first help yourself what it is and what it is and what it does and then just install any
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Advantages of Customizing Your Own Kernel:
Whenever a program is customized for a specific architecture, usually the level of performance increases and becomes more stable version. Generic binaries need to function on various processors, which makes it inferior to your system.
Another advantage is that you are able to eliminate the unnecessary modules and components from it. Removing excess modules and components will reduce the size of the compiled kernel and helps it to boot quickly.
Building your own kernel allows you to add various features and optimize it for better performance.
Click to expand...
Click to collapse
Disadvantages of Customizing Your Own Kernel:
When you build your own kernel, you need to maintain the updates, security patches.
Its better to know how to customize the kernel, if you do things wrong, it could lead in stopping of the server.
Possibly, customizing a kernel is very time consuming and can take a lot of time. Building a kernel requires good technical skills and knowledge as well as it consumes a lot of CPU power.
Consider the above discussed advantages and disadvantages and decide which kernel to choose for your dedicated server, pre-compiled or a customized one. People using the customized kernels are satisfied with it and people using the ready kernels are pleased as well. Now, its up to you, which kernel is best for your server that will offer optimum performance.
Click to expand...
Click to collapse
source: http://blog.eukhost.com/

Categories

Resources