Jump to content


Photo

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

* * * * * 1 votes

  • Please log in to reply
114 replies to this topic

#61
razzmataz1478

razzmataz1478

    Hardcore

  • Members
  • PipPipPipPipPipPip
  • 2,215 posts
  • Gender:Male
  • Location:HULL
  • Interests:Flashing ROMs, Being distracted by my skate
  • Devices:ZTE Skate
Syncing work tree:   6% (19/313)  Traceback (most recent call last):

  File "/home/razzmataz1478/skate/cm10/.repo/repo/main.py", line 385, in <module>

    _Main(sys.argv[1:])

  File "/home/razzmataz1478/skate/cm10/.repo/repo/main.py", line 365, in _Main

    result = repo._Run(argv) or 0

  File "/home/razzmataz1478/skate/cm10/.repo/repo/main.py", line 137, in _Run

    result = cmd.Execute(copts, cargs)

  File "/home/razzmataz1478/skate/cm10/.repo/repo/subcmds/sync.py", line 469, in Execute

    project.Sync_LocalHalf(syncbuf)

  File "/home/razzmataz1478/skate/cm10/.repo/repo/project.py", line 1049, in Sync_LocalHalf

    lost = self._revlist(not_rev(revid), HEAD)

  File "/home/razzmataz1478/skate/cm10/.repo/repo/project.py", line 1791, in _revlist

    return self.work_git.rev_list(*a, **kw)

  File "/home/razzmataz1478/skate/cm10/.repo/repo/project.py", line 1936, in rev_list

    p.stderr))

error.GitError: ColdFusionX/android_device_zte_skate rev-list ('^3c9f0139c55127c1c131793ad301188d1a24becb', 'HEAD', '--'): fatal: bad object 3c9f0139c55127c1c131793ad301188d1a24becb


  • 0

Posted Image

Current Phone:

Xperia T


Previous Phones:

Orange Monte Carlo

Nokia 5530 XpressMusic (Nokia C6-00 CFW)

Sony Ericsson v640i

Nokia 3120

Various other Nokia phones.

Not the best history of phones Posted Image


#62
razzmataz1478

razzmataz1478

    Hardcore

  • Members
  • PipPipPipPipPipPip
  • 2,215 posts
  • Gender:Male
  • Location:HULL
  • Interests:Flashing ROMs, Being distracted by my skate
  • Devices:ZTE Skate
Fixed the above error, had to basically nuke the device/zte/skate dir and sync again.

  • 0

Posted Image

Current Phone:

Xperia T


Previous Phones:

Orange Monte Carlo

Nokia 5530 XpressMusic (Nokia C6-00 CFW)

Sony Ericsson v640i

Nokia 3120

Various other Nokia phones.

Not the best history of phones Posted Image


#63
Nofan Tasi

Nofan Tasi

    Regular

  • Members
  • PipPip
  • 147 posts
  • Gender:Male
  • Devices:G SII - M P4310 - M 99300
  • Twitter:@tasinofan
thanks, the proprietary_vendor_zte.git works
however: lunch and make complain, presumably because jb (not ics) centric

no problem

I'll wait for release cmx (x>=9)

  • 0

#64
razzmataz1478

razzmataz1478

    Hardcore

  • Members
  • PipPipPipPipPipPip
  • 2,215 posts
  • Gender:Male
  • Location:HULL
  • Interests:Flashing ROMs, Being distracted by my skate
  • Devices:ZTE Skate
What does lunch say? The props are ICS...

  • 0

Posted Image

Current Phone:

Xperia T


Previous Phones:

Orange Monte Carlo

Nokia 5530 XpressMusic (Nokia C6-00 CFW)

Sony Ericsson v640i

Nokia 3120

Various other Nokia phones.

Not the best history of phones Posted Image


#65
razzmataz1478

razzmataz1478

    Hardcore

  • Members
  • PipPipPipPipPipPip
  • 2,215 posts
  • Gender:Male
  • Location:HULL
  • Interests:Flashing ROMs, Being distracted by my skate
  • Devices:ZTE Skate
OK ive updated first post to include a scratch tut on compiling CM10. I may create a video, probably much easier to follow than text, right?

  • 0

Posted Image

Current Phone:

Xperia T


Previous Phones:

Orange Monte Carlo

Nokia 5530 XpressMusic (Nokia C6-00 CFW)

Sony Ericsson v640i

Nokia 3120

Various other Nokia phones.

Not the best history of phones Posted Image


#66
razzmataz1478

razzmataz1478

    Hardcore

  • Members
  • PipPipPipPipPipPip
  • 2,215 posts
  • Gender:Male
  • Location:HULL
  • Interests:Flashing ROMs, Being distracted by my skate
  • Devices:ZTE Skate
I wish libwebcore was only a prebuilt, 50% of time compiling is building that mammoth library -_-

  • 0

Posted Image

Current Phone:

Xperia T


Previous Phones:

Orange Monte Carlo

Nokia 5530 XpressMusic (Nokia C6-00 CFW)

Sony Ericsson v640i

Nokia 3120

Various other Nokia phones.

Not the best history of phones Posted Image


#67
Nofan Tasi

Nofan Tasi

    Regular

  • Members
  • PipPip
  • 147 posts
  • Gender:Male
  • Devices:G SII - M P4310 - M 99300
  • Twitter:@tasinofan
Hi razzmataz

Thanks as always for your kind help.
Sorry for late reaction, I was busy lately, true: I should have captured lunch output, but I had not.
I recall something like "jellybean does not track ics downstream", anyway:
Now that CM9 release is out, it would be cool to have a recipe for stable cm9 skate build.

have a nice day.

  • 0

#68
Nofan Tasi

Nofan Tasi

    Regular

  • Members
  • PipPip
  • 147 posts
  • Gender:Male
  • Devices:G SII - M P4310 - M 99300
  • Twitter:@tasinofan
here is my recipe and what lunch complains about
(upto lunch everything ok)

recipe:
mkdir ~/bin
curl https://dl-ssl.googl...e/git-repo/repo > ~/bin/repo
chmod a+x ~/bin/repo
export PATH=~/bin:$PATH

mkdir -p ~/cm9/vendor/zte/
cd ~/cm9
repo init -u git://github.com/CyanogenMod/android.git -b ics
repo sync -j4

mkdir ~/cm9/device/zte
cd ~/cm9/device/zte
git clone git://github.com/ColdFusionX/android_device_zte_skate.git skate

cd ~/cm9/vendor/zte/
git clone git://github.com/tilal6991/proprietary_vendor_zte.git -b ics

mkdir -p ~/cm9/kernel/zte
cd ~/cm9/kernel/zte
git clone git://github.com/CyanogenMod/zte-kernel-msm7x27.git -b ics zte-kernel-msm7x27

cd ~/cm9/vendor/cm
./get-prebuilts

cd ~/cm9
export USE_CCACHE=1 CM_SNAPSHOT=1
. build/envsetup.sh
lunch cm_skate-eng
make bacon -j4

lunch:
lunch cm_skate-eng
build/core/config.mk:151: *** No TARGET_CPU_ABI defined by board config: . Stop.
Device skate not found. Attempting to retrieve device repository from CyanogenMod Github (http://github.com/CyanogenMod).
Found repository: android_device_zte_skate
Adding dependency: CyanogenMod/android_device_zte_skate -> device/zte/skate
Syncing repository to retrieve project.
remote: Counting objects: 2218, done.
remote: Compressing objects: 100% (952/952), done.
remote: Total 2218 (delta 1052), reused 2172 (delta 1008)
Receiving objects: 100% (2218/2218), 144.05 MiB | 2.47 MiB/s, done.
Resolving deltas: 100% (1052/1052), done.
From git://github.com/CyanogenMod/android_device_zte_skate
* [new branch] gingerbread -> github/gingerbread
* [new branch] ics -> github/ics
Fetching projects: 100% (1/1), done.
fatal: reference is not a tree: 8d25781706ecd0ae50f2b130e8dd08c57296de5c

device/zte/skate/: leaving jellybean; does not track upstream
error: device/zte/skate/: CyanogenMod/android_device_zte_skate checkout 8d25781706ecd0ae50f2b130e8dd08c57296de5c
Repository synced!
Looking for dependencies
Adding dependencies to manifest
Adding dependency: CyanogenMod/zte-kernel-msm7x27 -> kernel/zte/zte-kernel-msm7x27
Adding dependency: CyanogenMod/android_device_zte_msm7x27-common -> device/zte/msm7x27-common
Syncing dependencies
fatal: remote error:
Repository not found.
remote: Counting objects: 61335, done.
remote: Compressing objects: 100% (36714/36714), done.
fatal: remote error: 3% (1841/61335), 2.24 MiB | 1.01 MiB/s
Repository not found.
remote: Total 61335 (delta 25134), reused 56073 (delta 23984)
Receiving objects: 100% (61335/61335), 116.29 MiB | 3.17 MiB/s, done.
error: Cannot fetch CyanogenMod/android_device_zte_msm7x27-common
Resolving deltas: 100% (25134/25134), done.
From git://github.com/CyanogenMod/zte-kernel-msm7x27
* [new branch] 2.6.32-zte -> github/2.6.32-zte
* [new branch] 2.6.35 -> github/2.6.35
* [new branch] ics -> github/ics
Fetching projects: 50% (1/2)
error: Exited sync due to fetch errors
Done
build/core/config.mk:151: *** No TARGET_CPU_ABI defined by board config: . Stop.

** Don't have a product spec for: 'cm_skate'
** Do you have the right repo manifest?

make bacon -j4
build/core/product_config.mk:209: *** No matches for product "full". Stop.

Edited by Nofan Tasi, 14 August 2012 - 11:36 PM.

  • 0

#69
razzmataz1478

razzmataz1478

    Hardcore

  • Members
  • PipPipPipPipPipPip
  • 2,215 posts
  • Gender:Male
  • Location:HULL
  • Interests:Flashing ROMs, Being distracted by my skate
  • Devices:ZTE Skate
Try:

mkdir device/zte/skate
cd device/zte/skate
git clone git://github.com/ColdFusionX/android_device_zte_skate.git -b ics

  • 0

Posted Image

Current Phone:

Xperia T


Previous Phones:

Orange Monte Carlo

Nokia 5530 XpressMusic (Nokia C6-00 CFW)

Sony Ericsson v640i

Nokia 3120

Various other Nokia phones.

Not the best history of phones Posted Image


#70
razzmataz1478

razzmataz1478

    Hardcore

  • Members
  • PipPipPipPipPipPip
  • 2,215 posts
  • Gender:Male
  • Location:HULL
  • Interests:Flashing ROMs, Being distracted by my skate
  • Devices:ZTE Skate
It's because firstly, it's bringing down the jellybean branch.

Secondly, the jellybean branch also looks for a zte common repo and therefore all of the files needed o build aren't there.

With ICS all files are within each device repo.

  • 0

Posted Image

Current Phone:

Xperia T


Previous Phones:

Orange Monte Carlo

Nokia 5530 XpressMusic (Nokia C6-00 CFW)

Sony Ericsson v640i

Nokia 3120

Various other Nokia phones.

Not the best history of phones Posted Image


#71
Nofan Tasi

Nofan Tasi

    Regular

  • Members
  • PipPip
  • 147 posts
  • Gender:Male
  • Devices:G SII - M P4310 - M 99300
  • Twitter:@tasinofan
Thanks, specifying ice cream sandwich gets me going again.

  • 0

#72
muhahahaah

muhahahaah

    Regular

  • Members
  • PipPip
  • 86 posts
  • Gender:Male
  • Location:Innsbruck, Austria
  • Devices:ZTE Skate
Hi, I'm trying to download cm9 source.
I've already downloaded about 5 GB, but I had to cancel it.
When I now type in repo sync I get this errors:


Spoiler


Edit: after deleting bionic.git it works.

Edited by muhahahaah, 08 September 2012 - 06:29 PM.

  • 0

#73
razzmataz1478

razzmataz1478

    Hardcore

  • Members
  • PipPipPipPipPipPip
  • 2,215 posts
  • Gender:Male
  • Location:HULL
  • Interests:Flashing ROMs, Being distracted by my skate
  • Devices:ZTE Skate

$ repo sync


repo sync -jx

this could make your syncs faster (x been virtual cpu threads)

Edit: after deleting bionic.git it works.



Good to hear :)

  • 0

Posted Image

Current Phone:

Xperia T


Previous Phones:

Orange Monte Carlo

Nokia 5530 XpressMusic (Nokia C6-00 CFW)

Sony Ericsson v640i

Nokia 3120

Various other Nokia phones.

Not the best history of phones Posted Image


#74
muhahahaah

muhahahaah

    Regular

  • Members
  • PipPip
  • 86 posts
  • Gender:Male
  • Location:Innsbruck, Austria
  • Devices:ZTE Skate

this could make your syncs faster (x been virtual cpu threads)

thanks, will use it in future.


getting this when lunching cm_skate-eng:

Spoiler

  • 0

#75
razzmataz1478

razzmataz1478

    Hardcore

  • Members
  • PipPipPipPipPipPip
  • 2,215 posts
  • Gender:Male
  • Location:HULL
  • Interests:Flashing ROMs, Being distracted by my skate
  • Devices:ZTE Skate

thanks, will use it in future.


getting this when lunching cm_skate-eng:

Spoiler


Can you upload .repo/local_manifest.xml please?

  • 0

Posted Image

Current Phone:

Xperia T


Previous Phones:

Orange Monte Carlo

Nokia 5530 XpressMusic (Nokia C6-00 CFW)

Sony Ericsson v640i

Nokia 3120

Various other Nokia phones.

Not the best history of phones Posted Image


#76
Nofan Tasi

Nofan Tasi

    Regular

  • Members
  • PipPip
  • 147 posts
  • Gender:Male
  • Devices:G SII - M P4310 - M 99300
  • Twitter:@tasinofan
hey all, what is your build setup?

mine is 64bit up-to-date (k)ubuntu 12.04 with openjdk-6

is that supported (in particular not sun|oracle jdb 6) ?

thanks

  • 0

#77
razzmataz1478

razzmataz1478

    Hardcore

  • Members
  • PipPipPipPipPipPip
  • 2,215 posts
  • Gender:Male
  • Location:HULL
  • Interests:Flashing ROMs, Being distracted by my skate
  • Devices:ZTE Skate

hey all, what is your build setup?

mine is 64bit up-to-date (k)ubuntu 12.04 with openjdk-6

is that supported (in particular not sun|oracle jdb 6) ?

thanks


64-bit Ubuntu 12.04 VM
Oracle JDK 6
6gb ram

  • 0

Posted Image

Current Phone:

Xperia T


Previous Phones:

Orange Monte Carlo

Nokia 5530 XpressMusic (Nokia C6-00 CFW)

Sony Ericsson v640i

Nokia 3120

Various other Nokia phones.

Not the best history of phones Posted Image


#78
Nofan Tasi

Nofan Tasi

    Regular

  • Members
  • PipPip
  • 147 posts
  • Gender:Male
  • Devices:G SII - M P4310 - M 99300
  • Twitter:@tasinofan
thank razzmataz, here is where I am confused, my latest 64-bit ubuntu 12.04 just does not seem to have oracle or sun as alternative for jdk.

did you install oracle (aka rip sun) manually or via apt ?

what does
update-alternatives --query java
and
dpkg -l '*' | egrep '(java|jdk)' | grep ^ii

look like?

reason to ask is that I wonder why own built ROMs do not work as they should, perhaps my specific java env?

Edited by Nofan Tasi, 09 September 2012 - 12:43 AM.

  • 0

#79
razzmataz1478

razzmataz1478

    Hardcore

  • Members
  • PipPipPipPipPipPip
  • 2,215 posts
  • Gender:Male
  • Location:HULL
  • Interests:Flashing ROMs, Being distracted by my skate
  • Devices:ZTE Skate

thank razzmataz, here is where I am confused, my latest 64-bit ubuntu 12.04 just does not seem to have oracle or sun as alternative for jdk.

did you install oracle (aka rip sun) manually or via apt ?

what does
update-alternatives --query java
and
dpkg -l '*' | egrep '(java|jdk)' | grep ^ii

look like?

reason to ask is that I wonder why own built ROMs do not work as they should, perhaps my specific java env?


I installed it manually. You can't use the openjdk.

  • 0

Posted Image

Current Phone:

Xperia T


Previous Phones:

Orange Monte Carlo

Nokia 5530 XpressMusic (Nokia C6-00 CFW)

Sony Ericsson v640i

Nokia 3120

Various other Nokia phones.

Not the best history of phones Posted Image


#80
muhahahaah

muhahahaah

    Regular

  • Members
  • PipPip
  • 86 posts
  • Gender:Male
  • Location:Innsbruck, Austria
  • Devices:ZTE Skate

Can you upload .repo/local_manifest.xml please?


Okay, here it is.

Attached Files


Edited by muhahahaah, 09 September 2012 - 09:04 AM.

  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users