[DEV & TUTORIAL] HOW TO BUILD CM7 OR CM9 for GALAXY MINI DEVICE - Samsung Galaxy Mini

Requirements :
OS linux Ubuntu 11.04 64bits ( recommended ) or above
2Gb RAM with 3Gb swap or above
Processor Centrino Duo or above
120Gb Harddisk or above
Fast internet connection ( i have no this )
First download this file
Installer SDK and Build packages by me
Password : squadzone
you will get installerBuildRomGalmin.sh , run this file via Terminal on Ubuntu
follow all instruction that appears,
after Finish, now we goto download repository
still on Terminal
type
mkdir -p ~/android/system
sudo curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > /bin/repo
sudo chmod a+x /bin/repo
for build cm7
cd /android/system
repo init -u git://github.com/CyanogenMod/android.git -b gingerbread
repo sync -j32
clone this
choose branch gingerbread
put on device tree or replace tass folder on device tree
for build cm9
cd /android/system
repo init -u git://github.com/CyanogenMod/android.git -b ics
repo sync -j32
clone this
replace cm9 folder tree with this
choose what you want to build, if you choose for build cm7 and cm9, do with different folder
after you prepare the whole file that needed for build
run . build/envsetup.sh && brunch tass on terminal
for reference , READ THIS
for kernel
clone this
and build using device config from working device
have fun to build the rom and kernel
for update
see this
I WILL NOT ANSWER ANY QUESTION FROM NOOB ! !
DO WITH YOUR OWN RISK
{
"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"
}

Thanks Squadzone. Finally I got what I wished !!

Thanks a lot will try later
Sent from my GT-S5570 using XDA App

yeah, thanks so much squadzone!

I'm currently using your CM 9.0 BETA 2. It's awesome!
I have a small request: can you please modify the TASS.rle file and change the flashscreen or the pre bootanimation screen. It shows a CM7 for galaxy mini in a purple and orange colour as the previously released CM7.x versions!
Doubt: Can I replace the TASS.rle file in yours with the one in tj style's CM7.1?
Happy New Year too!

Squadzone, Thanks For Your Kind Help..........

Thank you so much for the tutorial.
Actually I'm very interested about developing Android Applications.
I know a bit about Java and a bit more about C# (now I'm working on this).
I just want to ask, wether developing application and ROM is same?

Thank SquadZone (Terima Kasih Harry)
Terima kasih squadzone atas tutorialnya, mudah2an saya bisa bikin cm9 menjadi lebih baik. yang saya ingin pelajari bikin kernel 825 Mhz, mudah mudahan saya bisa.
Big thank for Squadzone, squadzone my idol. (Sory for bad english)

lonestrider said:
I just want to ask, wether developing application and ROM is same?
Click to expand...
Click to collapse
Different to some extent I guess. Android apps are completely built using Java, and could be built from any Platform. About ROM, its based on UNIX or Linux programming so Linux is mandatory. Kernels are written in C/CPP and compilation is being done executing UNIX commands. Just my assumptions about ROM and Kernel, maybe I'm wrong too.

coolsandie said:
Different to some extent I guess. Android apps are completely built using Java, and could be built from any Platform. About ROM, its based on UNIX or Linux programming so Linux is mandatory. Kernels are written in C/CPP and compilation is being done executing UNIX commands. Just my assumptions about ROM and Kernel, maybe I'm wrong too.
Click to expand...
Click to collapse
apps=java
kernel=c
rom=java on a linux kernel. If ur not modifying kernel c is not reqd. everything else is java in the rom but it's compiled a little differently as u said. knowing linux will obviously help.
cmiiw

Thank you!
This is the best tutorial I've seen yet
Taking really long to do a 'repo sync' Now I know how hard you guys worked

siddhanathan said:
This is the best tutorial I've seen yet
Taking really long to do a 'repo sync' Now I know how hard you guys worked
Click to expand...
Click to collapse
lol yea repo sync is actually the easiest part
compiling without errors is tough, but squad made it easier here i think.

Actually just downloading the source from CM is easy. And compiling after the download is easy too.... The hardest part is to make the mods.... squadzone codded those cool functions in his CM source.... The bootanimation, the status bar transperancy.... That the hard part.... To implement something

just finished compile the cm9 but after flash, it failed to boot into homescreen. what should I edit to make it boot?

najashark said:
just finished compile the cm9 but after flash, it failed to boot into homescreen. what should I edit to make it boot?
Click to expand...
Click to collapse
Upload you work!
We need see...

najashark said:
just finished compile the cm9 but after flash, it failed to boot into homescreen. what should I edit to make it boot?
Click to expand...
Click to collapse
Try Squadzone's boot.img maybe.

AntiBillOS said:
Upload you work!
We need see...
Click to expand...
Click to collapse
this is my zip file after compiling, the problem is. it cannot boot into homescreen after flashing.
DOWNLOAD
TheWhisp said:
Try Squadzone's boot.img maybe.
Click to expand...
Click to collapse
will try it now
EDIT: ah, still no luck. the phone boot, vibrate but nothing shows on the screen. i hope squadzone will help.

najashark said:
this is my zip file after compiling, the problem is. it cannot boot into homescreen after flashing.
DOWNLOAD
will try it now
EDIT: ah, still no luck. the phone boot, vibrate but nothing shows on the screen. i hope squadzone will help.
Click to expand...
Click to collapse
But it works! But why screen dont show anythin?

AntiBillOS said:
But it works! But why screen dont show anythin?
Click to expand...
Click to collapse
the screen is to many flicker and cause cant update the layer, this cause by egl, read refresh rate upto 60Hz, and this need to hack the egl again, but i will not continue this cm9 project until get stable source for do that, and NEED FAST INTERNET that i havent

Was a pain to follow your tutorial, squad...
Anyways, I got to the building part (I think):
Now the galaxy s building wiki link that you posted tells me to run some file extraction file, which I just can't find. Without that I'm getting shtloads of errors (Don't know if same happens when I've managed to extract the files).

Related

[CyanogenMod6 + 6.1-Barebone][Update 23-11-2010]

EDIT 23-11-2010: New Barebone release available!
The following CyanogenMod-Ports are available now:
"Official" CM6 + CM6.1 Barebone (this is the latest release)
FroyoRedux CM6
SuperFroyo
{
"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"
}
Quick-Installation-Guide:
Read this installation instructions by chase21
Thanks go to:
Balsat, XDANDROID-TEAM, Cyanogen + Team, Seqzester, ferlanero and everyone else whom I forgot.
Used kernel + modules: htc-msm-linux by glemson and balsat
Used rootfs: XDAndroid ported to work on EXT2-Partition
Mixed-Up and ported by: Neopeek
Source: CyanogenMod-6
Changelog + Download
So if i understand correctly, i just need to create ext2 rootfs, use zimage from froyo port and it would work?
I will try it. Just my phone is currently completely dead (red light under power button) since android sucked last electrons of power from it
someone test this n reply ... .. and someone tell me how to create partition on my micro sd
matejdro said:
So if i understand correctly, i just need to create ext2 rootfs, use zimage from froyo port and it would work?
I will try it. Just my phone is currently completely dead (red light under power button) since android sucked last electrons of power from it
Click to expand...
Click to collapse
Yes, it may work. I can't guarantuee it for you. Also you will have to set MTYPE accordingly in startup.txt and add also keyboard of X1 to it. Perhaps you will have to tweak some other thingies but just let's see what happens
I have tried all files from Tremere's froyo build except rootfs from your build. But it's keep looping at "30.000ms after vsync request" something like that.
What the hell is MTYPE? Sorry i'm completely newbie here.
matejdro said:
I have tried all files from Tremere's froyo build except rootfs from your build. But it's keep looping at "30.000ms after vsync request" something like that.
What the hell is MTYPE? Sorry i'm completely newbie here.
Click to expand...
Click to collapse
MTYPE, RAMADDR and RAMSIZE are set in startup.txt
Just use my complete HARET-PAKET and combine it with the latest zImage + kernel and edit values in startup.txt. No need for initrd.gz and rootfs.img as both are included in the tarred gzip-archive which you have to extract to the root of your ext2-partition. Haret-Paket goes to FAT32-partition with the modification stated above. You may also set lcd density accordingly.
I think an experienced linux user may give this a try...and keep in mind to securely unmount your ext2 -partition in linux before starting haret
So you mean that I should partition my sd card?
Sent from my X1 via XDA android app. Sorry for typos, it's pain in the ass to type here.
matejdro said:
So you mean that I should partition my sd card?
Sent from my X1 via XDA android app. Sorry for typos, it's pain in the ass to type here.
Click to expand...
Click to collapse
Without partitioning it won't work. You may follow my signature to the other threads to see how it's working for others. Initially a lot of people had probs getting this to work when i released my first eclair-port...
So there is no way to stuff file system into rootfs file like releases till now?
okay card partitioned, files copied but after running hater it is going to restart
using startup.txt from tremeres distro
after adding root=/dev/mmcblk0p2 init=/init rootwait rw rootdelay=3 console=tty0 rootdelay=3 to the startup.txt it is running but upside down screen
screen is upside down but press detetection is ok ....
how to extract ext2 file ?
Devaster said:
screen is upside down but press detetection is ok ....
how to extract ext2 file ?
Click to expand...
Click to collapse
He have maybe not add the patch to rotate the screen upside down(x1 have the screen upside down but WM rotate it and Android with patch).
Use linux and mount it to get the file inside. Howto mount: use google
vatoloco: you'll need to either apply http://code.google.com/p/android/issues/detail?id=9604 to your aosp source or take libsurfaceflinger from the system image from my dist/recent xdandroid.
as well you need to detect the Xperia (grep cpuinfo for Kovsky) and set ro.sf.hwrotation=180
tremere : what i need to search for replacing ?
@ temere : can u post in a detail way wat all we shud do step by step ...
i have very meagre knowledge of this ..
ur effort will be appreciated a lot
Ok, glad to hear that it booted up. As I have seen that stinebd added kovsky support for rootfs I wanted to check if this boots up for you. Last days I didn't add any updates and will continue updating my builds accordingly by tomorrow! I will surely need some help of any of you guys in testing this as I have no X1 to test on my own.
New release is available. I only implemented latest rootfs-updates by stinebd into it. The new base is: CyanogenMod 6 RC2.
Maybe someone can try and let me know what doesn't work.
vatoloco: you'll need to either apply http://code.google.com/p/android/issues/detail?id=9604 to your aosp source or take libsurfaceflinger from the system image from my dist/recent xdandroid.
as well you need to detect the Xperia (grep cpuinfo for Kovsky) and set ro.sf.hwrotation=180
Click to expand...
Click to collapse
Can anyone please try the fix posted by Tremere. I may package it up from his build and provide you with an androidupdate.tar if it works. Just let me know...
ro.sf.hwrotation=180 should go into build.prop
libsurfaceflinger.so should go into /system/lib/
Sorry I still have no X1 to test, so it's up on you...
Here are some screenies:
i've tested it,
this worked:
gps works i think
keyboard layout works
data works
sd card readen + music
this didnt worked:
bluetooth didnt work for me
speaker still makes sound
battery gets les hot in standby but stil takes 67% \
wifi gives an error
thats what i got til now
err ...please pardon my ignorance ...
can someone tell me the difference between cyanogen builds and usual android builds tht temere releases ...?
Hey Neopeek,
Good to see you working on the X1 again. I'll see if I can find some time to test your version.
included ro.sf.hwrotation=180 into build.pro, libsurface on its place but display rotated upside down and touch not working ....

F-Cuk-R v1.5 - Automated MIUI GB ROM Cooker for FB0 devices

F-Cuk-R : Automated MIUI GB ROM Cooker for FB0 devices
What does one do when their cheap mobile device doesn't get official support from the elite rom developers?
One is forced to experiment and learn to do it himself! But obviously, not everyone is able to invest the time or maybe have the stamina to do it, so here is a solution for those who bought this Android phone thinking its vfm but were disappointed when they could not get those regular "nightly" or "weekly" updates.
I have made a single step Automatic ROM cooker to port all future MIUI GB releases.
All the proprietary FB0 libraries are pre-included in the program and all the steps of the cooking process including recompiling the framework files and modifying the build.prop and update-script are automated.
Features preincluded in the automated process:
mOCk OC (64 MHz - 2 GHz) and Undervolting kernel with 2 way call recording patch
Sony Bravia postprocessing engine
No headset bug and no incoming call volume bug
Native Wifi hotspot feature/tethering working
USB tethering working
Timezone has been set to IST (+5:30)
Ads blocker hosts included and enhanced to block all Google ads
Spare Parts
CM7 camera beside MIUI camera
Angry GPS
Custom and improved GPS.conf for Indian users
Equalizer app
X5 settings
G-sensor calibration app
E-Compass calibration app
Power button app
Compass
The following apps will be automatically removed from the rom:
BugReport.apk
MIUIStats.apk
TelocationProvider.apk
You needn't wipe dalvik cache since the update script automatically does it.
Requirements:
You need Java Runtime Environment 1.6 installed for apktool to work.
Download apktool from here
Also add apktool.jar, apktool.bat and aapt.exe to your system PATH.
This can be done by editing your Windows environment variables manually or copying these files to %WINDIR% or to %SystemRoot%\system32
Please note that this limitation is due to apktool. if you can successfully decompile and recompile using apktool manually, there is no reason why the app won't work.
Else, your rom won't boot as it will lack crucial files like services.jar and framework-res.apk which have to be modified to port the rom.
You need a stable Windows PC.
I have tested this only on Windows XP 32 bit.
Windows Vista/7 and higher may require admin privileges.
I prefer to port MIUI releases for Desire HD but it can possibly handle U8800 releases too.
Step (yes only one):
Just download the rom to be modded and run the F-Cuk-R program
{
"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"
}
That's it. Your modded rom port will be created in a couple of seconds to minutes (depending on your computer's power)
The app is multithreaded and would thrash your multicore processor and your hard disk / ssd!
Tip: For most efficiency and speed (500% boost), I recommend the use of a ramdisk like me. Google for Gavotte ramdisk driver.
Takes less than a minute for me to port takes 15 minutes to download and 2 hours for me to upload!
But bear in mind, this took me days to code and weeks to accomplish.
I hope it was worth it
Although due care has been taken to keep this bug free and optimal, please do not blame me for any loss monetary or otherwise happening due to the use of this program.
You are free to post any rom you mod/port using this tool but I would appreciate a humble mention if this helped you
Download v1.5
Let me know if it works for you or not!
Man, You're very kind, made for us apps like this,,,
And Thank You Very much sir. Free Radical.
Does this support ICS roms?
You are the MAN !!!!
tarunongo said:
Does this support ICS roms?
Click to expand...
Click to collapse
Nope. I am yet to learn that.
If there was a 2way call recording kernel for ICS, it would definitely overcome my inertia.
For now, I am happy with MIUI GB.
Sent from my Spice MI-410 on my MIUI 2.3.23 port
Hi FR...
I think its amazing,
Thank you
edowar said:
Hi FR...
I think its amazing,
Thank you
Click to expand...
Click to collapse
Your bash script and mk file proved very useful.
If only I knew how to compile from source
You must teach me cm7/cm9 porting! I'll automate it.
Okay I lied.
I accomplished this in less than 10 days from being a total noob to this and I have a full time job
It would be even funnier if you knew what I do for a living :lol:
Sent from my Spice MI-410 on my MIUI 2.3.23 port
So now this forum is going to be flooded with MIUI Roms for our Smartfone
The more the merrier
Btw, anyone tried yet?
Please give me some input whether this is working or not before MIUI 2.3.30.
Sent from my Spice MI-410 on my MIUI 2.3.23 port
Thats cool FR.....
Great.... wil definitely try it ....
After several days I'm off in porting browse xda, then I found this great app.
Very great app FR...!
I've my own also but in bash script and not perfect yet going to add native wifi.
About native wifi, have you found it? I was found it in framework-res.apk at array.xml, several lines has to be changed but I forgot. I was tried but failed to boot. I still out of home, hope today I can continue the work.
Editted: woooww... I just knew that you already knew that... you'll be a real android dev FR....! Hats off and two tumbs for you!
Sent from my CSL-MI410
For native wifi tethering I believe
Code:
<string-array name="config_tether_wifi_regexs">
<item>wl0.1</item>
should be changed to
Code:
<string-array name="config_tether_wifi_regexs">
<item>softap.*</item>
I have just added this to my cooker.
Shall verify and update the first page if it works.
Yes, those lines... but also several lines like ppp and others... sorry I'm not at front of pc, I'm still on the way to home so I can't give you detail. But I think you will easily find them.
Edited: I'll be arrived home in an hour, then I'll try your cooker! And hope we can continue to discuss.
If I'm not wrong, the rest lines should be just several lines below that wl0.*
Sent from my CSL-MI410
DHD rom arrays.xml already has this:
Code:
<string-array translatable="false" name="config_tether_upstream_regexs">
<item>"rmnet\\d"</item>
<item>"wlan\\d"</item>
<item>"ppp\\d"</item>
</string-array>
btw, my build.prop references to wlan0 so I don't think eth0 is needed.
Besides, wifi is working, only tethering is not right?
Free Radical said:
DHD rom arrays.xml already has this:
Code:
<string-array translatable="false" name="config_tether_upstream_regexs">
<item>"rmnet\\d"</item>
<item>"wlan\\d"</item>
<item>"ppp\\d"</item>
</string-array>
btw, my build.prop references to wlan0 so I don't think eth0 is needed.
Besides, wifi is working, only tethering is not right?
Click to expand...
Click to collapse
Yup you're right. How's the result?
Free Radical said:
Your bash script and mk file proved very useful.
If only I knew how to compile from source
You must teach me cm7/cm9 porting! I'll automate it.
Okay I lied.
I accomplished this in less than 10 days from being a total noob to this and I have a full time job
It would be even funnier if you knew what I do for a living :lol:
Sent from my Spice MI-410 on my MIUI 2.3.23 port
Click to expand...
Click to collapse
good program mate. let me try it, but I can't find the download link? or its my operamini problem? or my eyes priblem? hehe
I think build from source like cm7/9 was already automated. just fixing bug is not automated and need more time and resources.
huh, I'm still lazy to learn it again, I must beat my laziness to start build from source again. hahaha
v1.1 has some problem
Shall upload the update later today.
Could not fix wifi issue since recompiling framework-res.apk is giving me boot loops.
I found a bug, when you decompile service.jar, you forgot to add a space char between service.jar file path and the destination folder path.
Sent from my CSL-MI410
CacingKalung said:
I found a bug, when you decompile service.jar, you forgot to add a space char between service.jar file path and the destination folder path.
Sent from my CSL-MI410
Click to expand...
Click to collapse
no that's not it.
(you decompiled my program too ?)
I corrected that, but recompiling framework-res, with or without any changes, still causes the bootloop.
run at which platform?
Windows/Linux/Android?

[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
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!

[HOW-TO] Dev basic´s: Source, Compiling, Github & co ~ Day 4

Welcome to fuss132 dev basic´s​
So you want to become a developer for android? You dont know where to start? Well, I will try to give you some point you can start with.
"There are many tutorials on compiling source code?", you may ask "So no need of this?". No, youre not right. Of course there are many how tos that explain you how to compile something... but to do the magic there is more needed than just "Execude this commands and ready". You need to know the things behind, you need to get the flair of android.
What I want:
First of all, I know that there are many people that see how devs are failing; or some that need help and those people cant help them. They have the time to learn something, but they dont know how. You can expect a point to start with, some welcome drink of android development. Expect the falir of android! Join the android open source project! I posted this in the I9100G section, because I use my kernel (called horsepower) as an example, but it can be used for every device! And please if I helped you thank me in whatever post I helped you I´m doing this in my spare free time to help you!
What I dont want:
I cant give you everything! You will need some time, it took me one and a half years to get to know a big part of how android works and stuff. You will not be a "full" developer after this! Furthermore, I dont teach you for 10 variants of my kernel coming up at the forum or of cm roms what ever! Android is an opensource project. This means creating something new - but together. If you did something you think its worth to publish make a git push request and your work will be included to my kernel f.e. Every dev that notice your work will let you post in his thread and your work will be thanked!
Also required for this howto:
A computer running ubuntu 12
Some basic ubuntu terminal knowledge
Time and more time
Also a good internet connection could be usefull
How it will work:
So you think you can manage this? Good luck, I will help you whereever I can. But please understand, that my work on kernels and roms will come first I will try to post every day a new tutorial. We will start with setting up your computer and will end up in some weeks with compiling your own aosp rom. Ready? So lets go to the second post here and start with Day 1: Introduction
PS: Well we only have one forum so, besides this fact that this is about learning developing, I posted it here...
Day one: Introduction and downloading source code
This is all for jellybean!
So no longer talking about developement, let´s do some of itselfe.
We first need the source code. For completeness we will download both - kernel source and main rom source. If you dont know what kernel is for please stop reading here... you will fail 99,9999%. (Maybe you just forgot which files this is for: Kernel is the boot.img in your update.zip´s and the rest located in /system is the compiled main rom.)
1. Creating your working directory and stuff
You should know the commands, just use the same folder names and structure for a better chance that I can help you if something goes wrong.
cd
mkdir cyanogenmod
cd cyanogenmod
Click to expand...
Click to collapse
2. Downloading the source and required software
At this part we use a very useful build script made by teamhacksung, thanks to them!
Staying at your /cyanogenmod folder do the following (What this git command mean ~ well dont think about it we will learn it afterwards):
git clone git://github.com/teamhacksung/buildscripts.git -b cm-10.1 buildscripts
ln -s buildscripts/samsung/build.sh
./build.sh prepare
Click to expand...
Click to collapse
This script will now do some very useful things for you Select the specifics of your system and wait for finishing till the point "Download sources?" Tipe a "y" and select "cm-10.1". (When it asks for your folder you want the source in only tipe "sources" and hit enter). This will download the main uncompiled canogenmod sources for you (including some kernel and device specific stuff). It will take looong Depeding on your net connection. Some hours usually
3. Downlading kernel sources and recovery stuff
Everything went well? So this means we need to go further. In /cyanogenmod/sources should now be some folders and files... And now we should download a kernel source for our device (choose one for your device, I will use I9100G ones).
Navigate to your source and execute
cd
cd cyanogenmod
cd sources
mkdir kernel/samsung/
cd kernel/samsung/
git clone https://github.com/fuss132/android_kernel_samsung_t1.git -b greenblob-4.2.2 t1
Click to expand...
Click to collapse
Hah, you now have latest greenblobkernel source on your computer.
But to finally build the kernel and rom we will also need some device specific files for our I9100G. For other devices you will find these files when you search on gitbub. Or google device xy ics device tree.
cd
cd cyanogenmod
cd sources
git clone git://github.com/CyanogenMod/android_device_samsung_i9100g.git -b cm-10.1 device/samsung/i9100g
Click to expand...
Click to collapse
As it finished you have all the sources you need
Thats enough for day one, I think. See you soon
Day 2: Github basics part 1
So we successfully downloaded all sources. Brilliant, now let´s go on. In future time you may work on kernels of even the main rom, and of course you should upload the changes you made to contribute to the community. You will need github for this. For some basic info go here I will only focus on how to use it.
The script from above post should already installed git, if not do the following:
sudo apt-get install git
Click to expand...
Click to collapse
And you should also register an account for free at github.com -> here
As you did this we will also need to set up your github account on your computer, so use the following commands and replace it with the email adress and username you chose before:
First we should be in our kernel example local repository so use cd /cyanogenmod/sources/kernel/samsung/t1 to switch to it
git config --global user.name "Your Name Here"
git config --global user.email "[email protected]"
Click to expand...
Click to collapse
If you now upload some changes you have to enter your password every time. To make the things easier we will use an ssh key and will add it to our github account. Its not important to know what all these commands are doing just do them
ssh-keygen -t rsa -C "[email protected]"
//Now you need to enter a passphrase.
sudo apt-get install xclip
xclip -sel clip < ~/.ssh/id_rsa.pub <- this is the path to your stored key
Click to expand...
Click to collapse
Now go to https://github.com/settings/ssh, login and click "add ssh key". Choose a name (doesnt matter which one) and paste your key from your clipboard into the field below. Thats it github is now set up
1. Some basics commmands
There are some basic commands you should know. Firstly, some explanations for you. The source you downloaded is stored on www.github.com.
With git clone [email protected]/pathtsource you can download new files and sources from existing repositorys.
When you change some files in your local repository (all files from one source path f.e. cd /cyanogenmod/sources/kernel/samsung/t1 and then execute and then) use git status to display the changes you made.
You made some changes? Then pack these changes into a commit by typing git add -A and also add a commit message that will appear later like git commit -m "Camera freeze fix" and finally upload it: git push. We will make some practical examples tomorrow, so dont worry about this now. Just keep that in mind.
Thanks for reading and see you tomorrow!
As usuall, if you like this thread and stuff please submit it as news tip!
Day 3: Github basics part 2 and preparing for compiling
Welcome to Day 3: Github basics part 2 and preparing for compiling! Lets beginn our "session" with a short test. Remember which command you have to use for cloing a repository (downloading the files to your computer)? Well we need this one here.
1. Again Github basics
Imagine the following situation; You want to help another person to fix a bug. You should create your own repository first to dont mix files up. In short we copy all files from a repository to our own new one. We have a point to start then and will use his code, but his code wont change when we change ours.
Go to www.github.com/ and login
I create a short repository for you all, nothing special but you can practise with it.
Open the following page (its the repositiory shown in your webbrowser: https://github.com/fuss132/lerninggit_practical_repository. Click on fork at the right:
{
"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"
}
If github is asking you to which user it should fork the files click the only availabe button ^^
You have now your own repository with the same files. We will download the files now. Open your terminal and navigate to the folder (it should be an empty one). So you have to do the following:
cd whereeveryyouwantit
git clone [email protected]:[B]yourusernamehere[/B]/lerninggit_practical_repository.git
Click to expand...
Click to collapse
Now we "fix the bug" and do some changes to your local files.
cd tutorialmembers
sudo gedit memberlist
// add your name to the list, save and exit //
cd ..
Click to expand...
Click to collapse
So we made the changes, now we will upload them, you should know the commands already. If you have any questions please post in this thread
git status
git add -A
git commit -m "add my name to the list"
git push
Click to expand...
Click to collapse
Brilliant, if you know visit https://github.com/yournamehere/lerninggit_practical_repository you will see that your changes have been uploaded. So you fixed my problem, you should now share the solution with me.
Open your repository in a webbrowser https://github.com/yournamehere/lerninggit_practical_repository and click on Pull Requests on the right side. Now select on the right side as head repo mine fuss132 one and as base repo in the left the default, your one. Describe what you did in the filed below and finally click on "Send pull request.
Thats it you now shared it with me and I will include your changes to my repo
2. Back to the roots: Prepare for compiling
Now cd to the folders you downloaded all the sources in. You should see folders like bionic, fendor, main... I will call this main source directory now
If you would compile the sources now you would stuck after some seconds Android needs a special java version for building. And this one cant be downloaded anymore. Well, bad situation... We will give up here we will never compile android :'(
Ok, **** you java we will rule you
There is an error only because the build system does not recognize the java version when it is an openSDK
$ java -version
java version "1.6.0_24"
OpenJDK Runtime Environment (IcedTea6 1.11.1) (6b24-1.11.1-4ubuntu2)
OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode)
To work around it, you can just comment out the following lines in build/core/main.mk:
cd build/core/
gedit main.mk
instead of
ifneq ($(shell java -version 2>&1 | grep -i openjdk),)
java_version :=
endif
there should be
# ifneq ($(shell java -version 2>&1 | grep -i openjdk),)
# java_version :=
# endif
Click to expand...
Click to collapse
Java is now no longer checking its version and everything is working. Stupid solution, but working
The second part is that the linker would complain that it cannot find -lGL .
The workaround for it would be:
just execute this line:
sudo ln -s /usr/lib/x86_64-linux-gnu/mesa/libGL.so.1 /usr/lib/libGL.so
Click to expand...
Click to collapse
The last thing what we need is again the buildscript file, just do the following (you dont have to remember this):
// be in the main directory of your sources //
gedit build.sh
copy all lines from https://github.com/teamhacksung/buildscripts/blob/ics/samsung/build.sh and paste them into your file
save and close
in terminal: chmod 777 build.sh
Click to expand...
Click to collapse
Thats it for today, thanks for reading! Please press thanks if you like it and maybe click on "newsworthy thread". Questions, as usuall in this thread please
Day 4: Compiling your first things and looking into the source code
It´s been a long time since we met the last time, I hope you didnt forgot everything. If you did - you know - just go to through the first posts and learn again. Sorry that it took so long for you to wait, but I´m writing this in my spare free time and I´m involved into many many projects at this time that are more important that this one. But I didnt forget you! So lets go in again and start coding!
1. Going through the source code
I know, I turned things around in the title of this thread, but compiling will take a very long time so lets go through the source code first.
Open a file explorer and navigate to your root forlders. You will see there many folders. As you all know, Cyanogenmod is a Custom Rom and adds much features to your devices, thats why they are using custom product configs. One for each phone and one for all phones.
Let´s go into the folder vendor/cm. You will see a file called "vendorsetup.sh" in which all available devices are written in.
Ok, you will wonder why theres only something like this in your folder if you downloaded the sourcecode for Cyanogenmod 10:
for combo in $(cat vendor/cm/jenkins-build-targets)
do
add_lunch_combo $combo
done
Click to expand...
Click to collapse
Because since cm10 they´re doing things a bit different. In the next few days we will download the aokp source code and start porting aokp to a new device, because aokp is using the old building system like in cm9 and previous version - and I want that you know all of them. So back to our cm10 thing: All product specific files are now directly in the source code of the device, the device tree. Its the one we downloaded and stored in /device/samsung/i9100g.
But to build a fully working Cyanogenmod Rom we need more that only te device tree, we need some proprietary files from your device. In short, they are files that are very device specific like camera.t1.so (a camera module only for our device) that is pre generated and could not be build by our system. (Thats also the reason why developers cant edit it. We are not able to edit it, too). To pull all those files from your device, please connect it and be sure that you are already running a cyanogenmod 10 rom, otherwise some files might be different and not be copyed - your rom will not be successfully build.
Open our terminal and execute:
Code:
sudo bash
cd cyanogenmod/sources/device/samsung/i9100g
chmod 777 proprietary-files.sh
./proprietary-files.sh
Using adb all the files are now being pulled from your device and stored in the right directory of your system. If you successfully did this (and I didnt forget something) we should be now able to compile our own cyanogenmod rom.
2. Compiling your rom
So let´s go! (We will update the sourcecode before again, maybe some cool things changed). We will not use the build script for this, we´re doing things "oldschool". If you want to make things as easy as possible do ./build.sh i9100g and everything will be done for you.
sudo bash
cd cyanogenmod/sources
repo sync
/* start building*/
. build/envsetup.sh
lunch
/* pick the device you are building for */
make bacon or make fullota or make -jx (where x is the number of your cpu cores)
Click to expand...
Click to collapse
And now we have to wait some hours depending on your computer. I´ll catch you guys in the next tutorial!
Please press thanks and submit this thread as newsworthy one! Thank you and have a good time
First page of the thread!
This post also...
3 left if my math education not failed
Oh no, it was just one... hmm thats why I want to became a computer scientist not a mathematician ^^
newsworthy thread
@fuss
Submitted as newsworthy thread . Guys pls do the same if its useful to u guys . First to comment n ur thread
+1 will wait time after time..
Good one Fuss Should be recommended to make this sticky once you complete the tutorial.
This happens when fuss is in playful mood...lol.. hoping to see more of it..... I have already built a rom...its a modified stock rom...but I am failing to compile and decompile systemui Apk...using apktool..I tried installing framework-res apk...but eventually found out that apktool won't work for ics...so any help from your side is appreciated...
Sent from my GT-I9100G using xda premium
Wow very useful ty fuss
Sent from my GT-I9100G using xda app-developers app
seriously long thread..
pergh....
Will wait for this guide! Very usefull!!!
Kingspp said:
This happens when fuss is in playful mood...lol.. hoping to see more of it..... I have already built a rom...its a modified stock rom...but I am failing to compile and decompile systemui Apk...using apktool..I tried installing framework-res apk...but eventually found out that apktool won't work for ics...so any help from your side is appreciated...
Sent from my GT-I9100G using xda premium
Click to expand...
Click to collapse
Use apk-manager or the latest smali and baksmali binaries.
Added Day 2: Github basics part 1 to todays agenda
superatmos said:
Use apk-manager or the latest smali and baksmali binaries.
Click to expand...
Click to collapse
Thanks for the reply.... I will try and use smali and baksmali...since apk manager did not work...
Sent from my GT-I9100G using xda premium
Awesome guide you are doing here! Cannot wait to see how it continues today. Big thumbs up for this mate!

[Guide][How To][Custom kernel] Build For Galaxy Y Duos From Source....

Hello All my Friends.... You All Know How To Build/Port/Mod Rom...If You Want To Know How To Build OWN Custom kernel..This Is little Guide For You...
Step By Step Image Tutorial/Guide
If You Like My Guide/Tutorial Just Press
{
"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"
}
Button For Me... its Not Cost For You Its 1000% Free ....:laugh::laugh: Just Need To Press:good::good:
Use This Guide Your Own Risk.....:good::good:​
Requirement/Pre-Build Setup Tools :
==>Linux OS 32 bit With Working gcc. You Can Use Real Linux Machine or Virtual Machine
Note: Ubuntu Is best OS Compile Kernel ....... I Use Ubuntu Or Fedora For My iDuos Kernel
==>Sourcery G++ Lite 2009q3-68 Tool-Chain for ARM EABI Download From Website
Note: Download Linux Version Without Installer arm-2009q3-68-arm-none-eabi-i686-pc-linux-gnu.tar.bz2
==>Download Kernel Source From Opensource.samsung.com
Note: For Galaxy Y Duos Download GT-S6102_GB_Opensource.zip
Now Step By Step Image Tutorial/Guide
Step 1.........
Step 2.........
Step 3.........
Step 4.........
Step 5.........
Step 6.........
Step 7.........
Step 8.........
Step 9.........
Step 10.........
Step 11.........
Step 12.........
Step 13.........
Step 14.........
Step 15.........
Step 16.........
Step 17.........
If You Have Problem In View Image
Download All Image
Download Kernel Source Untouched https://github.com/manoranjan2050/Kernel-Source-GT-S6102​
Reserved..........
Reserved For More GOV ...... I/O Se..............
Reserved
Reserved For .config line .... which line for what ......
Reserved
How To Upload/Push/Create Repo In GitHub Step By Step Guide
1==>Register/Login Your GitHub Account
2==>Create A New Repository (Ur Repo Name/Description)
3==>Open Terminal(Linux),Bash Shell(Windows)
4==>touch README.md (after create edit readme file using notepad,notepad++,Gedit,Vim,Your Fav Test editor)
5==>git init (Create Blank .git file)
6==>git add README.md (add to .git)
OR
git add . (For update/add all file/folder)
7==>git commit -m "first commit" (add commit name)
8==>git remote add origin https://github.com/<Your User Name>/Hello-xda.git
9==>git push -u origin master (if u any problem use -f for force)
10==>After Push Its ASK Username/Password of Your GitHub Account
Download Git
Windows
Visit Official Windows Download Site
Direct Download
Linux (Ubuntu)
1==> Open terminal
2==>sudo apt-get update (if ur repo is not updated and sudo if u not login in root)
3==>sudo apt-get install git
4==>after install check git help git --help
Step By Step Image Tutorial
Image Tutorial For Windows User
Step 1.....
Step 2.....
Step 3......
Step 4.....
Step 5.....
Step 6.....
Step 7.....
Step 8....
Step 9....
Step 10....
Image Tutorial For Linux(Ubuntu) User
I Wl Update It Soon Sorry Friend For Wait....
Good job! Will be waiting for the github one... rest I know
hell_lock said:
Good job! Will be waiting for the github one... rest I know
Click to expand...
Click to collapse
I ryt it evning ...... After office.....
Sent from my GT-S6102 using Tapatalk 2
Thanks for this guide. Pleasw add this on our forum too..
RAJA
Sent from my GT-S6102 using Tapatalk 2
@RAJA tum new thread create karke add kardo......Koi MOD add karega ...us.se acha he Admin karde......
Great.. quick help!!! I asked you to help and you came up with a guide.. awesome.. thank you very much friend.. I'm planning to install Ubuntu 12 and 1 doubt.. I downloaded already .bin (install format) for arm 2012.03.5... file (latest one).. it will give problems?
Thanks again for this.. y do we have only 1 thanks for 1 post!:thumbup:
hit thanks button! if above post helps u..
Sent from my GT-S6102
@nitu
No problem friend u can install it and use it ... Just need ti change to path.... Without install ver is ezy to use no need to install .some new linux user problem for install .bin setup file........
nice tutorial friend!
what are the news about pemanent cwm?
Greath quick guide...
Too bad I'm noob and not a linux user.
But thanks anyway.
Keep on Rock Bro..
MAY GOD BLESS U
Dikirim Ti GT-S6102 Kuring Nganggo Tapatalk 2
GitHub Tutorial Added........... Hope My All XDA Friend Like This Tutorial...
Check #4 Post
wow nice tutorial
waiting for governer module scheduler tutorial & also if possible can you add a guide on how to integrate permanent cwm
keep it up bro
Razor2 said:
wow nice tutorial
waiting for governer module scheduler tutorial & also if possible can you add a guide on how to integrate permanent cwm
keep it up bro
Click to expand...
Click to collapse
Yes Friend i Update Day By Day All Info How To Add Gov ,i/o Schedular ..etc need some time for step by step tutorial for ryt make image..... hope You Wait Some Time............:good:
[email protected]:~/Desktop/source/kernel/common$ make
/bin/sh: 1: /home/nitin/Desktop/source/arm-2009q3/bin/arm-none-eabi-: not found
CHK include/linux/version.h
/bin/sh: 1: Syntax error: end of file unexpected (expecting ")")
make: *** [include/generated/utsrelease.h] Error 2
[email protected]:~/Desktop/source/kernel/common$
Click to expand...
Click to collapse
I'm getting this error...
hit thanks button! if above post helps u..
Sent from my GT-S6102
nitubhaskar said:
I'm getting this error...
hit thanks button! if above post helps u..
Sent from my GT-S6102
Click to expand...
Click to collapse
Recheck Path.......
or try this
Code:
~/arm-2009q3/bin/arm-none-eabi-
or
use home dir ...copy all source desktop to /home/nitin (Your username)
Or
Search files name with arm-none-eabi- in bin dir
manoranjan2050 said:
Yes Friend i Update Day By Day All Info How To Add Gov ,i/o Schedular ..etc need some time for step by step tutorial for ryt make image..... hope You Wait Some Time............:good:
Click to expand...
Click to collapse
sure i'll wait till then
btw today i compiled a kernel
there were lot of warnings but no errors(is it ok)
Razor2 said:
sure i'll wait till then
btw today i compiled a kernel
there were lot of warnings but no errors(is it ok)
Click to expand...
Click to collapse
Yes its ok............
manoranjan2050 said:
Yes its ok............
Click to expand...
Click to collapse
Yay!! Its compiling... I didn't put my edited .config file.. just testing... thanks a lot... manoranjan2050!!
hit thanks button! if above post helps u..
Sent from my GT-S6102

Categories

Resources