Kernel question - Samsung Galaxy SL i9003

Sorry for this question but i'm very curious,
in this day i'm working to porting of Oxygen in this device, i download others rom , but i'd see the oxygen kernel is 2.2 - 2.6 Megabyte sized, its possible recompiled our kernel and make it light?
our kernel is more of 6.5 Megabyte

knn. said:
Sorry for this question but i'm very curious,
in this day i'm working to porting of Oxygen in this device, i download others rom , but i'd see the oxygen kernel is 2.2 - 2.6 Megabyte sized, its possible recompiled our kernel and make it light?
our kernel is more of 6.5 Megabyte
Click to expand...
Click to collapse
Two device is different...

knn
I appreciate ur work but please post ur questions in Q and A sections.

knn. said:
Sorry for this question but i'm very curious,
in this day i'm working to porting of Oxygen in this device, i download others rom , but i'd see the oxygen kernel is 2.2 - 2.6 Megabyte sized, its possible recompiled our kernel and make it light?
our kernel is more of 6.5 Megabyte
Click to expand...
Click to collapse
What about ramdisk compression?like lzma,xz,etc?

sakindia123 said:
What about ramdisk compression?like lzma,xz,etc?
Click to expand...
Click to collapse
i dont know about compression on this device =) but UC kernel is compressed using lzma is the same more of 6 megabyte ^^
namaless said:
Two device is different...
Click to expand...
Click to collapse
i know,
our kernel included recovery also i think, but there are much different between ( kernel oxygen for Samsung Galaxy II are 2.5 Mb )
my answer is: are device different or are our kernel not optimized already? ^^
======= ITALIAN FOR HE =========
Scusami il mio inglese, comunque lo conosco
nel nostro kernel mi pare ci sia pure la recovery e inoltre ho notato che attualmente il nostro kernel si basa su caricamento di moduli , guardando i kernel oxygen ho notato che non ci sono moduli esterni ( lib/modules è quasi vuota addiritura in alcune neanchè c'e ) mentre nel nostro ci sono incirca una 20 di moduli da caricare , inoltre la mia domanda era: come fa ad essere cosi piccolo? può anche il nostro diventare cosi?
vishal24387 said:
I appreciate ur work but please post ur questions in Q and A sections.
Click to expand...
Click to collapse
thanks,
sorry for wrong section, can i tell moderator to move into right? ^^

U r using UC kernel,i presume
I Dont think its possible to downsize it any further,w/o making a clean kernel from Aosp kernel tree.
There are also some things u can remove from the UC Kernel's ramdisk,but it will surely effect performance

knn. said:
i dont know about compression on this device =) but UC kernel is compressed using lzma is the same more of 6 megabyte ^^
i know,
our kernel included recovery also i think, but there are much different between ( kernel oxygen for Samsung Galaxy II are 2.5 Mb )
my answer is: are device different or are our kernel not optimized already? ^^
Click to expand...
Click to collapse
How many features has the kernel from original ROM? How big size of the boot partition has device of original ROM?
As you understand that if we need many governors or we need support of ext4/ext3/RFS/CIFS/so on filesystems, some other features we need more space.
Look kernel from UtterChaos Team supports 7 filesystems, 12 governors, 3 IO schedulers, and so on.
On my desktop I have 4.5M of kernel and 20M of initrd image (and here are only common kernel modules), because this is universal kernel and it can boots with different hardware.
If you need lesser size: compile the kernel without some features. That's all

@falex: thanks for your answer, i 'm not expert about android compiling , i know in my gentoo desktop ( no multilib ) kernel size is like < 10 mb( without ramdisk,modules integrates its booting only on my notebook ) , theorically Stock Boot partition are 8 mb,
Look kernel from UtterChaos Team supports 7 filesystems, 12 governors, 3 IO schedulers, and so on.
Click to expand...
Click to collapse
the thing i dont understand is: whats sense to included 12 governors without any one optimized ? ^^
i prefer one light kernel with 5-6 governors optimized and without any pedantics features , only this, anyway , the uc kernel is great! ^^
( when he make it compatible with CM , he's perfect )

knn. said:
@falex: thanks for your answer, i 'm not expert about android compiling , i know in my gentoo desktop ( no multilib ) kernel size is like < 10 mb( without ramdisk,modules integrates its booting only on my notebook ) , theorically Stock Boot partition are 8 mb,
the thing i dont understand is: whats sense to included 12 governors without any one optimized ? ^^
i prefer one light kernel with 5-6 governors optimized and without any pedantics features , only this, anyway , the uc kernel is great! ^^
( when he make it compatible with CM , he's perfect )
Click to expand...
Click to collapse
Are you sure that those governors aren't optimized? smartass2 is optimized (before (v4) it had bigger high limit of frequency, now it's ok) Also what do you mean under "optimization"? The kernel for our device is compiled with -O4 optimization. I think it's good enough (try to compile the same for desktop ).
Also as I said before: there is a lot of people, and they like different features. that's why we have so many governors. But it's linux. If you don't want some feature just remove it from menuconfig. As you did in your gentoo If you don't know how to do this: as Doomlord. Also for me the size of the kernel is not a problem while it can be flashed to boot partition.

There is no -O4 from gcc 3.2.3. Everything above -O3 results in -O3 being chosen.
-O3 make kernel bigger and unstable IMHO ( for desktop, i dont know for android )
my gentoo Kernel is compiled -O2 , its perfect
are you sure to Smartass v2 optimized? ^^
its general optimized by great napstar, but its not native for our kernel, i want optimized savagedzen, its great governor ^^
anyway now i'm flash XXKPQ and i wanna try ^^

knn. said:
There is no -O4 from gcc 3.2.3. Everything above -O3 results in -O3 being chosen.
-O3 make kernel bigger and unstable IMHO ( for desktop, i dont know for android )
my gentoo Kernel is compiled -O2 , its perfect
are you sure to Smartass v2 optimized? ^^
its general optimized by great napstar, but its not native for our kernel, i want optimized savagedzen, its great governor ^^
anyway now i'm flash XXKPQ and i wanna try ^^
Click to expand...
Click to collapse
From here
i compile using CM GCC-4.4.3 and Linaro 2011.11 GCC 4.6.2 with O4 optimizations
Click to expand...
Click to collapse
From here
So far, I have been able to optimize savagedzen governor for our device
Click to expand...
Click to collapse

Related

[KERNEL] Samsung Galaxy Y (GT-S5360) make & tweak with original sources

since the kernel sources for the GT-S5360 were published by Samsung. now folks can build their own kernels and flash them.
building is supposed to work in Win and Linux, but Linux seems to be faster to do.
since even unpacking the win sources get u into trouble,
so rather download it into a mint12-debian system.
following the readme and running make in /kernel/common fails due to missing /opts/...toolchain dir
HOW TO BUILD KERNEL 2.6.35 FOR GT-S5360
1. How to Build
- get Toolchain
Visit codesourcery. com , download and install Sourcery G++ Lite 2009q3-68 toolchain for ARM EABI.
Extract kernel source and move into the top directory.
$ cd kernel/common/
$ make bcm21553_totoro_05_defconfig
$ make
2. Output files
- Kernel : kernel/common/arch/arm/boot/zImage
3. How to make .tar binary for downloading into target.
- change current directory to kernel/common/arch/arm/boot
- type following command
$ tar cvf GT-S5360_Kernel_Gingerbread.tar zImage
Hey! Why are you not doing it?
up... can someone follow this up?
I will try it.But I dont Have the Device.I have created a tweaked Kernel for Optimus Me p350 with CPU Governers for more performance.Someone have to test the kernels.can anyone provide the link to the source
vivekkalady said:
I will try it.But I dont Have the Device.I have created a tweaked Kernel for Optimus Me p350 with CPU Governers for more performance.Someone have to test the kernels.can anyone provide the link to the source
Click to expand...
Click to collapse
please create a custom/tweaked kernel for us. we would be very greatful to you if you can do it
there are now 4+ custom rom's around. the cranium project offers a good tutorial. pls follow up there.
vivekkalady said:
I will try it.But I dont Have the Device.I have created a tweaked Kernel for Optimus Me p350 with CPU Governers for more performance.Someone have to test the kernels.can anyone provide the link to the source
Click to expand...
Click to collapse
here it is.
https://opensource.samsung.com/index.jsp;jsessionid=561ED613C70155D054F4934A262820B6

How to port a new kernel

Hi ,
I have and old msm7225 device , and development on xda has stopped . obviously everyone have bought a new phone ( me too ) , and nobody cares about it .
since i am not using it as my everyday phone , i want to bring a new kernel for it . It currently has a 2.6.32 kernel , and i want to port 2.6.35 or .38 .
i have some knowledge about kernels ,i have done some additions to the current kernel and i can fix most of the compilation errors that i will face ( i've tried it before ) , but i don't know what it needs to make it boot .
i don't expect a full working kernel , just boot and screen working , and then i'll start to fix the rest , one by one .
thnx
TakisBeskos said:
Hi ,
I have and old msm7225 device , and development on xda has stopped . obviously everyone have bought a new phone ( me too ) , and nobody cares about it .
since i am not using it as my everyday phone , i want to bring a new kernel for it . It currently has a 2.6.32 kernel , and i want to port 2.6.35 or .38 .
i have some knowledge about kernels ,i have done some additions to the current kernel and i can fix most of the compilation errors that i will face ( i've tried it before ) , but i don't know what it needs to make it boot .
i don't expect a full working kernel , just boot and screen working , and then i'll start to fix the rest , one by one .
thnx
Click to expand...
Click to collapse
For that you will have to patch your kernel upstream. Search for upstream patches of the specific kernel from CAF.. or some other devices must have patched it... who's source you may find on xda or on github.
If you are looking to port kernel 3.x.x .. then HTC Explorer ( which has Msm7225a ) also runs kernel 3.0.100 so you check out its kernel source that is probably the closest device you will get apart from HTC Golfu
There are no guides as such. Basic knowledge on C/C++ is required as well as good knowledge on the linux kernel and you will have to read in depth its documentation.
http://kernelnewbies.org/ is a good site to gain some knowledge on the subject.
Red Devil said:
For that you will have to patch your kernel upstream. Search for upstream patches of the specific kernel from CAF.. or some other devices must have patched it... who's source you may find on xda or on github.
If you are looking to port kernel 3.x.x .. then HTC Explorer ( which has Msm7225a ) also runs kernel 3.0.100 so you check out its kernel source that is probably the closest device you will get apart from HTC Golfu
There are no guides as such. Basic knowledge on C/C++ is required as well as good knowledge on the linux kernel and you will have to read in depth its documentation.
http://kernelnewbies.org/ is a good site to gain some knowledge on the subject.
Click to expand...
Click to collapse
htc explorer has msm7225a which is armV7 with adreno 200 . msm7225 is armv6 without gpu (like htc buzz which has 2.6.35 kernel ).
I am not a total noob in kernels , i can port some features and fix some problems on my existing kernel .
but i want to experiment , on new kernel

[Completed] Request Help for Kernel Compilation

Hello friends
last days i'd successfully compiled kernel for GT-N7100 and its work great
added cpu governor
1-but how can compile new gpu driver and use it in kernel?
2-how can identify hardwares to use different driver like wlan?
3-some kernel have extra features like changing gpu freq.how?
Thank you
juan503 said:
Hello friends
last days i'd successfully compiled kernel for GT-N7100 and its work great
added cpu governor
1-but how can compile new gpu driver and use it in kernel?
2-how can identify hardwares to use different driver like wlan?
3-some kernel have extra features like changing gpu freq.how?
Thank you
Click to expand...
Click to collapse
Hi @juan503.
Congrats on your working kernel!
Since we here at XDA Assist merely point you in the right direction, we do not provide tech support; I cannot answer all your questions.
There is however quite a few threads on how to add features to a kernel, and what you don't find in them you can ask there.
Check these out:
Adding features to your kernel - XDA University
[GUIDE] How to compile kernel EASIEST WAY + add features + useful tools
Good luck on your development!

[Q] Arch linux on Nexus 5 device

Has anyone an idea is it possible and how to get it working? I heard I need ArchlinuxARM armv7 image (found it already) and an apriopriate kernel (no idea about that one). Thanks in advance
You would need to build custom arm arch kernel strictly for our device. Then you would have to properly repartition your phone . And even then you would end up with something not so useful. Solution is to boot arch while running android and its kernel. And there is an app for that ! Search for Linux Deploy
What about performance of linux booted with this method? Do you think it can run xserver?
PS. Widze ze nie malo naszych Kielcow w internetach
X server is possible through using VNC so performance could suffer a little. It is usable though
@PWN1109 teraz w anglii ale juz niedlugo wracam

New linux kernel 4.9 for Snapdragon 625 and kernel and HAL source code

Great news fron Weibo, thanks for Mokee's developer XiNGRZ's share.
New linux kernel 4.9 for Qualcomm Snapdragon 625 and kernel and HAL source code of Android 9
http://caf.mokeedev.com/?version=9
https://wx1.sinaimg.cn/large/4b263fe4gy1futf5hw8wmj21hs0a2gt0.jpg
https://m.weibo.cn/status/4279258651583321
I don't know how to upload the picture, so only can give you the website's hyperlink
Yes! Looking in the CAF sources page (https://wiki.codeaurora.org/xwiki/bin/QAEP/release) you can see that kernel 4.9 for msm8953 and msm8953pro exists since Oreo ( LA.UM.6.6.2.r1-04200-89xx.0 is yet based on kernel 4.9 and CAF released it in 19/07/2018) and it was based on Linux 4.9.82, now with Android 9 it's based on Linux 4.9.112.
So, long life to all these devices that has this SoC!
But, for Pie there are 2 tags and one is still based on kernel 3.18 (to be more precise, 3.18.115, LA.UM.7.6.r1-02000-89xx.0 ) and the other one is at kernel 4.9 (4.9.112, LA.UM.7.6.2.r1-03000-89xx.0 ). I think we can see some ROMs with kernel 4.9 in the next months, but for now we stay on 3.18 while waiting they make perfectly working 4.9.
matteo0026 said:
Yes! Looking in the CAF sources page (https://wiki.codeaurora.org/xwiki/bin/QAEP/release) you can see that kernel 4.9 for msm8953 and msm8953pro exists since Oreo ( LA.UM.6.6.2.r1-04200-89xx.0 is yet based on kernel 4.9 and CAF released it in 19/07/2018) and it was based on Linux 4.9.82, now with Android 9 it's based on Linux 4.9.112.
So, long life to all these devices that has this SoC!
But, for Pie there are 2 tags and one is still based on kernel 3.18 (to be more precise, 3.18.115, LA.UM.7.6.r1-02000-89xx.0 ) and the other one is at kernel 4.9 (4.9.112, LA.UM.7.6.2.r1-03000-89xx.0 ). I think we can see some ROMs with kernel 4.9 in the next months, but for now we stay on 3.18 while waiting they make perfectly working 4.9.
Click to expand...
Click to collapse
Nice ! I love my sd625 device, good to know it's not left behind with an old Kernel.
Do you think this Kernel could improve performance and battery life ? Maybe make this chip even more efficient
Redmi4power said:
Nice ! I love my sd625 device, good to know it's not left behind with an old Kernel.
Do you think this Kernel could improve performance and battery life ? Maybe make this chip even more efficient
Click to expand...
Click to collapse
No, I think it just improves security. But it's yet a big step for sd625
matteo0026 said:
No, I think it just improves security. But it's yet a big step for sd625
Click to expand...
Click to collapse
It does improve performance and battery life. Main thing, amongst other things like improved security and way newer drivers, is the EAS.
Our devs are already working on 4.9 kernel for Mi A1, already testing it and recently released experimental builds and even now it's no comparison to 3.18 in it's current state, it's not even fair to compare.
airidosas252 said:
It does improve performance and battery life. Main thing, amongst other things like improved security and way newer drivers, is the EAS.
Our devs are already working on 4.9 kernel for Mi A1, already testing it and recently released experimental builds and even now it's no comparison to 3.18 in it's current state, it's not even fair to compare.
Click to expand...
Click to collapse
I saw that thread on Mi A1, devs are doing a good work. And do you think that EAS could be usable on our SoC too? If yes, I know that improves much the battery life
matteo0026 said:
I saw that thread on Mi A1, devs are doing a good work. And do you think that EAS could be usable on our SoC too? If yes, I know that improves much the battery life
Click to expand...
Click to collapse
Of course, EAS is impremented by Qcom itself on 4.9, so it is properly optimized and calibrated. Even now I don't need to adjust anything, just left it as it is.
What's more interesting is what OEM is going to do - be with 3.18 or move on to 4.9. Knowing Xiaomi, I'm guessing they'll stay on 3.18.
airidosas252 said:
Of course, EAS is impremented by Qcom itself on 4.9, so it is properly optimized and calibrated. Even now I don't need to adjust anything, just left it as it is.
What's more interesting is what OEM is going to do - be with 3.18 or move on to 4.9. Knowing Xiaomi, I'm guessing they'll stay on 3.18.
Click to expand...
Click to collapse
Ehm, yes I they stay on 3.18 because there are 3.18 tags based on Pie for msm8953_64. I'm thinking to do 4.9 for p2, but... I don't know what I have to do... I haven't knowledges, but I want to give a try.
matteo0026 said:
Ehm, yes I they stay on 3.18 because there are 3.18 tags based on Pie for msm8953_64. I'm thinking to do 4.9 for p2, but... I don't know what I have to do... I haven't knowledges, but I want to give a try.
Click to expand...
Click to collapse
Some crucial stuff might need backporting for sure, you should ask around other people. They might help you out. I'm out of development game, too busy doing other things in my life, so can't comment on this much more.
matteo0026 said:
Ehm, yes I they stay on 3.18 because there are 3.18 tags based on Pie for msm8953_64. I'm thinking to do 4.9 for p2, but... I don't know what I have to do... I haven't knowledges, but I want to give a try.
Click to expand...
Click to collapse
p2 community is with you. we can help you with testing. go ahead ???
Any update?
There will be advantage ?
Is it easy to port ?
Can not download source code for msm8953_64
Ask in tissot forum may be they'll know something
when its coming?
so excited:fingers-crossed:
ZJ_CN said:
Great news fron Weibo, thanks for Mokee's developer XiNGRZ's share.
New linux kernel 4.9 for Qualcomm Snapdragon 625 and kernel and HAL source code of Android 9
http://caf.mokeedev.com/?version=9
https://wx1.sinaimg.cn/large/4b263fe4gy1futf5hw8wmj21hs0a2gt0.jpg
https://m.weibo.cn/status/4279258651583321
I don't know how to upload the picture, so only can give you the website's hyperlink
Click to expand...
Click to collapse
any update ?
SD625 kernel 4.9
Hello, please help me find the kernel sources CAF for msm8953_64 3.18.71-74, thanks in advance
---------- Post added at 02:28 PM ---------- Previous post was at 02:21 PM ----------
Hello, please help me find the kernel sources CAF for msm8953_64 3.18.71-74, i have compile kernel for device billion capture +, thanks in advance
Would like to breath new life into my Lenovo P2, but I guess 4.9 will remain a dream?

Categories

Resources