Moto Hell - The Motorola Modding Community

Motorola Phone Models => Motorola A780/A1200/E2/E6/E680/V8/Z6 => Topic started by: TaZ on August 23, 2007, 02:18:39 pm



Title: How to make/edit/decompile/compile MP & CG
Post by: TaZ on August 23, 2007, 02:18:39 pm
i wanna make my own monster pack based on existing fw's.
Could you tell me how do you make .SBF an SHX files? are you using a getOS mpkg to download FW? then how do you compile it to flashable format ???
how can i edit CG files?

many questions, many doubts... just help me, explain please ::)


Title: Re: How to make/edit/decompile/compile MP & CG
Post by: Exploited on August 23, 2007, 09:57:39 pm
here is how: http://www.e2mod.com/content/view/71/29/


Title: Re: How to make/edit/decompile/compile MP & CG
Post by: TaZ on August 24, 2007, 05:34:42 am
here is how: http://www.e2mod.com/content/view/71/29/

i can't understand where i must put a checksum? which file?sbf ???


Title: Re: How to make/edit/decompile/compile MP & CG
Post by: zjole on August 24, 2007, 09:23:21 pm
here is how: http://www.e2mod.com/content/view/71/29/

i can't understand where i must put a checksum? which file?sbf ???
Use sbf codec instead.It's much more convinient.
http://www.e2mod.com/content/view/93/27/ (http://www.e2mod.com/content/view/93/27/)

BTW:the tutorial is a little out of date now.


Title: Re: How to make/edit/decompile/compile MP & CG
Post by: TaZ on August 25, 2007, 03:39:47 am
i'm using sbf codec :P
I have ubuntu but i can't do it on my ubuntu :-\
Quote
Beside cg39.smg, the other cg34 cg37 cg41 cg42 cg43 are cramfs file systems, you can mount -o -loop the smg in linux(root)

# tar zcvf xxx.tar.gz mountedsmgfolder
# tar zxvf xxx.tar.gz -C targeteditfolder

so you can mod the files in target edit folder then

# mkfs.cramfs targeteditfolder/xxx cg##.smg

@zjole
Do you have another tutorial?


Title: Re: How to make/edit/decompile/compile MP & CG
Post by: zjole on August 25, 2007, 08:44:18 am
i'm using sbf codec :P
I have ubuntu but i can't do it on my ubuntu :-\
Quote
Beside cg39.smg, the other cg34 cg37 cg41 cg42 cg43 are cramfs file systems, you can mount -o -loop the smg in linux(root)

# tar zcvf xxx.tar.gz mountedsmgfolder
# tar zxvf xxx.tar.gz -C targeteditfolder

so you can mod the files in target edit folder then

# mkfs.cramfs targeteditfolder/xxx cg##.smg

@zjole
Do you have another tutorial?
Then forget about checksum.sbf codec will do it for you ;)

For cg34,cg41,cg42
Code:
mount -t cramfs cgxx.smg -o loop [mountpoint]
For cg37 and cg43
Code:
mount -t cramfs cgxx.smg -o loop,offset=4096 [mountpoint]
That's it!

ilove3d has written a more detailed tutorial.But unluckily it's in Chinese.


Title: Re: How to make/edit/decompile/compile MP & CG
Post by: TaZ on August 25, 2007, 09:11:56 am
@zjole
thanks man, i'll try it tomorrow because i don't have enough time :-\

Quote
ilove3d has written a more detailed tutorial.But unluckily it's in Chinese.
could you give me a link? Could anybody whose know chinese translate it? ;D


Title: Re: How to make/edit/decompile/compile MP & CG
Post by: zjole on August 25, 2007, 09:56:07 am
here:http://moto.it168.com/viewthread.php?tid=124115&extra=page%3D1 (http://moto.it168.com/viewthread.php?tid=124115&extra=page%3D1)

Very detailed one,contains lots of screenshots.It almost covers every aspect of hacking and modding that is known.


Title: Re: How to make/edit/decompile/compile MP & CG
Post by: TaZ on August 26, 2007, 08:21:30 am
here:http://moto.it168.com/viewthread.php?tid=124115&extra=page%3D1 (http://moto.it168.com/viewthread.php?tid=124115&extra=page%3D1)

Very detailed one,contains lots of screenshots.It almost covers every aspect of hacking and modding that is known.

 :o
i would like to understand it... :-\


Title: Re: How to make/edit/decompile/compile MP & CG
Post by: TaZ on August 26, 2007, 02:21:24 pm
i can mount g34,cg41,cg42 :)

but if i want mount cg37 and cg43 it shows:
Quote
root@blaszak:/home/taz# mount -t cramfs /home/taz/Desktop/cg43.smg -o loop,offse t=4096 /home/taz/Desktop/43
mount: wrong fs type, bad option, bad superblock on /dev/loop3,
       missing codepage or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so


Title: Re: How to make/edit/decompile/compile MP & CG
Post by: zjole on August 26, 2007, 08:05:51 pm
i can mount g34,cg41,cg42 :)

but if i want mount cg37 and cg43 it shows:
Quote
root@blaszak:/home/taz# mount -t cramfs /home/taz/Desktop/cg43.smg -o loop,offse t=4096 /home/taz/Desktop/43
mount: wrong fs type, bad option, bad superblock on /dev/loop3,
       missing codepage or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so
Did you delete the 0x1000 header like the tutorial said?If so then just mount cg37 and cg43 as other cgs.Otherwise you should add ",offset=4096"


Title: Re: How to make/edit/decompile/compile MP & CG
Post by: TaZ on August 31, 2007, 11:04:46 am
i did everything by ilove3d's tutorial: i copied all files from smg_tools into /bin
i can edit all of CG's excpet CG43. When i'm typing cutsmg look what i get:
Quote
taz@blaszak:~/Desktop/rokr_e2$ sudo cutsmg cg43.smg
Password:
6652+0 records in
6652+0 records out
/bin/cutsmg: line 3: 12916 Segmentation fault      dd if="${1}~" of="$1" bs=4096 skip=1
taz@blaszak:~/Desktop/rokr_e2$

what is wrong ???


Title: Re: How to make/edit/decompile/compile MP & CG
Post by: zjole on September 02, 2007, 09:31:28 pm
You needn't cut CG43 or CG37 before mounting them.Just do as I said.
Code:
mount -t cramfs cg43.smg -o loop?offset=4096 mountpoint


Title: Re: How to make/edit/decompile/compile MP & CG
Post by: Panchoo on September 03, 2007, 09:27:59 am
I would like 2 kno how 2 make *shx and *hs files as well as turning them into *smg. Can ne 1 help?


Title: Re: How to make/edit/decompile/compile MP & CG
Post by: TaZ on September 03, 2007, 12:01:30 pm
I would like 2 kno how 2 make *shx and *hs files as well as turning them into *smg. Can ne 1 help?

read this: http://moto.it168.com/viewthread.php?tid=124115&extra=page%3D1


Title: Re: How to make/edit/decompile/compile MP & CG
Post by: Ivanzinho on September 08, 2007, 06:35:37 pm
sorry, but I don't understand how to make a *.shx with the firmware backup from our Phones, I don't like to flash before without get the original firmware, already exist any easy tutorial with the explain how to do it?


Title: Re: How to make/edit/decompile/compile MP & CG
Post by: error398 on September 08, 2007, 09:33:22 pm
so far, we dont have any backup software for E2.. maybe it will have soon.. im flash my phone 1 week after i bought.. its up to u. if u can wait for a years.. just wait LOL ;D.. i'll never do that.. its too long  ;D


Title: Re: How to make/edit/decompile/compile MP & CG
Post by: TaZ on September 09, 2007, 03:22:52 am
backup is possible, but we can make only .sbf file :P
first we have to run GetOS and wait till it copy CodeGroup's on memory card. Then in SBF Codec we can make a .SBF which will include our CG's ;) i hope you undestood... ;D


Title: Re: How to make/edit/decompile/compile MP & CG
Post by: zjole on September 09, 2007, 07:04:19 am
We do can backup the ap part using ilove3d's GetOS. There was report that someone managed to backup the bp part with Flash Backup.But I don't know how...


Title: Re: How to make/edit/decompile/compile MP & CG
Post by: Darkslider on September 09, 2007, 09:32:12 am
backup is possible, but we can make only .sbf file :P
first we have to run GetOS and wait till it copy CodeGroup's on memory card. Then in SBF Codec we can make a .SBF which will include our CG's ;) i hope you undestood... ;D
well,we actually need SBF,thats right,not SHX(it's different with E398,remember that)
sbf is linux part of firmware,shx is firmware for network proc


Title: Re: How to make/edit/decompile/compile MP & CG
Post by: Ivanzinho on September 17, 2007, 05:00:12 pm
Ok, I understand perfectly, I try to make a backup with sfb codec, and I will post the solution to do the backup :D


Title: Re: How to make/edit/decompile/compile MP & CG
Post by: Pop Box on September 18, 2007, 10:33:01 pm
It's not enough, but you can try the google translate page at

http://www.google.com/translate_t

for translate that page:

http://moto.it168.com/viewthread.php?tid=124115&extra=page%3D1