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

Aery

Senior Member
Aug 5, 2010
563
8
0
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-i9000-cyanogenmod/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/cyanogenmod_initramfs_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:

TrueNix

Senior Member
Jun 15, 2009
109
36
58
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
 

BackfireNL

Senior Member
Nov 11, 2009
603
59
0
Haarlem
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:

ttabbal

Senior Member
Jul 1, 2009
2,076
723
183
"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.
 

Aery

Senior Member
Aug 5, 2010
563
8
0
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
 

mssmison

Retired Forum Moderator
Apr 23, 2008
1,654
231
0
You seem to be missing all of your proprietary files..
You should check in with noobnl on your bulding technique.
 
Last edited: