Post Reply

[ROM] CyanogenMod 6.1 for GT-I9000: DEVELOPER ONLY THREAD!

OP Aery

8th October 2010, 04:55 PM   |  #1  
OP Senior Member
Thanks Meter: 8
 
561 posts
Join Date:Joined: Aug 2010
Donate to Me
More
CM6 for Samsung Galaxy S GT-I9000: Work in progress

+++++++++++++++++++++++++++++++++++++++++++++++++

Devs:
codeworkx (Aery) - http://twitter.com/codeworkx
coolya - http://twitter.com/dumdidum
finghin - http://www.twitter.com/finghin

PLS DONATE FOR COFFEE, PIZZA AND BEER!!! ;)
I'm already redirecting 50% of all incoming Donations to coolya.

THANKS TO ALL DONATORS!!!

+++++++++++++++++++++++++++++++++++++++++++++++++

Official Beta Releases:
http://forum.xda-developers.com/showthread.php?t=842159

Known Bugs:
http://code.google.com/p/samsung-gt-...od/issues/list

Please have a look at the issues list before reporting a bug.
Maybe it's already known.


DISCUSSION THREAD: http://forum.xda-developers.com/showthread.php?t=838841
Please use DISCUSSION THREAD, especially for OFF-TOPIC Stuff!!!

+++++++++++++++++++++++++++++++++++++++++++++++++

Howto build for GT-I9000:
mkdir -p ~/android/system
cd ~/android/system/
repo init -u git://github.com/codeworkx/android.git -b froyo
repo sync

cd ~/android/system/vendor/cyanogen/
./get-rommanager
./get-google-files -v HDPI

cd ~/android/system/
cp ./vendor/cyanogen/products/cyanogen_galaxys.mk ./buildspec.mk
. build/envsetup.sh
lunch cyanogen_galaxys-eng

make -j`grep 'processor' /proc/cpuinfo | wc -l`

+++++++++++++++++++++++++++++++++++++++++++++++++

Kernel Sources:
https://github.com/codeworkx/android_kernel_2.6.32

Initramfs:
https://github.com/codeworkx/cyanoge...itramfs_2.6.32

+++++++++++++++++++++++++++++++++++++++++++++++++

Updater-Script for creating a update.zip
https://github.com/codeworkx/update

+++++++++++++++++++++++++++++++++++++++++++++++++

DON'T BUILD WITHOUT ANY EXPERIENCE!
DON'T ASK HOW TO BUILD!
DON'T ASK WHY YOUR BUILD FAILS!


################################################## #
# Info for Aery
################################################## #

JPM build.prop:
http://pastebin.com/4b5Na6JP

Devices:
http://pastebin.com/ci1CLMZ5

JPM System:
http://pastebin.com/qnR93Ccz

Kernel Log:
http://pastebin.com/98FSKEqZ

Find Depencies:
objdump -x out/target/product/xxxxxx/system/lib/libmedia_jni.so | grep NEEDED

Android UID and GUID:
AID_ROOT 0 /* traditional unix root user */
AID_SYSTEM 1000 /* system server */
AID_RADIO 1001 /* telephony subsystem, RIL */
AID_BLUETOOTH 1002 /* bluetooth subsystem */
AID_GRAPHICS 1003 /* graphics devices */
AID_INPUT 1004 /* input devices */
AID_AUDIO 1005 /* audio devices */
AID_CAMERA 1006 /* camera devices */
AID_LOG 1007 /* log devices */
AID_COMPASS 1008 /* compass device */
AID_MOUNT 1009 /* mountd socket */
AID_WIFI 1010 /* wifi subsystem */
AID_ADB 1011 /* android debug bridge (adbd) */
AID_INSTALL 1012 /* group for installing packages */
AID_MEDIA 1013 /* mediaserver process */
AID_DHCP 1014 /* dhcp client */
AID_SHELL 2000 /* adb and debug shell user */
AID_CACHE 2001 /* cache access */
AID_DIAG 2002 /* access to diagnostic resources */
/* The 3000 series are intended for use as supplemental group id's only. */
/* They indicate special Android capabilities that the kernel is aware of. */
AID_NET_BT_ADMIN 3001 /* bluetooth: create any socket */
AID_NET_BT 3002 /* bluetooth: create sco, rfcomm or l2cap sockets */
AID_INET 3003 /* can create AF_INET and AF_INET6 sockets */
AID_NET_RAW 3004 /* can create raw INET sockets */
AID_MISC 9998 /* access to misc storage */
AID_NOBODY 9999
AID_APP 10000 /* first app user */

"root", AID_ROOT
"system", AID_SYSTEM
"radio", AID_RADIO
"bluetooth", AID_BLUETOOTH
"graphics", AID_GRAPHICS
"input", AID_INPUT
"audio", AID_AUDIO
"camera", AID_CAMERA
"log", AID_LOG
"compass", AID_COMPASS
"mount", AID_MOUNT
"wifi", AID_WIFI
"dhcp", AID_DHCP
"adb", AID_ADB
"install", AID_INSTALL
"media", AID_MEDIA
"shell", AID_SHELL
"cache", AID_CACHE
"diag", AID_DIAG
"net_bt_admin", AID_NET_BT_ADMIN
"net_bt", AID_NET_BT
"inet", AID_INET
"net_raw", AID_NET_RAW
"misc", AID_MISC
"nobody", AID_NOBODY

Check Dalvik-Cache:
dexdump -c /data/dalvik-cache/*


Mount sdcard to usb @ recovery:
echo /dev/block/mmcblk0 > /sys/devices/platform/s3c-usbgadget/gadget/lun1/file

Unmount:
echo "" > /sys/devices/platform/s3c-usbgadget/gadget/lun1/file
Last edited by Aery; 29th November 2010 at 08:59 PM.
The Following 3 Users Say Thank You to Aery For This Useful Post: [ View ]
8th October 2010, 05:25 PM   |  #2  
spyrale's Avatar
Senior Member
Flag from Abruzzo with fury
Thanks Meter: 115
 
740 posts
Join Date:Joined: Apr 2009
More
man, if you can do that i will come to you and kiss your feet!
8th October 2010, 05:30 PM   |  #3  
irkkso's Avatar
Senior Member
Thanks Meter: 66
 
222 posts
Join Date:Joined: Mar 2008
Donate to Me
More
did you wipe data and cache?
did you wipe data and cache?
8th October 2010, 05:34 PM   |  #4  
Daneshm90's Avatar
Recognized Developer
Thanks Meter: 636
 
3,309 posts
Join Date:Joined: Jun 2009
Posting ur update-script / updater-script might help ?
8th October 2010, 05:34 PM   |  #5  
rossgucci's Avatar
Member
Thanks Meter: 26
 
91 posts
Join Date:Joined: Jun 2009
Thumbs up
Quote:
Originally Posted by Aery

Hello Guys.

It seems that i've builded CM6 for Galaxy S.
But when i apply update.zip from Recovery 2e, i get following error:

assert failed: write_raw_image("/tmp/boot.img","boot")
E:Error in /sdcard/update.zip

Does anyone know whats going wrong?

Part from BoardConfig.mk

Code:
BOARD_BOOT_DEVICE := /dev/block/bml7
BOARD_DATA_DEVICE := /dev/block/mmcblk0p2
BOARD_DATA_FILESYSTEM := rfs
BOARD_DATA_FILESYSTEM_OPTIONS := llw,check=no,nosuid,nodev
BOARD_HAS_DATADATA := true
BOARD_DATADATA_DEVICE := /dev/block/stl10
BOARD_DATADATA_FILESYSTEM := rfs
BOARD_DATADATA_FILESYSTEM_OPTIONS := llw,check=no,nosuid,nodev
BOARD_SYSTEM_DEVICE := /dev/block/stl9
BOARD_SYSTEM_FILESYSTEM := rfs
BOARD_SYSTEM_FILESYSTEM_OPTIONS := llw,check=no
BOARD_CACHE_DEVICE := /dev/block/stl11
BOARD_CACHE_FILESYSTEM := rfs
BOARD_CACHE_FILESYSTEM_OPTIONS := llw,check=no,nosuid,nodev
BOARD_SDCARD_DEVICE_PRIMARY := /dev/block/mmcblk1
BOARD_SDCARD_DEVICE_SECONDARY := /dev/block/mmcblk1p1
BOARD_SDEXT_DEVICE := /dev/block/mmcblk1p2
#BOARD_USES_BMLUTILS := true

You better post your update.zip for some who can check it closer
8th October 2010, 06:59 PM   |  #6  
OP Senior Member
Thanks Meter: 8
 
561 posts
Join Date:Joined: Aug 2010
Donate to Me
More
DO NOT FLASH THIS FILE!
http://www.multiupload.com/72EE5VK58S
8th October 2010, 07:03 PM   |  #7  
Senior Member
Flag Haarlem
Thanks Meter: 59
 
585 posts
Join Date:Joined: Nov 2009
More
hmm.. i'm not making any sense! :P

uhm.. the problem lies with the write command..

are you sure the boot.img is in the /tmp directory on your phone?
Last edited by BackfireNL; 8th October 2010 at 07:15 PM.
8th October 2010, 07:07 PM   |  #8  
DangerMUK's Avatar
Member
Flag London
Thanks Meter: 10
 
71 posts
Join Date:Joined: Aug 2010
More
I'll have a quick look for you as well.
8th October 2010, 07:19 PM   |  #9  
Senior Member
Thanks Meter: 512
 
1,774 posts
Join Date:Joined: Jul 2009
"boot.img" makes me suspect you are trying to update in the HTC way. It's likely that the CM devs haven't posted the info to allow you to build a fully flashable ZIP yet. WesGarner tweeted recently that he bricked his phone trying a dev build, so be careful.
8th October 2010, 07:20 PM   |  #10  
OP Senior Member
Thanks Meter: 8
 
561 posts
Join Date:Joined: Aug 2010
Donate to Me
More
Mail from wes:

Can't use raw image write
Since boot is the last to flash use my build kernel script which will flash the kernel using redbend

Post Reply Subscribe to Thread

Tags
cyanogenmod
Previous Thread Next Thread
Thread Tools
Display Modes


Top Threads in Galaxy S I9000 Android Development by ThreadRank