[Q] GT-S7500 kernel 3.12 development - General Questions and Answers

Hi,
I've read that finally we (ace plus users) are starting to have a 3.0 kernel :good:.
I've also read that with 3.4 kernel, linux introduced better support for ARM SoCs.
Googling, I've found that 3.12 kernel introduced adreno gpu support.
My question is: what are the steps needed to port a linuk 3.0x kernel to 3.12? I'd like to know what are the common Android related problems, and vendor device related.
I know that my question isn't very clear, and that could require a "long" answer but any informations or links will be appreciated
Thank's in advance
Marco

Related

[Q] Android kernel programming

Hi All
I am a newbi to kernel programming , especially to android kernel.
Can you tell me some good places on the net , that can be great sources for getting in touch with that thing.
I want to become familiar with the android kernel , dalvic etc. ( I speak english and german )
thanks in advance.
Sz_gergo
I am too interested in this subject. I am learning slowly as and when I get time.
kernelnewbies.org
Generally good resource for starting out learning linux kernel
(Which is what the android is built off of)
android.git.kernel.org
Android Kernel Source
lwn.net/Kernel/LDD3/
Online guide to driver development among many other related topics.
pdk.android.com
This guide provides an under-the-hood introduction to the Android platform, and is designed for platform developers and manufacturers building Android-powered devices.
Sorry for not providing the links...xda won't allow me to post links since I have less posts.
Android kernel
Dear All
as i understand, the android kernel source, what you can download from Google , should be enough for building a new kernel to some phone.
If i am right, does that mean that the Linux kernel sources are already included?
Or am i totally wrong?
Thanks for your answers
I am also interested in learning the Kernel Development and ROM development. Can Any one Help.
sz_gergo;11673408 begin_of_the_skype_highlighting 11673408 end_of_the_skype_highlighting said:
Dear All
as i understand, the android kernel source, what you can download from Google , should be enough for building a new kernel to some phone.
If i am right, does that mean that the Linux kernel sources are already included?
Or am i totally wrong?
Thanks for your answers
Click to expand...
Click to collapse
I have the answere for the question above.
After i have inspected the Android kernel sources, it came out, that i have been right.The only source you need for creating a new kernel for a phone, is the complete android kernel.
The linux kernel is allready included.
I think if you want to build a kernel, specific for your phone. you have to overwrite the default dirs with the specific sources of your phone. If it is not allready done by others.
Android Kernel
Hi,
We need to distinguish between Linux and Android. Android was forked from Linux, and now those are managed as separate products. Android usually takes the updates from linux, but there are features in Android which Linux refused to get (such as wakelocks).
So the android kernel source includes all needed to build a working kernel.

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

New to XDA and need some guidance.

Hello everybody,
I am pretty new to the forums and want to learn how to make my own ROM. However, I want to learn how to do it from scratch. I have been reading the AOSP pages and my current knowledge is that I understand a bit about the Kernel and about the HAL. My question is about drivers. From my understanding Android's Kernel contains the driver for your particular device. Do I have to obtain a Samsung Kernel for a custom ROM for the S6 and S6 Edge from Samsung? Or can I simply find the Samsung drivers for each different model and integrate them into the standard Android Kernel (and tweak the driver to fix any bugs that come along the way). The Kernel distribution really confuses me. I feel as if every OEM should have to provide an archive of drivers in order to use Android to make the AOSP stronger. Am I constrained to Samsungs Kernel explicitly?

Is it possible to use a recent Kernel in tab2?

I was wondering if is it possible to use a recent kernel in tab2.
There is a Linux system (Maemo Leste, based on Devuan (Debian without systemd)) that runs in a Motorola Droid 4, that uses a recent version of the Linux Kernel (5.11) and has the same CPU and GPU. https://leste.maemo.org/Motorola_Droid_4
Would it work in tab2?
(sorry for my english).
gu_1_ said:
I was wondering if is it possible to use a recent kernel in tab2.
There is a Linux system (Maemo Leste, based on Devuan (Debian without systemd)) that runs in a Motorola Droid 4, that uses a recent version of the Linux Kernel (5.11) and has the same CPU and GPU. https://leste.maemo.org/Motorola_Droid_4
Would it work in tab2?
(sorry for my english).
Click to expand...
Click to collapse
This rom here uses a 3.4 kernel which is currently the latest one used on Tab 2
[ROM][AOSP][8.1 Oreo] Unlegacy Android (Unofficial)
Warranties: THIS GUIDE COMES WITH NO WARRANTY. I AM NOT RESPONSIBLE OF BREAKING YOUR PRECIOUS TABLET. PLEASE BACKUP YOUR DATA BEFORE CONTINUING, AS THIS GUIDE WILL WIPE YOUR DATA. Also, this guide assumes you have the following requirements...
forum.xda-developers.com
Why don't you try building a rom with 5.11 one ?? As you can see in the thread above, camera doesn't work due to 3.4 kernel and also wifi was an issue earlier but it is fixed now. Something or the other might not work but maybe the rom would boot up atleast !
gu_1_ said:
I was wondering if is it possible to use a recent kernel in tab2.
There is a Linux system (Maemo Leste, based on Devuan (Debian without systemd)) that runs in a Motorola Droid 4, that uses a recent version of the Linux Kernel (5.11) and has the same CPU and GPU. https://leste.maemo.org/Motorola_Droid_4
Would it work in tab2?
(sorry for my english).
Click to expand...
Click to collapse
Actually yes, we can use the 5.12 kernel i worked on but not with android, with Alpine Linux, please check https://forum.xda-developers.com/t/...linux-on-samsung-galaxy-tab-2-unified.4171483 (5.12 kernel only for 7 inch tablets, the 10 inch ones have different display panel, if you have a 10 inch one want to help with making it usable with 5.12 kernel, I'll try)
Mighty said:
Actually yes, we can use the 5.12 kernel i worked on but not with android, with Alpine Linux, please check https://forum.xda-developers.com/t/...linux-on-samsung-galaxy-tab-2-unified.4171483 (5.12 kernel only for 7 inch tablets, the 10 inch ones have different display panel, if you have a 10 inch one want to help with making it usable with 5.12 kernel, I'll try)
Click to expand...
Click to collapse
Update its 5.15 now https://gitlab.com/postmarketOS/pmaports/-/merge_requests/2526
TheDoctor46 said:
This rom here uses a 3.4 kernel which is currently the latest one used on Tab 2
[ROM][AOSP][8.1 Oreo] Unlegacy Android (Unofficial)
Warranties: THIS GUIDE COMES WITH NO WARRANTY. I AM NOT RESPONSIBLE OF BREAKING YOUR PRECIOUS TABLET. PLEASE BACKUP YOUR DATA BEFORE CONTINUING, AS THIS GUIDE WILL WIPE YOUR DATA. Also, this guide assumes you have the following requirements...
forum.xda-developers.com
Why don't you try building a rom with 5.11 one ?? As you can see in the thread above, camera doesn't work due to 3.4 kernel and also wifi was an issue earlier but it is fixed now. Something or the other might not work but maybe the rom would boot up atleast !
Click to expand...
Click to collapse
Well as far as Android is concerned, in the future, we might get Android 11 with the 5.4 android common kernel. That won't be a easy job to make though.
To port to mainline (5.15 kernel or newer) is kinda possible but it requires even harder work, indicated by the fact that there is only a finger-countable few of those get to this stage, and even if you get it, some features won't work.
LR7875 said:
Well as far as Android is concerned, in the future, we might get Android 11 with the 5.4 android common kernel. That won't be a easy job to make though.
To port to mainline (5.15 kernel or newer) is kinda possible but it requires even harder work, indicated by the fact that there is only a finger-countable few of those get to this stage, and even if you get it, some features won't work.
Click to expand...
Click to collapse
Making android work with mainline is going to be a task! For now we are running mainline 5.15 with PostMarketOS
Mighty said:
Making android work with mainline is going to be a task! For now we are running mainline 5.15 with PostMarketOS
Click to expand...
Click to collapse
Well that is good news, hope you reach success!
If that come true it will be a legend!

[NOOB QUESTION] Can an old android phone get the newest linux kernel without baseband functionality?

i'm noob here, so... sorry if the question sound silly...
is it possible to have an old qualcomm device (msm8610) a latest linux kernel such as 5.10 or 5.11 if i don't need the baseband functionality? is all the other driver is also closed source? i'm asking this because i have an old unused phone that i want to use to learn about kernel compiling and learn about hardware and stuff, and i just don't want to waste my time if such thing is impossible (compiling latest kernel for old phone)...
pink101 said:
i'm noob here, so... sorry if the question sound silly...
is it possible to have an old qualcomm device (msm8610) a latest linux kernel such as 5.10 or 5.11 if i don't need the baseband functionality? is all the other driver is also closed source? i'm asking this because i have an old unused phone that i want to use to learn about kernel compiling and learn about hardware and stuff, and i just don't want to waste my time if such thing is impossible (compiling latest kernel for old phone)...
Click to expand...
Click to collapse
If the stock kernel source code for your device is available to the public, you can use that to compile a new custom kernel for your device. But, an old device may not be able to use the latest kernel. If the stock kernel source code for your device is not available, you can't build a new custom kernel for your device.

Categories

Resources