The Motorola Development Community


Go Back   MotorolaFans.com Forums > Motorola EZX Phones > E6 General Chat > E6 Firmware
Notices

Reply

Moderator

eakrin's Avatar

Join Date: Jul 2005
Posts: 833
Thanks: 25
Thanked 219 Times in 80 Posts
Location: Thailand

Send a message via ICQ to eakrin Send a message via MSN to eakrin Send a message via Yahoo to eakrin Send a message via Skype™ to eakrin
Quote  
#1
08-15-2007
Default Modified 09P CG43 telnetable, startupscripts, fontswitch

Here is a modified cg43 for Rokr E6 (09P) and cg44 for A1200 (09P)

Modification list is
1. can be telnet by acmattach.lin or old telnet.pkg

2. can be telnet by echo at+mode=13 > comX (X is comport number of motorola usb modem)

3. can be switch font by put AMCSL.TTF and fontdef.cfg into folder "fonts" in flash memory (/ezxlocal/download/mystuff/fonts) and restart phone. and delete or move both file and restart phone to change back to normal phone font.

4. in Rokr E6 you can telnet via command line with this cg. (can login into phone)

5. can run startup scripts by put a *.lin into folder "startup" in flash memory and/or in card.script in flash memory 'll executed first in order of it 's name and later scripts in mmc 'll executed.

this file is contain only CG43 or CG44 and RDL3. you can flash it with RSDLite and all you data is remain after flashing.

I hosted files at my blog here
http://my.opera.com/eakrin/blog/modi...d-cg44-for-a12

and for anyone who interest to modding another f/w yourself. most of it I search and hack from E6_yan0 _02P
1. for telnet and login
need to add those files in cg43
/usr/sbin/inetd
/usr/sbin/smbd
/usr/sbin/tcpd
/usr/sbin/in.telnetd
/usr/lib/telnetlogin
/bin/login <-- for E6 only, A1200 always have it.

2. for startup script. I add S90startup.sh into /etc/rc.d/rc2.d

here is a script text.


Quote:
#!/bin/bash
# Startup script by Ake @ ThaiLinuxPDA.com Aug 9, 2007
# ----------------------------------

if test -d /ezxlocal/download/mystuff/startup;
then
dir -1 /ezxlocal/download/mystuff/startup/*.lin | while read linfile;
do
exec $linfile &
done
fi

if test -d /mmc/mmca1/startup;
then
dir -1 /mmc/mmca1/startup/*.lin | while read linfile;
do
exec $linfile &
done
fi
this script will execute all *.lin in startup folder in flash and in mmc by order of filename.

3. for font switch. I edited /etc/init.d/ezxenvr.sh in #font path paragraph to

from
Quote:
# font path
#if test -f /usr/language/fonts/fontdef.cfg;
#then
if test -f /ezxlocal/download/mystuff/fonts/fontdef.cfg;
then
export EZX_RES_FONT_PATH=/ezxlocal/download/mystuff/fonts

elif test -f /usr/language/fonts/fontdef.cfg;
then
export EZX_RES_FONT_PATH=/usr/language/fonts
else
export EZX_RES_FONT_PATH=$QTDIR/lib/fonts
fi
It mean let phone check for font in flash memory first.

here is all point that i modding this A1200 and E6 cg.

BTW I do not add another library like showQ, Busybox, etc in root cg coz. no application used them. software developer need to make application useable in both original f/w and flashed f/w phones.[/quote]
__________________
Visit my Blog here.http://my.opera.com/eakrin
Reply With Quote


User Information
Current Phone: E6 A1200 A780
Firmware: Lamborghini 09P
Location: Thailand

eakrin is offlineReport Post
MotoFans XPRT

ArcherIV's Avatar

Join Date: Jul 2007
Posts: 302
Thanks: 19
Thanked 2 Times in 2 Posts
Quote  
#2
08-15-2007
Default

Awesome! Thanks Eakrin!
Reply With Quote


User Information
ArcherIV is offlineReport Post
MotoFans NWBE

Join Date: Mar 2006
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Quote  
#3
08-15-2007
Default

Thank's, with original firmware (no flash), how do make USB NET (i don't want lost original firmware)
- Sorry because my english verry bad.
Reply With Quote


User Information
Current Phone: 0914194700
hoangminh is offlineReport Post
Moto Fans SENR

mischka's Avatar

Join Date: Aug 2006
Posts: 783
Thanks: 0
Thanked 18 Times in 14 Posts
Location: Germany

Quote  
#4
08-15-2007
Default

@eakrin

Can you please explain how to modify CG44? I'm very interrested what software I need and how to do it

You didn't do it by telneting only. You created a flashable CG file!
Reply With Quote


User Information
Current Phone: Moto A1600, Moto A1200, Moto A780, Moto A910,
Firmware: A1600: yan0's 53p (emea-modded), A1200: 32p (emea-modded)
Location: Germany

mischka is offlineReport Post
Moderator

eakrin's Avatar

Join Date: Jul 2005
Posts: 833
Thanks: 25
Thanked 219 Times in 80 Posts
Location: Thailand

Send a message via ICQ to eakrin Send a message via MSN to eakrin Send a message via Yahoo to eakrin Send a message via Skype™ to eakrin
Quote  
#5
08-16-2007
Default

CG44 in A1200 and CG43 in E6 have additional header. It have $FFF of string 0 (4095 byte of FF). so we can not mount it.

Step to edit root cg is
1. extract it from sbf file by sbf codec.
2. remove $FFF header by hex editor.
3. extract cg by mount -t cramfs in Linux system. becarefull for file permission and file owner. I don't do it in cygwin coz It does not support root user all your file will lost permission and owner. I do it in Knoppix Live CD.
4. pack it back by mkcramfs.
6. insert $FFF of string FF into header of cg file by hex editor.
7. resize cg file to equal to original cg size by adding string 0 (FF) at the end of file until reach a orifinal cg 's file size.
8. repack it back to sbf by repalce cg. and if you need to flash only some cg so remove another and keep only RDL3 for CG >18. and RDL1 for cg < 18. notice that after replace cg start addresss and end address should not change.

and about usbnet option in USB Mode setting. It's should be in a flex setting. and I don't wan't to flash with new flex that I don't know much about it so I decide to use acmattach.lin or normal telnet.pkg from E680i/A780 or USBNet package for A1200.

thank for imahottguy for this.

PS. RootFS cg have about 2MB available for us to add anything into it.

PS2. flashable CG and do for 1 or more cg. I ws create a thai language sbf that contain 34, 41,42,43 for A1200.
__________________
Visit my Blog here.http://my.opera.com/eakrin
Reply With Quote


User Information
Current Phone: E6 A1200 A780
Firmware: Lamborghini 09P
Location: Thailand

eakrin is offlineReport Post
Moto Fans SENR

DAGr8's Avatar

Join Date: Jan 2007
Posts: 633
Thanks: 2
Thanked 13 Times in 12 Posts
Location: Montreal

Quote  
#6
08-16-2007
Default

Quote:
Originally Posted by eakrin
CG44 in A1200 and CG43 in E6 have additional header. It have $FFF of string 0 (4095 byte of FF). so we can not mount it.

Step to edit root cg is
1. extract it from sbf file by sbf codec.
2. remove $FFF header by hex editor.
3. extract cg by mount -t cramfs in Linux system. becarefull for file permission and file owner. I don't do it in cygwin coz It does not support root user all your file will lost permission and owner. I do it in Knoppix Live CD.
4. pack it back by mkcramfs.
6. insert $FFF of string FF into header of cg file by hex editor.
7. resize cg file to equal to original cg size by adding string 0 (FF) at the end of file until reach a orifinal cg 's file size.
8. repack it back to sbf by repalce cg. and if you need to flash only some cg so remove another and keep only RDL3 for CG >18. and RDL1 for cg < 18. notice that after replace cg start addresss and end address should not change.

and about usbnet option in USB Mode setting. It's should be in a flex setting. and I don't wan't to flash with new flex that I don't know much about it so I decide to use acmattach.lin or normal telnet.pkg from E680i/A780 or USBNet package for A1200.

thank for imahottguy for this.

PS. RootFS cg have about 2MB available for us to add anything into it.

PS2. flashable CG and do for 1 or more cg. I ws create a thai language sbf that contain 34, 41,42,43 for A1200.
wow very impressive ,could you please take a look at my f/w I already added bunch of Languages to it , prob is CG41 is now to big so I always get checksum errors ... the other error I get is with screen 3 it doesnt display like it should , I think it has something to do with the lib in cg43
__________________
Been a Moto Fan Since the First Vader ....Yup I taught I was real cool Back in '98 with the James Bond Phone and the Mi2 sunglasses ....
Reply With Quote


User Information
Current Phone: E6
Location: Montreal

DAGr8 is offlineReport Post
Moderator

eakrin's Avatar

Join Date: Jul 2005
Posts: 833
Thanks: 25
Thanked 219 Times in 80 Posts
Location: Thailand

Send a message via ICQ to eakrin Send a message via MSN to eakrin Send a message via Yahoo to eakrin Send a message via Skype™ to eakrin
Quote  
#7
08-16-2007
Default

@DAGr8

I'll look at it. I got same problem as you. Barcode Reader doesn't work on my f/w. It's always said cannot decode information. and no image was shown in barcode all of them are (!).

about your language I recommend remove some languages to reduce It's size. coz In A1200 and E6 we can partial flashing it. no need to add all language into it. just create a LP for group of languages. and user can flash it when he need it.

or some crazy method is move your font to another cg. and edit FONT Path in /etc/init.d/ezxenvr.sh. you can get more space from it. but this ways make your f/w does not follow standard some app mkpg may not work.
__________________
Visit my Blog here.http://my.opera.com/eakrin
Reply With Quote


User Information
Current Phone: E6 A1200 A780
Firmware: Lamborghini 09P
Location: Thailand

eakrin is offlineReport Post
Moto Fans SENR

DAGr8's Avatar

Join Date: Jan 2007
Posts: 633
Thanks: 2
Thanked 13 Times in 12 Posts
Location: Montreal

Quote  
#8
08-16-2007
Default

Quote:
Originally Posted by eakrin
@DAGr8

I'll look at it. I got same problem as you. Barcode Reader doesn't work on my f/w. It's always said cannot decode information. and no image was shown in barcode all of them are (!).

about your language I recommend remove some languages to reduce It's size. coz In A1200 and E6 we can partial flashing it. no need to add all language into it. just create a LP for group of languages. and user can flash it when he need it.

or some crazy method is move your font to another cg. and edit FONT Path in /etc/init.d/ezxenvr.sh. you can get more space from it. but this ways make your f/w does not follow standard some app mkpg may not work.
Great Ideas ! will defintly try the font path thingy .
I am currently using the f/w with LP , and it has no bug or nothing I wonder why I get those checksum errors when flashing in the first place ..

btw I did encounter a few times this prob where all my apps would have the ' ! ' for some reason this seem to happen when CG's dont go well together , are you modding the cgs more then once (it seems sbf codec doesnt like our f/w or something ) ? my advice is you keep your 'editCG34 ' folder and always do the mods to that same folder and just do ./CGDone instead of decompresing and recompiling everytime , that did the job for me !
__________________
Been a Moto Fan Since the First Vader ....Yup I taught I was real cool Back in '98 with the James Bond Phone and the Mi2 sunglasses ....
Reply With Quote


User Information
Current Phone: E6
Location: Montreal

DAGr8 is offlineReport Post
Moto Fans SENR

imahottguy's Avatar

Join Date: Oct 2006
Posts: 611
Thanks: 1
Thanked 16 Times in 11 Posts
Location: Lansing, MI, USA

Send a message via AIM to imahottguy Send a message via MSN to imahottguy
Quote  
#9
08-16-2007
Default

@eakrin: Very nice. I'm glad to see that you got the font fix to work. I'm gonna try that now . As far as the USB Net addition it's in CG42. It's going to take me some time. (I lost everything, corrupted my windows install, had to do a recovery media.) But I will find it . I know that it is in the FLexbit table. I just need to test a few mods to it (NOT RECOMMENDED FOR N00BS so I WILL NOT POST HOW). Once I find it. I'll post the fix
Reply With Quote


User Information
Current Phone: iPhone
Location: Lansing, MI, USA

imahottguy is offlineReport Post
Moderator

eakrin's Avatar

Join Date: Jul 2005
Posts: 833
Thanks: 25
Thanked 219 Times in 80 Posts
Location: Thailand

Send a message via ICQ to eakrin Send a message via MSN to eakrin Send a message via Yahoo to eakrin Send a message via Skype™ to eakrin
Quote  
#10
08-17-2007
Default

@DAGr8

yeh. I did modding A1200 on CG34 (add skins, ringtone, wallpaper), CG43 (change some setting), and repack cgs into SBF file. everything is fine. except that when flashing to A1200 sometime It can not restart itself. I need to unplug data cable and restart phone manually and plug phone again to complete flashing. the key of cg modding is keep cg file size to the same as original cg.

@Imahottyguy
Thank to you too.

there are 11 lines of 10 digit = houndreds for bits. hoping you will success to find it.
__________________
Visit my Blog here.http://my.opera.com/eakrin
Reply With Quote


User Information
Current Phone: E6 A1200 A780
Firmware: Lamborghini 09P
Location: Thailand

eakrin is offlineReport Post
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 11:01 PM. Search Engine Friendly URLs by vBSEO 3.2.0 Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd. VBulletin Skin by ForumMonkeys.