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?
 
loserskater
Old
(Last edited by loserskater; 18th March 2010 at 02:13 AM.)
#1  
loserskater's Avatar
Recognized Developer - OP
Thanks Meter 1690
Posts: 1,382
Join Date: Jun 2008
Location: San Diego, CA

 
DONATE TO ME
Default *OUTDATED* ROM porting for kaiser/vogue [Linux] NOOB friendly!

THIS IS NOW OUTDATED!!
It uses the old sqsh method WITH a rootfs. So if you're using the NoMoRootfs method, this won't work. Please use the already complete builds in the Kaiser/Vogue threads as they are working the best at this moment.


DISCLAIMER:
I take no responsibility for anything that may happen to your phone/computer. Use at your own risk.

PURPOSE:
This is for informational/testing purposes. And for people to stop asking, "can somebody port X rom!!! PLZ!!!"

PREFACE:
I made this as a quick tool to port ROMs from the Dream/Sapphire forums to work with our phones. It's a very quick and dirty script I threw together using bash, so there's probably some problems with it. This tool is simply designed to make a copy of the Dream/Sapphire ROM. Once you get the setup, it's really easy and you'll be porting like crazy.

I did this all on Ubuntu 9.10 so things might not work properly if you're using another distro.

THANKS:
All credit goes to the people that made this possible, in no particular order...
dzo, vilord, mssmison, zen, enatefox, pmos, jamezelle, craig0r, cyanogen, and so many more. If I forgot you, I'm sorry, but you know if you helped in some way.



THE SETUP:
1) Download this file
2) Extract the folder to your desktop. Then copy and paste the following code into the terminal:
Code:
sudo mv -f $HOME/Desktop/Android/genext2fs /bin/genext2fs; sudo chmod 755 /bin/genext2fs; sudo dpkg -P squashfs-tools; sudo dpkg -i $HOME/Desktop/Android/squashfs-tools_3.3-7_i386.deb; sudo rm -r $HOME/Desktop/Android/squashfs-tools_3.3-7_i386.deb; sudo chmod 777 $HOME/Desktop/Android/*.build.script
3) Now go into synaptic package manager, search for squashfs-tools, select it and under Package, check Lock Version so that way it won't try to update.

4) Now cruise over to the Dream android development forum or the Sapphire android development forum and download the ROM you would like to port. Place the zip file in the Android folder. (no need to rename)

5) Place any .apk's you would like built into the system in the Apps folder.

ADVANCED SETUP:
If you would like to tweak the system before building, open the script in a text editor and you'll find a line to uncomment that will halt the script until you are ready.

HOW TO RUN:
Either run the script from a terminal
Code:
./$HOME/Desktop/Android/HERO.build.script
or
./$HOME/Desktop/Android/Donut.Build.script
Or double click and Run in Terminal

You will get a prompt for your password to use the sudo command. THIS IS NOT SAVED ANYWHERE OR MAGICALLY SENT TO ME. It is just to get the system.sqsh setup for you to use.

You will now see a Donut/Hero folder inside the Android folder. Inside that will be a nice little system.sqsh with the date ready to boot!
*Rename to system.sqsh when you put on your SD card*

Grab the latest basefiles from vogue-android and you're good to go.

~~~~~~ To get an output of what's happening run in a terminal as described above but add " > build.txt" and you'll see a txt file in the Android folder. ~~~~~~~

CHANGING SYSTEMS:
If you want to port a new rom, replace the .zip.

UPDATES:
1) Download the updates from HERE
2) Extract to the Android folder overwriting if necessary.
3) Copy and paste the following code into a terminal:
Code:
sudo chmod 777 $HOME/Desktop/Android/*.script
CLEANUP:
If you follow the advanced setup and/or accidentally closed the terminal before the build finishes, run the cleanup script. This will unmount everything that might be mounted and delete all folders that are made during the process.

DOWNLOADS:
If you're too lazy or just want a quick link:
Main "Android porting" folder
Updates
S3Rx Samsung Galaxy S3

Do not PM me for help trying to get one of my mods to work.
That's what the threads are for. I posted the threads so you can see what I did, not as an advertisement that I will do it for you.
 
loserskater
Old
(Last edited by loserskater; 2nd December 2009 at 04:05 AM.)
#2  
loserskater's Avatar
Recognized Developer - OP
Thanks Meter 1690
Posts: 1,382
Join Date: Jun 2008
Location: San Diego, CA

 
DONATE TO ME
Input, testers, bugs, and tweaks to the scripts are appreciated!




FAQ:
Why does my system.sqsh not work?
Most likely cause is that you're not using the correct version of squashfs-tools. You'll have to find version 3.X for the distro you're using. Version 4.X will NOT work!!!

When I try to boot a system.sqsh I just made I keep getting something about android power wake locks. WTF?
You're probably trying to port an eclair or cyan ROM. These don't work at the current state. Hopefully soon I'll get these working.

Will update more when they arise.


CHANGELOG:

11-27-09:
-Created a cleanup script in case the terminal is closed during the build process.
-Bug fixes in Donut and Hero scripts

11-24-09:
-Added an Apps folder for apk's you want built into the system.
-Bug fixes in scripts

11-22-09:
-Combined everything needed into a zip file
-WAY easier to setup

11-20-09:
-Added feedback to make more user friendly
-Append time to system.sqsh
S3Rx Samsung Galaxy S3

Do not PM me for help trying to get one of my mods to work.
That's what the threads are for. I posted the threads so you can see what I did, not as an advertisement that I will do it for you.
 
garynsa
Old
(Last edited by garynsa; 17th November 2009 at 07:52 PM.)
#3  
garynsa's Avatar
Senior Member
Thanks Meter 64
Posts: 1,120
Join Date: Oct 2006
Location: Mumbai
Quote:
Originally Posted by loserskater View Post
Input, testers, bugs, and tweaks to the scripts are appreciated!
Will try today... Downloading

Tried and working. Had to change the script for it work with ubuntu version that i use. Thanks this is really great
 
loserskater
Old
#4  
loserskater's Avatar
Recognized Developer - OP
Thanks Meter 1690
Posts: 1,382
Join Date: Jun 2008
Location: San Diego, CA

 
DONATE TO ME
Quote:
Originally Posted by garynsa View Post
Will try today... Downloading

Tried and working. Had to change the script for it work with ubuntu version that i use. Thanks this is really great
What did you change?
Glad to see it's working.
S3Rx Samsung Galaxy S3

Do not PM me for help trying to get one of my mods to work.
That's what the threads are for. I posted the threads so you can see what I did, not as an advertisement that I will do it for you.
 
garynsa
Old
#5  
garynsa's Avatar
Senior Member
Thanks Meter 64
Posts: 1,120
Join Date: Oct 2006
Location: Mumbai
Quote:
Originally Posted by loserskater View Post
What did you change?
Glad to see it's working.
hI

For some reason I cannot use -a in the genext2fs command. Had to remove that..

One of the Donut is working. Couldnt get the Cyanogen build working . Struggling with hero build also.

Will try again in the next couple of days and post results.

Thanks
 
loserskater
Old
#6  
loserskater's Avatar
Recognized Developer - OP
Thanks Meter 1690
Posts: 1,382
Join Date: Jun 2008
Location: San Diego, CA

 
DONATE TO ME
Quote:
Originally Posted by garynsa View Post
hI

For some reason I cannot use -a in the genext2fs command. Had to remove that..

One of the Donut is working. Couldnt get the Cyanogen build working . Struggling with hero build also.

Will try again in the next couple of days and post results.

Thanks
Make sure you use the genext2fs that I referenced.
That one works with -a and might take care of some issues. try that and see if it works.
S3Rx Samsung Galaxy S3

Do not PM me for help trying to get one of my mods to work.
That's what the threads are for. I posted the threads so you can see what I did, not as an advertisement that I will do it for you.
 
loserskater
Old
(Last edited by loserskater; 19th November 2009 at 02:27 AM.)
#7  
loserskater's Avatar
Recognized Developer - OP
Thanks Meter 1690
Posts: 1,382
Join Date: Jun 2008
Location: San Diego, CA

 
DONATE TO ME
Updated script to now move system to a Hero or Donut folder.

Working on the cyanogen build now...

EDIT: Here's a cyanogen script that gets it to boot, but sits at a black screen. I haven't had much time to test it so it might boot further than that if you leave it. If somebody wants to test this out or tweak it in some way go for it.
It uses the donut.sqsh in the Android folder so you shouldn't have to do anything with it except make it executable.

EDIT 2: Still working on cyan builds... that script didn't work.
S3Rx Samsung Galaxy S3

Do not PM me for help trying to get one of my mods to work.
That's what the threads are for. I posted the threads so you can see what I did, not as an advertisement that I will do it for you.
 
jamezelle
Old
#8  
jamezelle's Avatar
Retired Forum Moderator / Recognized Developer
Thanks Meter 100
Posts: 1,705
Join Date: Nov 2007
Location: Ohio

 
DONATE TO ME
great job i like to see stuff like this to motivate people!!! also note this will work with any donut or hero build from the sapphire forum
------------------------------------------------------
Devices:
Samsung Galaxy Nexus VZW LTE: latest AOKP
HTC Thunderbolt: ROOTED S-OFF: Retired
Samsung Fascinate: ROOTED: My MIUI Port with Voodoo
Motorola Droid: ROOTED: My MIUI Port
HTC Droid ERIS: ROOTED: !CRACKED SCREEN! :sad-face: still half-way works My Sense-able 3.1
XV6900: (RIP)
T-mobile wing: Retired(lost)
------------------------------------------------------

follow me on twitter

www.jamezelle.com Work in progress...
Like what I do? Feel free to

 
loserskater
Old
#9  
loserskater's Avatar
Recognized Developer - OP
Thanks Meter 1690
Posts: 1,382
Join Date: Jun 2008
Location: San Diego, CA

 
DONATE TO ME
Quote:
Originally Posted by jamezelle View Post
great job i like to see stuff like this to motivate people!!! also note this will work with any donut or hero build from the sapphire forum
Good point, forgot to mention that. Updated first post.

I'm hoping it will help people start to learn to tweak system's. But I have a slight feeling wer're going to start seeing a lot of "MLIGN/DWANG/etc's Android Rom" threads from random people.
S3Rx Samsung Galaxy S3

Do not PM me for help trying to get one of my mods to work.
That's what the threads are for. I posted the threads so you can see what I did, not as an advertisement that I will do it for you.
 
garynsa
Old
#10  
garynsa's Avatar
Senior Member
Thanks Meter 64
Posts: 1,120
Join Date: Oct 2006
Location: Mumbai
Hi

Was able to port the DWANGs build using your script. Thanks a lot for making life this simple. Howev3er, hero build is still not working. Tried your genesxt2fs. Is it possible to get the links to correct base hero version to use? I tried magic and normal version. It keeps giving me black screen and doesnt completely boot. I think the base hero version is not the right one i am using

Thanks


XDA PORTAL POSTS

What’s Possible with CASUAL & How to Make Your Own CASUAL – XDA Developer TV

XDA Elite Recognized Developer AdamOutler is known … more

Pearl Chen to Talk NFC Development at XDA:DevCon 2013

From HTML to LEDs or Android to Arduino, Hardware Hacking is a pastime of many people … more

Avoid Framework Bootloops on Xperias Running Jelly Bean

If you’re a Sony device owner running a stock Android Jelly Bean firmware and … more

Forum Added for the Samsung Galaxy Mega

What do you do when the Galaxy Note line is simply not big enough? You get theSamsung Galaxy Mega. … more