Jump to content

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


Recommended Posts

Guest tilal6991
Posted

See the patches on KonstaT's thread's second post

Guest razzmataz1478
Posted

See the patches on KonstaT's thread's second post

Thanks compiling now and no errors so far..

Guest razzmataz1478
Posted

More errors:

/home/razzmataz1478/skate/cm10/kernel/zte/zte-kernel-msm7x27/drivers/net/wireless/bcm4319/wl_iw.c: In function 'wl_iw_set_pmksa':

/home/razzmataz1478/skate/cm10/kernel/zte/zte-kernel-msm7x27/drivers/net/wireless/bcm4319/wl_iw.c:4852:5: error: array subscript is above array bounds [-Werror=array-bounds]

/home/razzmataz1478/skate/cm10/kernel/zte/zte-kernel-msm7x27/drivers/net/wireless/bcm4319/wl_iw.c:4855:5: error: array subscript is above array bounds [-Werror=array-bounds]

cc1: all warnings being treated as errors


make[6]: *** [drivers/net/wireless/bcm4319/wl_iw.o] Error 1

make[5]: *** [drivers/net/wireless/bcm4319] Error 2

make[4]: *** [drivers/net/wireless] Error 2

make[3]: *** [drivers/net] Error 2

make[2]: *** [drivers] Error 2

make[1]: *** [sub-make] Error 2

make[1]: Leaving directory `/home/razzmataz1478/skate/cm10/kernel/zte/zte-kernel-msm7x27'

make: *** [TARGET_KERNEL_BINARIES] Error 2

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

razzmataz1478@razzmataz1478-VirtualBox:~/skate/cm10$


Guest razzmataz1478
Posted

Does editing the make file tell it to ignore the warning when compiling, essentially?

Guest razzmataz1478
Posted

Ok I've built it successfully in under 2 hours on my Ubuntu 12.04 VirtualBox allocated with three 3GHz cores (i5-2320), 5GB RAM and 4GB swap.

Posted

It tells the compiler not to treat array-bounds warnings as errors.

Guest Nofan Tasi
Posted

is the proprietary_vendor_zte repository gone?

or is there an alternative?

# cd ~/cm9/vendor/zte/

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

Cloning into 'proprietary_vendor_zte'...

fatal: remote error:

Repository not found.

thanks

Guest razzmataz1478
Posted

is the proprietary_vendor_zte repository gone?

or is there an alternative?

# cd ~/cm9/vendor/zte/

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

Cloning into 'proprietary_vendor_zte'...

fatal: remote error:

Repository not found.

thanks

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

Guest razzmataz1478
Posted
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

Guest razzmataz1478
Posted

Fixed the above error, had to basically nuke the device/zte/skate dir and sync again.

Guest Nofan Tasi
Posted

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)

Guest razzmataz1478
Posted

What does lunch say? The props are ICS...

Guest razzmataz1478
Posted

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?

Guest razzmataz1478
Posted

I wish libwebcore was only a prebuilt, 50% of time compiling is building that mammoth library -_-

Guest Nofan Tasi
Posted

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.

Guest Nofan Tasi
Posted (edited)

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
Guest razzmataz1478
Posted

Try:


mkdir device/zte/skate

cd device/zte/skate

git clone git://github.com/ColdFusionX/android_device_zte_skate.git -b ics 

Guest razzmataz1478
Posted

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.

Guest Nofan Tasi
Posted

Thanks, specifying ice cream sandwich gets me going again.

  • 4 weeks later...
Guest muhahahaah
Posted (edited)

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:


$ repo sync

fatal: Not a git repository: '/home/paul/android/source/cm9/.repo/projects/bionic.git'

error: '/home/paul/android/source/cm9/.repo/repo/.git/clone.bundle' does not look like a v2 bundle file

fatal: Could not read bundle '/home/paul/android/source/cm9/.repo/repo/.git/clone.bundle'.

remote: Counting objects: 19, done

remote: Finding sources: 100% (14/14)

remote: Getting sizes: 100% (13/13)

remote: Total 14 (delta 2), reused 14 (delta 2)

Unpacking objects: 100% (14/14), done.

From https://gerrit.googlesource.com/git-repo

   bb1b5f5..34acdd2  master	 -> origin/master

Fetching projects:  56% (143/255)  fatal: Not a git repository: '/home/paul/android/source/cm9/.repo/projects/bionic.git'

Fetching projects:  59% (151/255)  remote: Counting objects: 76, done.

remote: Compressing objects: 100% (19/19), done.

remote: Total 36 (delta 15), reused 28 (delta 8)

Unpacking objects: 100% (36/36), done.

From git://github.com/CyanogenMod/android_frameworks_base

   eb8fb6f..b86f3a8  gingerbread -> github/gingerbread

   9ddec99..c421aca  jellybean  -> github/jellybean

Fetching projects:  69% (176/255)  remote: Counting objects: 9, done.

remote: Compressing objects: 100% (1/1), done.

remote: Total 5 (delta 3), reused 5 (delta 3)

Unpacking objects: 100% (5/5), done.

From git://github.com/CyanogenMod/android_packages_apps_CMWallpapers

   8467503..5ba50bf  gingerbread -> github/gingerbread

Fetching projects:  70% (179/255)  remote: Counting objects: 11, done.

remote: Compressing objects: 100% (4/4), done.

remote: Total 6 (delta 4), reused 4 (delta 2)

Unpacking objects: 100% (6/6), done.

From git://github.com/CyanogenMod/android_packages_apps_Calendar

   1257959..3adce6c  gingerbread -> github/gingerbread

Fetching projects:  71% (182/255)  remote: Counting objects: 9, done.

remote: Compressing objects: 100% (2/2), done.

remote: Total 5 (delta 3), reused 4 (delta 2)

Unpacking objects: 100% (5/5), done.

From git://github.com/CyanogenMod/android_packages_apps_Camera

   52e58ad..434f877  gingerbread -> github/gingerbread

remote: Counting objects: 10, done.

remote: Compressing objects: 100% (4/4), done.

remote: Counting objects: 14, done.

remote: Compressing objects: 100% (5/5), done.

remote: Total 6 (delta 2), reused 6 (delta 2)

Unpacking objects: 100% (6/6), done.

From git://github.com/CyanogenMod/android_packages_apps_DSPManager

   9126b88..a99535f  gingerbread -> github/gingerbread

Fetching projects:  72% (184/255)  remote: Total 10 (delta 6), reused 7 (delta 3)

Unpacking objects: 100% (10/10), done.

From git://github.com/CyanogenMod/android_packages_apps_DeskClock

   5fa9047..e9719f6  gingerbread -> github/gingerbread

Fetching projects:  74% (189/255)  remote: Counting objects: 15, done.

remote: Compressing objects: 100% (6/6), done.

remote: Total 9 (delta 5), reused 6 (delta 3)

Unpacking objects: 100% (9/9), done.

From git://github.com/CyanogenMod/android_packages_apps_Contacts

   3a8badf..59aa33b  gingerbread -> github/gingerbread

Fetching projects:  76% (194/255)  remote: Counting objects: 63, done.

remote: Compressing objects: 100% (20/20), done.

remote: Total 33 (delta 19), reused 21 (delta 7)

Unpacking objects: 100% (33/33), done.

From git://github.com/CyanogenMod/android_packages_apps_Mms

   4b39288..8950761  gingerbread -> github/gingerbread

   9db2645..ffca0e9  jellybean  -> github/jellybean

remote: Counting objects: 9, done.

remote: Compressing objects: 100% (1/1), done.

remote: Total 5 (delta 3), reused 5 (delta 3)

Unpacking objects: 100% (5/5), done.

From git://github.com/CyanogenMod/android_packages_apps_Music

   f28a302..c5fe06d  gingerbread -> github/gingerbread

Fetching projects:  78% (199/255)  remote: Counting objects: 27, done.

remote: Compressing objects: 100% (3/3), done.

remote: Total 13 (delta 8), reused 13 (delta 8)

Unpacking objects: 100% (13/13), done.

From git://github.com/CyanogenMod/android_packages_apps_Phone

   2bac08c..c4e0c3e  gingerbread -> github/gingerbread

   8bdac42..5a1fd4f  jellybean  -> github/jellybean

Fetching projects:  85% (217/255)  remote: Counting objects: 11, done.

remote: Compressing objects: 100% (4/4), done.

remote: Total 6 (delta 4), reused 4 (delta 2)

Unpacking objects: 100% (6/6), done.

From git://github.com/CyanogenMod/android_packages_apps_Settings

   2d58882..52d92d0  gingerbread -> github/gingerbread

Fetching projects:  99% (253/255)  error: Cannot fetch CyanogenMod/android_bionic

error: Exited sync due to fetch errors

Edit: after deleting bionic.git it works.

Edited by muhahahaah
Guest razzmataz1478
Posted


$ 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 :)

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

thanks, will use it in future.

getting this when lunching cm_skate-eng:


$ 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

CyanogenMod/android_device_zte_skate already exists

Syncing repository to retrieve project.

Fetching projects: 100% (1/1), done. 

Traceback (most recent call last):

  File "/home/paul/android/source/cm9/.repo/repo/main.py", line 385, in <module>

    _Main(sys.argv[1:])

  File "/home/paul/android/source/cm9/.repo/repo/main.py", line 365, in _Main

    result = repo._Run(argv) or 0

  File "/home/paul/android/source/cm9/.repo/repo/main.py", line 137, in _Run

    result = cmd.Execute(copts, cargs)

  File "/home/paul/android/source/cm9/.repo/repo/subcmds/sync.py", line 460, in Execute

    if self.UpdateProjectList():

  File "/home/paul/android/source/cm9/.repo/repo/subcmds/sync.py", line 314, in UpdateProjectList

    if project.IsDirty():

  File "/home/paul/android/source/cm9/.repo/repo/project.py", line 573, in IsDirty

    '--refresh')

  File "/home/paul/android/source/cm9/.repo/repo/project.py", line 1969, in runner

    p.stderr))

error.GitError: vendor/zte update-index: fatal: Not a git repository (or any parent up to mount parent )

Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).

Repository synced!

Looking for dependencies

Adding dependencies to manifest

CyanogenMod/zte-kernel-msm7x27 already exists

CyanogenMod/android_device_zte_msm7x27-common already exists

Syncing dependencies

Fetching projects: 100% (2/2), done. 

Traceback (most recent call last):

  File "/home/paul/android/source/cm9/.repo/repo/main.py", line 385, in <module>

    _Main(sys.argv[1:])

  File "/home/paul/android/source/cm9/.repo/repo/main.py", line 365, in _Main

    result = repo._Run(argv) or 0

  File "/home/paul/android/source/cm9/.repo/repo/main.py", line 137, in _Run

    result = cmd.Execute(copts, cargs)

  File "/home/paul/android/source/cm9/.repo/repo/subcmds/sync.py", line 460, in Execute

    if self.UpdateProjectList():

  File "/home/paul/android/source/cm9/.repo/repo/subcmds/sync.py", line 314, in UpdateProjectList

    if project.IsDirty():

  File "/home/paul/android/source/cm9/.repo/repo/project.py", line 573, in IsDirty

    '--refresh')

  File "/home/paul/android/source/cm9/.repo/repo/project.py", line 1969, in runner

    p.stderr))

error.GitError: vendor/zte update-index: fatal: Not a git repository (or any parent up to mount parent )

Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).

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?

Guest razzmataz1478
Posted

thanks, will use it in future.

getting this when lunching cm_skate-eng:


$ 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

CyanogenMod/android_device_zte_skate already exists

Syncing repository to retrieve project.

Fetching projects: 100% (1/1), done.

Traceback (most recent call last):

  File "/home/paul/android/source/cm9/.repo/repo/main.py", line 385, in <module>

	_Main(sys.argv[1:])

  File "/home/paul/android/source/cm9/.repo/repo/main.py", line 365, in _Main

	result = repo._Run(argv) or 0

  File "/home/paul/android/source/cm9/.repo/repo/main.py", line 137, in _Run

	result = cmd.Execute(copts, cargs)

  File "/home/paul/android/source/cm9/.repo/repo/subcmds/sync.py", line 460, in Execute

	if self.UpdateProjectList():

  File "/home/paul/android/source/cm9/.repo/repo/subcmds/sync.py", line 314, in UpdateProjectList

	if project.IsDirty():

  File "/home/paul/android/source/cm9/.repo/repo/project.py", line 573, in IsDirty

	'--refresh')

  File "/home/paul/android/source/cm9/.repo/repo/project.py", line 1969, in runner

	p.stderr))

error.GitError: vendor/zte update-index: fatal: Not a git repository (or any parent up to mount parent )

Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).

Repository synced!

Looking for dependencies

Adding dependencies to manifest

CyanogenMod/zte-kernel-msm7x27 already exists

CyanogenMod/android_device_zte_msm7x27-common already exists

Syncing dependencies

Fetching projects: 100% (2/2), done.

Traceback (most recent call last):

  File "/home/paul/android/source/cm9/.repo/repo/main.py", line 385, in <module>

	_Main(sys.argv[1:])

  File "/home/paul/android/source/cm9/.repo/repo/main.py", line 365, in _Main

	result = repo._Run(argv) or 0

  File "/home/paul/android/source/cm9/.repo/repo/main.py", line 137, in _Run

	result = cmd.Execute(copts, cargs)

  File "/home/paul/android/source/cm9/.repo/repo/subcmds/sync.py", line 460, in Execute

	if self.UpdateProjectList():

  File "/home/paul/android/source/cm9/.repo/repo/subcmds/sync.py", line 314, in UpdateProjectList

	if project.IsDirty():

  File "/home/paul/android/source/cm9/.repo/repo/project.py", line 573, in IsDirty

	'--refresh')

  File "/home/paul/android/source/cm9/.repo/repo/project.py", line 1969, in runner

	p.stderr))

error.GitError: vendor/zte update-index: fatal: Not a git repository (or any parent up to mount parent )

Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).

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?

Can you upload .repo/local_manifest.xml please?

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.