• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root [DEV] WIP CM9 (Camera) [updated 2/23/2013]

How's your battery life on CM7 -- I went to CM9 primarily for battery life and I easily get 9+ hours now (lite usage).


That's actually interesting to hear...I switched back to CM7 from CM9 because, on my phone, CM7 can literally go for days without charging...while CM9 I found myself having to charge sometimes twice a day if not more.
 
What's up Everybody? Here's a kernel I have been working on, Thanks to G60 for getting me to try to get to 2.6.35.7 kernel working, it led me to rebuild the CM9 kernel camera drivers. This is a WIP so I am just posting it to help people that may be working on the camera. Currently the torch app is working with the latest WIP ROM, I haven't tested it with any other ROMs yet. Need some sleep but wanted to post, to let everybody know we are still working on this.

Cam-MTDEV-CM9-Kernel-1.zip

Hah, I definitely needed some sleep, I posted the WRONG zip, here is the correct one.

Cam-MTDEV-CM9-Kernel-2.zip
 
What's up Everybody? Here's a kernel I have been working on, Thanks to G60 for getting me to try to get to 2.6.35.7 kernel working, it led me to rebuild the CM9 kernel camera drivers. This is a WIP so I am just posting it to help people that may be working on the camera. Currently the torch app is working with the latest WIP ROM, I haven't tested it with any other ROMs yet. Need some sleep but wanted to post, to let everybody know we are still working on this.

Cam-MTDEV-CM9-Kernel-1.zip

This does not work with the current CM9 ROM it's working with the Alpha I posted located here

http://mtdev.us/alpha/CM-MTDEV9-20121202.zip

Also the kernel BSydz posted doesn't work as the touch screen drivers are not working. Here is one he sent me earlier

http://mtdev.us/alpha/Ed-MTDEV-CM9-Kernel.zip

The phone will still boot loop every 1-2 minutes, once we fix that we can dig further into the camera, however the camera is launching and taking a picture just not storing yet or previewing it.
 
What's up Everybody? Here's a kernel I have been working on, Thanks to G60 for getting me to try to get to 2.6.35.7 kernel working, it led me to rebuild the CM9 kernel camera drivers. This is a WIP so I am just posting it to help people that may be working on the camera. Currently the torch app is working with the latest WIP ROM, I haven't tested it with any other ROMs yet. Need some sleep but wanted to post, to let everybody know we are still working on this.

Cam-MTDEV-CM9-Kernel-1.zip

Bsydz you da man, thanks for your work
 
Glad to see progress! Not everyone has the budget to buy a new phone right now and the $25 plan is quite nice. Camera would be awesome and you guys seem like you're close.
 
This does not work with the current CM9 ROM it's working with the Alpha I posted located here

http://mtdev.us/alpha/CM-MTDEV9-20121202.zip

Also the kernel BSydz posted doesn't work as the touch screen drivers are not working. Here is one he sent me earlier

http://mtdev.us/alpha/Ed-MTDEV-CM9-Kernel.zip

The phone will still boot loop every 1-2 minutes, once we fix that we can dig further into the camera, however the camera is launching and taking a picture just not storing yet or previewing it.
Update:

Made progress with the kernel. This is the 2.6.32.59 kenel. Now camera app will load but will crash still no preview, but now it doesn't reboot and you can just clear the camera app data and it will be able to open again. Wifi is broken, need to figure out what happened.

MTDEV-Kernel-CM9-Cam-3.zip

Kernel source:
https://github.com/BSydz/WIP-MTDEV-CM9-Kernel
 
Good to see G60 still working on this even though he no longer has any vested interest in doing so. Thank you for your dedication:D:D
 
With the assistance of BSydz we are making some real progress I will be working on a ROM hopefully tonight if I can find some time. Also spoke with Dorrey and updated him on our progress he replied back with the following after I sent him our current logcat

"That's a great news. The crash is because the jpeg encoding fails and the returned image is null. I'll take a look at that and let you know what I have figured."

So while we didn't hit the Christmas Camera hopes it looks like we are moving in the right direction thanks to :adore: BSydz assistance with the kernel!!! Your the man BSydz!!! GO TEAM MTDEV!!!!
 
We are almost there. I can feel it. I will test everything when you guys are finished, and eventually I may just donate my phone to the cause, when I am done rehauling my FAQs, if needed. Anyhow, I will stick around long as possible. We should post this to XDA when we get the camera done. We can be famous among the hackers.
 
Update:

Made progress with the kernel. This is the 2.6.32.59 kenel. Now camera app will load but will crash still no preview, but now it doesn't reboot and you can just clear the camera app data and it will be able to open again. Wifi is broken, need to figure out what happened.

MTDEV-Kernel-CM9-Cam-3.zip

Kernel source:
https://github.com/BSydz/WIP-MTDEV-CM9-Kernel
Update again:
G60 to the rescue! I was using the wrong kernel defconfig,I'll update my git in a while but here's version 4 wifi works now

MTDEV-Kernel-CM9-Cam-4.zip
 
Bsydz, i tried the alpha rom with the kernel v2 and it blew my mind that the flashlight actually works and the camera opens up. Great job very impressive! We are blessed to have you working so hard for this phone. I would like to donate funds but i can't right now because iam unemployed and have limited funds. When i get back on my feet i will definately be taking care of you and g60. Thank Y'all
 
Bsydz, i tried the alpha rom with the kernel v2 and it blew my mind that the flashlight actually works and the camera opens up. Great job very impressive! We are blessed to have you working so hard for this phone. I would like to donate funds but i can't right now because iam unemployed and have limited funds. When i get back on my feet i will definately be taking care of you and g60. Thank Y'all
Thank you, I'm a lil late to the party, but hopefully we can get some more people working on this, as it is so close now. G60 said he is going to work on the ROM side and see what he can do, he was like "I'm getting all excited again!!", it feels good to know that your work is not in vain. And I know he put in a lot of work. Good luck to anybody trying to get this phone to the next level. Now to see what we have going on with the ROM side. :D
 
By the way i went on facebook last night and posted on virgin mobiles page just how they are the sorry s.o.b.s i know they are! The fact that our phone cost 10 times as much as the kyocera rise but it comes with ics? I let em have it! Doubt they will care but it felt good to vent.
 
By the way i went on facebook last night and posted on virgin mobiles page just how they are the sorry s.o.b.s i know they are! The fact that our phone cost 10 times as much as the kyocera rise but it comes with ics? I let em have it! Doubt they will care but it felt good to vent.

I care less that VM cares, and more if the other posters care. If the other posters care, then VM would take notice. Almost makes me want a FB account.
 
So I have the github all synced with the new kernel and also rolled back the repos dorrey worked on to Dec 2. I pushed the new msm_camera.h however having issues building. If anyone wants to take shot please feel free. I contacted dorrey so hopefully he can assist me with the code as he did write all the camerhal stuff. I will keep you all posted as we continue forward.

https://github.com/MTCM9/android
 
So I have the github all synced with the new kernel and also rolled back the repos dorrey worked on to Dec 2. I pushed the new msm_camera.h however having issues building. If anyone wants to take shot please feel free. I contacted dorrey so hopefully he can assist me with the code as he did write all the camerhal stuff. I will keep you all posted as we continue forward.

https://github.com/MTCM9/android

On my end I removed the camtest from the device/motorola/triumph/device_triumph.mk and I got it to build.

Of course that was before your later updates. Not the problem now.

Are you getting a bunch of errors pertaining to hardware/qcomm/camerahal/ stuff?
 
On my end I removed the camtest from the device/motorola/triumph/device_triumph.mk and I got it to build.

Of course that was before your later updates. Not the problem now.

Are you getting a bunch of errors pertaining to hardware/qcomm/camerahal/ stuff?

I removed camtest from the default.xml due to to many changes in libcamera and camerhal. Also resolved all the errors in camaerhal and libcamera2. Build is almost done, as long as it doesn't error anymore I will push up the changes. The errors being found

Code:
In file included from hardware/qcom/camerhal/QualcommCameraHardware.h:31,
                 from hardware/qcom/camerhal/QualcommCameraHardware.cpp:23:
hardware/qcom/camerhal/QCamera_Intf.h:834: error: expected identifier before numeric constant
hardware/qcom/camerhal/QCamera_Intf.h:834: error: expected '}' before numeric constant
hardware/qcom/camerhal/QCamera_Intf.h:834: error: expected unqualified-id before numeric constant
hardware/qcom/camerhal/QCamera_Intf.h:838: error: expected constructor, destructor, or type conversion before ';' token
hardware/qcom/camerhal/QCamera_Intf.h:842: error: expected identifier before '-' token
hardware/qcom/camerhal/QCamera_Intf.h:842: error: expected '}' before '-' token
hardware/qcom/camerhal/QCamera_Intf.h:842: error: expected unqualified-id before '-' token
hardware/qcom/camerhal/QCamera_Intf.h:847: error: expected declaration before '}' token

are due to duplicate entries in msm_camera.h that are already located in QCamera_Intf.h & QualcommCameraHardware.h. I had to comment out some 20 lines or more and replace the msm_camera.h in both camerahal and libcamera2 directories. Dorrey pointed that out to me. He is one sharp dev!

Edit: github is upto date 8:57AM MST 1/1/2013
 
Back
Top Bottom