• XDA Forums have been migrated to XenForo. We are aware of several issues including missing threads, logins not working, and more. To discuss, use this thread.

[Porting]Gingerbread for Samsung i5510

Status
Not open for further replies.
W

WillingMagic

Guest
After official released Gingerbread topic should be closed. There is no longer necessary to port gingerbread.

Topic is closed:
Please discuss here:
Cyanogenmod http://forum.xda-developers.com/showthread.php?t=1275458
Arkas, samsung roms, and other stuff http://forum.xda-developers.com/showthread.php?t=1275464

Config for build is available here
Build instruction
Current build is based on cyanogenmod CM7 (gingerbread-stable):

Project mailing list:
http://groups.google.com/group/samsung-galaxy-551

Link to build:
No build current available

Changelog:
21-03-2011 Added kernel config dumped from official rom.
11-04-2011 Successful flashing using rfs files and Odin, how to will be added soon.
01-05-2011 New build config
07-05-2011 Added how to build
08-05-2011 I pushed new config to git
03-06-2011 Karandpr create custom framework. It is available here.
08-07-2011 Cyanogenmod launch but graphics is glitchy. Log http://pastebin.com/QEC1xyKG
25-07-2011 Fixed graphics error, sound works
11-09-2011 Working Clockwork recovery with stl/bml support(demo available)
20-09-2011 Samsung released official Gingerbread.
 
Last edited:
W

WillingMagic

Guest
Thanks I will post odin image when I try on my phone.Current issuse is mapping partitions.
Code:
cat /proc/partitions

 major minor  #blocks  name
 137        0     513024 bml0/c
 137        1       1536 bml1
 137        2        512 bml2
 137        3        768 bml3 
 137        4      25600 bml4
 137        5      24832 bml5
 137        6       5120 bml6
 137        7      25600 bml7
 137        8       2048 bml8
 137        9      10240 bml9
 137       10      10240 bml10
 137       11        768 bml11
 137       12     195840 bml12
 137       13     184320 bml13
 137       14      25600 bml14
 
W

WillingMagic

Guest
Kernel image for Callisto/GT-I5510 contains initramfs so most of tutorials about extracting kernel don`t work for this phone.
 

kraka23

New member
Feb 10, 2011
54
6
0
First thing you should do is port any recovery and install it. Like clockworkmod, open recovery, etc.

For clockworkmod porting, check this:

koushikdutta.com/2010/10/porting-clockwork-recovery-to-new.html

Make NAND backup will be great!.
 

kraka23

New member
Feb 10, 2011
54
6
0
Go to opensource.samsung.com/ , register and search "i5510".

Download de opensource code for i5510 (plus i5510L in my case)



** How to Build **

1. Get open source code of GT-I5510. (GT-I5510_OpenSource.zip)
Download site : //opensource.samsung.com

2. Unzip GT-I5510_OpenSource.zip, then you will see GT-I5510_KERNEL.tar.
Extract Kernel source code of GT-I5510 and GT-I5510L.

3. Overwrite GT-I5510L's file to GT-I5510's file.

4. Edit Makefile.(kernel/Makefile)
Edit "CROSS_COMPILE" to right toolchain path.
Ex) CROSS_COMPILE=../../toolchain/arm-eabi-4.4.0/bin/arm-eabi-

¡ØTo build kernel you need toolchain. Yon can download toolchain following url.
//www.codesourcery.com(recommand - Feature:ARM, Target OS:"EABI", package:"IA32 GNU/Linux TAR") or
//www.codesourcery.com/sgpp/lite/arm/portal/package7813/public/arm-none-eabi/arm-2010.09-51-arm-none-eabi-i686-pc-linux-gnu.tar.bz2


5. Run make_kernel.sh
$ cd kernel
$ ./make_kernel.sh


** Output file **
kernel/arch/arm/boot/zImage
 

kraka23

New member
Feb 10, 2011
54
6
0
Well, i hope this will help you (its from c:\GT-I5510L_OpenSource.zip\GT-I5510L_kernel\kernel\include\linux\fsr_if.h)

Code:
#ifndef __KERNEL__
/*Warning*/
/*If you modify BML, you must check this definition*/
/*****************************************************************************/
/* Partition Entry ID of BML_LoadPIEntry()                                   */
/* Partition Entry ID from 0 to 0x0FFFFFFF is reserved in BML                */
/* Following ID is the pre-defined value and User can use Partition Entry ID */
/* from PARTITION_USER_DEF_BASE                                              */
/*****************************************************************************/

#define     PARTITION_ID_NBL			0		///< NAND bootloader stage 1, 2 
#define     PARTITION_ID_BOOTLOADER		1		///< NAND bootloader stage 3
#define     PARTITION_ID_BOOT_PARAMETER		2		///< NAND bootloader parameter of stage 3
#define     PARTITION_ID_COPIEDOS		3		///< OS image copied from NAND flash memory to RAM
#define     PARTITION_ID_ROOT_FILESYSTEM	4		///< OS image loaded on demand
#define     PARTITION_ID_BMLAREA5		5		///< BML area 5
#define     PARTITION_ID_BMLAREA6		6		///< BML area 6
#define     PARTITION_ID_BMLAREA7		7		///< BML area 7
#define     PARTITION_ID_BMLAREA8		8		///< BML area 8
#define     PARTITION_ID_BMLAREA9		9		///< BML area 9
#define     PARTITION_ID_BMLAREA10		10		///< BML area 10
#define     PARTITION_ID_BMLAREA11		11		///< BML area 11
#define     PARTITION_ID_BMLAREA12		12		///< BML area 12
#define     PARTITION_ID_BMLAREA13		13		///< BML area 13
#define     PARTITION_ID_BMLAREA14		14		///< BML area 14
#define     PARTITION_ID_BMLAREA15		15		///< BML area 15
#define     PARTITION_ID_BMLAREA16		16		///< BML area 16
#define     PARTITION_ID_BMLAREA17		17		///< BML area 17
#define     PARTITION_ID_BMLAREA18		18		///< BML area 18
#define     PARTITION_ID_BMLAREA19		19		///< BML area 19
#define     PARTITION_ID_FILESYSTEM0		20		///< file system 0
#define     PARTITION_ID_FILESYSTEM1		21		///< file system 1
#define     PARTITION_ID_FILESYSTEM2		22		///< file system 2
#define     PARTITION_ID_FILESYSTEM3		23		///< file system 3
#define     PARTITION_ID_FILESYSTEM4		24		///< file system 4
#define     PARTITION_ID_FILESYSTEM5		25		///< file system 5
#define     PARTITION_ID_FILESYSTEM6		26		///< file system 6
#define     PARTITION_ID_FILESYSTEM7		27		///< file system 7
#define     PARTITION_ID_FILESYSTEM8		28		///< BML area 18
#define     PARTITION_ID_FILESYSTEM9		29		///< BML area 19
#define     PARTITION_ID_FILESYSTEM10		30		///< file system 0
#define     PARTITION_ID_FILESYSTEM11		31		///< file system 1
#define     PARTITION_ID_FILESYSTEM12		32		///< file system 2
#define     PARTITION_ID_FILESYSTEM13		33		///< file system 3
#define     PARTITION_ID_FILESYSTEM14		34		///< file system 4
#define     PARTITION_ID_FILESYSTEM15		35		///< file system 5

#define	    MAX_STL_PARTITIONS			(PARTITION_ID_FILESYSTEM7 - PARTITION_ID_FILESYSTEM0 + 1)
#endif
 

kraka23

New member
Feb 10, 2011
54
6
0
rootfs / rootfs ro,relatime 0 0
tmpfs /dev tmpfs rw,relatime,mode=755 0 0
devpts /dev/pts devpts rw,relatime,mode=600 0 0
proc /proc proc rw,relatime 0 0
sysfs /sys sysfs rw,relatime 0 0
tmpfs /mnt/asec tmpfs rw,relatime,mode=755,gid=1000 0 0
/dev/stl14 /cache rfs rw,nosuid,nodev,relatime,vfat,llw,check=no,gid/uid/rwx,iocharset=utf8 0 0
/dev/stl13 /data rfs rw,nosuid,nodev,relatime,vfat,llw,check=no,gid/uid/rwx,iocharset=utf8 0 0
/dev/stl12 /system rfs ro,relatime,vfat,log_off,check=no,gid/uid/rwx,iocharset=utf8 0 0
/dev/block/vold/179:1 /mnt/sdcard vfat rw,dirsync,nosuid,nodev,noexec,relatime,uid=1000,gid=1015,fmask=0002,dmask=0002,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
/dev/block/vold/179:1 /mnt/secure/asec vfat rw,dirsync,nosuid,nodev,noexec,relatime,uid=1000,gid=1015,fmask=0002,dmask=0002,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
tmpfs /mnt/sdcard/.android_secure tmpfs ro,relatime,size=0k,mode=000 0 0
/dev/block/dm-0 /mnt/asec/com.levelup.bw.forecast-1 vfat ro,dirsync,nosuid,nodev,noexec,relatime,uid=1000,fmask=0222,dmask=0222,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
/dev/block/dm-1 /mnt/asec/com.google.zxing.client.android-1 vfat ro,dirsync,nosuid,nodev,noexec,relatime,uid=1000,fmask=0222,dmask=0222,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
/dev/block/dm-2 /mnt/asec/ymst.android.homeswitcherfroyo-1 vfat ro,dirsync,nosuid,nodev,noexec,relatime,uid=1000,fmask=0222,dmask=0222,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
/dev/block/dm-3 /mnt/asec/com.keramidas.TitaniumBackup-1 vfat ro,dirsync,nosuid,nodev,noexec,relatime,uid=1000,fmask=0222,dmask=0222,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
/dev/block/dm-4 /mnt/asec/com.dolphin.browser-1 vfat ro,dirsync,nosuid,nodev,noexec,relatime,uid=1000,fmask=0222,dmask=0222,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0


Sent from my GT-I5510L using XDA App
 
W

WillingMagic

Guest
Roadmap:
1. Map partitions
2. Build open/clockworld recovery
3. while(bugs!=0) {Rebuild rom and bug fixing }
4. First release
5. Port kernel >= 2.6.35
7. Port icecream after release
 
Status
Not open for further replies.
Our Apps
Get our official app! (coming soon)
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone