MoDaCo is undergoing planned maintenance. Site functionality may be reduced - follow @modaco or @paulobrien on Twitter for updates.

  • Announcements

    • Reminder - MoDaCo position on illegal content

      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 software
      Nintendo 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 be hosted directly in topic via the MoDaCo attachment system
      ROMs must not contain any illegal 3rd party software (this includes trial versions included without permission)
      ROMs must give full credit to the original author
      This decision has been taken in light of the huge amount of interest in this area of device customisation within the community, and member feedback! Please note that custom ROM discussion should be kept in specific device sub-areas, (e.g. Kaiser.MoDaCo.com for Kaiser based devices). ISSUES If you have any issues with this policy, please contact me directly via PM. P
    • Support MoDaCo by signing up to a MoDaCo Silver or Gold membership

      To sign up to an annual MoDaCo Silver subscription which will eliminate all ads from the site (as well as giving you access to the MoDaCo Online Kitchens for Android) for only £9.99 using PayPal, Credit or Debit Card, ensure you are logged in to the site, and then click the link below, which will take you directly to the subscription store! You can also sign up to an annual MoDaCo Gold subscription for £29.99, which adds the benefits listed below! PURCHASE A MODACO SUBSCRIPTION - FREE Titanium Backup Mobile for Android worth $5.99! - FREE 1 year PrivateInternetAccess.com worth $39.95! - FREE 1 year LastPass Premium worth $12! - FREE CalcConvert for Pocket PC from Binaryfish worth $17.95! - FREE Calendar Bar for Pocket PC from OmegaOne worth $9.99! - FREE CamerAware for Pocket PC and Smartphone from MoDaCo worth £19.99 / $30! - FREE Chronos for Pocket PC from ActiveKitten worth $14.95! - FREE CodeWallet Pro for Smartphone and Pocket PC from DeveloperOne worth up to $24.95! - FREE Concentrix for Pocket PC from eSoft Interactive worth $9.95! - FREE FlexMail for Pocket PC and Smartphone from WebIS worth up to $59.90! - FREE FTouchSL for Pocket PC from Vekoff s.r.o. worth 10 euro / $12.50! - FREE Jewel Challenge for Pocket PC from eSoft Interactive worth $9.95! - FREE John Cody's Alerts Pro for Smartphone from Omnisoft worth $14.95! - FREE LingvoSoft Talking Dictionary 2008 English <-> Dutch for Pocket PC from Lingvosoft worth $49.95! - FREE LingvoSoft Talking Dictionary 2008 English <-> French for Pocket PC from Lingvosoft worth $49.95! - FREE LingvoSoft Talking Dictionary 2008 English <-> German for Pocket PC from Lingvosoft worth $49.95! - FREE LingvoSoft Talking Dictionary 2008 English <-> Italian for Pocket PC from Lingvosoft worth $49.95! - FREE LingvoSoft Talking Dictionary 2008 English <-> Spanish for Pocket PC from Lingvosoft worth $49.95! - FREE LingvoSoft Dictionary English <-> Dutch for Smartphone from Lingvosoft worth $49.95! - FREE LingvoSoft Dictionary English <-> French for Smartphone from Lingvosoft worth $49.95! - FREE LingvoSoft Dictionary English <-> German for Smartphone from Lingvosoft worth $49.95! - FREE LingvoSoft Dictionary English <-> Russian for Smartphone from Lingvosoft worth $49.95! - FREE LingvoSoft Dictionary English <-> Turkish for Smartphone from Lingvosoft worth $49.95! - FREE Note2Self for Pocket PC and Smartphone from WebIS worth up to $19.90! - FREE Opera 8.60 for Pocket PC and Smartphone from Opera Software worth up to $48! - FREE Pocket Informant for Pocket PC and Smartphone from WebIS worth up to $59.90! - FREE Pocket Launcher for Pocket PC and Smartphone from Conduits worth $9.95! - FREE PTab for Pocket PC and Smartphone from z4soft worth up to $60! - FREE Resco Explorer for Pocket PC and Smartphone from Resco worth up to $49.90! - FREE Safemode for Pocket PC from monocube worth $12.95 - FREE SplashPhoto for Pocket PC and Smartphone from SplashData worth up to $59.90! - FREE Sprite Backup for Pocket PC and Smartphone from Sprite Software worth $29.95! - FREE Teksoft Glyphs UI for Pocket PC and Smartphone from Teksoft €9.95! - FREE Teksoft HeadsetRemote for Pocket PC and Smartphone from Teksoft €4.95! - FREE Traffic Jam for Pocket PC from eSoft Interactive worth $9.95! - FREE unlock (1 per year) from imei-check.co.uk - DISCOUNT of 10% at MoDaCo FairDeal - DISCOUNT of 10% at Semsons.com - FORUM - AD FREE SITE - FORUM - custom rank / title - FORUM - double competition entries - FORUM - double post attachment space - FORUM - no search flood control - FORUM - priority event registration - FORUM - triple PM space
    • Reminder: Selling items on the forum directly is not allowed

      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 / suspensions / ban.

[GUIDE][DEV]Compiling CM9/10/10.1 for ZTE Skate

115 posts in this topic

Posted (edited) · Report post

Based on sej7278's blade guide

Make sure you have set up your build environment first.

Ok, first you need to install repo, google's git script.

mkdir ~/bin

PATH=~/bin:$PATH

curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo

chmod a+x ~/bin/repo

Now you need to initiate git and download the CM9 source. use
repo sync
to download source and update.
mkdir - p ~/cm9/vendor/zte/

cd ~/cm9

repo init -u git://github.com/cyanogenmod/android.git -b ics

repo sync -j4

Next step is to download our device config.....

mkdir ~/cm9/device/zte

cd ~/cm9/device/zte

git clone git://github.com/ColdFusionX/android_device_zte_skate.git skate

......and ZTE proprietary files

cd ~/cm9/vendor/zte/

git clone git://github.com/koush/proprietary_vendor_zte.git -b ics

Downloading Kernel Source (skip this step first time, if you get stuck on the kernel error because it didn't download automatially then follow this and skip to the last step)
cd ~/cm9

mkdir -p kernel/zte

cd kernel/zte

git clone git://github.com/CyanogenMod/zte-kernel-msm7x27.git -b ics zte-kernel-msm7x27
Update prebuilts (ROM Manager, Terminal Emulator)

cd ~/cm9/vendor/cm

./get-prebuilts

Now to compile...this will download the kernel source first time round, As far as I know CCACHE is optional...

cd ~/cm9

export USE_CCACHE=1 CM_SNAPSHOT=1

. build/envsetup.sh

lunch cm_skate-eng

make bacon -j4

Good Luck! This will show you how to build ColdFusionX 2, I have'nt gone to in depth, so if it's a bit complicated mix and match instructions from the CM9 tutorial above :)
mkdir cm10 && cd cm10

repo init git://github.com/CyanogenMod/android.git -b jellybean

Download local_manifest.xml and move to .repo/
repo sync
Apply patches from here and here To apply Konsta's patches cd to bionic and frameworks/av respectively and apply like this:
git am *.patch
To apply C3C0's patch:
gedit kernel/zte/zte-kernel-msm7x27/drivers/net/wireless/bcm4319
Add this line:
-Wno-array-bounds
underneath:
-Idrivers/net/wireless/bcm4319 -Idrivers/net/wireless/bcm4319/include \
Get prebults:
 vendor/cm/get-prebuilts
Setup build, lunch and compile:
export USE_CCACHE=1 CM_EXPERIMENTAL=1 CM_EXTRAVERSION=[yourname]

. build/envsetup.sh

lunch cm_skate-userdebug

make bacon -j4
CM10.1 (rough guide) Initialise the env.
repo init -u https://github.com/androidarmv6/android.git -b cm-10.1
Download the cm10 manifest above and replace all projects with these.

<project name="androidarmv6/android_device_zte_skate" path="device/zte/skate" />


<project name="androidarmv6/android_device_zte_msm7x27-common" path="device/zte/msm7x27-common" />


<project name="androidarmv6/android_kernel_zte_msm7x27" path="kernel/zte/msm7x27" />

Sync with the sources
repo sync -j32
Build.

. build/envsetup.sh

brunch skate

Please post any errors you get while building. We will be able to help you.

Edited by razzmataz1478
5

Share this post


Link to post
Share on other sites

Posted · Report post

well done mate. can't see any immediate errors.

but prepare for a shite load of pm's with people having problems and asking for you to sort it out ;)

you might also want to do a quick guide on how to add in new features from gerrit that have not been fully merged. as that question is bound to be asked below :)

0

Share this post


Link to post
Share on other sites

Posted · Report post

cd ~/cm9/vendor/zte/
should be
cd ~/cm9/device/zte/
And you're missing:
cd ~/cm9/vendor/
git clone git://github.com/koush/proprietary_vendor_zte.git -b ics zte[/code]

Apart from that looks good.

0

Share this post


Link to post
Share on other sites

Posted · Report post

cd ~/cm9/vendor/zte/
should be
cd ~/cm9/device/zte/
And you're missing:
cd ~/cm9/vendor/

git clone git://github.com/koush/proprietary_vendor_zte.git -b ics zte

Apart from that looks good.

OK thanks.

Shouldn't we use the props from your github, I didn't think koush's had the skate in...

0

Share this post


Link to post
Share on other sites

Posted · Report post

OK thanks.

Shouldn't we use the props from your github, I didn't think koush's had the skate in...

It didn't. Until 3 days ago when Tom accepted the pull request to merge the Skate.

0

Share this post


Link to post
Share on other sites

Posted · Report post

It didn't. Until 3 days ago when Tom accepted the pull request to merge the Skate.

Ah right.

0

Share this post


Link to post
Share on other sites

Posted · Report post

I've updated hopefully that's right now

1

Share this post


Link to post
Share on other sites

Posted · Report post

thanks a lot guys!

this recipe brings me much further

but, it seems I need to configure something to be able to download the kernel

--8<--

~/cm9$ lunch cm_skate-eng

Trying dependencies-only mode on a non-existing device tree?

============================================

PLATFORM_VERSION_CODENAME=REL

PLATFORM_VERSION=4.0.4

TARGET_PRODUCT=cm_skate

TARGET_BUILD_VARIANT=eng

TARGET_BUILD_TYPE=release

TARGET_BUILD_APPS=

TARGET_ARCH=arm

TARGET_ARCH_VARIANT=armv6-vfp

HOST_ARCH=x86

HOST_OS=linux

HOST_BUILD_TYPE=release

BUILD_ID=IMM76I

============================================

~/cm9$ make bacon -j4

============================================

PLATFORM_VERSION_CODENAME=REL

PLATFORM_VERSION=4.0.4

TARGET_PRODUCT=cm_skate

TARGET_BUILD_VARIANT=eng

TARGET_BUILD_TYPE=release

TARGET_BUILD_APPS=

TARGET_ARCH=arm

TARGET_ARCH_VARIANT=armv6-vfp

HOST_ARCH=x86

HOST_OS=linux

HOST_BUILD_TYPE=release

BUILD_ID=IMM76I

============================================

system/core/toolbox/Android.mk:98: warning: overriding commands for target `out/target/product/skate/system/bin/lsof'

build/core/base_rules.mk:523: warning: ignoring old commands for target `out/target/product/skate/system/bin/lsof'

build/core/Makefile:36: warning: overriding commands for target `out/target/product/skate/system/etc/mkshrc'

build/core/base_rules.mk:523: warning: ignoring old commands for target `out/target/product/skate/system/etc/mkshrc'

No private recovery resources for TARGET_DEVICE skate

build/core/tasks/kernel.mk:37: ***************************************************************

build/core/tasks/kernel.mk:38: * *

build/core/tasks/kernel.mk:39: * No kernel source found, and no fallback prebuilt defined. *

build/core/tasks/kernel.mk:40: * Please make sure your device is properly configured to *

build/core/tasks/kernel.mk:41: * download the kernel repository to kernel/zte/zte-kernel-msm7x27

build/core/tasks/kernel.mk:42: * and add the TARGET_KERNEL_CONFIG variable to BoardConfig.mk *

build/core/tasks/kernel.mk:43: * *

build/core/tasks/kernel.mk:44: * As an alternative, define the TARGET_PREBUILT_KERNEL *

build/core/tasks/kernel.mk:45: * variable with the path to the prebuilt binary kernel image *

build/core/tasks/kernel.mk:46: * in your BoardConfig.mk file *

build/core/tasks/kernel.mk:47: * *

build/core/tasks/kernel.mk:48: ***************************************************************

build/core/tasks/kernel.mk:49: *** "NO KERNEL". Stop.

--8<--

have a nice day

0

Share this post


Link to post
Share on other sites

Posted · Report post

Try


lunch cm_skate-userdebug

1

Share this post


Link to post
Share on other sites

Posted · Report post

That shouldn't be the error. Try another prebuilt kernel (device/zte/skate/prebuilt/..)

0

Share this post


Link to post
Share on other sites

Posted · Report post

Hi razzmataz1478,

After 'lunch cm_skate-userdebug', 'make bacon -j4' first cleans up things and then gives same error.

Hi XMasterNinni,

How do I 'try another prebuilt kernel'? device/zte/skate/prebuilt is a bit skinny:

~/cm9$ ls device/zte/skate/prebuilt/

skate_keypad.kl start_usb0.sh synaptics-rmi4-ts.idc synaptics-rmi-touchscreen.idc

Thanks!

0

Share this post


Link to post
Share on other sites

Posted · Report post

Hi razzmataz1478,

After 'lunch cm_skate-userdebug', 'make bacon -j4' first cleans up things and then gives same error.

Hi XMasterNinni,

How do I 'try another prebuilt kernel'? device/zte/skate/prebuilt is a bit skinny:

~/cm9$ ls device/zte/skate/prebuilt/

skate_keypad.kl start_usb0.sh synaptics-rmi4-ts.idc synaptics-rmi-touchscreen.idc

Thanks!

Take an existing boot.img and place it there?

And then try and compile again

0

Share this post


Link to post
Share on other sites

Posted · Report post

Would be nice if it's just as easy as replacing a boot.img...lol

Try another device tree (maybe AOSPFX one...). Although I'm pretty sure that it wouldn't work. But worth a try :mellow:

0

Share this post


Link to post
Share on other sites

Posted · Report post


cm ~/cm9
mkdir kernel
mkdir kernel/zte
cd kernel/zte
git clone git://github.com/CyanogenMod/zte-kernel-msm7x27.git -b ics zte-kernel-msm7x27
[/CODE]

And then run lunch and make again.

1

Share this post


Link to post
Share on other sites

Posted · Report post

mehhh, i can't download the kernel source automatically now, same error

0

Share this post


Link to post
Share on other sites

Posted · Report post

updated to include kernel source downloading

0

Share this post


Link to post
Share on other sites

Posted · Report post

Now I'm getting this:

make: *** No rule to make target `device/zte/blade/releasetools/extras.sh', needed by `out/target/product/skate/system/bin/extras.sh'. Stop.

make: *** Waiting for unfinished jobs....


0

Share this post


Link to post
Share on other sites

Posted · Report post

Hi tilal6991

make now continues (after adding kernel source tree)

btw: 'cm ~/cm9' almost bit me ;-)

thanks all for your kind help!

ps: perhaps soon I can change my profile 'Member Title "Newbie"' to something else, if only I knew how ...

0

Share this post


Link to post
Share on other sites

Posted · Report post

would there be an issue with 2 makefiles below?

~/cm9$ grep device/zte/blade $(find -iname makefile -or -iname "*.mk") | grep -v proprietary_vendor_zte/blade

./device/zte/skate/device.mk: device/zte/blade/releasetools/extras.sh:system/bin/extras.sh

./device/zte/skate/BoardConfig.mk:TARGET_RELEASETOOL_OTA_FROM_TARGET_SCRIPT := device/zte/blade/releasetools/ota_from_target_files

thanks

0

Share this post


Link to post
Share on other sites

Posted · Report post

and with device/zte/skate/releasetools/ota_from_target_files itself?

~/cm9$ grep blade device/zte/skate/releasetools/*

device/zte/skate/releasetools/ota_from_target_files:EXTRAS_FILE = 'device/zte/blade/releasetools/extras.txt'

0

Share this post


Link to post
Share on other sites

Posted · Report post

I've fixed it. Just do a git pull on device/zte/skate and it should work now.

1

Share this post


Link to post
Share on other sites

Posted · Report post

Now there's no rule on how to create ROM Manager.

0

Share this post


Link to post
Share on other sites

Posted · Report post

there is another reference to device blade in device/zte/skate/BoardConfig.mk

0

Share this post


Link to post
Share on other sites

Posted · Report post

after editing

device/zte/skate/device.mk

device/zte/skate/BoardConfig.mk

device/zte/skate/releasetools/ota_from_target_files

(replace blade with skate)

my build finished

0

Share this post


Link to post
Share on other sites

Posted · Report post

Thanks man I'll try that now

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.