• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

CyanogenMod 9 Development

Search This thread
Apr 19, 2012
32
135
I'm working on porting CM9 to HTC One X. I've made a lot of progress but there are still issues. I wanted to get the source out as soon as possible to get more people working on it.

See the wiki for more information.

Status

Working:

  • Radio (calls and 3G)
  • Audio
  • Hardware Acceleration
  • WiFi
  • Bluetooth
  • GPS
  • NFC
  • Camera
  • FM Radio
  • Echo/In call volume fixed
  • Wifi Tethering

Issues/TODO list:

  • Wifi Direct
  • Blank screen on rotation
  • Data connection occasionally fails
  • Camera focusing on face issue

Nightly Builds

Thanks to jangrewe for providing the nightly builds.

Downloads: http://mirror.faked.org/cm9/
Jenkins: http://faked.org/jenkins

Reporting issues

https://github.com/intermediaterepresentation/android_device_htc_endeavor/issues

Flashing ROM

Using CWM you can flash the ROM.

The kernel must be flashed manually unless you have S-OFF:

Extract the zip file.

Code:
fastboot flash boot boot.img

Building

Add the following to your .repo/local_manifest.xml:

Code:
<project name="intermediaterepresentation/android_hardware_ti_wlan" path="hardware/ti/wlan" remote="github" revision="p-ics-mr1-release"/>
<project name="intermediaterepresentation/android_kernel_htc_endeavor" path="kernel/htc/endeavor" remote="github" revision="master" />
<project name="intermediaterepresentation/android_device_htc_endeavor" path="device/htc/endeavoru" remote="github" revision="master" />

Sync code.

Code:
repo sync

And compile:

Code:
add_lunch_combo cm_endeavoru-userdebug
lunch cm_endeavoru-userdebug
(cd device/htc/endeavoru && ./extract_files.sh)
make -j4 otapackage

Contributions

Please send me pull requests on GitHub if you want to contribute.

Sources

Device Configuration - https://github.com/intermediaterepresentation/android_device_htc_endeavor
Kernel - https://github.com/intermediaterepresentation/android_kernel_htc_endeavor

Change Log

5/19/2012 - Initial import of project
5/20/2012 - Bluetooth support added
5/20/2012 - GPS added
5/21/2012 - NFC added
5/28/2012 - Add build links
5/28/2012 - Auto brightness, ICS switcher for hardware key, and more (thanks gorbi) - https://github.com/intermediaterepresentation/android_device_htc_endeavor/pull/1
5/28/2012 - Camera is now working!
5/30/2012 -
akaspin - fix bug with editing custom backlight levels
tgascoigne - fix usb mass storage
gorbi - fix for chrome. system tweaks.
6/26/2012 - Update changelog and add wiki link
 
Last edited:

endursa

Senior Member
Dec 26, 2008
955
311
Linz
Good to see that someone who actually shares the open source work works on cm9 now! The guy over at modaco seems like a bit of a douche, cause he insist on not sharing his repo and as I think this shouldn't be supported because open source is about open source!

Keep up the work, I hope you can fix at least the heavy bugs like mobile connection so you can post a build :)

Sent from my HTC One X using XDA Premium HD app
 

empyyy

Member
Feb 3, 2012
41
5
Code:
error: revision refs/heads/ics in intermediaterepresentation/android_device_htc_endeavor not found
When syncing my repo.

Edit:
I fixed it by changing
Code:
<project name="intermediaterepresentation/android_hardware_ti_wlan" path="hardware/ti/wlan-omapzoom" remote="github" revision="p-ics-mr1-release"/>
<project name="intermediaterepresentation/android_kernel_htc_endeavor" path="kernel/htc/endeavor" remote="github" />
<project name="intermediaterepresentation/android_device_htc_endeavor" path="device/htc/endeavor" remote="github" />
to
Code:
<project name="intermediaterepresentation/android_hardware_ti_wlan" path="hardware/ti/wlan-omapzoom" remote="github" revision="p-ics-mr1-release"/>
<project name="intermediaterepresentation/android_kernel_htc_endeavor" path="kernel/htc/endeavor" remote="github" [COLOR="red"]revision="master"[/COLOR]/>
<project name="intermediaterepresentation/android_device_htc_endeavor" path="device/htc/endeavor" remote="github" [COLOR="Red"]revision="master"[/COLOR]/>

Edit 2:
Next error:
Code:
fh-mac:cm9 fh$ lunch cm_endeavor-userdebug
Looking for dependencies
Traceback (most recent call last):
  File "build/tools/roomservice.py", line 150, in <module>
    fetch_dependencies(repo_path)
  File "build/tools/roomservice.py", line 127, in fetch_dependencies
    dependencies = json.loads(dependencies_file.read())
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/__init__.py", line 326, in loads
    return _default_decoder.decode(s)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py", line 360, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py", line 378, in raw_decode
    raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded

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

F4M0U569

Senior Member
Dec 10, 2011
574
142
Good to see that someone who actually shares the open source work works on cm9 now! The guy over at modaco seems like a bit of a douche, cause he insist on not sharing his repo and as I think this shouldn't be supported because open source is about open source!

Keep up the work, I hope you can fix at least the heavy bugs like mobile connection so you can post a build :)

Sent from my HTC One X using XDA Premium HD app

It is his choice, so get over it. Just be glad he is sharing his ROM with the community for free. He doesn't owe us anything. Seriously, you people are ungrateful brats
 
  • Like
Reactions: Fokas.
Apr 19, 2012
32
135
Sorry about that...looks like my cm.dependencies was empty. I put an empty JSON object in there and all is good. repo sync or pull the changes from android_device_htc_endeavor and lunch should work.

Edit 2:
Next error:
Code:
fh-mac:cm9 fh$ lunch cm_endeavor-userdebug
Looking for dependencies
Traceback (most recent call last):
  File "build/tools/roomservice.py", line 150, in <module>
    fetch_dependencies(repo_path)
  File "build/tools/roomservice.py", line 127, in fetch_dependencies
    dependencies = json.loads(dependencies_file.read())
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/__init__.py", line 326, in loads
    return _default_decoder.decode(s)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py", line 360, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py", line 378, in raw_decode
    raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded

** Don't have a product spec for: 'cm_endeavor'
** Do you have the right repo manifest?
 
  • Like
Reactions: empyyy

Planet X

Senior Member
May 10, 2008
1,471
504
Amersfoort
I am so happy that you have stated this. I really miss cm9 since I sold my GN. And the nightly hours of compiling for myself... Lets hope that some geniuses will help you to get it running soon. CM9 is open and has to stay open. Otherwise he uses the wrong name for the ROM.
 

empyyy

Member
Feb 3, 2012
41
5
Next one...
Code:
fh-mac:cm9 fh$ make -j4 otapackage
============================================
<...>
============================================
build/core/base_rules.mk:166: *** hardware/ti/wlan/mac80211/config: MODULE.TARGET.ETC.wpa_supplicant.conf already defined by external/wpa_supplicant_8/wpa_supplicant.  Stop.
 

Goku80

Senior Member
Mar 18, 2012
10,015
6,790
Within the Matrix
I am so happy that you have stated this. I really miss cm9 since I sold my GN. And the nightly hours of compiling for myself... Lets hope that some geniuses will help you to get it running soon. CM9 is open and has to stay open. Otherwise he uses the wrong name for the ROM.

exactly...same goes for other devs here as well which use normal HTC builds. they create something awesome, devs asks permission from the creators if they can use their tweaks or mods in their roms and like the divas they are most of the times they say no..so tell me what is open source then. same goes for the guy who is compiling the cm9 Trip whatever his name is...android is open. and if by doing the right procedure and giving the right credits people should be helping each other out to make the community better..not worse by acting like little divas.

@OP ask a mod if you can move this thread in development cause you guys are compiling a build from source so it makes more sense if it was there instead of general..you do not lose anything by asking.. i wish you all the best cause cm9 is by far the best ICS i tried
 

chriscpritchard

Senior Member
Sep 29, 2009
73
15
It is his choice, so get over it. Just be glad he is sharing his ROM with the community for free. He doesn't owe us anything. Seriously, you people are ungrateful brats

No, he doesn't owe us anything, but he has said things on the modaco thread that I dislike, whilst it is nice that he has released it to the community, he has not acknowledged that he is only modifying the work of other people, it is not just his work and so his attitude doesn't seem brilliant. He isn't selling his work, so releasing the source code wouldn't be detrimental to him and would help many people.
 
Apr 19, 2012
32
135
Next one...
Code:
fh-mac:cm9 fh$ make -j4 otapackage
============================================
<...>
============================================
build/core/base_rules.mk:166: *** hardware/ti/wlan/mac80211/config: MODULE.TARGET.ETC.wpa_supplicant.conf already defined by external/wpa_supplicant_8/wpa_supplicant.  Stop.

Let's try changing this in local_manifest.xml:

Code:
<project name="intermediaterepresentation/android_hardware_ti_wlan" path="hardware/ti/wlan-omapzoom" remote="github" revision="p-ics-mr1-release"/>

to

Code:
<project name="intermediaterepresentation/android_hardware_ti_wlan" path="hardware/ti/wlan" remote="github" revision="p-ics-mr1-release"/>

Remove the old one hardware/ti/wlan-omapzoom.

Code:
rm -rf hardware/ti/wlan-omapzoom

Now sync and you'll get hardware/ti/wlan updated and also I just changed something in device/htc/endeavor too.

See if that works.
 

empyyy

Member
Feb 3, 2012
41
5

It works now and starts building, however, I'm getting the following error now:
Code:
external/zlib/x86/adler32.c: In function ‘adler32_MMX’:
external/zlib/x86/adler32.c:747: error: can't find a register in class ‘GENERAL_REGS’ while reloading ‘asm’
external/zlib/x86/adler32.c:747: error: ‘asm’ operand has impossible constraints
make: *** [out/host/darwin-x86/obj/STATIC_LIBRARIES/libz_intermediates/adler32.o] Error 1

I think it has to do something with Mac OS...
 
Apr 19, 2012
32
135
It works now and starts building, however, I'm getting the following error now:
Code:
external/zlib/x86/adler32.c: In function ‘adler32_MMX’:
external/zlib/x86/adler32.c:747: error: can't find a register in class ‘GENERAL_REGS’ while reloading ‘asm’
external/zlib/x86/adler32.c:747: error: ‘asm’ operand has impossible constraints
make: *** [out/host/darwin-x86/obj/STATIC_LIBRARIES/libz_intermediates/adler32.o] Error 1

I think it has to do something with Mac OS...

Yeah it probably does. I am on Mac but I do my building on an Ubuntu VM. You can get VirtualBox for free if you need some VM software.
 

jangrewe

Senior Member
Jun 20, 2008
64
41
40
Berlin
faked.org
Hi, thanks a lot for sharing your sources!

I'm currently trying to build them, but the extract_files.sh already gives me a lot of missing objects - i'm trying to copy them off of a phone that's running an old build by TripNRaver.

here's the output: http://pastebin.com/vGS5gZq7

Is that "bad"? Should i go back to stock and try to copy them then?
 
Apr 19, 2012
32
135
Hi, thanks a lot for sharing your sources!

I'm currently trying to build them, but the extract_files.sh already gives me a lot of missing objects - i'm trying to copy them off of a phone that's running an old build by TripNRaver.

here's the output: http://pastebin.com/vGS5gZq7

Is that "bad"? Should i go back to stock and try to copy them then?

Yeah run against stock. I may have some additional files that are not needed but run against stock to be safe.
 
  • Like
Reactions: jangrewe

jangrewe

Senior Member
Jun 20, 2008
64
41
40
Berlin
faked.org
Okay, mobile data is now working! Had to add this into build.prop:

Code:
ro.telephony.ril.v3=signalstrength,skipbrokendatacall

building now... got the proprietary files from the unbranded EU 1.29 RUU

EDIT: hitting an error:

in function wpa_driver_nl80211_ops:driver_nl80211.c(.data.rel.ro.wpa_driver_nl80211_ops+0x1c8): error: undefined reference to 'wpa_driver_nl80211_driver_cmd'

Code:
target Executable: wpa_supplicant (out/target/product/endeavor/obj/EXECUTABLES/wpa_supplicant_intermediates/LINKED/wpa_supplicant)
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/endeavor/obj/EXECUTABLES/wpa_supplicant_intermediates/src/drivers/driver_nl80211.o: in function wpa_driver_nl80211_ops:driver_nl80211.c(.data.rel.ro.wpa_driver_nl80211_ops+0x1c8): error: undefined reference to 'wpa_driver_nl80211_driver_cmd'
collect2: ld returned 1 exit status
make: *** [out/target/product/endeavor/obj/EXECUTABLES/wpa_supplicant_intermediates/LINKED/wpa_supplicant] Error 1
make: *** Waiting for unfinished jobs....

EDIT 2:

add the following as line 57 in "device/htc/endeavor/BoardConfig.mk"
Code:
BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_wl12xx

EDIT 3: built & booted! looking good for a first try!
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 83
    I'm working on porting CM9 to HTC One X. I've made a lot of progress but there are still issues. I wanted to get the source out as soon as possible to get more people working on it.

    See the wiki for more information.

    Status

    Working:

    • Radio (calls and 3G)
    • Audio
    • Hardware Acceleration
    • WiFi
    • Bluetooth
    • GPS
    • NFC
    • Camera
    • FM Radio
    • Echo/In call volume fixed
    • Wifi Tethering

    Issues/TODO list:

    • Wifi Direct
    • Blank screen on rotation
    • Data connection occasionally fails
    • Camera focusing on face issue

    Nightly Builds

    Thanks to jangrewe for providing the nightly builds.

    Downloads: http://mirror.faked.org/cm9/
    Jenkins: http://faked.org/jenkins

    Reporting issues

    https://github.com/intermediaterepresentation/android_device_htc_endeavor/issues

    Flashing ROM

    Using CWM you can flash the ROM.

    The kernel must be flashed manually unless you have S-OFF:

    Extract the zip file.

    Code:
    fastboot flash boot boot.img

    Building

    Add the following to your .repo/local_manifest.xml:

    Code:
    <project name="intermediaterepresentation/android_hardware_ti_wlan" path="hardware/ti/wlan" remote="github" revision="p-ics-mr1-release"/>
    <project name="intermediaterepresentation/android_kernel_htc_endeavor" path="kernel/htc/endeavor" remote="github" revision="master" />
    <project name="intermediaterepresentation/android_device_htc_endeavor" path="device/htc/endeavoru" remote="github" revision="master" />

    Sync code.

    Code:
    repo sync

    And compile:

    Code:
    add_lunch_combo cm_endeavoru-userdebug
    lunch cm_endeavoru-userdebug
    (cd device/htc/endeavoru && ./extract_files.sh)
    make -j4 otapackage

    Contributions

    Please send me pull requests on GitHub if you want to contribute.

    Sources

    Device Configuration - https://github.com/intermediaterepresentation/android_device_htc_endeavor
    Kernel - https://github.com/intermediaterepresentation/android_kernel_htc_endeavor

    Change Log

    5/19/2012 - Initial import of project
    5/20/2012 - Bluetooth support added
    5/20/2012 - GPS added
    5/21/2012 - NFC added
    5/28/2012 - Add build links
    5/28/2012 - Auto brightness, ICS switcher for hardware key, and more (thanks gorbi) - https://github.com/intermediaterepresentation/android_device_htc_endeavor/pull/1
    5/28/2012 - Camera is now working!
    5/30/2012 -
    akaspin - fix bug with editing custom backlight levels
    tgascoigne - fix usb mass storage
    gorbi - fix for chrome. system tweaks.
    6/26/2012 - Update changelog and add wiki link
    11
    can everyone stop talking about trip's rom. he wont share source, he wont share tips. lets stay on topic and help build xda's cm9...
    11
    JB sources out! :)

    -- Sent from somewhere using some app. --

    Build coming soon, hold tight :)
    10
    Hi OP!


    The EternityProject is interested to give huge contributions on this proper CyanogenMod 9 port.

    If you want to work with us, we can integrate new functions in there for making that ROM to be a performance beast.
    The new functions that can be integrated, are the ones available in our EternityProject Kernel, like ION, Mediaserver, HW AVP and Tegra IOMMU, but not only those ones.


    There are really much things that can be done for making this to be a monster-release.



    If you're interested, watch your PM inbox!





    The EternityProject Team Manager & Main Developer,
    --kholk
    8
    The echo fix (with camera now working) has been merged. It'll be in the next build, be sure to test it out and give feedback.