Jump to content


Photo

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


  • Please log in to reply
33 replies to this topic

#1
Y300-0100

Y300-0100

    Addict

  • Members
  • PipPipPipPipPip
  • 573 posts
  • Gender:Male
  • Location:Montenegro
  • Devices:Y300-0100

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, 21 July 2014 - 09:06 PM.

  • 2

Anyone want to improve something (or know how to fix something and he is willing to do it ) with LiquidSmooth ROM be my guest. Suggestions (commit) here: https://github.com/Y300-0100
 


#2
mani6

mani6

    Newbie

  • Members
  • Pip
  • 6 posts
  • Devices:huawei ascend g510
Please upload a ROM for the build for g510? So that we can just use that instead of doing all this?? thanksssss

  • 0

#3
Y300-0100

Y300-0100

    Addict

  • Members
  • PipPipPipPipPip
  • 573 posts
  • Gender:Male
  • Location:Montenegro
  • Devices:Y300-0100

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...ng.darkside.zip

 

http://www.mediafire...303-CHIL360.zip


Edited by Y300-0100, 03 March 2014 - 11:32 PM.

  • 2

Anyone want to improve something (or know how to fix something and he is willing to do it ) with LiquidSmooth ROM be my guest. Suggestions (commit) here: https://github.com/Y300-0100
 


#4
SaurabhRCk

SaurabhRCk

    Addict

  • Members
  • PipPipPipPipPip
  • 651 posts
  • Gender:Male
  • Location:India
  • Devices:Huawei Ascend Y300
  • Twitter:@SaurabhRCk

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
Huawei Ascend Y300         : CM11, Hybrid kernel, TWRP 
Asus Zenfine 5                  : Stock 4.4.2, Stock kernel, Stock Recovery
Xiaomi Redmi 1s               : PAC-MAN ROM (4.4.4), Stock Kernel, TWRP

#5
Y300-0100

Y300-0100

    Addict

  • Members
  • PipPipPipPipPip
  • 573 posts
  • Gender:Male
  • Location:Montenegro
  • Devices:Y300-0100
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, 03 March 2014 - 03:02 PM.

  • 0

Anyone want to improve something (or know how to fix something and he is willing to do it ) with LiquidSmooth ROM be my guest. Suggestions (commit) here: https://github.com/Y300-0100
 


#6
SaurabhRCk

SaurabhRCk

    Addict

  • Members
  • PipPipPipPipPip
  • 651 posts
  • Gender:Male
  • Location:India
  • Devices:Huawei Ascend Y300
  • Twitter:@SaurabhRCk

just found this! pretty cool stuff huh! 
http://forum.xda-dev...d.php?t=2585828


  • 0
Huawei Ascend Y300         : CM11, Hybrid kernel, TWRP 
Asus Zenfine 5                  : Stock 4.4.2, Stock kernel, Stock Recovery
Xiaomi Redmi 1s               : PAC-MAN ROM (4.4.4), Stock Kernel, TWRP

#7
mani6

mani6

    Newbie

  • Members
  • Pip
  • 6 posts
  • Devices:huawei ascend g510
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

#8
Y300-0100

Y300-0100

    Addict

  • Members
  • PipPipPipPipPip
  • 573 posts
  • Gender:Male
  • Location:Montenegro
  • Devices:Y300-0100

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?

its not Ubuntu rom!!! Its slimkat 3.2 and you have it here:  http://www.modaco.co...4/#entry2189726


  • 0

Anyone want to improve something (or know how to fix something and he is willing to do it ) with LiquidSmooth ROM be my guest. Suggestions (commit) here: https://github.com/Y300-0100
 


#9
mani6

mani6

    Newbie

  • Members
  • Pip
  • 6 posts
  • Devices:huawei ascend g510
I thought this was Ubuntu touch :"( can't you do something about that?

  • 0

#10
Y300-0100

Y300-0100

    Addict

  • Members
  • PipPipPipPipPip
  • 573 posts
  • Gender:Male
  • Location:Montenegro
  • Devices:Y300-0100

no...


  • 0

Anyone want to improve something (or know how to fix something and he is willing to do it ) with LiquidSmooth ROM be my guest. Suggestions (commit) here: https://github.com/Y300-0100
 


#11
Y300-0100

Y300-0100

    Addict

  • Members
  • PipPipPipPipPip
  • 573 posts
  • Gender:Male
  • Location:Montenegro
  • Devices:Y300-0100

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, 18 March 2014 - 07:46 PM.

  • 0

Anyone want to improve something (or know how to fix something and he is willing to do it ) with LiquidSmooth ROM be my guest. Suggestions (commit) here: https://github.com/Y300-0100
 


#12
Bundizle

Bundizle

    Regular

  • Members
  • PipPip
  • 79 posts
  • Gender:Male
  • Location:Kenya
  • Devices:zte blade, huawei y300 ,Moto G
  • Twitter:@bundizle

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...ng.darkside.zip

 

http://www.mediafire...303-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

#13
Y300-0100

Y300-0100

    Addict

  • Members
  • PipPipPipPipPip
  • 573 posts
  • Gender:Male
  • Location:Montenegro
  • Devices:Y300-0100

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, 04 March 2014 - 10:46 AM.

  • 0

Anyone want to improve something (or know how to fix something and he is willing to do it ) with LiquidSmooth ROM be my guest. Suggestions (commit) here: https://github.com/Y300-0100
 


#14
spanitzer

spanitzer

    Addict

  • Members
  • PipPipPipPipPip
  • 556 posts
  • Gender:Male
  • Location:Germany
  • Devices:Huawei Ascend G510
More Apps in OTA?

Edited by spanitzer, 04 March 2014 - 10:42 AM.

  • 0

#15
spanitzer

spanitzer

    Addict

  • Members
  • PipPipPipPipPip
  • 556 posts
  • Gender:Male
  • Location:Germany
  • Devices:Huawei Ascend G510
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

#16
mockingbird

mockingbird

    Enthusiast

  • Members
  • PipPipPip
  • 167 posts
  • Gender:Male
  • Location:Bucharest, Romania
  • Devices:Huawei Y300

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

#17
spanitzer

spanitzer

    Addict

  • Members
  • PipPipPipPipPip
  • 556 posts
  • Gender:Male
  • Location:Germany
  • Devices:Huawei Ascend G510
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

#18
Y300-0100

Y300-0100

    Addict

  • Members
  • PipPipPipPipPip
  • 573 posts
  • Gender:Male
  • Location:Montenegro
  • Devices:Y300-0100
Did anyone actualy tried to build something using this TUTORIAL insted of trying to instal ubuntu touch rom??? ;-)

Edited by Y300-0100, 05 March 2014 - 10:06 PM.

  • 0

Anyone want to improve something (or know how to fix something and he is willing to do it ) with LiquidSmooth ROM be my guest. Suggestions (commit) here: https://github.com/Y300-0100
 


#19
Victod

Victod

    Enthusiast

  • Members
  • PipPipPip
  • 267 posts
  • Gender:Male
  • Location:Venezuela
  • Interests:Future!
  • Devices:Samsung Galaxy SIII mini

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, 05 March 2014 - 10:24 PM.

  • 1

#20
SaurabhRCk

SaurabhRCk

    Addict

  • Members
  • PipPipPipPipPip
  • 651 posts
  • Gender:Male
  • Location:India
  • Devices:Huawei Ascend Y300
  • Twitter:@SaurabhRCk

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


  • 1
Huawei Ascend Y300         : CM11, Hybrid kernel, TWRP 
Asus Zenfine 5                  : Stock 4.4.2, Stock kernel, Stock Recovery
Xiaomi Redmi 1s               : PAC-MAN ROM (4.4.4), Stock Kernel, TWRP




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users