Jump to content


Photo

Compiling CM9 (and maybe CM10) for Blade

* * * * * 7 votes

  • Please log in to reply
797 replies to this topic

#81
asm19

asm19

    Enthusiast

  • Members
  • PipPipPip
  • 213 posts
  • Gender:Male
  • Location:Portugal
  • Devices:ZTE-Blade & Huawei U8800
  • Twitter:@miguel_salmeida

How to force the repo sync after our changes?
Is that to me is giving me error doing repo sync, for example:


Syncing work tree:  60% (150/249)  error: Your local changes to the following files would be overwritten by checkout:
	services/surfaceflinger/Layer.cpp
Please, commit your changes or stash them before you can switch branches.
Aborting
Syncing work tree: 100% (249/249), done.  


Does anyone know how to repo sync after we changed the files? Type a repo sync force? repo sync -f does not.

  • 0
Phone: ZTE - Blade (TPT v10 stock)
ROM: Self compiled CyanogenMod 9 (UNOFFICIAL 20120627)

#82
asm19

asm19

    Enthusiast

  • Members
  • PipPipPip
  • 213 posts
  • Gender:Male
  • Location:Portugal
  • Devices:ZTE-Blade & Huawei U8800
  • Twitter:@miguel_salmeida
How do I download a patch not merged? For example:
http://review.cyanog....com/#/c/14768/

  • 0
Phone: ZTE - Blade (TPT v10 stock)
ROM: Self compiled CyanogenMod 9 (UNOFFICIAL 20120627)

#83
targetbsp

targetbsp

    Hardcore

  • MoDaCo Silver
  • PipPipPipPipPipPip
  • 4,016 posts
  • Gender:Male
  • Devices:Hudl 2, Blade V
I'm not sure if there's a 'correct' way that github/linux experts favour, but if you change directory to the one shown under project, click the 'pull' tab under downloads, click copy to clipboard, then paste into terminal and hit enter has always worked for me.

Edited by targetbsp, 20 April 2012 - 01:11 PM.

  • 0
My Blade site - includes vanilla KANGS's of CM7. Also available: modified GB Gapps with various market versions, mini ICS Gapps for 160mb system partitions and Flash for ARMv6
CM7 Blade changelog

#84
asm19

asm19

    Enthusiast

  • Members
  • PipPipPip
  • 213 posts
  • Gender:Male
  • Location:Portugal
  • Devices:ZTE-Blade & Huawei U8800
  • Twitter:@miguel_salmeida

I'm not sure if there's a 'correct' way that github/linux experts favour, but if you change directory to the one shown under project, click the 'pull' tab under downloads, click copy to clipboard, then paste into terminal and hit enter has always worked for me.


Done. Thanks

Edited by asm19, 20 April 2012 - 01:33 PM.

  • 0
Phone: ZTE - Blade (TPT v10 stock)
ROM: Self compiled CyanogenMod 9 (UNOFFICIAL 20120627)

#85
..Abel..

..Abel..

    Enthusiast

  • Members
  • PipPipPip
  • 250 posts
  • Devices:Zte Blade / Dell XCD 35
  • Twitter:@Ace_Able
ok so im doing this(official cm9 ) for the first time ! after hours and hours ! i have reached step 3.

"apply lunch menu patch or simply add the line "add_lunch_combo cm_blade-userdebug" to ~/cm9/vendor/cm/vendorsetup.sh "

what does mean ? how do i do it ?

if paste this from the gerrit patch
"git fetch http://review.cyanog...droid_vendor_cm refs/changes/02/14802/1 && git format-patch -1 --stdout FETCH_HEAD
"

it says "fatal: Not a git repository (or any of the parent directories): .git"


  • 0

Posted Image
JELLY BEAN :)


#86
targetbsp

targetbsp

    Hardcore

  • MoDaCo Silver
  • PipPipPipPipPipPip
  • 4,016 posts
  • Gender:Male
  • Devices:Hudl 2, Blade V
Does anyone know how much disk space you need for CM9 or Coldfusion? For the purposes of setting up a VM. I'm kinda limited in drive space atm!

  • 0
My Blade site - includes vanilla KANGS's of CM7. Also available: modified GB Gapps with various market versions, mini ICS Gapps for 160mb system partitions and Flash for ARMv6
CM7 Blade changelog

#87
shmizan

shmizan

    Addict

  • Members
  • PipPipPipPipPip
  • 574 posts
  • Devices:ZTE Blade
let me tell you that my 30GB VM partition was BARELY enough to finish compiling.

  • 0

Orange San Francisco, Upgraded to Gen 2 with TPT Helper (custom partition layout: 150-sys, 302-data, 4-cache)
CyanogenMod 10


#88
targetbsp

targetbsp

    Hardcore

  • MoDaCo Silver
  • PipPipPipPipPipPip
  • 4,016 posts
  • Gender:Male
  • Devices:Hudl 2, Blade V
Thanks, I'll go for 35 or 40 then. I wanna make a cold fusion with the airplane mode fix. I think that'll just about reduce the few issues I have with ICS by enough to tip the balance towards it over CM7. :)

  • 0
My Blade site - includes vanilla KANGS's of CM7. Also available: modified GB Gapps with various market versions, mini ICS Gapps for 160mb system partitions and Flash for ARMv6
CM7 Blade changelog

#89
shmizan

shmizan

    Addict

  • Members
  • PipPipPipPipPip
  • 574 posts
  • Devices:ZTE Blade
40+ is the direction. and I don't think it's the time yet. I wanted to take the plunge myself but since tilal is away for now, and CM9 is slower than CFX, and with no visible improvements for the main bugs in the near future, I decided to stick with CM7 for a few more weeks.

  • 0

Orange San Francisco, Upgraded to Gen 2 with TPT Helper (custom partition layout: 150-sys, 302-data, 4-cache)
CyanogenMod 10


#90
targetbsp

targetbsp

    Hardcore

  • MoDaCo Silver
  • PipPipPipPipPipPip
  • 4,016 posts
  • Gender:Male
  • Devices:Hudl 2, Blade V
Yeah I went for 40 and left it syncing overnight. Getting there. Just ran into the rom manager issue towards the top of the previous page. :)

  • 0
My Blade site - includes vanilla KANGS's of CM7. Also available: modified GB Gapps with various market versions, mini ICS Gapps for 160mb system partitions and Flash for ARMv6
CM7 Blade changelog

#91
targetbsp

targetbsp

    Hardcore

  • MoDaCo Silver
  • PipPipPipPipPipPip
  • 4,016 posts
  • Gender:Male
  • Devices:Hudl 2, Blade V

ok so im doing this(official cm9 ) for the first time ! after hours and hours ! i have reached step 3.

"apply lunch menu patch or simply add the line "add_lunch_combo cm_blade-userdebug" to ~/cm9/vendor/cm/vendorsetup.sh "

what does mean ? how do i do it ?

if paste this from the gerrit patch
"git fetch http://review.cyanog...droid_vendor_cm refs/changes/02/14802/1 && git format-patch -1 --stdout FETCH_HEAD
"

it says "fatal: Not a git repository (or any of the parent directories): .git"



You need to cd into the folder shown in project so cm9\vendor\cm
Then I tend to use git pull instead of fetch. I can't remember why though. :D

  • 0
My Blade site - includes vanilla KANGS's of CM7. Also available: modified GB Gapps with various market versions, mini ICS Gapps for 160mb system partitions and Flash for ARMv6
CM7 Blade changelog

#92
sej7278

sej7278

    Hardcore

  • Members
  • PipPipPipPipPipPip
  • 1,647 posts
  • Gender:Male
  • Devices:ZTE Blade
is anyone else finding that flashing from rommanager isn't working due to "no space left on device" errors regarding /cache ? it also seems to be incorrectly thinking i've not even got CWM 4.40 installed, even though its running 5.020

i think clockworkmod is writing a log or something to /cache which is filling up the 2mb partition during the flash process.

the only way i can flash at the moment is from CWM, if i wipe /cache before flashing the zip.

Cyanogenmod itself treats /cache as part of the sdcard, but it seems the CM9 recovery image perhaps doesn't......?

anyway here is a CM9 test rom i built today with the bluetooth fix etc. i still think ColdFusionX seems faster, and i don't think the touchscreen seems very responsive either, see what you think, maybe its just subjective. also i seem to be having intermittent problems with adb not showing the device sometimes. camera preview seems better than CFX, its still pretty useless, but you could manage with it i guess, shows a flickery image of about 2/3 of the preview. don't tell the n00bs there's a test rom, i'll delete it in a few hours.

i made a little tweak to the vanilla source, i switched to common_mini_phone.mk like CFX does (and hardcoded the correct bootanimation) to save about 20mb of space on /system from useless ringtones and videos, as i'm getting really tight even with a 215mb /system.

diff --git a/cm.mk b/cm.mk
index 716d8d4..f348e90 100644
--- a/cm.mk
+++ b/cm.mk
@@ -1,7 +1,7 @@
 $(call inherit-product, device/zte/blade/blade.mk)
 
 # Inherit some common CM stuff.
-$(call inherit-product, vendor/cm/config/common_full_phone.mk)
+$(call inherit-product, vendor/cm/config/common_mini_phone.mk)
 
 # Inherit some common CM stuff.
 $(call inherit-product, vendor/cm/config/gsm.mk)
@@ -11,3 +11,4 @@ PRODUCT_BUILD_PROP_OVERRIDES += PRODUCT_NAME=blade BUILD_ID=IMM76D BUILD_FINGERP
 PRODUCT_NAME := cm_blade
 PRODUCT_DEVICE := blade
 PRODUCT_RELEASE_NAME := Blade
+TARGET_BOOTANIMATION_NAME := vertical-480x800

  • 1

#93
sej7278

sej7278

    Hardcore

  • Members
  • PipPipPipPipPipPip
  • 1,647 posts
  • Gender:Male
  • Devices:ZTE Blade

Yeah I went for 40 and left it syncing overnight. Getting there. Just ran into the rom manager issue towards the top of the previous page. :)


you've not go a new enough sync then, that was fixed ages ago. the alternative is just to cd into the vendor/cm/ directory and run ./get-prebuilts from there.

  • 0

#94
targetbsp

targetbsp

    Hardcore

  • MoDaCo Silver
  • PipPipPipPipPipPip
  • 4,016 posts
  • Gender:Male
  • Devices:Hudl 2, Blade V

you've not go a new enough sync then, that was fixed ages ago. the alternative is just to cd into the vendor/cm/ directory and run ./get-prebuilts from there.


I followed your guide in post 1 for the first time last night. My sync can't get much newer?
The cd into vendor/cm seemed to work. :)

Edited by targetbsp, 22 April 2012 - 10:57 AM.

  • 0
My Blade site - includes vanilla KANGS's of CM7. Also available: modified GB Gapps with various market versions, mini ICS Gapps for 160mb system partitions and Flash for ARMv6
CM7 Blade changelog

#95
sej7278

sej7278

    Hardcore

  • Members
  • PipPipPipPipPipPip
  • 1,647 posts
  • Gender:Male
  • Devices:ZTE Blade

I followed your guide in post 1 for the first time last night. My sync can't get much newer?
The cd into vendor/cm seemed to work. :)


hmm, odd it works for me and i saw the actual commit that made it work outside of the cwd (gerrit or github) i've just changed the instructions, its easier lol.

also my rommanager issues seem to be down to my clockworkmod still seems to think i'm running 7.1 maybe tomg needs to update the recovery.img........

edit:
tom_g says he'll try to get the recovery in rommanager updated but the /cache issue is to be expected with a small partition. so what partition size should we go with i wonder, 2mb seems too small.

Edited by sej7278, 22 April 2012 - 11:20 AM.

  • 0

#96
targetbsp

targetbsp

    Hardcore

  • MoDaCo Silver
  • PipPipPipPipPipPip
  • 4,016 posts
  • Gender:Male
  • Devices:Hudl 2, Blade V
I've not had any trouble using Rom Manager with Coldfusion?

My VM ran out of memory whilst compiling while I was AFK. :D

  • 0
My Blade site - includes vanilla KANGS's of CM7. Also available: modified GB Gapps with various market versions, mini ICS Gapps for 160mb system partitions and Flash for ARMv6
CM7 Blade changelog

#97
shmizan

shmizan

    Addict

  • Members
  • PipPipPipPipPip
  • 574 posts
  • Devices:ZTE Blade
making this useless partition bigger only for Rom Manager? I don't think I'll go down that road. if he can fix it - kudos, but if not - I will continue flashing from recovery.
oh and you can take it off your server now, mirrored it here and here

  • 1

Orange San Francisco, Upgraded to Gen 2 with TPT Helper (custom partition layout: 150-sys, 302-data, 4-cache)
CyanogenMod 10


#98
targetbsp

targetbsp

    Hardcore

  • MoDaCo Silver
  • PipPipPipPipPipPip
  • 4,016 posts
  • Gender:Male
  • Devices:Hudl 2, Blade V
I can't imagine it needs to be much bigger? How do you make a log with all it has to do exceed 2mb? My 'last_log' is 3.75k !
Is there anything left behind in your cache partition? Temp files or something?
I have a few folders and files in there and they total under 4k

  • 0
My Blade site - includes vanilla KANGS's of CM7. Also available: modified GB Gapps with various market versions, mini ICS Gapps for 160mb system partitions and Flash for ARMv6
CM7 Blade changelog

#99
asm19

asm19

    Enthusiast

  • Members
  • PipPipPip
  • 213 posts
  • Gender:Male
  • Location:Portugal
  • Devices:ZTE-Blade & Huawei U8800
  • Twitter:@miguel_salmeida
They are able to synchronize the repository cm? To me is giving methis error and will not be completed...


fatal: Not a git repository: '/home/asm/.repo/projects/development.git'
Fetching projects:  88% (276/313)  fatal: Not a git repository: '/home/asm/.repo/projects/development.git'
Fetching projects:  99% (310/313)  error: Cannot fetch CyanogenMod/android_development

  • 0
Phone: ZTE - Blade (TPT v10 stock)
ROM: Self compiled CyanogenMod 9 (UNOFFICIAL 20120627)

#100
sej7278

sej7278

    Hardcore

  • Members
  • PipPipPipPipPipPip
  • 1,647 posts
  • Gender:Male
  • Devices:ZTE Blade

I can't imagine it needs to be much bigger? How do you make a log with all it has to do exceed 2mb? My 'last_log' is 3.75k !
Is there anything left behind in your cache partition? Temp files or something?
I have a few folders and files in there and they total under 4k


i dunno, tom_g reckons in cm9 its where market stores its temp files (unlike cm7) i've not looked what's in there as i nuked it, but i think i've downloaded programs bigger than 2mb from market ok.

it could just be rommanager being shite, i've just about had enough of that program anyway, even with cm7 it used to force close a lot. i don't feel like re-tpt'ing again, space is tight enough as it is - about 80mb of /data and 50mb of /system left, and that's after i got rid of a lot of apps. i did check the full gapps script and noticed that it doesn't install the facial recognition stuff if you don't have a front-facing camera, so that's 30mb less.

i'm not sure if i had the same problem with coldfusionx.

you didn't keep it very quiet, with 140 downloads in 4 hours :D i took it off my server now, thanks for the mirrors.

Edited by sej7278, 22 April 2012 - 02:10 PM.

  • 0




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users