[Q] Porting ClockworkMod to Samsung Galaxy SL - Android

Hi I realize that there is no custom recovery for the Galaxy SL GT-I9003 so I want to try porting it. I have the essential packages for building Android under Arch Linux and also the SDK installed and configured with Eclipse.
I've read this guide regarding porting ClockworkMod but there are no instructions for Samsung phones that require initramfs. I have downloaded the opensource GT-I9003 package from the Samsung website which contains a kernel and platform tarball.
Could someone guide me as to what changes I need to make to that guide to get it to work? I assume I need to extract some boot.img from the opensource GT-I9003 package but there is nothing clear. Would building the kernel first help? Should I go ahead and check out the CyanogenMod tree anyway?
I'd really appreciate some help here.
Update: There is a progress thread on the port here.

Related

[Q] Building ROM for Samsung Galaxy 5 (I5500)

Hey everyone,
Recently I installed the latest froyo_2.2 firmware for my samsung I5500..and tried to tweak it and started enjoyin it... So I decided to build Custom ROMS for this phone...I got a lot of info from cyanogen and from other posts...Now what I want to ask is that I have the source code for this phone, the android sdk(with gingerbread) and ellipse(with again the SDK and AVD), I want to compile the source code and do it all in windows based machine.. can i do it?? help would be greatly appreciated!! please!!
chaitanyakaul said:
Hey everyone,
Recently I installed the latest froyo_2.2 firmware for my samsung I5500..and tried to tweak it and started enjoyin it... So I decided to build Custom ROMS for this phone...I got a lot of info from cyanogen and from other posts...Now what I want to ask is that I have the source code for this phone, the android sdk(with gingerbread) and ellipse(with again the SDK and AVD), I want to compile the source code and do it all in windows based machine.. can i do it?? help would be greatly appreciated!! please!!
Click to expand...
Click to collapse
Haven't tried it, but all tutorials on the internet about compiling android are for linux. Probably because android is a linux based operation system. I don't think it's possible to compile on windows
Install linux or use the live CD...
well I guess I'll have to install Ubuntu then
Thanks... and any more suggestions would be greatly appreciated..
Where I can find the tutorial for compiling my rom?
hi
i have flashed my Samsung galaxy5 gt-i5503 to samung galaxy i5500L using firmware for usa ...samfirmware link....
now i have a perfectly working Froyo2.2 in my phone...
pls help me out for the best settings on cuptuner app....
alistassio said:
Where I can find the tutorial for compiling my rom?
Click to expand...
Click to collapse
Sorry, it's not quite as simple as that. First set up your Linux install, and all necessary tools (check the Android developers site), and then come back and ask where to begin!
any chance by making an htc sense ui custom rom for it?
Custom ROM
Can I also get the custom ROM for SG 551?
Thanks,
Disha
How to continue with built kernel
nprussell said:
Sorry, it's not quite as simple as that. First set up your Linux install, and all necessary tools (check the Android developers site), and then come back and ask where to begin!
Click to expand...
Click to collapse
nprussell,
I have installed all necessary tools, downloaded froyo from developer site, got I5500XXJPG_Froyo sources from SAMSUNG, compiled the kernel.
Now i have in path kernel/arch/arm/boot: Image, install.sh, Makefile, zImage
How to proceed?
Many thanks for any help!
thanx man real helpful

Forking and porting CM7 to an unsupported device? (Gio GT-S5660M)

Hello,
So far, I have:
A working Android build environment (Ubuntu 11.10 x64).
Managed to build, install and boot AOSP on my Nexus S. (I have downloaded but not attempted to build CM7 yet.)
Created a Github account.
Samsung's open source files for my target device, the Galaxy Gio GT-S5660M.
I've read some documentation and forum posts about Github, but I remain unsure as to what I should do to fork in a way that:
I'll be able to keep on syncing the remainder of the code.
My new device directories and modifications could be brought back (pulled?) to the main CM7 code base.
Will avoid needless frustrating re-downloads of the source code.
Thanks in advance,
Darkshado
After some further reading, I'm beginning to grasp some git basics...
I've forked two CM7 repos so far, added them as remotes in the appropriate installations. (Instead of forking and cloning, since I already had repo sync'ed the whole CM7 source. My commits show up on Github like they should, and I should be able to merge in commits to the origin remotes.)
I'm not going to do any pull requests until I've managed to build and boot.
By the way, yesterday I attempted to build AOSP with a bunch of files overwritten by the Samsung sources (that's how they tell you to do it!!) and this failed, as I expected.
Goodbye,
Darkshado
Update: I'm currently trying to port CM7 to the Gio 5660M. Still attempting a first successful build as I'm writing these lines.
My main issue so far has to do with the camera. I get the following error message:
make: *** No rule to make target « out/target/product/gio5660M/obj/lib/libcamera.so », needed by « out/target/product/gio5660M/obj/SHARED_LIBRARIES/libcameraservice_intermediates/LINKED/libcameraservice.so ». Stop.
After toggling off the camera by using the stub, I hit the same error further into the build with this:
make: *** No rule to make target « vendor/samsung/gio5660M/proprietary/wifi/ath6k/AR6003/hw2.0/athtcmd_ram.bin », needed by « out/target/product/gio5660M/system/wifi/ath6k/AR6003/hw2.0/athtcmd_ram.bin ». Stop.
I know this has to do with makefiles, but that's about it...
Thanks in advance for any help,
Darkshado
hi i'm interested too.
hi I found your github because I also interested poriting cyanogemod to galaxy gio korea(SHW-M290K). the device hardware is different from s5660. so I need some modification.
and your libcamera problem is that there is some reason that the make system can't find libcamera.so, so they cannot compile libcamera service. it should be in ./vendor/samsung/gio/proprietary according to your extract-files.sh .
have one cuorisity. I searched gio android device make file. and none of them are relreased source code. how did you make them?
I found this information. it may help you.
http://processors.wiki.ti.com/index.php/TI-Android-GingerBread-2.3.4-DevKit-2.1_PortingGuides
I'll have to update my Github, hadn't been in a rush due to lack of progress, but now my problem lies with libaudio instead.
I got the Samsung sources for the 5660M on their open source website, although I mostly worked with the CM7 ports for similar devices like Tass and Cooper as well as a Gio source provided by Phiexz but it didn't build either.
Thanks for the link, I'll check it out.
proprietary does not help
do you have any progress since last time?
well, I admit that proprietary files does not help.
does your s5660m hardware identical to s5660v?
becasuse galaxy gio in Korea(shw-m290k,shw-m290s) does different hardware.
well in this case, like me, you need to hack into not only android pdk, but also android kenel.
I have seen that phiexz has released kernel with latest cyanogenmod kenel in his github and I am modifing it to shw-m290k. there are some hardware differences i have to apply to.
I suggest you to compare phiexz's kernel and samsung original kernel from samsung opensource homepage.
My problem right now is that I don't have that much spare time to put into this, and that I'm very much learning as I go, so progress is not always that quick. Also, I'd like to get my Touchwiz based ROM updated and working properly before trying to build AOSP or CM again.
Another thing I want to try is building the kernel (probably based on Phiexz's) that will support ext4, and compare performance of the Touchwiz ROM on ext4 versus RFS.
As far as we can tell, GT-S5660 (Europe/Asia) GT-S5660M, L and V are identical except for the radio firmware. People with the 5660M initially encountered issues after flashing 5660 ROMs because they also contained the AMSS image.
my cyanogen kernel is based on samsung open source kernel
because cm-kernel on cyanogenmod github dont support our device, if we wnt use that kernel we must add some hardware pofile & board for galaxy gio
so alternative is make samsung's open source kernel compatible with cyanogenmod
Wouldn't it be much better from a code maintainability standpoint to make the CM kernel work on the Gio? (Also if you ever hope to get official CM team support, that's a given.)
The way I understand repo and git, you could create a github repo for your device and board configs and add those to your repo manifest so the whole CM7 source and your modifications all sync properly.
I've forked the CM7 manifest files off github, added my gio files and removed all those extra devices I didn't need, so my repo syncs are much faster too. (The idea comes from http://slightlymorethanworthless.blogspot.com/2011/05/remove-unwanted-devices-from.html)
hey a quick question...
just starting out here..
i'm on win7 32 bit, going to run ubuntu on virtualbox.
shud i choose ubuntu 32 bit or 64?
sorry for OT.
doesn't really matter
roofrider said:
hey a quick question...
just starting out here..
i'm on win7 32 bit, going to run ubuntu on virtualbox.
shud u choose ubuntu 32 bit or 64?
sorry for OT.
Click to expand...
Click to collapse
doesn't really matter. but compiling process needs much cpu power. so 64x would be better.
Well, im not a dev or a user of gt5660m, but good luck to you, hope u can finally port it
Sent from the GUN in my pants
darkshado, if you have same problem untill now.
http://strazzere.com/blog/?p=220
look this page. and check out koush's proprietary page. especially for samsung cooper(galaxy ace). because many of kernel procedure are same for gio.
https://github.com/coolya/android_device_samsung_cooper.git
https://github.com/koush/proprietary_vendor_samsung
i've upload galaxy gio source + proprietary files for galaxy gio
please see & help to fix some problem
github.com/phiexz
Darkshado said:
Hello,
So far, I have:
A working Android build environment (Ubuntu 11.10 x64).
Managed to build, install and boot AOSP on my Nexus S. (I have downloaded but not attempted to build CM7 yet.)
Created a Github account.
Samsung's open source files for my target device, the Galaxy Gio GT-S5660M.
I've read some documentation and forum posts about Github, but I remain unsure as to what I should do to fork in a way that:
I'll be able to keep on syncing the remainder of the code.
My new device directories and modifications could be brought back (pulled?) to the main CM7 code base.
Will avoid needless frustrating re-downloads of the source code.
Thanks in advance,
Darkshado
Click to expand...
Click to collapse
Really the best kernel for your phone is here:
http://forum.xda-developers.com/showthread.php?t=1991020
BLN enabled, optimized&stable kernel, jelly bean look
Whoa! Zombie thread!
Dude: the ROM you linked was published over a year after my original post in this thread. I'm pretty sure there was NO CM7 build available for the Gio back then. That's what I was trying to work on, but got beat to the punch by Maclaw and a couple others. (Hard-bricking my Gio and having a sluggish laptop to build on didn't help.)
Besides, I got rid of my Gio a long time ago. I enjoy my Note 2 and keep my Nexus S as backup.

samsung galaxy pocket gt-s5300 build from source

i own samsung galaxy pocket gt-s5300, its like galaxy Y little brother. And i'm trying to build from source.
i'm new in this stuff, so i can't elaborate enough to find solution myself.
i've downloaded the samsung source for this device from samsung website, when extracted it has 2 sources, platform and kernel.
im trying to build the platform and hopefully can build the stock rom successfully so i can proceed to modification.
already followed the instructions to get the gingerbread 2.3.6 from aosp, merge the folders from samsung to aosp, and execute build script (generic-user). seems fine, i got system.img,userdata.img,etc but no boot.img, still tried to flash anyway and figured that this device doesn't support fastboot but adb works. then i tried to make otapackage but got no rule error. perhaps caused by this generic-user lunch, but i dont know how to add this device to build, because there's only generic,emulator,crespo-4g, and crespo choices.
trying to find alternatives, and thinking about modify the stock rom with my build, so i also tried to open the odin flashable stock rom with winrar (xxx.tar.md5) which i cant, i dont know why since the other galaxy rom has no problem.
so many thing i'm not sure of doing it right, so i need help building for this samsung device from source.
bLusiLv said:
i own samsung galaxy pocket gt-s5300, its like galaxy Y little brother. And i'm trying to build from source.
i'm new in this stuff, so i can't elaborate enough to find solution myself.
i've downloaded the samsung source for this device from samsung website, when extracted it has 2 sources, platform and kernel.
im trying to build the platform and hopefully can build the stock rom successfully so i can proceed to modification.
already followed the instructions to get the gingerbread 2.3.6 from aosp, merge the folders from samsung to aosp, and execute build script (generic-user). seems fine, i got system.img,userdata.img,etc but no boot.img, still tried to flash anyway and figured that this device doesn't support fastboot but adb works. then i tried to make otapackage but got no rule error. perhaps caused by this generic-user lunch, but i dont know how to add this device to build, because there's only generic,emulator,crespo-4g, and crespo choices.
trying to find alternatives, and thinking about modify the stock rom with my build, so i also tried to open the odin flashable stock rom with winrar (xxx.tar.md5) which i cant, i dont know why since the other galaxy rom has no problem.
so many thing i'm not sure of doing it right, so i need help building for this samsung device from source.
Click to expand...
Click to collapse
I try to do it but i still make a lot of tweaks on my Rom I need to make good performance to my phone

How to extract proprietary binaries from a device ?

I am following the Android CustomROM building guide by jackeagle.
But instead of cloning from the CM repositories, I have cloned from the Google repository. Now I'm at that part where we need to download proprietary binaries of the device for which we're developing.
I had read that those proprietary binaries can be extracted from the device, when it is flashed with the stock source it was released with. But unfortunately, I'm unable to understand how I can pull those files using adb.
I'm using Samsung Galaxy S Duos (GT - S7562) (for learning purposes). I don't need a device specific solution. I just want to know in general, how we can pull the device-tree, vendor and kernel for any given device from it.
Thanks in advance.

how to build aosp for vivalto3mveml3g (samsung galaxy trend 2 lite)

I would like to build and flash an image using pure aosp for vivalto3mveml3g - samsung galaxy trend 2 lite G318H (on ubuntu 14) .
I have rooted the phone installed jdk and other packages and downloaded aosp source code for android 4.4 but I don't understand exactly what device drivers I need and how/what to change to have proper lunch config.
Looking at some pages here it seems I need a device tree and maybe some drivers for this phone but I do not understand how they fit all together. Is the device tree going to be under the device/samsung/<codeName> folder ?
Thanks for any help.

Categories

Resources