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

#41
Nofan Tasi

Nofan Tasi

    Regular

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

perhaps I changed a file and this must be cached somewhere because even after removal of tree and cloning it back, merging cannot be resolved.

I tried a few things like
git init ...
git reset ...
but I do not know well what I am doing (I do read the manpages) and it does not alter the conflict

have a nice day

  • 0

#42
Nofan Tasi

Nofan Tasi

    Regular

  • Members
  • PipPip
  • 147 posts
  • Gender:Male
  • Devices:G SII - M P4310 - M 99300
  • Twitter:@tasinofan
restart from scratch made build recipe work again

now that code freeze cm9 branch is made, do we need to adapt recipe ?

thanks!

  • 0

#43
razzmataz1478

razzmataz1478

    Hardcore

  • Members
  • PipPipPipPipPipPip
  • 2,215 posts
  • Gender:Male
  • Location:HULL
  • Interests:Flashing ROMs, Being distracted by my skate
  • Devices:ZTE Skate
Downloading CM10 source, anything that needs to be changed for it to compile? Patches etc..

  • 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


#44
Nofan Tasi

Nofan Tasi

    Regular

  • Members
  • PipPip
  • 147 posts
  • Gender:Male
  • Devices:G SII - M P4310 - M 99300
  • Twitter:@tasinofan
I am tempted to wait for CM9 release and get its build instructions then ;-)

  • 0

#45
razzmataz1478

razzmataz1478

    Hardcore

  • Members
  • PipPipPipPipPipPip
  • 2,215 posts
  • Gender:Male
  • Location:HULL
  • Interests:Flashing ROMs, Being distracted by my skate
  • Devices:ZTE Skate
I'm going to try to compile including the patches Konsta has on his guide. I'll let you know if it works.

Now I'm stuck, what kernel do I use? The same one as ICS, or Konsta's kernel?

Edited by razzmataz1478, 02 August 2012 - 05:00 PM.

  • 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


#46
razzmataz1478

razzmataz1478

    Hardcore

  • Members
  • PipPipPipPipPipPip
  • 2,215 posts
  • Gender:Male
  • Location:HULL
  • Interests:Flashing ROMs, Being distracted by my skate
  • Devices:ZTE Skate
I'm getting this error in the kernel when trying to compile:

Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
drivers/usb/gadget/Kconfig:849:warning: defaults for choice values not supported
drivers/usb/gadget/Kconfig:1053:warning: defaults for choice values not supported


  • 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


#47
tilal6991

tilal6991

    Hardcore

  • Developer Team
  • PipPipPipPipPipPip
  • 3,781 posts
  • Gender:Male
  • Devices:ZTE Skate, Huawei U8150
Those are warnings not errors

The errors will be further up.

  • 0
If you like my work or if I helped, click the Plus button.

#48
razzmataz1478

razzmataz1478

    Hardcore

  • Members
  • PipPipPipPipPipPip
  • 2,215 posts
  • Gender:Male
  • Location:HULL
  • Interests:Flashing ROMs, Being distracted by my skate
  • Devices:ZTE Skate
OK I'll compile again and the errors...

  • 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


#49
razzmataz1478

razzmataz1478

    Hardcore

  • Members
  • PipPipPipPipPipPip
  • 2,215 posts
  • Gender:Male
  • Location:HULL
  • Interests:Flashing ROMs, Being distracted by my skate
  • Devices:ZTE Skate
It won't even start compiling now..

external/v8/Android.mk:22: WARNING: Building on ARM with non-ARMv7 variant. On ARM, V8 is well tested only on ARMv7.
find: ‘src’: No such file or directory
PRODUCT_COPY_FILES vendor/zte/skate/proprietary/etc/init.qcom.bt.sh:system/etc/init.qcom.bt.sh ignored.
build/core/Makefile:38: warning: overriding commands for target `out/target/product/skate/system/bin/hciattach'
build/core/base_rules.mk:529: warning: ignoring old commands for target `out/target/product/skate/system/bin/hciattach'
PRODUCT_COPY_FILES frameworks/native/data/etc/android.software.sip.voip.xml:system/etc/permissions/android.software.sip.voip.xml ignored.
build/core/Makefile:38: warning: overriding commands for target `out/target/product/skate/system/etc/mkshrc'
build/core/base_rules.mk:529: warning: ignoring old commands for target `out/target/product/skate/system/etc/mkshrc'
No private recovery resources for TARGET_DEVICE skate
host Executable: mkbootimg (out/host/linux-x86/obj/EXECUTABLES/mkbootimg_intermediates/mkbootimg)
host Executable: acp (out/host/linux-x86/obj/EXECUTABLES/acp_intermediates/acp)
make -C kernel/zte/zte-kernel-msm7x27 O=/home/razzmataz1478/skate/cm10/out/target/product/skate/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE=" /home/razzmataz1478/skate/cm10/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/bin/arm-eabi-" cyanogen_skate_defconfig
make[1]: Entering directory `/home/razzmataz1478/skate/cm10/kernel/zte/zte-kernel-msm7x27'
target thumb C: libc_common <= bionic/libc/bionic/semaphore.c
true
target thumb C: libc_common <= bionic/libc/bionic/tdelete.c
true
target thumb C: libc_common <= bionic/libc/bionic/tdestroy.c
In file included from bionic/libc/private/bionic_atomic_inline.h:53:0,
				 from bionic/libc/bionic/semaphore.c:33:
bionic/libc/private/bionic_atomic_arm.h:54:4: warning: #warning Rebuilding this source file in ARM mode is highly recommended for performance!! [-Wcpp]
In file included from bionic/libc/private/bionic_atomic_inline.h:53:0,
				 from bionic/libc/bionic/semaphore.c:33:
bionic/libc/private/bionic_atomic_arm.h: In function '__sem_dec':
bionic/libc/private/bionic_atomic_arm.h:144:9: error: unknown register name 'r3cc' in 'asm'
bionic/libc/private/bionic_atomic_arm.h: In function '__sem_trydec':
bionic/libc/private/bionic_atomic_arm.h:144:9: error: unknown register name 'r3cc' in 'asm'
bionic/libc/private/bionic_atomic_arm.h: In function 'sem_post':
bionic/libc/private/bionic_atomic_arm.h:144:9: error: unknown register name 'r3cc' in 'asm'
make: *** [out/target/product/skate/obj/STATIC_LIBRARIES/libc_common_intermediates/bionic/semaphore.o] Error 1
make: *** Waiting for unfinished jobs....
  GEN	 /home/razzmataz1478/skate/cm10/out/target/product/skate/obj/KERNEL_OBJ/Makefile
drivers/usb/gadget/Kconfig:849:warning: defaults for choice values not supported
drivers/usb/gadget/Kconfig:1053:warning: defaults for choice values not supported
#
# configuration written to .config
#


  • 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


#50
razzmataz1478

razzmataz1478

    Hardcore

  • Members
  • PipPipPipPipPipPip
  • 2,215 posts
  • Gender:Male
  • Location:HULL
  • Interests:Flashing ROMs, Being distracted by my skate
  • Devices:ZTE Skate
Done make clean and it seems to be building now...

Here's the error:

In file included from bionic/libc/private/bionic_atomic_inline.h:53:0,
				 from bionic/libstdc++/src/one_time_construction.cpp:15:
bionic/libc/private/bionic_atomic_arm.h:54:4: warning: #warning Rebuilding this source file in ARM mode is highly recommended for performance!! [-Wcpp]
target thumb C++: libstdc++ <= bionic/libstdc++/src/new.cpp
bionic/libc/private/bionic_atomic_arm.h: In function 'int __cxa_guard_acquire(_guard_t*)':
bionic/libc/private/bionic_atomic_arm.h:156:38: error: unknown register name 'r3cc' in 'asm'
bionic/libc/private/bionic_atomic_arm.h:156:38: error: unknown register name 'r3cc' in 'asm'
bionic/libc/private/bionic_atomic_arm.h: In function 'void __cxa_guard_release(_guard_t*)':
bionic/libc/private/bionic_atomic_arm.h:156:38: error: unknown register name 'r3cc' in 'asm'
make: *** [out/target/product/skate/obj/SHARED_LIBRARIES/libstdc++_intermediates/src/one_time_construction.o] Error 1
make: *** Waiting for unfinished jobs....
  GEN	 /home/razzmataz1478/skate/cm10/out/target/product/skate/obj/KERNEL_OBJ/Makefile
  HOSTCC  scripts/basic/hash
  HOSTCC  scripts/kconfig/conf.o
  HOSTCC  scripts/kconfig/kxgettext.o
  SHIPPED scripts/kconfig/zconf.tab.c
  SHIPPED scripts/kconfig/lex.zconf.c
  SHIPPED scripts/kconfig/zconf.hash.c
  HOSTCC  scripts/kconfig/zconf.tab.o
  HOSTLD  scripts/kconfig/conf
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
drivers/usb/gadget/Kconfig:849:warning: defaults for choice values not supported
drivers/usb/gadget/Kconfig:1053:warning: defaults for choice values not supported
#
# configuration written to .config



This is a few minutes into the build on my Ubuntu 12 VM allocated with 3 3GHz cores and 5GB ram

Edited by razzmataz1478, 03 August 2012 - 03:45 PM.

  • 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


#51
tilal6991

tilal6991

    Hardcore

  • Developer Team
  • PipPipPipPipPipPip
  • 3,781 posts
  • Gender:Male
  • Devices:ZTE Skate, Huawei U8150
See the patches on KonstaT's thread's second post

  • 0
If you like my work or if I helped, click the Plus button.

#52
razzmataz1478

razzmataz1478

    Hardcore

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

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


Thanks compiling now and no errors so far..

  • 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


#53
razzmataz1478

razzmataz1478

    Hardcore

  • Members
  • PipPipPipPipPipPip
  • 2,215 posts
  • Gender:Male
  • Location:HULL
  • Interests:Flashing ROMs, Being distracted by my skate
  • Devices:ZTE Skate
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$


  • 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


#54
C3C0

C3C0

    Hardcore

  • Members
  • PipPipPipPipPipPip
  • 3,179 posts
  • Gender:Male
  • Location:Slovakia (Bratislava)
  • Devices:Nexus 5

  • 1
Links to my stuff: SlimBean (Android 4.2.2), RootBox (CM/AOKP/PA mix 4.2.2), ParanoidJelly2 (AOSPA 4.2.2), ParanoidJelly (JB), ParanoidAndroid (ICS), MokeeOS (GB), CM7.2 (GB), SKatie (GB), SwedishSnow (GB), Kernels
If you like my contribution to Android community, click donate button on my page at: http://ceco.sk.eu.org
Please, do not use personal conversation to solve your problems. Use forum - its power is often underestimated. If I can't help somebody else will certainly try to. Thanks.

#55
razzmataz1478

razzmataz1478

    Hardcore

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

  • 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


#56
razzmataz1478

razzmataz1478

    Hardcore

  • Members
  • PipPipPipPipPipPip
  • 2,215 posts
  • Gender:Male
  • Location:HULL
  • Interests:Flashing ROMs, Being distracted by my skate
  • Devices:ZTE Skate
Does editing the make file tell it to ignore the warning when compiling, essentially?

  • 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


#57
razzmataz1478

razzmataz1478

    Hardcore

  • Members
  • PipPipPipPipPipPip
  • 2,215 posts
  • Gender:Male
  • Location:HULL
  • Interests:Flashing ROMs, Being distracted by my skate
  • Devices:ZTE Skate
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.

  • 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


#58
C3C0

C3C0

    Hardcore

  • Members
  • PipPipPipPipPipPip
  • 3,179 posts
  • Gender:Male
  • Location:Slovakia (Bratislava)
  • Devices:Nexus 5
It tells the compiler not to treat array-bounds warnings as errors.

  • 0
Links to my stuff: SlimBean (Android 4.2.2), RootBox (CM/AOKP/PA mix 4.2.2), ParanoidJelly2 (AOSPA 4.2.2), ParanoidJelly (JB), ParanoidAndroid (ICS), MokeeOS (GB), CM7.2 (GB), SKatie (GB), SwedishSnow (GB), Kernels
If you like my contribution to Android community, click donate button on my page at: http://ceco.sk.eu.org
Please, do not use personal conversation to solve your problems. Use forum - its power is often underestimated. If I can't help somebody else will certainly try to. Thanks.

#59
Nofan Tasi

Nofan Tasi

    Regular

  • Members
  • PipPip
  • 147 posts
  • Gender:Male
  • Devices:G SII - M P4310 - M 99300
  • Twitter:@tasinofan
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

  • 0

#60
razzmataz1478

razzmataz1478

    Hardcore

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

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

  • 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





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users