[REF] Kernel source code repository for Galaxy S III - Galaxy S III Android Development

Hi everyone.
As you all know, Samsung distributes source code as tarballs which isn't the best way to redistribute kernel source code
git is the best modern way to work with Linux Kernel sources, designed by Linus himself in this purpose.
So, i made an organization on github for that.
https://github.com/sgs3
And yea, that means source code has been released, head on to http://opensource.samsung.com/
Kernel Sources :
https://github.com/sgs3/GT-I9300_Kernel
Branches :
master :- branch you should use(for developers), will contain fixes and more in the future (currently identical to stock_update4)
stock :- Kernel sources from GT-I9300_ICS_Opensource.zip, unmodified
stock_update1 :- Kernel sources from GT-I9300_ICS_Opensource_Update1.zip, unmodified
stock_update4 :- Kernel sources from GT-I9300_ICS_Opensource_Update4.zip, unmodified
If anyone wants to commit any fixes / anything else, fork and shoot a pull request
How to Build :
Get teh sauce:
Code:
git clone git://github.com/sgs3/GT-I9300_Kernel.git
cd GT-I9300_Kernel
git checkout master
Tell it to use our config:
Code:
make ARCH=arm CROSS_COMPILE=/path/to/toolchain m0_00_defconfig
Teh real build:
Code:
make CROSS_COMPILE=/path/to/toolchain
or
Code:
make -j `cat /proc/cpuinfo | grep "^processor" | wc -l` CROSS_COMPILE=/path/to/toolchain
The compiled kernel is arch/arm/boot/zImage

Was about to post this
Will start compiling and have a kernel up and running soon I hope. This time in contrast to the S2, it's time for serious developing.
Here's a direct link to the S3 files: http://opensource.samsung.com/reception/receptionSub.do?method=search&searchValue=GT-i9300

This is great news guys,
lets hope that we will also have a proper CWM recovery soon.

stickied
@whomever is building from source, please include the MMC driver patch that enables boot partition visibility. Maybe I'll even do it myself... this'll let TriangleAway work, so we can reset the flash counters
EDIT: this is the patch in question: http://git.kernel.org/?p=linux/kern...it;h=371a689f64b0da140c3bcd3f55305ffa1c3a58ef. Apparently Sammy took this out again in their sources (according to somebody else, I haven't had time to confirm yet, but I can see the boot partitions do *not* appear on my device), they may have bastardized it further ...

Chainfire said:
stickied
@whomever is building from source, please include the MMC driver patch that enables boot partition visibility. Maybe I'll even do it myself... this'll let TriangleAway work, so we can reset the flash counters
Click to expand...
Click to collapse
No CF-Root Kernels for the i9300?

Toss3 said:
No CF-Root Kernels for the i9300?
Click to expand...
Click to collapse
Well it's not needed as much due to the separate recovery, but if there's demand, I'll build CF-Root's... but those are based on Samsung binaries, not source.

Great! I'll go through this when I get the time.

Chainfire said:
Well it's not needed as much due to the separate recovery, but if there's demand, I'll build CF-Root's... but those are based on Samsung binaries, not source.
Click to expand...
Click to collapse
Of course I want a CF kernel

pglmro said:
Of course I want a CF kernel
Click to expand...
Click to collapse
I think everyone of us want a CF-Root-Kernel

Roughnecks said:
I think everyone of us want a CF-Root-Kernel
Click to expand...
Click to collapse
I don't really see the point why we should make that. I have flashed cwm with Odin and then the SuperSu cwm flashable zip available here on xda. Then installed busybox installer from the play store. Much easier to do as letting Cainfire always compile a cf-root kernel for us.
L

great seeing some a class developers here!!
thanks for opening this thread..
and good to know ya'll have a s3 aswell..
grtz!

Great news , hope to see some nice custom kernels soon!

Kernel dev's:
Please share your github if you start then

what?update#1 is already out?
Hope Samsung release a cleaner source this time

sakindia123 said:
what?update#1 is already out?
Hope Samsung release a cleaner source this time
Click to expand...
Click to collapse
Looks like they messed up the first zip, so the quick update
Only change i can see from stock to stock_update1 is the changing of file mode from 0755 to 0644

Samsung releases source code for the Galaxy S III
UPDATE 1 is out.
{
"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"
}

Chainfire said:
@whomever is building from source, please include the MMC driver patch that enables boot partition visibility. Maybe I'll even do it myself... this'll let TriangleAway work, so we can reset the flash counters
Click to expand...
Click to collapse
They seem to have hacked it out pretty crudely (certainly the korg patch won't apply cleanly). No device here, can't really test this, but the attached patch should properly allocate any mmc boot partitions.

A couple more patches before I rm
No device here and no idea if I'll ever get one, but I thought I would post couple more cosmetic (yet instrumental) patches for your tree so that my last 15 minutes wouldn't be in vain.
#1: m0_00_defconfig: Run through menuconfig;disable GCC strict checking. Otherwise I get a lot of noise with codesourcery toolchains
#2: Add .gitignore files from korg trees.
Take care

Anyone else get compilation error due to SVN_REV variables in these Makefiles:
drivers/media/video/samsung/mali/Makefile
drivers/media/video/samsung/ump/Makefile
I comment out the lines and replaced them with
Code:
SVN_REV=:0000
I used 0000 because of the comment in the Makefile.
Now, it compiles without error (though untested since I don't own S III)

Nope ... didn't get those errors!

Related

[KERNEL] Xcelerate™ [Updated:04/11]

{
"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"
}
SOURCE​
**Snapdragon™ is a registered trademark owned by Qualcomm Technologies Inc.
**Synapse™ is a registered trademark owned by @Andreilux
**(v1)Xcelerate Logo™ is created by @fareed_extreme
**(v2)Xcelerate Logo™ is created by @Sharan Narayan
XDA:DevDB Information
Xcelerate™ Custom Kernel, Kernel for the YU Yureka
Contributors
kairi_zeroblade, DooMLoRD, RohanAJoshi
Kernel Special Features:
Version Information
Status: Stable
Current Stable Version: Production build 4
Stable Release Date: 2015-04-11
Created 2015-02-16
Last Updated 2015-04-11
Reserved
Short Credit list:
DooMLoRD for assisting in the compilation
Rohan Joshi, Prithvi Raju and Raj Gopi for testing
Cyanogen
ARM
Short Feature list:
Basic Governors(I won't add Ripoffs)
Built using my own GCC 4.9.x Toolchain(with fixes specifically Aimed at Cortex A53 erratas) built across the standards of Google's own Toolchain..
Simple and no fancy stuff..(more does not guarantee it's better)
Uses a simple free and user friendly application called Synapse by @AndreiLux for configuration purposes(slightly adding more functionality)
A few Notes:
Be advised that this kernel is best used "As is" i do want to prohibit the use of scripts that they say "enhances performance and battery" just use the kernel as it is..everything is managed automatically by the kernel and rest assured continuous innovations are en-route.
**Camera might be broke on OLDER CM11 and UNOFFICIAL BUILDS since this is built using the latest source from Cyanogen use this FIX
Compatibility list:
According to testers/users feedback the Kernel works on the FOLLOWING ROMS(tested)
CyanogenMod 11(Stable)
The list will grow as soon as Testers/Users can provide means and ways to make this compatible with everything..
Downloads
Grab latest Production builds here
Nice work mate :good:
BTW could have been much better if u could just left cm commits on git
so would have been easier for other devs to track earlier parent commit changes Rather than using : initial dump of Yureka source from CM snapshot 2-13-2015
Anyways no problems .....
Proud to be tester of this kernel..
working amazingly..
charging speed is double than before now..
also smoothness is awesome, thanks bro..
in call battery drain is dramatically reduced from 12% / hr to 6% / h..
will seek for further features..
does it shutdown cores when low usage ???
Not a fan of Custom Kernels, but...
but, yeah, but for the first time 'll be trying this (don't know why but I have this voice inside of me that's compelling me to try this out), hope everything goes well, will edit to share my experiences once I've used it for a couple of days, till then, thanks for this and appreciations for your efforts.
more governors please?
Thanks a lot! I had been waiting for this kind of a custom kernel!
hey, could you add smartassv2 governor to the kernel?
*downloading the kernel as i type*
Cheers!
:good: :good:
camera not working!!!!!!!!!!!!!!!!
sauravdante said:
camera not working!!!!!!!!!!!!!!!!
Click to expand...
Click to collapse
Flash the updated kernel I have posted, it includes the libs, then flash xcelerate kernel, camera should work.
Op can add those libs.
No UCI support detected !
Damn ! OP enlighten me on this error when I try to open Synapse.
I'm rooted, I have the stock room that came with the cell, the ago had superuser permissions, but still I'm not able to get that app to work. Did a normal flash, booted into recovery, selected the zip that I downloaded and record again.
Googled for the error, found a post in which a guy having Xiaomi had the exact same problem, there you our someone suggested to flash normally, so that's kinda what I did, what m I missing ??
hkm93 said:
Damn ! OP enlighten me on this error when I try to open Synapse.
I'm rooted, I have the stock room that came with the cell, the ago had superuser permissions, but still I'm not able to get that app to work. Did a normal flash, booted into recovery, selected the zip that I downloaded and record again.
Googled for the error, found a post in which a guy having Xiaomi had the exact same problem, there you our someone suggested to flash normally, so that's kinda what I did, what m I missing ??
Click to expand...
Click to collapse
I am getting this. [emoji20]
hkm93 said:
Damn ! OP enlighten me on this error when I try to open Synapse.
I'm rooted, I have the stock room that came with the cell, the ago had superuser permissions, but still I'm not able to get that app to work. Did a normal flash, booted into recovery, selected the zip that I downloaded and record again.
Googled for the error, found a post in which a guy having Xiaomi had the exact same problem, there you our someone suggested to flash normally, so that's kinda what I did, what m I missing ??
Click to expand...
Click to collapse
Sudeep Duhoon said:
I am getting this. [emoji20]
Click to expand...
Click to collapse
Support for synapse is probably coming in the next builds..as I'm not familiar with the sysfs for the YU yet..I'm building this blind and with @RohanAJoshi only doing the tests for me.. rest assured its stable, fast and battery friendly..
EDIT:
I'm still looking for testers if someone is interested in hitting up to the task well you can find me on Hangouts via [email protected]
I am in pac man rom can i use this kernal?
proximity issue
Facing proximity issue after flashing this kernel.... Hope so this ll get fixed in upcoming builds nice work indeed
---------- Post added at 04:59 AM ---------- Previous post was at 04:55 AM ----------
Camera not working after flashing latest build
Been using for more than half a day. So far so good. thanks @kairi_zeroblade :good:
Testing your kernel on dumtara CM11 build.
Any possibilities of some custom governors that implement core hot plugging functionality ??
Error
satitrip said:
Click to expand...
Click to collapse
Dude, its already posted in the thread, Read first. Correct your image size, it covers my screen, seriously.
cm11 dumtara
I'm on cm 11 by dumtara. can I flash this kernel?
kairi_zeroblade said:
I'm still looking for testers if someone is interested in hitting up to the task well you can find me on Hangouts via [email protected]
Click to expand...
Click to collapse
I saw ur post regarding that, but I may not have mentioned this but I'm not so good in technical side of android. Being a java developer I never bothered about them but for the past few days I'm actually inclined towards learning android development too, say just as an additional hobby, and to my surprise it's Java too.
Now that I have already flashed the kernel, I can be of some use for sure, but conditions apply. I am not available all ( I can update you on a daily basis in between 10-11 pm IST, and on weekends if that's ok with you) the time and someone will have to guide me or provide info on what I'm supposed to do, coz I have no idea what needs to be done while testing a kernel.
Sudeep Duhoon said:
Flash the updated kernel I have posted, it includes the libs, then flash xcelerate kernel, camera should work.
Op can add those libs.
Click to expand...
Click to collapse
Thanks.. But which kernel should should I flash first and which one next.. Can you give download links pls.

[REPO][DEV] CyanogenMod 12 for GALAXY Grand Prime

</> Developpers Only </>
As you may know it, GALAXY Grand Prime is powered by a 64Bit Entry-Level Quad Core CPU, that makes developpment on this device VERY HARD It's like Intel Atom Processors
Anyway, I tried to make a repo for building TWRP GALAXY Grand Prime by refering to Huawei G620S' Repo by GitHub member "EloYGomeZ" BIG thanks to him.
If you're interested in building TWRP, you can use this repo. Feel free to use it, but please remember to give credits when done.
The Repo isn't yet done, it may contains many bugs and errors; plus I can't test it or test a TWRP build since I don't have my hand on that device (should have one in 2 weeks).
Update as of 18/6/2015: TWRP has been compiled for Grand Prime
TWRP ==> http://forum.xda-developers.com/grand-prime/development/share-twrp-2-8-4-0-galaxy-prime-t3064506
Philz Touch :
Download ==> https://mega.co.nz/#!SQ8XkIiI!Kj_9rhfVY8bz0nRjZGDGra4Bs3Nen-87O4vhWGHlVzc
Thread ==> http://forum.xda-developers.com/gra...share-galaxy-grand-prime-sm-g530h-f0-t3057571
Source ==> http://www.phonandroid.com/forum/ph...d-galaxy-grand-prime-sm-g530f-fz-t116883.html
Current CM12 ETA:​- Compiled successfully
- Bootable
- CanNOT get to home launcher!
GitHub an sources:
@K_TECH 's device tree and all sources needed to compile cm12 ==> https://github.com/fortunave3gxx
fortuna3g TWRP Repo ==> https://github.com/Nonta72/fortuna3g-twrp (mine)
Huawei G620S TWRP Repo (used as a reference): https://github.com/Nonta72/android_device_huawei_g620s-twrp (EloYGomeZ)
Device Tree (WIP): https://github.com/Nonta72/fortuna3g-tree (mine)
Source Code for KK: http://opensource.samsung.com/reception/receptionSub.do?method=sub&sub=F&searchValue=SM-G530​
Wow great,
IMO, its not about 64bit chipset, as we know, lenovo a6000/k30 have the same chipset 64bit.
But have development, we have CWM, Phillz recovery, cm11, MIUI rom
The main problem to devevelop grand prime is qualcomm secure bootloader that protect the device. We need to disable the secure bootloader first. CMIIW
Shinkumara said:
Wow great,
IMO, its not about 64bit chipset, as we know, lenovo a6000/k30 have the same chipset 64bit.
But have development, we have CWM, Phillz recovery, cm11, MIUI rom
The main problem to devevelop grand prime is qualcomm secure bootloader that protect the device. We need to disable the secure bootloader first. CMIIW
Click to expand...
Click to collapse
I didn't see Lenovo a6000 CWM/TWRP and Custom ROMs yet.
About Bootloader on Grand Prime, I never heard about this
Maybe we should start unlocking this 1st
I can't do anything as of now, since I don't have the decice yet.
i hope i can learn somewhere how to build twrp. Anyway i will support u guys.
Samir96 said:
i hope i can learn somewhere how to build twrp. Anyway i will support u guys.
Click to expand...
Click to collapse
If you think you can be tester and don't care about flashing your phone at least twice a day, then you can help!
can you please fix it. recently i don't have the device. building cm 11
nilimahona said:
can you please fix it. recently i don't have the device. building cm 11
Click to expand...
Click to collapse
What's the problem with the BoardConfig ?
PS: I also don't own the device yet.
The board config should be in KK Kernel source.
I'll test extensively I have 8 sm-g530az (cricket USA)
All rooted with cwm philz recovery
Nonta72 said:
If you think you can be tester and don't care about flashing your phone at least twice a day, then you can help!
Click to expand...
Click to collapse
krazy_smokezalot said:
I'll test extensively I have 8 sm-g530az (cricket USA)
All rooted with cwm philz recovery
Click to expand...
Click to collapse
The device already have CWM.
All you need now is CyanogenMod.
Nonta72 said:
The device already have CWM.
All you need now is CyanogenMod.
Click to expand...
Click to collapse
Would you know if anyone has started on that project?
krazy_smokezalot said:
Would you know if anyone has started on that project?
Click to expand...
Click to collapse
I already started, currently getting the device tree ready.
Lets start ^_^
{
"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"
}
I'm getting stuck in this error :3
source: http://github.com/fortunave3gxx
Try "apt-cache search audio_defs.h" to find the dev package that is missing. Sometimes it work
Sent from my SM-G530FZ using XDA Free mobile app
kentone said:
Try "apt-cache search audio_defs.h" to find the dev package that is missing. Sometimes it work
Sent from my SM-G530FZ using XDA Free mobile app
Click to expand...
Click to collapse
Nevermind, i solved that errors in an hour ago ^_^
The build progress has been done, but i get an error when i try to flash it"binnary error". And it's come from recovery
If it ready, i'll upload my device configuration, Stay tuned
my own source: http://github.com/fortunave3gxx
K_TECH said:
The build progress has been done, but i get an error when i try to flash it"binnary error". And it's come from recovery
If it ready, i'll upload my device configuration, Stay tuned
my own source: http://github.com/fortunave3gxx
Click to expand...
Click to collapse
try to replace the update-binary in META-INF folder
The you can building kernel from source code boeffla working with grand prime ... kernel boeffla is 1 of the famous kernel. if you are building is too good. I very much hope into you. Thx you
Nonta72 said:
try to replace the update-binary in META-INF folder
Click to expand...
Click to collapse
Can you share your update-binary?
recoman said:
The you can building kernel from source code boeffla working with grand prime ... kernel boeffla is 1 of the famous kernel. if you are building is too good. I very much hope into you. Thx you
Click to expand...
Click to collapse
I don't think Lord Boeffla does support the Grand Prime.
K_TECH said:
Can you share your update-binary?
Click to expand...
Click to collapse
I'd love to, but I don't have the device yet. That's why I even stopped the project.
Suggestion: try to find a similar device (same chipset) that have CM or a CWM ROM, download that ROM and replace your binary with the one in that ROM. I heard the Huawei G620S (with MSM8916) have a working CyanogenMod, you may want to check that out.
Suggestion 2: make sure your updater-script is well formed, I can help you with that if needed, just upload that file.

[KERNEL][FIRE G5] Zest Kernel reBORN 🍋 - May - CM12.1

{
"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"
}
Code:
*** Disclamer
Please behave responsibly and avoid thermonuclear war. I am
not responsible for any bricked devices, etc.
Introduction
This is Zest Kernel. It's an optimized kernel for our device which includes a few nifty features. Built, on every security update, you'll have the best of the best. Features will be listed below and shared, to the most of my ability, across all my supported devices. This isn't just my kernel it's yours too - request any features you like and I'll try to add them in. However, I'm also busy with studies so please don't ask for dumb stuff.
THIS DEVICE IS CURRENTLY A TESTING KERNEL AND MAY NOT WORK. BACKUP YOUR BOOT.IMG BEFOREHAND.
Click to expand...
Click to collapse
Features
Built on UBERnaro toolchain
High tickrate to avoid jitter
Lib optimisations
F2FS support
Click to expand...
Click to collapse
Installation instructions
* Flash via TWRP, or Franco Kernel Manager (needs testing for this device)
* Enjoy!
Click to expand...
Click to collapse
Download
Latest is available at ftp://ftp.lasterhub.me.
Click to expand...
Click to collapse
FAQ
Tag me in XDA's Amazon.. oh wait. There's no group (yet?). Just PM me for now.
Click to expand...
Click to collapse
Special Thanks To
Code:
* MTK for being retarded
​
XDA:DevDB Information
Zest Kernel Projecc, Kernel for the Amazon Fire
Contributors
LazerL0rd, ggow, k4y0z
Source Code: https://gitlab.com/ZKP/ford
Kernel Special Features:
Version Information
Status: Testing
Created 2019-05-28
Last Updated 2019-05-29
LazerL0rd said:
Last Updated 2019-05-28
Click to expand...
Click to collapse
Nice.
May I ask for a little safety step to be added. Someone here is gonna not read and try to flash this on 'Austin'
And your anykernel.sh has device check set at NO. (do.devicecheck=0). Maybe better to make it (do.devicecheck=1)
Hi, On top of latest lineage rom, it gave me bootloop. Reflashing stock boot image fixed. Is it me or it's still under development?
newinnov said:
Hi, On top of latest lineage rom, it gave me bootloop. Reflashing stock boot image fixed. Is it me or it's still under development?
Click to expand...
Click to collapse
Austin or ford?
Rortiz2 said:
Austin or ford?
Click to expand...
Click to collapse
Ford 2015 it is
mrmazak said:
Nice.
May I ask for a little safety step to be added. Someone here is gonna not read and try to flash this on 'Austin'
And your anykernel.sh has device check set at NO. (do.devicecheck=0). Maybe better to make it (do.devicecheck=1)
Click to expand...
Click to collapse
Ah, yes. Weirdly some TWRPs react funnily to this command so on-release I always leave it off. Seems there's only one TWRP here tho. Thanks, will do :highfive:.
newinnov said:
Hi, On top of latest lineage rom, it gave me bootloop. Reflashing stock boot image fixed. Is it me or it's still under development?
Click to expand...
Click to collapse
The kernel seems to be pretty much correct, it's the flashing procedure that I'm uncertain of. It's the same base kernel @ggow uses with some building fixes and my additions. But yes, this is a development kernel until anyone can actually get it working with the patch.
LazerL0rd said:
The kernel seems to be pretty much correct, it's the flashing procedure that I'm uncertain of. It's the same base kernel @ggow uses with some building fixes and my additions. But yes, this is a development kernel until anyone can actually get it working with the patch.
Click to expand...
Click to collapse
I had a stock built kernel from unmodified Amazon source, and installed it with anykernel, before I discontinued the project. @ggow showed me up. Way up, by making his kernel free from that Amazon log feature.
Anyway anykernel flashes this device with the exploit no problem.
Think I had used anykernel 2 though. You have used 3.
I will look again, and see if I see any difference in the scripts.
EDIT:
I just tried to flash with the anykernel2 script i had used before. And result was bootlooping on the Amazon logo.
mrmazak said:
I had a stock built kernel from unmodified Amazon source, and installed it with anykernel, before I discontinued the project. @ggow showed me up. Way up, by making his kernel free from that Amazon log feature.
Anyway anykernel flashes this device with the exploit no problem.
Think I had used anykernel 2 though. You have used 3.
I will look again, and see if I see any difference in the scripts.
EDIT:
I just tried to flash with the anykernel2 script i had used before. And result was bootlooping on the Amazon logo.
Click to expand...
Click to collapse
I tried both AK2 and AK3 with osm0sis seeing no issues in my AK configuration, so it’s not that.
Yah, I think something was changed and some sort of check was added in. I think I tried dm-verity disabling too but I may be wrong. My kernel is available at https://lasterhub.me/zk.html for anyone to try though ( click menu then BETA before selecting as no release version was released yet ).
I can't get the link to work? This ded?
beynolds.rurt said:
I can't get the link to work? This ded?
Click to expand...
Click to collapse
Yes. This is dead. OP never followed up after he was told this did not work as claimed.
mrmazak said:
Yes. This is dead. OP never followed up after he was told this did not work as claimed.
Click to expand...
Click to collapse
Knew it was too good to be true

Question S21 Ultra [Exynos]: Building a custom kernel

Hello, I am trying to build and run a custom kernel on S21 Ultra Exynos (SM-G998B). Reason: support permissive SELinux policy.
I am running AUF6 firmware, downloaded AUF6 kernel source from Samsung, followed the included build instructions and with unmodified sources, ran included `build_kernel.sh `, and created a boot.img using AIK, and flashed the resulting .img file via TWRP.
Rebooting into system, the phone is stuck on displaying the boot logo. Reading /proc/last_kmsg through TWRP, logging stops right after 'Starting kernel...' message. At this point I am not sure what else I can do to resolve this. Please help.
P.S. my compiled Image size is 26M, while stock is 28M.
The tutorial I followed: https://pucarasec.wordpress.com/2020/06/16/debugging-the-samsung-android-kernel-part-2/
Another post with trying to build S21 kernel, with outcome, similar to mine: https://groups.google.com/g/android-platform/c/ljRkDbBE0lE/m/mr4MM0WGCAAJ
mzakharocsc said:
Hello, I am trying to build and run a custom kernel on S21 Ultra Exynos (SM-G998B). Reason: support permissive SELinux policy.
I am running AUF6 firmware, downloaded AUF6 kernel source from Samsung, followed the included build instructions and with unmodified sources, ran included `build_kernel.sh `, and created a boot.img using AIK, and flashed the resulting .img file via TWRP.
Rebooting into system, the phone is stuck on displaying the boot logo. Reading /proc/last_kmsg through TWRP, logging stops right after 'Starting kernel...' message. At this point I am not sure what else I can do to resolve this. Please help.
P.S. my compiled Image size is 26M, while stock is 28M.
The tutorial I followed: https://pucarasec.wordpress.com/2020/06/16/debugging-the-samsung-android-kernel-part-2/
Another post with trying to build S21 kernel, with outcome, similar to mine: https://groups.google.com/g/android-platform/c/ljRkDbBE0lE/m/mr4MM0WGCAAJ
Click to expand...
Click to collapse
I'm sure you know this already, but there's a magisk module that does that already.
If I was to build a kernel I would try and definitely build something that has smoother performance or slightly better battery life.
Keep up the efforts. It is a shame there are no custom kernels for the phone...
Burt Squirtz said:
I'm sure you know this already, but there's a magisk module that does that already.
Click to expand...
Click to collapse
If you are talking about this: https://github.com/evdenis/selinux_permissive , then having tried it it did not work. On their own XDA thread, they state 'The module will not work if your kernel compiled with always enforcing config, e.g., stock samsung kernels. It's not possible to enable permissive mode on such kernels'. Unless I am missing something here?
Ok. I managed to install a custom kernel. There is already one in development here: https://github.com/mohammad92/android_kernel_samsung_exynos2100
Here are the steps I took.
1. Downgraded firmware to 3AUDA.
2. I ran 'build_menu' script from the repository, and selected p3s target. Here, I ran into build errors, so I commented out 'export LLVM=1' from 'build_menu' script, and this produced a kernel image. While that matched original instructions from samsung kernel release, the result did not boot (same hang as before), so I put LLVM=1 back, and resolved build issues by installing clang on my host system. It seems like LLVM=1 is the trick here, as I now have a working custom kernel, and it is 'permissive'. Perfect. Attached is the zip file to be installed with TWRP.
mzakharocsc said:
Ok. I managed to install a custom kernel. There is already one in development here: https://github.com/mohammad92/android_kernel_samsung_exynos2100
Here are the steps I took.
1. Downgraded firmware to 3AUDA.
2. I ran 'build_menu' script from the repository, and selected p3s target. Here, I ran into build errors, so I commented out 'export LLVM=1' from 'build_menu' script, and this produced a kernel image. While that matched original instructions from samsung kernel release, the result did not boot (same hang as before), so I put LLVM=1 back, and resolved build issues by installing clang on my host system. It seems like LLVM=1 is the trick here, as I now have a working custom kernel, and it is 'permissive'. Perfect. Attached is the zip file to be installed with TWRP.
Click to expand...
Click to collapse
commenting that line will brake your image, we need llvm to make bootable kernel.
afaneh92 said:
commenting that line will brake your image, we need llvm to make bootable kernel.
Click to expand...
Click to collapse
Makes sense, however, this 'export LLVM=1' line is not present in the samsung's official build instructions that come with the kernel zip. Nor have I found any mention of this flag on any of the kernel building tutorials online and on this forum. Maybe I missed something, but this looks non-obvious for someone new to this.
mzakharocsc said:
Makes sense, however, this 'export LLVM=1' line is not present in the samsung's official build instructions that come with the kernel zip. Nor have I found any mention of this flag on any of the kernel building tutorials online and on this forum. Maybe I missed something, but this looks non-obvious for someone new to this.
Click to expand...
Click to collapse
By reading Makefile you can find it there.
afaneh92 said:
By reading Makefile you can find it there.
Click to expand...
Click to collapse
Yeah, I read the makefile. LLVM flag is supported there, but unset/unused by default, resulting in corrupt images. and you have to somehow know that you need to set it externally.
If someone build a good custom kernel wich improves battery and performance i will donate 100 usd
I want custom kernels too.
Would it be possible to make a bounty?
I'm interested in battery, hackability, booting time, stability and performance.
songoku1 said:
If someone build a good custom kernel wich improves battery and performance i will donate 100 usd
Click to expand...
Click to collapse
Are there some official XDA bounty program for this stuff?
timofonic said:
Are there some official XDA bounty program for this stuff?
Click to expand...
Click to collapse
Sadly no on my oneplus i use arter kernel and i absolutely lovibg it. Sadly for my s21u there isnt one :/
What's more important now is to stress samsung's opensource service to release the AUG4 kernel source
DaReDeViL said:
What's more important now is to stress samsung's opensource service to release the AUG4 kernel source
Click to expand...
Click to collapse
Already requested it.
interested in a custom kernel also, it's already a very good device but battery life needs to be better
afaneh92 said:
Already requested it.
Click to expand...
Click to collapse
Got it
{
"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"
}
DaReDeViL said:
Got it
View attachment 5368845
Click to expand...
Click to collapse
I will rebase my kernel soon
Ok
DaReDeViL said:
Got it
View attachment 5368845
Click to expand...
Click to collapse
Hope we will see a custom kernel soon
Any news?

[RECOVERY] TWRP for lt02 (SM-T210(R)/SM-T211)

{
"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"
}
Team Win Recovery Project Official
For SM-T210(R)/SM-T211 (lt02)
USE AT YOUR OWN RISK!
Please make sure to this thread if you like the port! ​
ISSUES
Temperature is not available because the kernel does not support it.
Google apps install does not work (Fixed in latest nightly release!)
DOWNLOADS
All nightly releases are on our build repository. DOWNLOAD
All standard releases are on the TWRP website. DOWNLOAD
LINKS
Source Code
Discord Server
CREDITS
@Jespert
@TriDiscord
@gr8nole
@ketut.kumajaya
@paziusss
@ruben15prd
Reserved -
Thanks for maintaining TWRP for this almost 9 year old tablet! It's about time it gets official support. Works perfectly on my SM-T2105.
Just as a heads up, any installers that check for the correct device before installing using the "assert(getprop("ro.product.device")" line in the install script may give an error since you have the product showing as "lt02" (as opposed to lt02wifi, lt023g, etc.) for this recovery. Won't likely be an issue unless someone gets a device-specific version of a source built rom working (Lineage, Omni, etc.). Most customized versions of stock-based roms won't have that line in the install script.
gr8nole said:
Just as a heads up, any installers that check for the correct device before installing using the "assert(getprop("ro.product.device")" line in the install script may give an error since you have the product showing as "lt02" (as opposed to lt02wifi, lt023g, etc.) for this recovery. Won't likely be an issue unless someone gets a device-specific version of a source built rom working (Lineage, Omni, etc.). Most customized versions of stock-based roms won't have that line in the install script.
Click to expand...
Click to collapse
We'll probably never get a custom ROM except for modified stock ones anyways lol.
throwaway019299292 said:
We'll probably never get a custom ROM except for modified stock ones anyways lol.
Click to expand...
Click to collapse
CM11 exist, there are plans to fix bugs.
throwaway019299292 said:
We'll probably never get a custom ROM except for modified stock ones anyways lol.
Click to expand...
Click to collapse
uhh, cyanogenmod 11 recieved its last update for this tablet 7 years ago, so it's been around for a damn long time
gr8nole said:
Just as a heads up, any installers that check for the correct device before installing using the "assert(getprop("ro.product.device")" line in the install script may give an error since you have the product showing as "lt02" (as opposed to lt02wifi, lt023g, etc.) for this recovery. Won't likely be an issue unless someone gets a device-specific version of a source built rom working (Lineage, Omni, etc.). Most customized versions of stock-based roms won't have that line in the install script.
Click to expand...
Click to collapse
ROMs should support the `TARGET_OTA_ASSERT_DEVICE` flag if they're building for multiple devices. Will remove the `lt02` from that, though. Let me know if you have any other codenames for the Tab 3 7.0
TriDiscord said:
ROMs should support the `TARGET_OTA_ASSERT_DEVICE` flag if they're building for multiple devices. Will remove the `lt02` from that, though. Let me know if you have any other codenames for the Tab 3 7.0
Click to expand...
Click to collapse
SM-T2105 shows up as lt02kidswifi in the device field and lt02kidswifiue in the product field on the Device Info HW app.
throwaway019299292 said:
SM-T2105 shows up as lt02kidswifi in the device field and lt02kidswifiue in the product field on the Device Info HW app.
Click to expand...
Click to collapse
This is the line as the final result:
TARGET_OTA_ASSERT_DEVICE := lt02wifi,lt02wifijpn,lt02wifizc,lt02wifizs,lt02wifiue,lt02kidswifi,lt02kidswifiub,lt02kidswifiue,lt02kidswifiww,lt02kidswifixw,lt02kidswifizc,lt02kidswifizh
Will merge when other changes are completed. Thanks!
This has inspired me to TRY to create a custom rom for the T210R.
I'm trying diligently to make one based on CM 14.1.
Anyone have any ideas, I'm more than happy to collaborate.
Thanks for the recovery!
CaptainBenSisko said:
This has inspired me to TRY to create a custom rom for the T210R.
I'm trying diligently to make one based on CM 14.1.
Anyone have any ideas, I'm more than happy to collaborate.
Thanks for the recovery!
Click to expand...
Click to collapse
After a month... I don't know what I've gotten myself into. This is a royal pain to try to build a rom for.
CaptainBenSisko said:
After a month... I don't know what I've gotten myself into. This is a royal pain to try to build a rom for.
Click to expand...
Click to collapse
Hehe, I understand. It takes so much time.
CaptainBenSisko said:
After a month... I don't know what I've gotten myself into. This is a royal pain to try to build a rom for.
Click to expand...
Click to collapse
Any GitHub sources? We can maybe try to help?
TriDiscord said:
Any GitHub sources? We can maybe try to help?
Click to expand...
Click to collapse
These are what I was working with, all credit to the OP's. (Especially gr8nole, he seems to have his hand in all things T210R)
GitHub - lt02-dev/android_device_samsung_lt02wifi: Device Tree for Galaxy Tab 3 7.0 Wifi (lt02wifi)
Device Tree for Galaxy Tab 3 7.0 Wifi (lt02wifi). Contribute to lt02-dev/android_device_samsung_lt02wifi development by creating an account on GitHub.
github.com
GitHub - gr8nole/android_vendor_samsung_lt02wifi: Proprietary files for lt02wifi
Proprietary files for lt02wifi. Contribute to gr8nole/android_vendor_samsung_lt02wifi development by creating an account on GitHub.
github.com
sm-t210r / android_kernel_samsung_lt02 · GitLab
GitLab.com
gitlab.com
Don't fall down the rabbit hole, but if you wanna give it a go, I'm more than happy to collab.
CaptainBenSisko said:
These are what I was working with, all credit to the OP's. (Especially gr8nole, he seems to have his hand in all things T210R)
GitHub - lt02-dev/android_device_samsung_lt02wifi: Device Tree for Galaxy Tab 3 7.0 Wifi (lt02wifi)
Device Tree for Galaxy Tab 3 7.0 Wifi (lt02wifi). Contribute to lt02-dev/android_device_samsung_lt02wifi development by creating an account on GitHub.
github.com
GitHub - gr8nole/android_vendor_samsung_lt02wifi: Proprietary files for lt02wifi
Proprietary files for lt02wifi. Contribute to gr8nole/android_vendor_samsung_lt02wifi development by creating an account on GitHub.
github.com
sm-t210r / android_kernel_samsung_lt02 · GitLab
GitLab.com
gitlab.com
Don't fall down the rabbit hole, but if you wanna give it a go, I'm more than happy to collab.
Click to expand...
Click to collapse
Those are very buggy sources for CyanogenMod 11. I doubt that 14.1 will work on this.
@CaptainBenSisko, @TriDiscord, I tried building 14.1 for T210R this month using
https://github.com/SamsungGalaxyTab3
but ran into the exact same problem and error messages that the previous person @sscsps was getting in this thread
https://forum.xda-developers.com/t/abandoned-not-working-lineageos-14-1-for-t211.3621818/
There's no boot animation and my last_kmsg shows the same problem.
retiredtab said:
@CaptainBenSisko, @TriDiscord, I tried building 14.1 for T210R this month using
https://github.com/SamsungGalaxyTab3
but ran into the exact same problem and error messages that the previous person @sscsps was getting in this thread
https://forum.xda-developers.com/t/abandoned-not-working-lineageos-14-1-for-t211.3621818/
There's no boot animation and my last_kmsg shows the same problem.
Click to expand...
Click to collapse
I'm just curious, has anyone tried MM yet?
I think I found a guy who got lollipop to work on the t210r but it was canceled
HackerMan195 said:
I think I found a guy who got lollipop to work on the t210r but it was canceled
Click to expand...
Click to collapse
Ooh! Could you share a link?

Categories

Resources