Jump to content


Photo

[ICS] [CM9] [4.0.4] CyanogenMod 9 for the ZTE Crescent [ROM] [Last updated: 13/07]

* * * * * 15 votes

  • Please log in to reply
2675 replies to this topic

#101
Dazzozo

Dazzozo

    Hardcore

  • Developer Team
  • PipPipPipPipPipPip
  • 3,319 posts
  • Gender:Male
  • Location:York, UK
  • Devices:Crescent, G300, Y300, Nexus 5
  • Twitter:@Dazzozo

Is there a way to move home button to volume keys or power button on vivacity as thats all im missing using this rom


You'll have to be a little more specific. I don't own a Vivacity and the only differences I'm personally aware of is with the touchscreen.

  • 0
Like my work? Give me rep!

Like my work a lot? Donate! Remember to leave your forum name if you want to be credited!

#102
mrfu55y

mrfu55y

    Newbie

  • Members
  • Pip
  • 3 posts
Using the vivacity kernal allows the touch buttons to work apart from homebutton

  • 0

#103
Dazzozo

Dazzozo

    Hardcore

  • Developer Team
  • PipPipPipPipPipPip
  • 3,319 posts
  • Gender:Male
  • Location:York, UK
  • Devices:Crescent, G300, Y300, Nexus 5
  • Twitter:@Dazzozo

Using the vivacity kernal allows the touch buttons to work apart from homebutton


I'll look in to it.

  • 0
Like my work? Give me rep!

Like my work a lot? Donate! Remember to leave your forum name if you want to be credited!

#104
mrfu55y

mrfu55y

    Newbie

  • Members
  • Pip
  • 3 posts
Cheers

  • 0

#105
Dazzozo

Dazzozo

    Hardcore

  • Developer Team
  • PipPipPipPipPipPip
  • 3,319 posts
  • Gender:Male
  • Location:York, UK
  • Devices:Crescent, G300, Y300, Nexus 5
  • Twitter:@Dazzozo
Tried running dmesg after trying to insmod the Wi-Fi module, and...

<4>[04-09 13:18:02.340000] [1190: insmod]
<4>[04-09 13:18:02.340000] [1190: insmod]Dongle Host Driver, version 5.90.125.16.1
<4>[04-09 13:18:02.340000] [1190: insmod]Compiled in /home/yuki/android/builds/ics_kernel/kernel_zte_blade/../.. on Apr 9 2012 at 14:11:46

Yet insmod fails with...

insmod: init_module 'dhd.ko' failed (Invalid argument)

Hm. Looking up this invalid argument malarkey.

Edit: Apparently it's when you have the wrong Wi-Fi module for your kernel, or vice-versa. But these are compiled at exactly the same time, so I KNOW they're right...

Edit 2: Interesting. I compiled the Wi-Fi module, and then set it to "y" instead of "m" which builds it in to the kernel instead of as a module. Ran insmod, and...

insmod: init_module 'dhd.ko' failed (Exec format error)

But that would make sense. dmesg reports <3>[04-09 13:33:28.019995] [1179: insmod]dhd: exports duplicate symbol bcmsdh_remove (owned by kernel)

Can't be that. This is all very odd.

Edit 3: It would be nice to have an actual error about why insmod is failing on the first configuration instead of it reporting some friendly information I already know. Agghhh.

Edit 4: I may have it. Give me a few.

Edit 5: Damn. That was so promising. Okay, I'm out of ideas.

Edit 6: Oh no, hang on...

Edit 7: Making what feels like progress.

Edited by Dazzozo, 09 April 2012 - 02:46 PM.

  • 0
Like my work? Give me rep!

Like my work a lot? Donate! Remember to leave your forum name if you want to be credited!

#106
RedZombie

RedZombie

    Regular

  • Members
  • PipPip
  • 68 posts
  • Devices:OSF II

Tried running dmesg after trying to insmod the Wi-Fi module, and...

<4>[04-09 13:18:02.340000] [1190: insmod]
<4>[04-09 13:18:02.340000] [1190: insmod]Dongle Host Driver, version 5.90.125.16.1
<4>[04-09 13:18:02.340000] [1190: insmod]Compiled in /home/yuki/android/builds/ics_kernel/kernel_zte_blade/../.. on Apr 9 2012 at 14:11:46

Yet insmod fails with...

insmod: init_module 'dhd.ko' failed (Invalid argument)

Hm. Looking up this invalid argument malarkey.

Edit: Apparently it's when you have the wrong Wi-Fi module for your kernel, or vice-versa. But these are compiled at exactly the same time, so I KNOW they're right...

Edit 2: Interesting. I compiled the Wi-Fi module, and then set it to "y" instead of "m" which builds it in to the kernel instead of as a module. Ran insmod, and...

insmod: init_module 'dhd.ko' failed (Exec format error)

But that would make sense. dmesg reports <3>[04-09 13:33:28.019995] [1179: insmod]dhd: exports duplicate symbol bcmsdh_remove (owned by kernel)

Can't be that. This is all very odd.

Edit 3: It would be nice to have an actual error about why insmod is failing on the first configuration instead of it reporting some friendly information I already know. Agghhh.

Edit 4: I may have it. Give me a few.

Edit 5: Damn. That was so promising. Okay, I'm out of ideas.

Edit 6: Oh no, hang on...

Edit 7: Making what feels like progress.


Loving the commentary dude, keeping me on the edge of my seat!! Wish there was something I could do to assist but I guess without having coding knowledge I am useless to you!

  • 1

#107
CurtisAndroidSF2

CurtisAndroidSF2

    Addict

  • Members
  • PipPipPipPipPip
  • 595 posts
  • Gender:Male
  • Location:Hartlepool
  • Interests:Graphic Design, Music, Photography, Android, Technology & Gaming.
  • Devices:HUAWEI ASCEND P1
As soon as the WIFI and Camera works I'll be going to CM. I was a huge fan of CM7 on my Galaxy 5, it'd be great to have CM9 on my Crescent!

Any ETA for a working wifi and camera release?

Thanks for the hard work, I would love to help but my knowledge of roms and coding etc is nearly non-existence.

Edited by CurtisAndroidSF2, 09 April 2012 - 03:35 PM.

  • 0

Devices


Huawei Ascend P1 (Untouched, for now)

iPhone 4 16gb Jailbroke (6.1.3 semi-tethered) (Sold)

HTC ONE V (Unlocked Bootloader/TWRP installed) running CM10 (Sold)

ZTE Crescent (OSF2)- Paranoid Android 4.1 (Sold)

Samsung Galaxy I5500- CM7 (Sold)

________________________________

My Photography


My Ported Roms:

MoKeeOS (Alpha) | GB MIUI (Alpha) | KonstaKang (Alpha)

| AtomicMod (Beta) |

SwedishSnow (Fully working) | H3 Blues


Help me by testing out my ported ROMs and let me know what works/doesn't work and post here


#108
Dazzozo

Dazzozo

    Hardcore

  • Developer Team
  • PipPipPipPipPipPip
  • 3,319 posts
  • Gender:Male
  • Location:York, UK
  • Devices:Crescent, G300, Y300, Nexus 5
  • Twitter:@Dazzozo

As soon as the WIFI and Camera works I'll be going to CM. I was a huge fan of CM7 on my Galaxy 5, it'd be great to have CM9 on my Crescent!

Any ETA for a working wifi and camera release?

Thanks for the hard work, I would love to help but my knowledge of roms and coding etc is nearly non-existence.


ETA: When it's fixed.

If I could give a time frame I would. But honestly, it's impossible - I just have to keep trying various things until something sorts out the Wi-Fi, something could do it today, something could do it tomorrow, something could do it later in the week. I don't see the Camera being a huge challenge after this, though.

  • 0
Like my work? Give me rep!

Like my work a lot? Donate! Remember to leave your forum name if you want to be credited!

#109
tilal6991

tilal6991

    Hardcore

  • Developer Team
  • PipPipPipPipPipPip
  • 3,781 posts
  • Gender:Male
  • Devices:ZTE Skate, Huawei U8150
Wifi errors seem interesting. Fuzzra is really the only person to say how he got it working.

So are you compiling the wifi driver with "m" instead of "y"?

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

#110
Dazzozo

Dazzozo

    Hardcore

  • Developer Team
  • PipPipPipPipPipPip
  • 3,319 posts
  • Gender:Male
  • Location:York, UK
  • Devices:Crescent, G300, Y300, Nexus 5
  • Twitter:@Dazzozo

Wifi errors seem interesting. Fuzzra is really the only person to say how he got it working.

So are you compiling the wifi driver with "m" instead of "y"?


Yep. Looking at the bcm4330 code he had in his fork, it seems to inherit things from bcm4329 but when I try to compile the kernel with that, I get some horrible internal error right at the end in the toolchain. At the moment I'm installing an older build and pulling Fuzzra's config from /proc/config.gz

Edit: Config get! http://pastebin.com/2CdP2DZr

Edit 2: Very weird. The config in the kernel he last produced doesn't even use the BCM4330 stuff in his repo, just the normal DHD stuff. Going to look through his commits.

Edit 3: Last commit, March 15th. Kernel config built March 1st. Begs the question - when did he last update the kernel in his device config?

Edit 4: March 4th. :/

Edit 5: Give me a sec, new idea.

Edit 6: Right, I have something to test, just restoring a Nandroid backup.

Edited by Dazzozo, 09 April 2012 - 04:02 PM.

  • 1
Like my work? Give me rep!

Like my work a lot? Donate! Remember to leave your forum name if you want to be credited!

#111
welshrage

welshrage

    Regular

  • Members
  • PipPip
  • 67 posts
  • Gender:Male
  • Location:Haverfordwest, Pembrokeshire, Wales, UK
  • Devices:SFII or Crescent or Blade 2
ooooooh this is soooo much better than a damn good movie aye... am on pins ere waiting for the wi-fi to work!!!! an android aint an android unless it got workin wi-fi!! keep up the good work mucka,muchly appreciated by myself and everyone else i'll bet :oD


Yep. Looking at the bcm4330 code he had in his fork, it seems to inherit things from bcm4329 but when I try to compile the kernel with that, I get some horrible internal error right at the end in the toolchain. At the moment I'm installing an older build and pulling Fuzzra's config from /proc/config.gz

Edit: Config get! http://pastebin.com/2CdP2DZr

Edit 2: Very weird. The config in the kernel he last produced doesn't even use the BCM4330 stuff in his repo, just the normal DHD stuff. Going to look through his commits.

Edit 3: Last commit, March 15th. Kernel config built March 1st. Begs the question - when did he last update the kernel in his device config?

Edit 4: March 4th. :/

Edit 5: Give me a sec, new idea.

Edit 6: Right, I have something to test, just restoring a Nandroid backup.




  • 0

#112
Dazzozo

Dazzozo

    Hardcore

  • Developer Team
  • PipPipPipPipPipPip
  • 3,319 posts
  • Gender:Male
  • Location:York, UK
  • Devices:Crescent, G300, Y300, Nexus 5
  • Twitter:@Dazzozo
Sorry about that. sd-ext took a worryingly long amount of time to restore.

Flashed the test kernel, just about to push the module.

Edit: Progress!

<4>[04-09 16:18:18.310000] [1216: insmod]shaohua enter gpio_wlan_ctrl ----------------
<4>[04-09 16:18:18.310000] [1216: insmod]request success
<4>[04-09 16:18:18.470000] [1216: insmod]bcm_detect_card: (ed934400), call
<4>[04-09 16:18:18.490000] [1216: insmod]shaohua power on -------------------------
<4>[04-09 16:18:18.490000] [1216: insmod]
<4>[04-09 16:18:18.490000] [1216: insmod]Dongle Host Driver, version 4.218.248.6
<6>[04-09 16:18:18.550000] [12: kmmcd]mmc1: new high speed SDIO card at address0001
<4>[04-09 16:18:26.489999] [1216: insmod]dhd_module_init: sdio_register_driver timeout

Edited by Dazzozo, 09 April 2012 - 04:19 PM.

  • 0
Like my work? Give me rep!

Like my work a lot? Donate! Remember to leave your forum name if you want to be credited!

#113
domenico lamberti

domenico lamberti

    Diehard

  • MoDaCo Silver
  • PipPipPipPip
  • 345 posts
  • Gender:Male
  • Location:hastings
  • Devices:ZTE Crescent,HTC Explorer
  • Twitter:@Mobile_Dom
is this wifi progress :D

  • 0

#114
Dazzozo

Dazzozo

    Hardcore

  • Developer Team
  • PipPipPipPipPipPip
  • 3,319 posts
  • Gender:Male
  • Location:York, UK
  • Devices:Crescent, G300, Y300, Nexus 5
  • Twitter:@Dazzozo

is this wifi progress :D


Hopefully. Nothing's fully fixed yet, but it's actually giving me something to go on now.

Something's causing this to be triggered.

if (down_timeout(&dhd_registration_sem,  msecs_to_jiffies(DHD_REGISTRATION_TIMEOUT)) != 0) {
		error = -EINVAL;
		DHD_ERROR(("%s: sdio_register_driver timeout\n", __FUNCTION__));
		dhd_bus_unregister();
	}

Edit: sdio_register_driver is just not completing. Upped the timeout 10x and it still timed out. The question is, why.

Edited by Dazzozo, 09 April 2012 - 05:09 PM.

  • 0
Like my work? Give me rep!

Like my work a lot? Donate! Remember to leave your forum name if you want to be credited!

#115
PsYcHoKiLLa

PsYcHoKiLLa

    Addict

  • Members
  • PipPipPipPipPip
  • 803 posts
  • Gender:Male
  • Devices:LG Nexus 4, Tesco Hudl
  • Twitter:@djsubterrain

Hopefully. Nothing's fully fixed yet, but it's actually giving me something to go on now.

Something's causing this to be triggered.

if (down_timeout(&dhd_registration_sem,  msecs_to_jiffies(DHD_REGISTRATION_TIMEOUT)) != 0) {
		error = -EINVAL;
		DHD_ERROR(("%s: sdio_register_driver timeout\n", __FUNCTION__));
		dhd_bus_unregister();
	}

Edit: sdio_register_driver is just not completing. Upped the timeout 10x and it still timed out. The question is, why.


Call to a non-existant something or other? :) What was that line you commented out last night? Did you fix that?

Edited by PsYcHoKiLLa, 09 April 2012 - 05:11 PM.

  • 0

#116
Dazzozo

Dazzozo

    Hardcore

  • Developer Team
  • PipPipPipPipPipPip
  • 3,319 posts
  • Gender:Male
  • Location:York, UK
  • Devices:Crescent, G300, Y300, Nexus 5
  • Twitter:@Dazzozo

Call to a non-existant comething or other? :) What was that line you commented out last night? Did you fix that?


libril, it tries to build in CM and in the device config but either way I just substitute it for a prebuilt.

Edit: Well, my config and Fuzzra's kernel config are pretty much identical besides the genlock change for Adreno drivers and overclocking. This is a very weird issue.

Edit 2: Going to try Fuzzra's dhd.ko. Probably won't lead to working Wi-Fi but it might get us some more info.

Edit 3: Indeed it did!

<4>[04-09 17:20:11.970000] [1253: insmod]
<4>[04-09 17:20:11.970000] [1253: insmod]Dongle Host Driver, version 5.90.125.16.1
<6>[04-09 17:20:12.040000] [12: kmmcd]mmc1: new high speed SDIO card at address0001
<4>[04-09 17:20:12.050000] [12: kmmcd]dhd_customer_oob_irq_map: customer specific Host GPIO number is (19)
<4>[04-09 17:20:12.050000] [12: kmmcd]BCM4330B2 found!
<4>[04-09 17:20:12.060000] [12: kmmcd]DHD: dongle ram size is set to 294912(orig 294912)
<4>[04-09 17:20:12.060000] [12: kmmcd]dhd_early_suspend: enter +
<4>[04-09 17:20:12.060000] [12: kmmcd]dhd_early_suspend: dhd is not attach,skipit! dhd_state: 0x00000000
<4>[04-09 17:20:12.060000] [12: kmmcd]dhd_early_suspend: leave -
<4>[04-09 17:20:12.060000] [12: kmmcd]shaohua set pfn_dhd eca990b0
<4>[04-09 17:20:12.060000] [12: kmmcd]dhdsdio_probe: failed
<4>[04-09 17:20:12.060000] [12: kmmcd]dhd_osl_detach: MEMORY LEAK 140 bytes

Edit 4: Version 5.90.125.16.1 suggests this was built from bcm4330. Damn you Fuzzra!

Edited by Dazzozo, 09 April 2012 - 05:23 PM.

  • 0
Like my work? Give me rep!

Like my work a lot? Donate! Remember to leave your forum name if you want to be credited!

#117
PsYcHoKiLLa

PsYcHoKiLLa

    Addict

  • Members
  • PipPipPipPipPip
  • 803 posts
  • Gender:Male
  • Devices:LG Nexus 4, Tesco Hudl
  • Twitter:@djsubterrain
Damn you sharktopus!!!

  • 0

#118
Dazzozo

Dazzozo

    Hardcore

  • Developer Team
  • PipPipPipPipPipPip
  • 3,319 posts
  • Gender:Male
  • Location:York, UK
  • Devices:Crescent, G300, Y300, Nexus 5
  • Twitter:@Dazzozo
Right. Put most of my day in to this and I seem to have got somewhere.

root@android:/system/lib/modules # insmod dhd.ko fwb1_path=/vendor/firmware/fw_4330b1.bin fwb2_path=/vendor/firmware/fw_4330b2.bin nvram_path=/vendor/firmware/nv_4330b1.txt firmware_path=/vendor/firmware/fw_4330b1.bin dhd_msg_level=3

dmesg:

<4>[04-09 18:47:22.070000] [1265: insmod]request success
<4>[04-09 18:47:22.070000] [1265: insmod]wlan_wake_up_gpio request success
<4>[04-09 18:47:22.070000] [1265: insmod]WLAN_REG_ON--->0
<4>[04-09 18:47:22.280000] [1265: insmod]bcm_detect_card: (ed947400), call
<4>[04-09 18:47:22.290000] [1265: insmod]
<4>[04-09 18:47:22.290000] [1265: insmod]Dongle Host Driver, version 5.90.125.16.1
<6>[04-09 18:47:22.350000] [12: kmmcd]mmc1: new high speed SDIO card at address0001
<4>[04-09 18:47:22.360000] [12: kmmcd]dhd_customer_oob_irq_map: customer specific Host GPIO number is (19)
<4>[04-09 18:47:22.360000] [12: kmmcd]BCM4330B2 found!
<4>[04-09 18:47:22.360000] [12: kmmcd]DHD: dongle ram size is set to 294912(orig 294912)
<4>[04-09 18:47:22.360000] [12: kmmcd]shaohua set pfn_dhd e272f0b0
<4>[04-09 18:47:22.360000] [12: kmmcd]load firmware from /system/etc/fw_4330b2.bin
<4>[04-09 18:47:22.490000] [12: kmmcd]Firmware version = ver
<4>[04-09 18:47:22.610000] [12: kmmcd]eth0: Broadcom Dongle Host Driver mac=68:1a:b2:cc:ba:ee
<4>[04-09 18:47:22.610000] [12: kmmcd]Exited wl_control_wl_start

However, this does not translate in to working Wi-Fi as I'm guessing something that usually happens during start up doesn't happen. We only get THIS far when I enter the insmod command in this way. I need a break, but we've definitely made progress.

Anyone seen tilal? *hint hint* ;) I need someone else's input.

Edited by Dazzozo, 09 April 2012 - 06:57 PM.

  • 0
Like my work? Give me rep!

Like my work a lot? Donate! Remember to leave your forum name if you want to be credited!

#119
CurtisAndroidSF2

CurtisAndroidSF2

    Addict

  • Members
  • PipPipPipPipPip
  • 595 posts
  • Gender:Male
  • Location:Hartlepool
  • Interests:Graphic Design, Music, Photography, Android, Technology & Gaming.
  • Devices:HUAWEI ASCEND P1
I wish I had knowledge with Android development so I could help out. I'm so excited to get CM9 onto my device!

It looks like you're getting closer to fixing the wifi so it shouldn't take too long, do all basic phone uses work such as calls, texts, 3g etc?

  • 0

Devices


Huawei Ascend P1 (Untouched, for now)

iPhone 4 16gb Jailbroke (6.1.3 semi-tethered) (Sold)

HTC ONE V (Unlocked Bootloader/TWRP installed) running CM10 (Sold)

ZTE Crescent (OSF2)- Paranoid Android 4.1 (Sold)

Samsung Galaxy I5500- CM7 (Sold)

________________________________

My Photography


My Ported Roms:

MoKeeOS (Alpha) | GB MIUI (Alpha) | KonstaKang (Alpha)

| AtomicMod (Beta) |

SwedishSnow (Fully working) | H3 Blues


Help me by testing out my ported ROMs and let me know what works/doesn't work and post here


#120
Dazzozo

Dazzozo

    Hardcore

  • Developer Team
  • PipPipPipPipPipPip
  • 3,319 posts
  • Gender:Male
  • Location:York, UK
  • Devices:Crescent, G300, Y300, Nexus 5
  • Twitter:@Dazzozo

I wish I had knowledge with Android development so I could help out. I'm so excited to get CM9 onto my device!

It looks like you're getting closer to fixing the wifi so it shouldn't take too long, do all basic phone uses work such as calls, texts, 3g etc?


Yeah all the radio/RIL functions work.

Anyway, who am I kidding. I can't stay away from this stuff.

It only works if I enter that kind of command line on insmod. If I just do "insmod dhd.ko dhd_msg_level=3" we get a lovely dose of memory leak.

<4>[04-09 19:02:32.950000] [12: kmmcd]shaohua set pfn_dhd c94860b0
<4>[04-09 19:02:32.950000] [12: kmmcd]dhdsdio_probe: failed
<4>[04-09 19:02:32.950000] [12: kmmcd]dhd_osl_detach: MEMORY LEAK 140 bytes

  • 0
Like my work? Give me rep!

Like my work a lot? Donate! Remember to leave your forum name if you want to be credited!




2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users