FORUMS
Remove All Ads from XDA

[9001][CWM] The making of ... an ODIN package with CWM [2012-05-17] XXKQE added

2,849 posts
Thanks Meter: 618
 
Post Reply Email Thread
Hi all,

Not sure whether anyone ever created this, whether it already exists, or even whether it's useful, but nevertheless I **proudly** present to you:

Building an ODIN package using a cwm-installable script!

If you want to do it using ADB (either through dos or cygwin), please go to this topic:
The making of ... an ODIN installable package

Simple, single step, effective and based on the original files of XXKPS (adsp.mbn, amss.mbn, cache.img.ext4, preload.img.ext4) running this zip will create an Odin package.

It takes only 6 to 7 minutes to build the file!

It does not include the cache or preload of your ROM (so your data is safe when distributing these files as far as I know!!).

This way you can easily share any ROM you have created by combining parts of other ROMs. For instance, if you installed Cranium ROM, added Feamod to it, did the 14-button mod and added the ICS mod too - build the Odin md5 zip with this package and share your custom modded ROM with the community!!

Download

XXKPS or XXKPS - thanks broodPlank!
XXKPU - thanks broodPlank!
XXKQ1 - thanks broodPlank!
XXKQ7 - thanks broodPlank!
XXKQB or XXKQB - thanks broodPlank!
XXKQE - thanks broodPlank!
XXKQI - thanks broodPlank!
DXLD3 - thanks somboons!

** Please upload this file to mirrors and post them when available

Instructions

  1. Please make sure you have installed Feamod Recovery
  2. Build your ROM, add all mods, make it the way you want to share it
  3. Check whether the internal sdcard has enough space (at least 2 GB)
  4. Copy the zip to your internal or external sdcard
  5. Reboot into recovery (Poweroff, then press Vol-Up and Poweron)
  6. Select "install zip from sdcard" and browse to the location you used in step 4
  7. Select the zip... it will start building the Odin package immediately

Please allow the system to build the zip in step 7 - this will take several minutes!

Other Stock ROMs

Like broodPlank did, you can also make a CWM installer for Odin packages that create other Stock ROMs:

  1. Download BuildOdinCWM-noBaseRom.zip
  2. Download the Stock ROM of your choice
  3. Extract the following files from the Stock ROM:
    Quote:

    adsp.mbn
    amss.mbn
    cache.img.ext4
    preload.img.ext4

  4. Zip all files and folders back up and ready

If you want to use another name for your new Odin package, please replace "MyOdinpack" with whatever name you like the following files in the scripts folder:
BuildOdin.sh
MD5Odin.sh
(make sure to use a text editor that can handle Unix files like Notepad++ or UltraEdit)

Please share your new creations, like broodPlank did

Enjoy!!

Regards,

Nika.
Attached Files
File Type: zip BuildOdinCWM-noBaseRom.zip - [Click for QR Code] (596.8 KB, 482 views)
The Following 9 Users Say Thank You to nikagl For This Useful Post: [ View ] Gift nikagl Ad-Free
 
 
1st February 2012, 11:20 PM |#2  
nikagl's Avatar
OP Senior Member
Flag Nieuwegein, NL
Thanks Meter: 618
 
Donate to Me
More
If anyone has an idea how to check from a shell or cwm script:
* Check for free diskspace
* Check for files already available, to avoid overwrite (preferably with choice to remove or backup files)

It would be much appreciated. If you have seen cwm script on other devices that can do that kind of stuff, just let me know and I'll check them out myself

Regards,

Nika.
1st February 2012, 11:39 PM |#3  
rayiskon's Avatar
Senior Member
Thanks Meter: 1,275
 
More
that's very helpful and should save time spent on transferring cwm backup to pc and doing everything manually but u should've just added it to the OP of the other "making of an odin file" thread, we'd still pump up ur thanks meter u don't have to worry . opening new threads for every lil thing just causes pollution (no hard feelings)
1st February 2012, 11:44 PM |#4  
nikagl's Avatar
OP Senior Member
Flag Nieuwegein, NL
Thanks Meter: 618
 
Donate to Me
More
Quote:
Originally Posted by rayiskon

that's very helpful and should save time spent on transferring cwm backup to pc and doing everything manually but u should've just added it to the OP of the other "making of an odin file" thread, we'd still pump up ur thanks meter u don't have to worry . opening new threads for every lil thing just causes pollution (no hard feelings)

I really don't care about the thanks meter, trust me. I decided to do it this way to avoid making the other thread too complex. Will add a reference in the OP of the other thread though and one in this to make sure others know where to go if they want to do this through adb...
The Following User Says Thank You to nikagl For This Useful Post: [ View ] Gift nikagl Ad-Free
2nd February 2012, 06:55 AM |#5  
broodplank1337's Avatar
Inactive Recognized Developer
Flag Nijmegen
Thanks Meter: 10,205
 
Donate to Me
More
Very nice! This will save me allot of time . Very nice post again nikagl, you make allot of handy scripts!
4th February 2012, 07:36 PM |#6  
broodplank1337's Avatar
Inactive Recognized Developer
Flag Nijmegen
Thanks Meter: 10,205
 
Donate to Me
More
Hey, I made the XXKPU version (because I'm using XXKPU now for broodROM RC3) of your awesome flashable:

http://www.mediafire.com/?4c7y7p9o43uhj68
4th February 2012, 09:15 PM |#7  
nikagl's Avatar
OP Senior Member
Flag Nieuwegein, NL
Thanks Meter: 618
 
Donate to Me
More
Quote:
Originally Posted by broodplank1337

Hey, I made the XXKPU version (because I'm using XXKPU now for broodROM RC3) of your awesome flashable:

http://www.mediafire.com/?4c7y7p9o43uhj68

Thanks! Added it to OP. Just wondering, would it make a difference? What are these files for anyway (adsp.mbn, amss.mbn, cache.img.ext4 and preload.img.ext4? There's hardly any difference as far as I can see (mounted ext4)

Still thinking of making a tool that converts the actual cwm files others post (ie. the actual system files) into an Odin package directly but didn't yet find a way to create an ext4 file other than by dd-dumping it
5th February 2012, 03:16 AM |#8  
broodplank1337's Avatar
Inactive Recognized Developer
Flag Nijmegen
Thanks Meter: 10,205
 
Donate to Me
More
Quote:
Originally Posted by nikagl

Thanks! Added it to OP. Just wondering, would it make a difference? What are these files for anyway (adsp.mbn, amss.mbn, cache.img.ext4 and preload.img.ext4? There's hardly any difference as far as I can see (mounted ext4)

Still thinking of making a tool that converts the actual cwm files others post (ie. the actual system files) into an Odin package directly but didn't yet find a way to create an ext4 file other than by dd-dumping it

I have no clue what adsp.mbn, amss.mbn and preload.img.ext4 are for but I know that cache.img.ext4 has the CSC Configuration inside, I tweaked the sec_csc.zip file and inserted custom apps, it worked

Changed the updater script to this (commented lines because this is a test)
Quote:

# assert(getprop("ro.product.device") == "GT-P1000" ||
# getprop("ro.build.product") == "GT-P1000" ||
# getprop("ro.product.device") == "GT-I9000" ||
# getprop("ro.build.product") == "GT-I9000" ||
# getprop("ro.product.device") == "SC-02B" ||
# getprop("ro.build.product") == "SC-02B" ||
# getprop("ro.product.device") == "GT-I9003" ||
# getprop("ro.build.product") == "GT-I9003" ||
# getprop("ro.product.device") == "GT-I9001" ||
# getprop("ro.build.product") == "GT-I9001"
# );

ui_print("*** Mounting /system and /data... ***");
show_progress(0.250000, 0);
mount("ext4", "EMMC", "/dev/block/mmcblk0p15", "/system");
mount("ext4", "EMMC", "/dev/block/mmcblk0p17", "/data");

ui_print("*** Installing CSC Data... ***");
show_progress(0.500000, 0);
# mount("ext4", "EMMC", "/dev/block/mmcblk0p15", "/system");
# package_extract_dir("system", "/system");

ui_print("*** Installing Additional Apps... ***");
show_progress(0.750000, 0);
package_extract_dir("data", "/data");

show_progress(0.1000000, 0);
ui_print("*** Unmounting /system and /data... ***");
unmount("/system");
unmount("/data");
ui_print("Done...");

Installs CSC and 2 extra apps

I will test it first after a stock install but if it works fine I will integrate it into broodROM RC3, so I can add extra apps without having them to be system apps

And for creating .ext4 files, if you use DiskInternals Linux Reader you can save it as .img but if you just choose .img.ext4 and verify the file afterwards it seems to be an correct file (haven't tested it tho)

Uploading both packages to sourceforge.net

edit:

http://sourceforge.net/projects/broo...l.zip/download

and

http://sourceforge.net/projects/broo...l.zip/download
5th February 2012, 08:00 AM |#9  
wintel_mac's Avatar
Senior Member
Flag Nuremberg
Thanks Meter: 182
 
Donate to Me
More
Those mbn should be modem binaries.

Sent from my GT-I9001 using XDA App
18th February 2012, 06:26 AM |#10  
broodplank1337's Avatar
Inactive Recognized Developer
Flag Nijmegen
Thanks Meter: 10,205
 
Donate to Me
More
Made a new one for XXKQ1
http://sourceforge.net/projects/broo...l.zip/download

All versions can be found here:
https://sourceforge.net/projects/bro...ge%20in%20CWM/
The Following 2 Users Say Thank You to broodplank1337 For This Useful Post: [ View ] Gift broodplank1337 Ad-Free
18th February 2012, 08:00 AM |#11  
nikagl's Avatar
OP Senior Member
Flag Nieuwegein, NL
Thanks Meter: 618
 
Donate to Me
More
Quote:
Originally Posted by broodplank1337

Made a new one for XXKQ1
http://sourceforge.net/projects/broo...l.zip/download

All versions can be found here:
https://sourceforge.net/projects/bro...ge%20in%20CWM/

added them
Post Reply Subscribe to Thread

Tags
cwm, odin

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes