[REF] Kernel source code repository for Galaxy S III

cdesai

Inactive Recognized Developer
Jan 16, 2011
2,296
4,088
0
IN YOUR HEAD
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
 
Last edited:

Chainfire

Moderator Emeritus / Senior Recognized Developer -
Oct 2, 2007
11,428
87,628
263
www.chainfire.eu
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 ...
 
Last edited:

9Lukas5

Senior Member
Dec 14, 2010
3,805
2,016
253
near Stuttgart
I think everyone of us want a CF-Root-Kernel :D
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. :confused:

L
 

detule

Senior Member
Jan 30, 2010
300
325
0
@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 :)
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.
 

Attachments

detule

Senior Member
Jan 30, 2010
300
325
0
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
 

Attachments

  • Like
Reactions: Chainfire

stratosk

Recognized Developer
Mar 3, 2011
6,223
31,852
0
Thessaloniki
www.semaphore.gr
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)