thanx a lot for the tutorial dear.
what if we use cramfsck instead of mount + tar + extract approach?
How to edit your cg35 with your phone and M$ Windows with cygwin installed
by eakrin @ MotorolaFans.com
what is cg35? cg35 is one part of firmware in your phone that storage local program for each country. cg35 is in /usr/language in phone and contain default themes, default wallpapers, default ringtones, font, language input libraries, vr libraries, and preload programs. this article is how to add theme, font, picture, and sound into your cg35.
This article was written from my experiance and knowledge from MotorolaFans forums. If someone read and try to do like me I do not response for all of damage of your phone.
Requirements.
1. knowledge about Linux file system.
2. PC that installed cygwin with mkcramfs command.
3. loop.o module from cyph's flashkit.
4. 25MB available space in mmc
5. can telnet into your phone.
6. can use linux's command line.
first we need to get cg35 from phone's firmware.
Step to get cg35 from phone.
1. telnet into phone.
2. execute copy command incommandprompt to copy cg35 from phone.
cp /dev/tffsa /mmc/mmca1/cg35.smg
3. wait a moment and you 'll get cg35 in file cg35.smg in MMC.
4. make folder for mounting cg35 file by
mk /mmc/mmca1/cg35
5. copy loop.o to mmc and install loop.o module by
cd /mmc/mmca1
insmod loop.o
6. mount cg35.smg to cg35 folder by
mount -t cramfs -o loop cg35.smg cg35
after that we can go into cg35 folder to look what is inside it but cannot edit.
7. tar cg35 folder by
tar -zcvf cg35.tar.gz cg35
and you 'll got cg35.tar.gz.
8. unmount cg35 folder in phone by
umount cg35
9. move c35.tar.gz to cygwin 's user home folder by Windows Explorer.
10. extract cg35.tar.gz file for editing in cygwin by
tar -zxvf ./cg35.tar.gz
after step 10 we got cg35 files in cg35 folder to edit everything you want.
Step to add theme into cg35.
1. extract theme file (*.mtf) and put it in this folder
animation for GIF animate file.
picture for wallpaper file.
theme/themename for iconres.ezx, skin file, and theme logo file.
appwrite/setup for theme config file (*.dhm)
2. rename theme config file from *.dhm to *.phm
3. edit theme config file in THEME_CONFIG_TABLE
ThemeIconDir = /usr/lanuguage/theme/themename (from step 1)
ThemeLogoIcon = /usr/lanuguage/theme/themename/logofile
ThemeSkinFile = /usr/lanuguage/theme/themename/skinfile
ThemeWallpaperFile = /usr/language/picture/wallpaperfile
ThemePowerUpImage = /usr/language/animation/powerupfile
ThemePowerDownImage = /usr/language/animation/powerdownfile
Change default wallpapers, power on/off Animations, font, Ringtones .
we can change system font by replace AlbanyMotorola.ttf in folder font with your font. for default wallpapers and default ringtones we can add them by put your wallpaper in folder picture and ringtone in folder ringtone.
Font folder -> cg35/font
Wallpaper folder -> cg35/picture
Poweron/off Animation folder -> cg35/animation
Ringtone folder -> cg35/ringtone
default Wallpaper and animation is first file in its' folder sorted by name. if you want old default wallpaper and animation try to rename your another file to display after default one or add ThemePowerUpImage and ThemePowerDownImage into phm file for theme that use default animation.
cg35 have limited size about 12MB (before extract). if you need more available space in cg35 try to remove VR library in vr folder. there contain many of unused vr libraries. or you can remove preload apps. and make them a mpkg package for install to phone or mmc instead.
After edited cg35 we need to create cg35 file to send it back to phone
Step to create smg file (compress rom file) and install to back to phone
1. execute command mkcramfs to create smg file in cygwin.
mkcrmafs cg35 newcg35.smg
2. wait unitl you got newcg35.smg file
3. send newcg35.smg into phone mmc
4. copy newcg35 file into firmware by execute this command in telnet or Qonsole.
cp /mmc/mmca1/newcg35.smg /dev/tffsa
5. wait until copy complete.
6. if you add new theme into cg35. you should delete old theme in ezxlocal and copy new theme into ezxlocal by master reset phone or run this command in telnet.
rm -f /ezxlocal/download/appwrite/setup/*.phm
cp -f /usr/language/theme/*.phm /ezxlocal/download/appwrite/setup
After this your phone 'll have new cg35.
PS. cg36 of E680/i/A780 is cramfs like cg35. can use this method to edit but require flashing to install.
PS. becareful for cg35 file size. It should not bigger that original cg35 size that your got from cp /dev/tffsa command. and for E680i that cannot use Hyper terminal to telnet if your cg35 install fail or wrong theme configuration your phone 'll hang at start up. only flashing can solve this for E680i.
eakrin @ MotorolaFans.com
First public on April 18, 2006
Revision 1 on July 14, 2006
thanx a lot for the tutorial dear.
what if we use cramfsck instead of mount + tar + extract approach?
--------------------
-->E680i... ROX.
--------------------
Thanks very good tutorial I learned lot of things)
how about deleting unwanted files in cg35
http://coldstorage.spruz.com
Home of Motorola Files and links
you can add or delete anyfile and pack it back by mkcramfs command. but some file r system library like input lib, vr lib.
Visit my Blog here.http://my.opera.com/eakrin
eakrin how to get this
PC that installed cygwin with mkcramfs command
will its seems to complex to me...i just want to change everything from sandmans CG35_C5AEP
i cant install it on my phone
i really need de-branding
delete all preloaded games
change the boot-up to the original one
homescreen must be
set ringotnes,files,settup,player and bluetooth
can you make me one eakrin a cg35 for aep
yeah and i really want to learn this too
thanks in advance
cygwin is a free software Linux environment running on windows. now own by redhat.
go to www.cygwin.com and download setup.exe into your pc. run setup and it will ask what package to install and it download + install for you. after that you got gygwin in windows and can re setup to install new package every time you want.
cygwin use windows as GUI and use command prompt to run linux shell commands and scripts.
and cygwin is also use to build sam7 's ezx-crosstool too. but need 3-4GB available space.
Visit my Blog here.http://my.opera.com/eakrin
thanks but can you still help me on my prob.
http://coldstorage.spruz.com
Home of Motorola Files and links
whick language do you use in phone? cg35 contain many localize stuffs. like font, NetProfile, preloaded app, themes, language input library, vr library.
first just extract cg35 into files. and see what inside. you may need original stuffs like powerup/down images, wallpapers, ringtones, themes, NetProfiles, to replace them.
if you use only english there still available space ti put more themes than 3 defaults. I got 10 themes in my cg35.
which part in cg35 do you want to de-brands. my A780 (thai) start with Hello Moto animation and can't see another thing branded.
yeah im using english.....and i cant extract the cg35 of my phone.
http://coldstorage.spruz.com
Home of Motorola Files and links