• Announcements

    • Reminder - MoDaCo position on illegal content   07/30/15

      ILLEGAL CONTENT I'd like to just reaffirm MoDaCo's position regarding piracy and illegal content in the light of some recent questions / postings. Posts will be censored by myself or my moderation team if the contain or link to: Illegal / pirated / cracked software or sites that host such softwareNintendo emulators / ROMs or sites hosting them (in light of Nintendo's legal stance)CUSTOM ROMS You may discuss and post links to custom device ROMs on MoDaCo, provided the following rules are adhered to: ROMs must not contain any illegal 3rd party software (this includes trial versions included without permission)ROMs must give full credit to the original authorISSUES If you have any issues with this policy, please contact PaulOBrien directly via PM.
    • Reminder: Selling items on the forum directly is not allowed   07/30/15

      Please note that selling items on the forum directly is not allowed by the forum rules. There is a forum for eBay auctions whereby you can list the items on eBay and link to them there. This is the ONLY forum for this type of activity. You may also advertise links to the eBay forum in your signature. Please note that selling directly in contravention of these rules will result in a warning / suspension / ban.

[TUTORIAL][How to prepare Ubuntu 12.04.4 LTS 64-bit for android build and make your first ROM]

34 posts in this topic

Posted (edited)

Hi to all.
There are a lot of tutorial how to prepare Ubuntu 12.04.4 for android Build. And none of them is complete, some pack is allways mising witch is very anoing. So I made my tutorial simple.

 

1. install ubuntu 12.04.4 *64 (not wubi instalation!!! For single build you will need >100 GB)
2. recomended to make swap partition during instalation

 


sudo swapon -s

      than type this:

df

Create and Enable the Swap File:

Create the swap file using the dd command:

sudo dd if=/dev/zero of=/swapfile bs=1024 count=2048k

hit enter

sudo mkswap /swapfile

hit enter

    Finish by activating the swap file:

sudo swapon /swapfile

    And check is your swap file active with:

sudo swapon -s

    if result is like this , swap file is active:

Filename                Type        Size    Used    Priority
/swapfile                               file        2097148    0    -1

install java 6 SE
     in terminal type this:

sudo apt-get purge openjdk*
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java6-installer

and hit enter

   than to install all packages needed for building type this:

sudo apt-get install ia32-libs git-core gnupg flex bison gperf libsdl1.2-dev libesd0-dev libwxgtk2.8-dev squashfs-tools build-essential lzop zip curl libncurses5-dev zlib1g-dev pngcrush schedtool libxml2 libxml2-utils xsltproc g++-multilib lib32z1-dev lib32ncurses5-dev lib32readline-gplv2-dev gcc-multilib

hit enter and wait.
It need some time to download some updates and all packages required for android bild.

Then check

g++ --version

if it show this:

g++ (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3
Copyright (C) 2011 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Then check

gcc --version

if it show this, its ok.

gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3
Copyright (C) 2011 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

5. Installing Repo

Repo is a tool that makes it easier to work with Git in the context of Android.

To install Repo:

 

   Create bin directory in your home directory and that it is included in your path:

mkdir ~/bin
PATH=~/bin:$PATH

    Download the Repo tool and ensure that it is executable:

curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
chmod a+x ~/bin/repo

    Create a directory for your working files:

mkdir android

your WORKING_DIRECTORY

cd android

Run repo init to bring down the latest version of Repo with all its most recent bug fixes. You must specify a URL for the manifest, which specifies where the various repositories included in the Android source will be placed within your working directory.

NOTE:
.repo is hidden in android folder. To see it hit Ctrl+h in open android folder.

 

 

repo init:

repo init -u https://android.googlesource.com/platform/manifest

For example and test we will use chill360 source for build:

repo init -u git://github.com/SlimRoms/platform_manifest.git -b kk4.4-caf
mkdir .repo/local_manifests

Copy slimkat_huawei.xml to .repo/local_manifests

repo sync

Now wait. Need to download aprox 10GB

 

when finished:

source build/envsetup.sh

6. Start build

For Y300:

brunch u8833

For G510:

brunch u8951

At the end check out folder in /android/out/target/product/u8833. If everything went as it should your rom will be there.

 

Credits for helping me to learn:

chil360

 

 

If anything missing please point out.

Like every tutorial say in the end:
Happy building and enjoy...
 

Edited by Y300-0100
2

Share this post


Link to post
Share on other sites

Posted

Please upload a ROM for the build for g510? So that we can just use that instead of doing all this?? thanksssss

0

Share this post


Link to post
Share on other sites

Posted (edited)

Please upload a ROM for the build for g510? So that we can just use that instead of doing all this?? thanksssss

Point of this topic is tutorial for people to try to learn to do it on thay own. But I can upload rom that I build last night. It is based on previous chil360 manifest (Dazzozo kernel). I will upload ota build and unofficial version if you like?...

 

http://www.mediafire.com/download/dp6ca07fxh4353g/slim_u8833-ota-eng.darkside.zip

 

http://www.mediafire.com/download/9bl23pdt414i9sr/Slim-u8833-4.4.2.build.3.2.20140303-CHIL360.zip

Edited by Y300-0100
2

Share this post


Link to post
Share on other sites

Posted

hey I wanna know something. lets say i wanna build pac 4.4.2. so i am guessing I have to build with device specific changes by dazzozo. how to do that! I mean can you make an example of building a rom in details if possible! 

0

Share this post


Link to post
Share on other sites

Posted (edited)

I am on road right now. So google about platform manifest and lokal manifest. That should help..

Edit//

It would be helpful if someone come with advise ,sugestion, critic or point to something else because that is purpose of this....

Edited by Y300-0100
0

Share this post


Link to post
Share on other sites

Posted

Yes pleassse upload the Ubuntu ROM I really want to try it and this is too complicated. for G510. I would love it.

please let us know of any bugs?

0

Share this post


Link to post
Share on other sites

Posted

I thought this was Ubuntu touch :"( can't you do something about that?

0

Share this post


Link to post
Share on other sites

Posted

no...

0

Share this post


Link to post
Share on other sites

Posted (edited)

hey I wanna know something. lets say i wanna build pac 4.4.2. so i am guessing I have to build with device specific changes by dazzozo. how to do that! I mean can you make an example of building a rom in details if possible! 

 

devices are allready added:

android_vendor_pac / vendorsetup.sh

add_lunch_combo pac_villec2-userdebug
add_lunch_combo pac_vision-userdebug
# Huawei
add_lunch_combo pac_u8833-userdebug
add_lunch_combo pac_u8860-userdebug
add_lunch_combo pac_u8800pro-userdebug
add_lunch_combo pac_u8951-userdebug
# LGE
add_lunch_combo pac_d800-userdebug

U can try something like this:

repo init -u git://github.com/PAC-man/pacman.git -b pac-4.4
mkdir .repo/local_manifests
repo sync
./build-pac.sh -d u8833

-d is for dex optimisations

 

did not try myself... U can try :-)

Edited by Y300-0100
0

Share this post


Link to post
Share on other sites

Posted

Point of this topic is tutorial for people to try to learn to do it on thay own. But I can upload rom that I build last night. It is based on previous chil360 manifest (Dazzozo kernel). I will upload ota build and unofficial version if you like?...

 

http://www.mediafire.com/download/dp6ca07fxh4353g/slim_u8833-ota-eng.darkside.zip

 

http://www.mediafire.com/download/9bl23pdt414i9sr/Slim-u8833-4.4.2.build.3.2.20140303-CHIL360.zip

has anyone tried any of them? and what is the difference between the two because they both seem to be slim based

0

Share this post


Link to post
Share on other sites

Posted (edited)

has anyone tried any of them? and what is the difference between the two because they both seem to be slim based

ota:

/system/app=48

/system/priv-app=25

 

chil360:

/system/app=42

/system/priv-app=23

 

 

edit:

now building cm-11, based on modified chil360 kernel . waiting to see what is going to be like...

Edited by Y300-0100
0

Share this post


Link to post
Share on other sites

Posted (edited)

More Apps in OTA?

Edited by spanitzer
0

Share this post


Link to post
Share on other sites

Posted

What do I need to flash to Ubuntu via TWRP? Please give me links for the files and please write a small guide how I need to flash.

0

Share this post


Link to post
Share on other sites

Posted

What do I need to flash to Ubuntu via TWRP? Please give me links for the files and please write a small guide how I need to flash.

READ the damn thread before posting....
0

Share this post


Link to post
Share on other sites

Posted

Yes, but is in mediafire is always something of Slim Rome and all that. Slim Rome Ubuntu is not for me! How do I flash what? Bare Google translator.

0

Share this post


Link to post
Share on other sites

Posted (edited)

Did anyone actualy tried to build something using this TUTORIAL insted of trying to instal ubuntu touch rom??? ;-)

Edited by Y300-0100
0

Share this post


Link to post
Share on other sites

Posted (edited)

Did anyone actualy tried to build something using this TUTORIAL insted of trying to instal ubuntu touch rom??? ;-)

 

I would love try but I guess that like me there is a lot of people that can not download 10 GB just to build a ROM   <_<

 

 

Copy slimkat_huawei.xml to .repo/local_manifests

 

repo sync

 

Now wait. Need to download aprox 10GB

Edited by Victod
1

Share this post


Link to post
Share on other sites

Posted

And I don't have 100 GB free space!! :p

1

Share this post


Link to post
Share on other sites

Posted

Hi, I have a small problem. I can not download. Repo files. See the screen.

 

http://imageshack.com/a/img23/9679/zdbl.png

 

 

Restart the virtual machine and try it again.

0

Share this post


Link to post
Share on other sites

Posted (edited)

Hi, I have a small problem. I can not download. Repo files. See the screen.

 

http://imageshack.com/a/img23/9679/zdbl.png

wrong path??..

chmod a+x ~/repo
sudo mv ~/repo /usr/local/bin/repo

check first bin folder..

and whay didi u start:

PATH=~/bin:$PATH
curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
chmod a+x ~/bin/repo

from android folder?

Edited by Y300-0100
0

Share this post


Link to post
Share on other sites

Posted

Well, then I do not know. The whole re-install VirtualBox I started all over again and I even found a terminal installed packages. The directory or file does not exist. 
I tried to go on again and I stayed in the same place as before. 
It might be a problem with the path but do not know how to enter it correctly.
0

Share this post


Link to post
Share on other sites

Posted

 

Well, then I do not know. The whole re-install VirtualBox I started all over again and I even found a terminal installed packages. The directory or file does not exist. 
I tried to go on again and I stayed in the same place as before. 
It might be a problem with the path but do not know how to enter it correctly.

 

u did not have to do reinstall. before u download repo first u have to set path (from your print screen path look like a problem). like this:

PATH=~/bin:$PATH

then download repo:

curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo

and than make it exe with:

chmod a+x ~/bin/repo

than u can go to /android and do the rest.

0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now

MoDaCo is part of the MoDaCo.network, © Paul O'Brien 2002-2015. MoDaCo uses IntelliTxt technology.