ROM Android: Download source code Ridon

From OnnoWiki
Jump to navigation Jump to search

Google Android One (Sprout)

   Site: http://www.android.com/one/

Setup

Please follow setup instructions described in this page


Preparing

Read https://github.com/ridon/ridon/wiki/Installing-Dependencies Setup: Initialize work directory

mkdir ridon cd ridon export RIDON=$(pwd)

Get repo tool

cd $RIDON mkdir tools cd tools wget http://commondatastorage.googleapis.com/git-repo-downloads/repo chmod a+x repo cd $RIDON

Setup source code

cd $RIDON mkdir ridon-5.0 cd ridon-5.0 ../tools/repo init --depth 1 -u git://github.com/ridon/ridon.git -b ridon-5.0

Sync source code

cd $RIDON cd ridon-5.0 $RIDON/tools/repo sync vendor/ridon/get-prebuilts prebuilts/misc/linux-x86/ccache/ccache -M 50G

Build preparation

export ANDROID_JAVA_HOME=$JAVA_HOME export CCACHE=1 cd $RIDON/ridon-5.0 . build/envsetup.sh

Then you can build for the devices listed in the menu shown on the top right of this page.


Device repository setup

Get this ridon-device.xml

cd $RIDON/ridon-5.0
mkdir -p .repo/local_manifests
wget -O .repo/local_manifests/ridon-device.xml https://raw.githubusercontent.com/ridon/ridon-device-google-sprout/ridon-5.0/ridon-device.xml
../tools/repo sync

Build

. build/envsetup.sh
lunch ridon-sprout_userdebug
make -j9 bacon

Result

You will have a zip file in $RIDON/ridon-5.0/out/target/product/sprout/ directory which you can transfer into a Sprout device and use recovery tool to flash it. Problems Kernel does not work

At the moment we need to replace the kernel with the old prebuilt one. Get mkboot tools and do this procedure below:

Extract the built boot.img:

cd $RIDON/ridon-5.0/out/target/product/sprout/
mkboot boot.img boot.img-extract

Copy the prebuilt kernel:

cp $RIDON/ridon-5.0/device/google/sprout/kernel boot.img-extract/zImage

Rebuild the boot.img, and rename it to boot-modified.img.

mkboot boot.img-extract boot-modified.img

Turn on your Sprout device and go to bootloader mode (a.k.a Fastboot mode). When you see FASTBOOT mode on the screen, fire this command:

fastboot flash boot boot-modified.img
fastboot reboot

You should be able to boot now.



Referensi