New: XDA launches forum for app developers. Discuss coding, tools, marketing, and more.
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
nikagl
Old
(Last edited by nikagl; 28th July 2012 at 09:31 AM.)
#1  
nikagl's Avatar
Senior Member - OP
Thanks Meter 374
Posts: 2,034
Join Date: Jun 2006
Location: Nieuwegein, NL

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

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, 376 views)
Nika Gerson Lohman
__________________


Current Devices:
Samsung Galaxy S+ (I9001)
Acer Liquid Express E320
Acer Liquid Express E330
Acer Iconia Smart S300 (bricked, sdcard-slot broken)
Acer Iconia Tab A511 (bricked, apx mode & screen broken)

Still looking for the Thank You button? Change your style to XDA 2010 (bottom left hand corner)
The Following 9 Users Say Thank You to nikagl For This Useful Post: [ Click to Expand ]
 
nikagl
Old
#2  
nikagl's Avatar
Senior Member - OP
Thanks Meter 374
Posts: 2,034
Join Date: Jun 2006
Location: Nieuwegein, NL

 
DONATE TO ME
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.
Nika Gerson Lohman
__________________


Current Devices:
Samsung Galaxy S+ (I9001)
Acer Liquid Express E320
Acer Liquid Express E330
Acer Iconia Smart S300 (bricked, sdcard-slot broken)
Acer Iconia Tab A511 (bricked, apx mode & screen broken)

Still looking for the Thank You button? Change your style to XDA 2010 (bottom left hand corner)
 
rayiskon
Old
#3  
rayiskon's Avatar
Senior Member
Thanks Meter 486
Posts: 1,337
Join Date: Jan 2011
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)
 
nikagl
Old
#4  
nikagl's Avatar
Senior Member - OP
Thanks Meter 374
Posts: 2,034
Join Date: Jun 2006
Location: Nieuwegein, NL

 
DONATE TO ME
Quote:
Originally Posted by rayiskon View Post
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...
Nika Gerson Lohman
__________________


Current Devices:
Samsung Galaxy S+ (I9001)
Acer Liquid Express E320
Acer Liquid Express E330
Acer Iconia Smart S300 (bricked, sdcard-slot broken)
Acer Iconia Tab A511 (bricked, apx mode & screen broken)

Still looking for the Thank You button? Change your style to XDA 2010 (bottom left hand corner)
The Following User Says Thank You to nikagl For This Useful Post: [ Click to Expand ]
 
broodplank1337
Old
#5  
broodplank1337's Avatar
Recognized Contributor / Recognized Developer
Thanks Meter 5329
Posts: 3,258
Join Date: Nov 2011
Location: Nijmegen

 
DONATE TO ME
Very nice! This will save me allot of time . Very nice post again nikagl, you make allot of handy scripts!
Samsung Galaxy S Plus (i9001)

Latest Development:

broodROM Jellybean
- Powerful, smooth, stable, personalized, awesome battery life (1% per hour) and open source
-- Github here

broodKernel (builds on all branches)
- For GB/ICS/JB1/JB2, OC/UV, Added Governors & I/O Schedulers, Optimized, Always latest linux kernel version (on 3.4.x branch)
-- Github here

Experimental Custom Kernels for Google Glass
- If you have this cool sunglasses please take a look
-- Github here


For sources you can visit my Github. Or take a look at all my projects

 
broodplank1337
Old
#6  
broodplank1337's Avatar
Recognized Contributor / Recognized Developer
Thanks Meter 5329
Posts: 3,258
Join Date: Nov 2011
Location: Nijmegen

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

http://www.mediafire.com/?4c7y7p9o43uhj68
Samsung Galaxy S Plus (i9001)

Latest Development:

broodROM Jellybean
- Powerful, smooth, stable, personalized, awesome battery life (1% per hour) and open source
-- Github here

broodKernel (builds on all branches)
- For GB/ICS/JB1/JB2, OC/UV, Added Governors & I/O Schedulers, Optimized, Always latest linux kernel version (on 3.4.x branch)
-- Github here

Experimental Custom Kernels for Google Glass
- If you have this cool sunglasses please take a look
-- Github here


For sources you can visit my Github. Or take a look at all my projects

 
nikagl
Old
#7  
nikagl's Avatar
Senior Member - OP
Thanks Meter 374
Posts: 2,034
Join Date: Jun 2006
Location: Nieuwegein, NL

 
DONATE TO ME
Quote:
Originally Posted by broodplank1337 View Post
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
Nika Gerson Lohman
__________________


Current Devices:
Samsung Galaxy S+ (I9001)
Acer Liquid Express E320
Acer Liquid Express E330
Acer Iconia Smart S300 (bricked, sdcard-slot broken)
Acer Iconia Tab A511 (bricked, apx mode & screen broken)

Still looking for the Thank You button? Change your style to XDA 2010 (bottom left hand corner)
 
broodplank1337
Old
(Last edited by broodplank1337; 5th February 2012 at 03:27 AM.)
#8  
broodplank1337's Avatar
Recognized Contributor / Recognized Developer
Thanks Meter 5329
Posts: 3,258
Join Date: Nov 2011
Location: Nijmegen

 
DONATE TO ME
Quote:
Originally Posted by nikagl View Post
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
Samsung Galaxy S Plus (i9001)

Latest Development:

broodROM Jellybean
- Powerful, smooth, stable, personalized, awesome battery life (1% per hour) and open source
-- Github here

broodKernel (builds on all branches)
- For GB/ICS/JB1/JB2, OC/UV, Added Governors & I/O Schedulers, Optimized, Always latest linux kernel version (on 3.4.x branch)
-- Github here

Experimental Custom Kernels for Google Glass
- If you have this cool sunglasses please take a look
-- Github here


For sources you can visit my Github. Or take a look at all my projects

 
wintel_mac
Old
#9  
wintel_mac's Avatar
Senior Member
Thanks Meter 179
Posts: 450
Join Date: Jun 2011
Location: Nuremberg

 
DONATE TO ME
Those mbn should be modem binaries.

Sent from my GT-I9001 using XDA App
Current Device: Google Galaxy Nexus GSM i9250, XenonHD JB

Siemens A50 -> Siemens M65 -> Sony Ericsson Z710i -> Sony Ericsson W595 -> HTC Desire (SLCD) -> Palm Pre (Minus) -> Samsung Galaxy S Plus (GT-I9001) -> Huawei Honor U8860 (returned b.c. of bad touchscreen) -> Samsung Galaxy S Plus (GT-I9001) -> Google Galaxy Nexus

 
broodplank1337
Old
#10  
broodplank1337's Avatar
Recognized Contributor / Recognized Developer
Thanks Meter 5329
Posts: 3,258
Join Date: Nov 2011
Location: Nijmegen

 
DONATE TO ME
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/
Samsung Galaxy S Plus (i9001)

Latest Development:

broodROM Jellybean
- Powerful, smooth, stable, personalized, awesome battery life (1% per hour) and open source
-- Github here

broodKernel (builds on all branches)
- For GB/ICS/JB1/JB2, OC/UV, Added Governors & I/O Schedulers, Optimized, Always latest linux kernel version (on 3.4.x branch)
-- Github here

Experimental Custom Kernels for Google Glass
- If you have this cool sunglasses please take a look
-- Github here


For sources you can visit my Github. Or take a look at all my projects


The Following 2 Users Say Thank You to broodplank1337 For This Useful Post: [ Click to Expand ]
Tags
cwm, odin