Git Product home page Git Product logo

android_device_huawei_ascend's Introduction

HOW-TO BUILD:

This short guide assumes you're on Ubuntu 10.10

Getting the (right) source

Ensure that you have repo installed. Download and install repo like so:

$ curl http://android.git.kernel.org/repo > ~/bin/repo $ chmod a+x ~/bin/repo

Now, we create our build directories and pull the right source:

$ cd ~/android/system/

$ repo init -u git://github.com/CyanogenMod/android.git -b froyo-stable

$ repo sync -j16

Extract necessary binaries and proprietary files

We will re-use some proprietary files from the original Eclair ROM. The files can be extracted from any Ascend running an Eclair ROM (including Icarus 1.X):

$ cd

$ cd ~/android/system/device/huawei/ascend/

$ ./extract-files.sh

Building CM6

Once thats done you can start compiling.

Follow the aosp instructions on setting up the build environment. - http://source.android.com/source/download.html

Android generally does not build nicely in 64-bit environments. Ubuntu apparently works well using multilib but some distros don't. I use chroot to switch to a 32-bit build environment on Arch linux (this results in a 64-bit kernel running 32-bit binaries). Windows user - learn to use Linux or OS X. Ubuntu installed in a VM will be easiest to setup and should get the job done.

When the environment is setup, we need to grab a copy of Koush's ROM Manager. This is necessary to build CM6.

$ cd

$ ~/android/system/vendor/cyanogen/get-rommanager

Now, we build:

$ cd ~/android/system

$ . build/envsetup.sh

$ lunch cyanogen_ascend-eng

$ make -j`grep 'processor' /proc/cpuinfo | wc -l` bacon

Installing CM6

We have non-standard pagesize in our boot and recovery images. Mkbootimg has to be adjusted in order to accommodate the padding (4096), but for the sake of time, we'll just flash the images.

$ cd

$ cd ~/android/system/out/target/product/ascend

$ fastboot flash boot boot.img

$ fastboot flash system system.img

$ fastboot flash userdata userdata.img

$ fastboot reboot

android_device_huawei_ascend's People

Contributors

etnie avatar isaacj87 avatar

Stargazers

ioz9 avatar

Watchers

James Cloos avatar ioz9 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.