[Q] how to increase ramdisk - Sony Ericsson XPERIA X10 Mini

Hi people, well, the question is very simple. I have no idea at all 'bout android developing. As far as i know, the ramdisk in the E10i it's in the <kernel>.ftf, now, how can i increase the size of the ramdisk through kernel editing to improve performance. I want to edit the nAa 14 [GB] 2.6.29 kernel, for personal se, of course, if it works out, i'll probably post it here, after asking for permission to do so.
But first i wanna know how could i do it, what tools do i need and if anybody knows of some tutorial that'd be helpful.
That's it
Thanks!

Here it is..
kernel kitchen, Port tools and info..
http://forum.xda-developers.com/showthread.php?t=1659584

Alexei.Robles said:
Hi people, well, the question is very simple. I have no idea at all 'bout android developing. As far as i know, the ramdisk in the E10i it's in the <kernel>.ftf, now, how can i increase the size of the ramdisk through kernel editing to improve performance. I want to edit the nAa 14 [GB] 2.6.29 kernel, for personal se, of course, if it works out, i'll probably post it here, after asking for permission to do so.
But first i wanna know how could i do it, what tools do i need and if anybody knows of some tutorial that'd be helpful.
That's it
Thanks!
Click to expand...
Click to collapse
What sort of improvement do you expect from enlarging the ramdisk?
The Ramdisk is purely to load and run the kernel, so enlarging it's size will only take away RAM from apps you would want to run, with no benefits to kernel performance whatsoever. As far as I can see, only decreasing the size of the kernel could give you more performance, and if that was possible, nAa would have done it. (after all, he knows *an awful lot* about android development)
If I were you I would either
A: Start learning Android on the ROM side of things,
or
B: Learn how Linux works on the PC before you start trying to improve it on a phone.

SmG67 said:
What sort of improvement do you expect from enlarging the ramdisk?
The Ramdisk is purely to load and run the kernel, so enlarging it's size will only take away RAM from apps you would want to run, with no benefits to kernel performance whatsoever. As far as I can see, only decreasing the size of the kernel could give you more performance, and if that was possible, nAa would have done it. (after all, he knows *an awful lot* about android development)
If I were you I would either
A: Start learning Android on the ROM side of things,
or
B: Learn how Linux works on the PC before you start trying to improve it on a phone.
Click to expand...
Click to collapse
See? that's why i said i know nothing about it, finally sombody answered. Thank you! ^^

Related

[Q] Are any/many of the custom kernels updated with newer 2.6.32 base code?

As part of my self-teaching experience with kernels and roms here, I'm currently experimenting with upgrades to the 2.6.32.9 base kernel code. Taking it slow so far, my first attempt at jumping from 2.6.32.9 all the way to 2.6.32.37 (at the time) didn't go well
Anyhow, my question is ... is this something that the devs commonly do, or is it more typical to just leave well enough alone and back-port interesting things (like EXT4/scheduler enhancements) from later kernels?
I already learned the hard way that unless you really want to start replacing things, you have to leave the kernel version number at "2.6.32.9", so it's unclear to me how often base code updates are actually performed.
If I do make it all the way to 2.6.32.39 successfully and it still boots, I can share if there is interest. I'm pretty sure bluetooth will need work, if it works at all. Call it a hunch based on how many modifications I see that Samsung made coupled with the chances of me properly merging that code multiple times.
Thanks in advance ... just working to try and be smarter with the hopes of participating more actively on my next device!
Good luck. I tried patching, and it successfully builds, and it will even start to boot, but it gets bootloops. From the looks of things, the latest stable .32 kernel is .32.28. Here is my patched tree if you want to play around with it: https://github.com/imnuts/linux-2.6-fascinate/tree/patched
imnuts said:
Good luck. I tried patching, and it successfully builds, and it will even start to boot, but it gets bootloops. From the looks of things, the latest stable .32 kernel is .32.28. Here is my patched tree if you want to play around with it: https://github.com/imnuts/linux-2.6-fascinate/tree/patched
Click to expand...
Click to collapse
Thank you for the link sir! I've been moving forward slowly, first just .9->.10 then .10->.15, I'm in the middle of .15-.25 , but I think I'll just bump it to .28 next and compare where I am with where you were.
It's nice to have a reference, and much appreciated. I'll let you know if I make it past .28. It's tedious work, and I'm afraid not work that will bear much if any fruit other than knowing how
Yeah, at this point, I think it's just easier to pull in specific patches from upstream rather than patching the whole kernel tree. If you have any success with it though, I'm sure that others around here would be interested.

[Q] The Only Thing I'm Not New To, Is Flashing ROMs

Okay, I am a noob. Glad to be on XDA, but a noob nonetheless.
I know the basic in's and out's of flashing, backing up ROMs, etc.
Well, I want to learn how to start writing my own custom ROMs.
I have (at least I think) most of the necessary software, SDK Tools, Microsoft Basic and C++ 2010. But I don't have anything but basic knowledge of code. Anybody willing to help a noob out and get me kick-started in making ROMs and coding in general?
The only device I have to work with is a PC and my HTC DInc. It's been a great phone
I'd much appreciate the help.
Thanks in advance,
TheSmashippy
The kernel is in C
Android is mostly java (if its open source = Cyanogenmod).
But most Roms just and and replace apps. Maybe add some themes and stuff. Have a modded kernel for OC and stuff. And thats mostly it.
Smasher816 said:
The kernel is in C
Android is mostly java (if its open source = Cyanogenmod).
But most Roms just and and replace apps. Maybe add some themes and stuff. Have a modded kernel for OC and stuff. And thats mostly it.
Click to expand...
Click to collapse
Well, see I don't really get most of that. I don't understand the differences between C and C++ and Basic, I know they're separate languages, but I don't really notice any differences.
And I have never flashed a new kernel before, just new ROMs I'm actually pretty sure I still have the Stock DInc kernel, unless a few of the ROMs I've flashed came with kernels specifically for them... Not really sure how kernels effect the ROM :/ Like I said, noob. Hard.
Well, until you have flashing down, then I would stick there. Once you do it a few times, it is no big deal. The first time might have you on the edge of your seat.
thesmashippy said:
Not really sure how kernels affect the ROM :/.
Click to expand...
Click to collapse
The Kernel has a major effect on the rom. Changing a kernel can make a rom much better or far worst. Kernels allow many customizations in the rom like overclocking. Here's an example of this: Kernel A may allow your device to be overclocked to 1.2Ghz and Kernel B may allow your device to be overclocked to 1.9Ghz. See here: http://en.wikipedia.org/wiki/Kernel_(computing) . It's basically the same in Android.
Theonew said:
The Kernel has a major effect on the rom. Changing a kernel can make a rom much better or far worst. Kernels allow many customizations in the rom like overclocking. Here's an example of this: Kernel A may allow your device to be overclocked to 1.2Ghz and Kernel B may allow your device to be overclocked to 1.9Ghz. See here: "could not quote this url due to noobiness" . It's basically the same in Android.
Click to expand...
Click to collapse
Thanks for the description man that really specified it for me.
Ok, learning a bit at a time is good Anyone want to take me under their wing and teach me about writing code and creating my own ROMs?

How to compile an i717 kernel(ICS)

what is the or where can i find the defconfig of the kernel for i717..i am stuck on compiling my own kernel based from Faux and Showp's repo..
i used this Guide to build the kernel..and hopefully i can release it here on XDA for our use..
OR if somebody can help me compile this kernel..
EDIT: i have seem to grasp the defconfig..lolz..
kairi_zeroblade said:
what is the or where can i find the defconfig of the kernel for i717..i am stuck on compiling my own kernel based from Faux and Showp's repo..
i used this Guide to build the kernel..and hopefully i can release it here on XDA for our use..
OR if somebody can help me compile this kernel..
EDIT: i have seem to grasp the defconfig..lolz..
Click to expand...
Click to collapse
Have you contacted any developers ? Or those users who build kernels on a regular basis ?
They would be your best source for information on the kernel subject..and based on what I've seen in the note section, the devs are very willing to help and assist....IMHO....g
gregsarg said:
Have you contacted any developers ? Or those users who build kernels on a regular basis ?
They would be your best source for information on the kernel subject..and based on what I've seen in the note section, the devs are very willing to help and assist....IMHO....g
Click to expand...
Click to collapse
i get no reply from those Geniuses..only a few are helpful yet those helpful ones are also too busy to teach me..for how am i suppose to innovate this stuff if some are lazy to teach stuff..thats why we get no love at all..
i tried contacting the i727 kernel maker to ask some stuff yet assistance..but i get no reply at all..also before i asked franco and was able to get no response too..the only thing we need is a beefed up kernel..all roms are great and are stable but the fact we lack a beefed up kernel makes the device work like sh!t..i am not satisfied at all and all i can say is I WANT to make this device FASTER and BETTER..
kairi_zeroblade said:
i get no reply from those Geniuses..only a few are helpful yet those helpful ones are also too busy to teach me..for how am i suppose to innovate this stuff if some are lazy to teach stuff..thats why we get no love at all..
i tried contacting the i727 kernel maker to ask some stuff yet assistance..but i get no reply at all..also before i asked franco and was able to get no response too..the only thing we need is a beefed up kernel..all roms are great and are stable but the fact we lack a beefed up kernel makes the device work like sh!t..i am not satisfied at all and all i can say is I WANT to make this device FASTER and BETTER..
Click to expand...
Click to collapse
I applaud your effort, and I can appreciate how busy our development community is ...
Perhaps you could search out several different development sites, and you may find the answers there.
I know that many developers are self taught, and they protect that knowledge due too the endless hours of having to test and start again. But I'm sure that you could find a kitchen to cook a kernel or two...
UOT kitchen perhaps ???
I wish I could help you further, and I certainly wish you well in your search ....g
Look in I think arch/arm/config for defconfigs, see if the original devs had a config. If so, do
make ARCH=ARM whatever_defconfig
Replacing with the defconfig name and adding a CROSS_COMPILER statement as necessary. This will create a .config file in the root kernel directory. If no defconfig provided, you can try h0tw1r3's config and edit as necessary.
Sent from my SAMSUNG-SGH-I717

[Q] Kernels and Android Versions

I'm not understanding how kernels and ROMs connect. Can someone give me some extra insight?
[Hardware] <-- Unique to every phone
--
[Kernel] <--- Tells the OS how to talk to the hardware
--
[ROM] <--- Slightly confused. Is the OS in the Read only Memory, or has this term changed its "street" meaning?
I understand that most ROMs (e.g. CM7 and CM9) include both the kernel and the ROM, but can you flash these separately too?
I have a 1.5 year old thunderbolt that's rooted, and has CM7 which is based on gingerbread. I believe HTC has also released the kernel as open source, which is probably the reason I have CM7
Anyway, I guess what I'm looking for is an answer/guide/forum that explains why I can't install newer versions of android onto the already working/open source kernel I'm already running. Is it accurate to view the kernel as all the phone's drivers, or just the CPU driver? If that statement is true, why can't I load ICS or Jelly Bean onto my already existing set of drivers?
I'm thinking about starting a Wiki on this if 1) it doesn't already exist, and 2) I can wrap my brain around it enough to share with others!
Thanks to anyone with a response!
shadowrelic said:
I'm not understanding how kernels and ROMs connect. Can someone give me some extra insight?
[Hardware] <-- Unique to every phone
--
[Kernel] <--- Tells the OS how to talk to the hardware
--
[ROM] <--- Slightly confused. Is the OS in the Read only Memory, or has this term changed its "street" meaning?
I understand that most ROMs (e.g. CM7 and CM9) include both the kernel and the ROM, but can you flash these separately too?
I have a 1.5 year old thunderbolt that's rooted, and has CM7 which is based on gingerbread. I believe HTC has also released the kernel as open source, which is probably the reason I have CM7
Anyway, I guess what I'm looking for is an answer/guide/forum that explains why I can't install newer versions of android onto the already working/open source kernel I'm already running. Is it accurate to view the kernel as all the phone's drivers, or just the CPU driver? If that statement is true, why can't I load ICS or Jelly Bean onto my already existing set of drivers?
I'm thinking about starting a Wiki on this if 1) it doesn't already exist, and 2) I can wrap my brain around it enough to share with others!
Thanks to anyone with a response!
Click to expand...
Click to collapse
You are correct about the ROM, but ROMs also include the kernel (if it didn't, or no kernel was flashed separately, the device would not boot). Yes, other kernels can be flashed on your existing ROM, but it's not necessarily going to be compatible.
Sort of, but there's a lot more than that. See here and here. Later versions of Android will require newer drivers,etc. which the existing kernel won't provide (they'll be outdated). Back porting and additional coding is theoretically possible, but insanely difficult (many times). Even after this some things may still not work.
Thanks for the insight, I was able to get a lot deeper into this with those links. For anyone else wandering down a similar path, you might as well stop now! Here are a few links:
http://forum.xda-developers.com/showthread.php?t=1039217&page=2#17
http://www.cs.uwc.ac.za/~mmotlhabi/avmk.pdf
http://www.iteachandroid.com/2012/01/what-is-firmware-rom-and-firmware.html
So, if anyone else is still listening, I do have two more questions:
Do any phones have truly open source drivers? (a.k.a. higher probability of allowing old hardware to work with new android OS)
Is there any way to determine which phones will be supported by the custom-ROM community early on? I know the Nexus line doesn't have vendor modified code, is that the direction which would have the highest probability to stay at top of the Custom ROM curve without upgrading devices every year?
Thanks again for any insight! I hope I'm posting this in a Newb-Friendly forum!
shadowrelic said:
Thanks for the insight, I was able to get a lot deeper into this with those links. For anyone else wandering down a similar path, you might as well stop now! Here are a few links:
http://forum.xda-developers.com/showthread.php?t=1039217&page=2#17
http://www.cs.uwc.ac.za/~mmotlhabi/avmk.pdf
http://www.iteachandroid.com/2012/01/what-is-firmware-rom-and-firmware.html
So, if anyone else is still listening, I do have two more questions:
Do any phones have truly open source drivers? (a.k.a. higher probability of allowing old hardware to work with new android OS)
Is there any way to determine which phones will be supported by the custom-ROM community early on? I know the Nexus line doesn't have vendor modified code, is that the direction which would have the highest probability to stay at top of the Custom ROM curve without upgrading devices every year?
Thanks again for any insight! I hope I'm posting this in a Newb-Friendly forum!
Click to expand...
Click to collapse
For both your questions, the Nexus-line devices would be the way to go. They usually have everything working on new Android versions the soonest, and Google always releases their code, etc.
Hi
i can use linux kernel (zimage) to update android kernel if yes ,how ?
thnx

Help me understand kernel modification.

Hi,
I want to learn kernel modification as my exams are over and i have enough time with more than enough resources.
At first i would like to know how to add OC to stock GB & ICS kernel.
i know its about modifying the ramdisk but how?
Please redirect me to proper link, there are may moded kernel available here but i want to try it my self.
i just installing linux in my VMware right now.
www.xda-developers.com/android/xda-university-adding-features-to-your-freshly-compiled-kernel/
Cheers,
AJ

Categories

Resources