5,600,234 Members 36,691 Now Online
XDA Developers Android and Mobile Development Forum

[REF] Kernel source code repository for Galaxy S III

Tip us?
 
cdesai
Old
(Last edited by cdesai; 5th August 2012 at 06:31 AM.) Reason: build instructions
#1  
cdesai's Avatar
Recognized Developer - OP
Thanks Meter 3969
Posts: 2,272
Join Date: Jan 2011
Location: IN YOUR HEAD

 
DONATE TO ME
Default [REF] Kernel source code repository for Galaxy S III

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
CyanogenMod Maintainer | SGT7 | TeamBBQ

 
BBQLinux - An Arch based Linux distribution for Android developers
Website: http://www.bbqlinux.org | Downloads: [url]http://sourceforge.net/projects/bbqlinux/files//url]
IRC: #bbqlinux on freenode
The Following 32 Users Say Thank You to cdesai For This Useful Post: [ Click to Expand ]
 
AndreiLux
Old
(Last edited by AndreiLux; 31st May 2012 at 04:16 PM.)
#2  
AndreiLux's Avatar
Senior Member
Thanks Meter 13335
Posts: 2,650
Join Date: Jul 2011

 
DONATE TO ME
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/recept...Value=GT-i9300
The Following 2 Users Say Thank You to AndreiLux For This Useful Post: [ Click to Expand ]
 
::indie::
Old
#3  
::indie::'s Avatar
Recognized Developer
Thanks Meter 42219
Posts: 5,521
Join Date: May 2010
This is great news guys,
lets hope that we will also have a proper CWM recovery soon.
::indie's:: Omega Roms Series
OmegaDroid - your android portal ...
Omega Files Pro app - Build and Customize your rom the way you like it!!
Samsung Galaxy S4 Samsung based I9505 - Samsung based I9500
Samsung Galaxy Note 3 N9005: Samsung based 4.4.2
Samsung Galaxy Note 2 N7100: Samsung based JB 4.3
Samsung Galaxy S III I9300: Samsung based JB 4.3 - Omega AOKP 4.4.2 - Omega Omni 4.4.2
Samsung Galaxy S II I9100 Android 4.1.2 - Android 4.2.2 AOKP
Samsung Galaxy Note 10.1: Samsung based JB 4.1.2
HTC HD2 + Tmous HD2 - Omega v30 - WM6.5.x Build 29022
:: User Friendly Developer ::

If you like my work please consider a donation!
Please use Omegas Threads for Support and Suggestions and don't sent me pm's!

The Following User Says Thank You to ::indie:: For This Useful Post: [ Click to Expand ]
 
Chainfire
Old
(Last edited by Chainfire; 31st May 2012 at 05:41 PM.)
#4  
Chainfire's Avatar
Senior Moderator / Senior Recognized Developer - Where is my shirt?
Thanks Meter 46053
Posts: 8,832
Join Date: Oct 2007

 
DONATE TO ME
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/kerne...305ffa1c3a58ef. 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 ...
BLOG - G+(Chainfire) - G+(Personal) - TWITTER - IRC - DONATE

A proper quote includes only the relevant paragraphs, and a proper post never ends with the word "why"

Android
HTC G1, Hero, One
Samsung i5800, i9000*2, P1000*2, P7100, i9100*2, N7000, P6800, i9300, N7100, i9505, N9005
Sony T LT30p, Z C6603
Nexus Galaxy*2, N7, N10, N7-2013

SuperSU, Mobile ODIN, TriangleAway, DSLR Controller, CF-Root, 500 Firepaper, OpenDelta, USB Host Diagnostics, ExynosAbuseAPK, Live dmesg+logcat, NoMoarPowah!, CF-Bench, Chainfire3D, CF.lumen, SGS2 SIM Unlocker, GingerBreakAPK, SuperPower, and more!

Windows Mobile 5/6
E-Mobile EM-ONE
HTC Wizard*2, Kaiser, Touch, Diamond, Pro, HD*2, Diamond 2, Pro 2*2, HD2*2
Samsung i780, i900*2, i8000*2, b7300, b7320, b7330, b7620*2, b6520

WMWifiRouter, KaiserTweak, FPUEnabler, WMLongLife, WMRegOptimizer, CFC+GUI, TF3D+v2 ports, Kaiser+Omnia2+Snapdragon 3D drivers, GfxBoost, and more!

Windows Phone 7
LG GW910

NOTICE: I do not respond to tech support questions through PM.
The Following 6 Users Say Thank You to Chainfire For This Useful Post: [ Click to Expand ]
 
Toss3
Old
#5  
Toss3's Avatar
Senior Member
Thanks Meter 439
Posts: 1,546
Join Date: May 2008
Location: Helsinki
Quote:
Originally Posted by Chainfire View Post
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
No CF-Root Kernels for the i9300?
 
Chainfire
Old
#6  
Chainfire's Avatar
Senior Moderator / Senior Recognized Developer - Where is my shirt?
Thanks Meter 46053
Posts: 8,832
Join Date: Oct 2007

 
DONATE TO ME
Quote:
Originally Posted by Toss3 View Post
No CF-Root Kernels for the i9300?
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.
BLOG - G+(Chainfire) - G+(Personal) - TWITTER - IRC - DONATE

A proper quote includes only the relevant paragraphs, and a proper post never ends with the word "why"

Android
HTC G1, Hero, One
Samsung i5800, i9000*2, P1000*2, P7100, i9100*2, N7000, P6800, i9300, N7100, i9505, N9005
Sony T LT30p, Z C6603
Nexus Galaxy*2, N7, N10, N7-2013

SuperSU, Mobile ODIN, TriangleAway, DSLR Controller, CF-Root, 500 Firepaper, OpenDelta, USB Host Diagnostics, ExynosAbuseAPK, Live dmesg+logcat, NoMoarPowah!, CF-Bench, Chainfire3D, CF.lumen, SGS2 SIM Unlocker, GingerBreakAPK, SuperPower, and more!

Windows Mobile 5/6
E-Mobile EM-ONE
HTC Wizard*2, Kaiser, Touch, Diamond, Pro, HD*2, Diamond 2, Pro 2*2, HD2*2
Samsung i780, i900*2, i8000*2, b7300, b7320, b7330, b7620*2, b6520

WMWifiRouter, KaiserTweak, FPUEnabler, WMLongLife, WMRegOptimizer, CFC+GUI, TF3D+v2 ports, Kaiser+Omnia2+Snapdragon 3D drivers, GfxBoost, and more!

Windows Phone 7
LG GW910

NOTICE: I do not respond to tech support questions through PM.
The Following 5 Users Say Thank You to Chainfire For This Useful Post: [ Click to Expand ]
 
Intratech
Old
#7  
Intratech's Avatar
Senior Member
Thanks Meter 4505
Posts: 4,993
Join Date: Jun 2009
Location: London

 
DONATE TO ME
Great! I'll go through this when I get the time.
Need official GT-I9100 firmwares? http://forum.xda-developers.com/show....php?t=1075278
Need official GT-I9300 firmwares? http://forum.xda-developers.com/show....php?t=1671969

I don't want to help and provide tech support by PM. Please post on the forum so everyone can learn from each other


[/CENTER]
The Following User Says Thank You to Intratech For This Useful Post: [ Click to Expand ]
 
pglmro
Old
#8  
pglmro's Avatar
Senior Member
Thanks Meter 594
Posts: 760
Join Date: Nov 2010

 
DONATE TO ME
Quote:
Originally Posted by Chainfire View Post
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.
Of course I want a CF kernel
 
Roughnecks
Old
#9  
Senior Member
Thanks Meter 7
Posts: 132
Join Date: Dec 2008
Quote:
Originally Posted by pglmro View Post
Of course I want a CF kernel
I think everyone of us want a CF-Root-Kernel
 
9Lukas5
Old
#10  
9Lukas5's Avatar
Senior Member
Thanks Meter 1073
Posts: 2,442
Join Date: Dec 2010
Location: near Stuttgart

 
DONATE TO ME
Quote:
Originally Posted by Roughnecks View Post
I think everyone of us want a CF-Root-Kernel
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
Device: jfltexx (SGS4)
Recovery: TWRP 2.7.0.1 + z31s1g's Holo Theme
Baseband: I9505XXUDMH6
Android: 4.4
Rom: Broodplank1337's AOSP4.4 latest release
Kernel/MOD: KT-Kernel / CrossBreeder MOD
/system /data /cache formatted to F2FS

Device: grouper (Nexus7 2012)
Recovery: TWRP 2.6.x.x
Android 4.4
Rom: Factory Image KRT16O

Device: GT-I9300 (SGS3)
Recovery: TWRP 2.6.x.x
Baseband: I9300XXDLIB
Android 4.3
Rom: official cm10.2 nightly

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes