Jump to content


Photo

Compiling CM9 (and maybe CM10) for Blade

* * * * * 7 votes

  • Please log in to reply
797 replies to this topic

#741
sej7278

sej7278

    Hardcore

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

When compiling with v6 you only need one hack along with my patch on Gerrit. I'll edit this post in a few minutes with it.


i saw this patch of yours on gerrit (full of whitespace errors argh!) :D what's the other one?

none of our blade, blade2 or skate device trees look much different (mostly cm9 plus the ALOG fixes etc.) so not sure what's my problem.

Edited by sej7278, 13 July 2012 - 04:48 PM.

  • 0

#742
tilal6991

tilal6991

    Hardcore

  • Developer Team
  • PipPipPipPipPipPip
  • 3,781 posts
  • Gender:Male
  • Devices:ZTE Skate, Huawei U8150
That patch and add #undef __ARM_HAVE_LDREX_STREX above line 138 of bionic/libc/private/bionic_atomic_arm.h

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

#743
sej7278

sej7278

    Hardcore

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

That patch and add #undef __ARM_HAVE_LDREX_STREX above line 138 of bionic/libc/private/bionic_atomic_arm.h


ah that seems to be doing it, where do you find this info?

stuck at audioinwrapper.cpp now :(

external/srec/audio/AudioIn/UNIX/src/audioinwrapper.cpp: In function 'int AudioSetVolume(int, int)':
external/srec/audio/AudioIn/UNIX/src/audioinwrapper.cpp:155:61: error: invalid conversion from 'int' to 'audio_stream_type_t' [-fpermissive]
frameworks/av/include/media/AudioSystem.h:58:21: error:   initializing argument 1 of 'static android::status_t android::AudioSystem::setStreamVolume(audio_stream_type_t, float, audio_io_handle_t)' [-fpermissive]
external/srec/audio/AudioIn/UNIX/src/audioinwrapper.cpp: In function 'int AudioGetVolume(int)':
external/srec/audio/AudioIn/UNIX/src/audioinwrapper.cpp:165:50: error: invalid conversion from 'int' to 'audio_stream_type_t' [-fpermissive]
frameworks/av/include/media/AudioSystem.h:60:21: error:   initializing argument 1 of 'static android::status_t android::AudioSystem::getStreamVolume(audio_stream_type_t, float*, audio_io_handle_t)' [-fpermissive]
make: *** [out/target/product/blade/obj/SHARED_LIBRARIES/libSR_AudioIn_intermediates/audioinwrapper.o] Error 1

your dalvik patch with the whitespace fixed (no-op's with trailing spaces): Attached File  dalvik.patch.zip   96.63KB   20 downloads

Edited by sej7278, 13 July 2012 - 05:09 PM.

  • 0

#744
tilal6991

tilal6991

    Hardcore

  • Developer Team
  • PipPipPipPipPipPip
  • 3,781 posts
  • Gender:Male
  • Devices:ZTE Skate, Huawei U8150

ah that seems to be doing it, where do you find this info?

stuck at audioinwrapper.cpp now :(

external/srec/audio/AudioIn/UNIX/src/audioinwrapper.cpp: In function 'int AudioSetVolume(int, int)':
external/srec/audio/AudioIn/UNIX/src/audioinwrapper.cpp:155:61: error: invalid conversion from 'int' to 'audio_stream_type_t' [-fpermissive]
frameworks/av/include/media/AudioSystem.h:58:21: error:   initializing argument 1 of 'static android::status_t android::AudioSystem::setStreamVolume(audio_stream_type_t, float, audio_io_handle_t)' [-fpermissive]
external/srec/audio/AudioIn/UNIX/src/audioinwrapper.cpp: In function 'int AudioGetVolume(int)':
external/srec/audio/AudioIn/UNIX/src/audioinwrapper.cpp:165:50: error: invalid conversion from 'int' to 'audio_stream_type_t' [-fpermissive]
frameworks/av/include/media/AudioSystem.h:60:21: error:   initializing argument 1 of 'static android::status_t android::AudioSystem::getStreamVolume(audio_stream_type_t, float*, audio_io_handle_t)' [-fpermissive]
make: *** [out/target/product/blade/obj/SHARED_LIBRARIES/libSR_AudioIn_intermediates/audioinwrapper.o] Error 1

your dalvik patch with the whitespace fixed (no-op's with trailing spaces): Attached File  dalvik.patch.zip   96.63KB   20 downloads


I make it up lol :P.

libSRaudio needs to be disabled until our audio drivers support it.

As for the whitespace - I didn't produce the asm output. It was generated by python script which is the cause of the whitespaces.

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

#745
KonstaT

KonstaT

    Hardcore

  • Developer Team
  • PipPipPipPipPipPip
  • 2,598 posts
  • Gender:Male
  • Location:Finland
  • Devices:Moto G, ZTE Open C
  • Twitter:@konstatuomio

That patch and add #undef __ARM_HAVE_LDREX_STREX above line 138 of bionic/libc/private/bionic_atomic_arm.h

I ended up removing the insulting half of the ifdeffage, but this might be more elegant. ;)

I make it up lol :P.

libSRaudio needs to be disabled until our audio drivers support it.

Well, the compiler tells you exactly where the problem is so you don't have to make it all up from the top of your head.

There's bunch of stuff that needs to be disabled for now. libSRaudio, libaac/libFraunhoferAAC -> AACenc bits in libstagefright etc. Have you found any solutions to these?. Doesn't seem to affect too much though since audio is one the very few things I have working at the moment. :P

  • 0

#746
sej7278

sej7278

    Hardcore

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

There's bunch of stuff that needs to be disabled for now. libSRaudio, libaac/libFraunhoferAAC -> AACenc bits in libstagefright etc. Have you found any solutions to these?. Doesn't seem to affect too much though since audio is one the very few things I have working at the moment. :P


lol, yeah there's a massive amount that doesn't seem to be anywhere near working - add iptables to that list. i'm giving up for now as most of the bugs (well unported code i guess) are outside our device/vendor trees.

are cyanogenmod actually starting from scratch with cm10 rather than basing it on cm9, as it seems like there would be a fair bit of work involved in porting all the cm9 fixes into the jellybean aosp code, possibly more than porting the aosp code into cm9 to make cm10.

  • 0

#747
Hayden3430

Hayden3430

    Enthusiast

  • Members
  • PipPipPip
  • 227 posts
  • Devices:ZTE Blade
I feel so privileged to be a Blade user knowing that we have developers like you guys, Thanks.

  • 0

#748
ufizo

ufizo

    Enthusiast

  • Members
  • PipPipPip
  • 222 posts
  • Gender:Male
  • Location:Roorkee, India
  • Devices:DELL XCD35
  • Twitter:@ufiz0

are cyanogenmod actually starting from scratch with cm10 rather than basing it on cm9, as it seems like there would be a fair bit of work involved in porting all the cm9 fixes into the jellybean aosp code, possibly more than porting the aosp code into cm9 to make cm10.


While Jelly Bean won't require a major rewrite of all the CM features, the source has been re-arranged and re-factored enough that a simple merge isn't possible. So we will proceed with manual merging (this was to be expected really).

The plan of attack will be to cherry-pick everything from CM9 and fix the merge conflicts and relocations. It’s tedious but the only way.



https://plus.google....sts/BMQiaHhSMte

  • 1

#749
TheWhisp

TheWhisp

    Newbie

  • Members
  • Pip
  • 15 posts
  • Gender:Male
  • Devices:GT-S6500D
Hi!

How do I disable libSRaudio?
And I'm getting bunch of errors regarding export_includes and always with librpc_intermediates


make: *** No rule to make target `out/target/product/tass/obj/SHARED_LIBRARIES/librpc_intermediates/export_includes', needed by `out/target/product/tass/obj/STATIC_LIBRARIES/libloc_api-rpc_intermediates/import_includes'.  Stop.

Any ideas?

  • 0

#750
emajar

emajar

    Newbie

  • Members
  • Pip
  • 40 posts
  • Gender:Male
  • Location:Nairobi,Kenya
  • Devices:ZTE Blade
  • Twitter:@emajar27

I feel so privileged to be a Blade user knowing that we have developers like you guys, Thanks.


+1

Lovely work going on here!

  • 0

#751
sej7278

sej7278

    Hardcore

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

Hi!

How do I disable libSRaudio?
And I'm getting bunch of errors regarding export_includes and always with librpc_intermediates


make: *** No rule to make target `out/target/product/tass/obj/SHARED_LIBRARIES/librpc_intermediates/export_includes', needed by `out/target/product/tass/obj/STATIC_LIBRARIES/libloc_api-rpc_intermediates/import_includes'.  Stop.

Any ideas?


i guess just commenting out the "include $(BUILD_SHARED_LIBRARY)" line in external/srec/audio/AudioIn/UNIX/src/Android.mk ?

i still can't get anywhere near a finished compile, even with disabling half the fscking makefiles i die after 5mins lol, my main problem seems to be AudioPolicyManager.h in the blade device tree

Edited by sej7278, 15 July 2012 - 09:30 AM.

  • 0

#752
KonstaT

KonstaT

    Hardcore

  • Developer Team
  • PipPipPipPipPipPip
  • 2,598 posts
  • Gender:Male
  • Location:Finland
  • Devices:Moto G, ZTE Open C
  • Twitter:@konstatuomio

i still can't get anywhere near a finished compile, even with disabling half the fscking makefiles i die after 5mins lol, my main problem seems to be AudioPolicyManager.h in the blade device tree

Most of the device specific stuff (audio, sensors, lights) is fixed in my github, only camera to go (probably won't be as easy).

Edit. libcamera compiles now too, but I run into the most unexpected issue. Makefiles and AndroidManifest.xml for the Camera.apk are missing for Jelly Bean - even from AOSP. WTF Google? :o

Edit2. Apparently camera is now somehow merged into gallery, still can't find it though.

  • 2

#753
sej7278

sej7278

    Hardcore

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

Most of the device specific stuff (audio, sensors, lights) is fixed in my github, only camera to go (probably won't be as easy).


i've poached a few of your patches, and seem to be getting further (still stuck with stagefright/aac problems) what helped a lot was going through the main code and fixing that before worrying about device-specifics. i can't understand why they didn't just fix all the ALOG{E/V/D/I/W} stuff in one commit.

instructions so far:

apply dalvik patch

add #undef __ARM_HAVE_LDREX_STREX before #ifdef __ARM_HAVE_LDREX_STREX in bionic/libc/private/bionic_atomic_arm.h

comment out external/aac/Android.mk, external/srec/audio/AudioIn/UNIX/src/Android.mk and hardware/msm7k/libstagefrighthw/Android.mk

delete the 6 lines between the braces in hardware/qcom/display/liboverlay/mdpWrapper.h
inline void dump(const char* const s, const msm_rotator_data_info& rot) {....}

  • 0

#754
Felsch

Felsch

    Regular

  • Members
  • PipPip
  • 97 posts
  • Gender:Male
  • Devices:Y300, Nexus 7(2013)
  • Twitter:@_ravir
*follows guide on first page*

-downloading, all check
-almost everything else, all check.

Java version in my fedora-vm, 1.7.0...<- ... badword... now I has to get 1.6.0 which seems a pain to install... well let's try ubuntu(less of a pain to install jdk 1.6.0), and cry for all bandwidth I used.

Nice guide sej, just that small little problem ><(which I can solve :D).

One thing I do have a question of: on the android site(http://source.androi...itializing.html) it states that it needs a 64-bit cpu enviroment, is that true or can it get compiled on 32-bit(as I made the fedora-vm 32bit :/) ?

Edited by Felsch, 15 July 2012 - 07:58 PM.

  • 0

#755
Ganster

Ganster

    Regular

  • Members
  • PipPip
  • 92 posts
  • Gender:Male
  • Location:Ukraine
  • Devices:Orange San Francisco
  • Twitter:@Ganster41
Not important, I normally compiled CM9 on Ubuntu x86.

  • 0

#756
C3C0

C3C0

    Hardcore

  • Members
  • PipPipPipPipPipPip
  • 3,179 posts
  • Gender:Male
  • Location:Slovakia (Bratislava)
  • Devices:Nexus 5
@sej
libstagefright: comment out lib for aac encoder in framework/av/media/libstagefright/android.mk
For msm rotator just comment out body of inline dump function in header file that's causing problem.
These are just for logging purposes.

  • 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.

#757
sej7278

sej7278

    Hardcore

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

@sej
libstagefright: comment out lib for aac encoder in framework/av/media/libstagefright/android.mk
For msm rotator just comment out body of inline dump function in header file that's causing problem.
These are just for logging purposes.


thanks for the aac fix, seems to be compiling away now.

edit: still getting aac problems.

Edited by sej7278, 16 July 2012 - 08:29 AM.

  • 0

#758
Ganster

Ganster

    Regular

  • Members
  • PipPip
  • 92 posts
  • Gender:Male
  • Location:Ukraine
  • Devices:Orange San Francisco
  • Twitter:@Ganster41
Why we can't use libstagefright(all or partially) from GB tree? As I see, problems with unimplemented functions are in codec initialization functions. May be port this functions from GB is easier than implementing missed functions to QC_OMX(it's written on C++, and it hard to reverse-engineering)? Yes, it's hard, but possible...I think. :)

  • 0

#759
C3C0

C3C0

    Hardcore

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

thanks for the aac fix, seems to be compiling away now.

edit: still getting aac problems.


Looking at my changes now and this is what I did:
1) removed libstagefright_aacenc from frameworks/av/media/libstagefright/Android.mk
2) deleted codecs/aacdec/Android.mk and codecs/aacenc/Android.mk
3) deleted external/aac

Edited by C3C0, 16 July 2012 - 11:59 AM.

  • 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.

#760
sej7278

sej7278

    Hardcore

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

Looking at my changes now and this is what I did:
1) removed libstagefright_aacenc from frameworks/av/media/libstagefright/Android.mk
2) deleted codecs/aacdec/Android.mk and codecs/aacenc/Android.mk
3) deleted external/aac


that seems to have fixed it, had to pull in burstlams (well, teamics's) gcc 4.5 kernel fixes, not sure why i never saw that on cm9 though.

does github have an easy web-interface way of cherry-picking commits into your repo, rather than having to fork, branch, checkout and merge via the cli, there must be an easy way to do it and keep history; i think i'm over-complicating it.

  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users