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

You can take the m410 kernel or the Sharp kernel from my github and apply the TS drivers and this to get it working. https://github.com/mantera/triumph-kernel-msm7x30/commit/46cea7ad007cf38438208ce14dd1c3b4890f70c3

What blobs are you using from CM7, just the 2 camera files or the mmjpeg and stuff as well?

Great, thanks.

I am using just libcamera.so and libeomcamera.so. For cm9, I am not building QualcommCameraHardware.cpp at all, I'm linking camera.msm7x30.so directly with the libcamera.so.

EDIT: Found your kernel thread, good stuff!
 
Apparently the kernel does have more to do with this than I have been thinking. I have successfully taken a picture with the cm7 kernel and cm7 libs under cm9. Caveats: 1) touchscreen isn't properly working (I had to pull in cm9 kernel touchscreen driver to get it working to the limited extent it is now) 2) camera app doesn't display any data (although the picture saves correctly -- probably gralloc related).

Next step is either pull camera stuff out of cm7 kernel or pull gralloc stuff out of cm9. Part of me even wants to try going way back to original motorola kernel because g60 said wifi/bt deepsleep issues are gone, but I looked at that a bit a couple months ago and it seemed like a nightmare.

Wow already taking pictures? That's awesome!
 
"Already"? LOL =]

I have a hole in my desk from repeatedly banging my head on it, and I haven't even been working on this as long as some of these guys.

Lol not saying it was easy, I used to dev and I feel your pain. It just didn't take as long as I thought...
 
You can take the m410 kernel or the Sharp kernel from my github and apply the TS drivers and this to get it working. https://github.com/mantera/triumph-kernel-msm7x30/commit/46cea7ad007cf38438208ce14dd1c3b4890f70c3

What blobs are you using from CM7, just the 2 camera files or the mmjpeg and stuff as well?

I've got the sharp kernel with the updated ts and graphics driver, and still getting a blank camera screen...

02-20 22:31:42.936 E/SurfaceTexture( 125): [SurfaceView] dequeueBuffer: no available buffer slots
02-20 22:31:42.936 E/CameraHAL( 128): wrap_queue_buffer_hook: could not dequeue gralloc buffer

Still takes pictures, though.

EDIT: Tried with the cm9 QualcommCameraHardware.cpp again, in case that is tied to the data output... it looks like it's not, I'm still getting that same error. I probably still don't have something right with the kernel then...
 
I've got the sharp kernel with the updated ts and graphics driver, and still getting a blank camera screen...

02-20 22:31:42.936 E/SurfaceTexture( 125): [SurfaceView] dequeueBuffer: no available buffer slots
02-20 22:31:42.936 E/CameraHAL( 128): wrap_queue_buffer_hook: could not dequeue gralloc buffer

Still takes pictures, though.

EDIT: Tried with the cm9 QualcommCameraHardware.cpp again, in case that is tied to the data output... it looks like it's not, I'm still getting that same error. I probably still don't have something right with the kernel then...

Just out of curiosity is it detecting the Front-facing camera?
 
I'm happy to announce I have taken my first picture in cm9 with preview working. I went the other way with kernels, moving the cm7 camera driver into the cm9 kernel, and that seems to do it.

I'd love to get a test version up somehow but I'm still new at this, let me see if I can figure out how to throw together something quickly.

EDIT: hope this works:
CM-MTDEV9-20130217-really02-21.zip (107.8 MB)
https://mega.co.nz/#!bF8BXQZL!JHhOwCW9Bbe2NQREHuNDfG8qjsZ7N_pSoNq53mlVBjo

- Yes, the date is wrong
- I'm only interested in whether or not the camera is working for you
- The rotation is still wrong
- Front camera doesn't work
- Good luck!

EDIT2: Don't switch to the front camera, causes a crash, then you can't change the camera app to back camera.
 
I'm happy to announce I have taken my first picture in cm9 with preview working. I went the other way with kernels, moving the cm7 camera driver into the cm9 kernel, and that seems to do it.

I'd love to get a test version up somehow but I'm still new at this, let me see if I can figure out how to throw together something quickly.

EDIT: hope this works:
CM-MTDEV9-20130217-really02-21.zip (107.8 MB)
https://mega.co.nz/#!bF8BXQZL!JHhOwCW9Bbe2NQREHuNDfG8qjsZ7N_pSoNq53mlVBjo

- Yes, the date is wrong
- I'm only interested in whether or not the camera is working for you
- The rotation is still wrong
- Front camera doesn't work
- Good luck!
D/L and ready to test the hell out of it in the morning.
 
Good Job Adamto!! You finally fixed the Camera. The preview is still rotated 90 degree but that shouldn't be too hard. flash goes off, it makes that beeping sound and it captures the picture in the correct orientation. I can't believe you finally did it!!
 
Good Job Adamto!! You finally fixed the Camera. The preview is still rotated 90 degree but that shouldn't be too hard. flash goes off, it makes that beeping sound and it captures the picture in the correct orientation. I can't believe you finally did it!!

Great to hear it's working for someone else!
 
I'm happy to announce I have taken my first picture in cm9 with preview working. I went the other way with kernels, moving the cm7 camera driver into the cm9 kernel, and that seems to do it.

I'd love to get a test version up somehow but I'm still new at this, let me see if I can figure out how to throw together something quickly.

EDIT: hope this works:
CM-MTDEV9-20130217-really02-21.zip (107.8 MB)
https://mega.co.nz/#!bF8BXQZL!JHhOwCW9Bbe2NQREHuNDfG8qjsZ7N_pSoNq53mlVBjo

- Yes, the date is wrong
- I'm only interested in whether or not the camera is working for you
- The rotation is still wrong
- Front camera doesn't work
- Good luck!

EDIT2: Don't switch to the front camera, causes a crash, then you can't change the camera app to back camera.

Please make a different dl link, this Mega doesn't work for me. I need one I can dl through my triumph. The site tells me the file is too large which is ludicrous because ive downloaded files 600mb in size. I have chrome as well and mega keeps saying its out of date. Thanks
 
I'm happy to announce I have taken my first picture in cm9 with preview working. I went the other way with kernels, moving the cm7 camera driver into the cm9 kernel, and that seems to do it.

I'd love to get a test version up somehow but I'm still new at this, let me see if I can figure out how to throw together something quickly.

EDIT: hope this works:
CM-MTDEV9-20130217-really02-21.zip (107.8 MB)
https://mega.co.nz/#!bF8BXQZL!JHhOwCW9Bbe2NQREHuNDfG8qjsZ7N_pSoNq53mlVBjo

- Yes, the date is wrong
- I'm only interested in whether or not the camera is working for you
- The rotation is still wrong
- Front camera doesn't work
- Good luck!

EDIT2: Don't switch to the front camera, causes a crash, then you can't change the camera app to back camera.

YOU DA MAN! way to go adamto!
 
Please make a different dl link, this Mega doesn't work for me. I need one I can dl through my triumph. The site tells me the file is too large which is ludicrous because ive downloaded files 600mb in size. I have chrome as well and mega keeps saying its out of date. Thanks

Wow downloading 600mb through your triumph, brave man =]
Here is a mediafire link:

CM-MTDEV9-20130217.zip
 
So I have tested the ROM a little here's what's going on....camera view is incorrect but when I take the picture it saves correctly and puts the preview back correctly after first picture.Panarama works as well.Flash works.Camcorder doesn't work it causes force close.Now on to 3rd party apps to see what works.Anyways GREAT JOB!!!!!!
 
So I have tested the ROM a little here's what's going on....camera view is incorrect but when I take the picture it saves correctly and puts the preview back correctly after first picture.Panarama works as well.Flash works.Camcorder doesn't work it causes force close.Now on to 3rd party apps to see what works.Anyways GREAT JOB!!!!!!

Ah, I thought it may have been saving correctly but wasn't positive. I also didn't realize the preview worked after taking picture. I will experiment a little more and look at rotation now that I've got that tips thread off my chest.
 
Ah, I thought it may have been saving correctly but wasn't positive. I also didn't realize the preview worked after taking picture. I will experiment a little more and look at rotation now that I've got that tips thread off my chest.
Yeah as long as you don't close it the rotation is fixed after first picture taken.I'm going to test Skype and ooVoo tonight as well as some other 3rd party camera apps.But this is surely a step in the right direction.Can you do the same with the PA-JB-Jan 10 2013 build?That ROM is like super smooth just no data :(
 
Yeah as long as you don't close it the rotation is fixed after first picture taken.I'm going to test Skype and ooVoo tonight as well as some other 3rd party camera apps.But this is surely a step in the right direction.Can you do the same with the PA-JB-Jan 10 2013 build?That ROM is like super smooth just no data :(

I'm going to leave rom building to others for now. I'd like to get rotation fixed then get this checked in so the rom builders can do their thing =]
 
Just had a quick play with this. Camera is so nearly fully there, and usable in it's current form. I tried it with QR reader with success, the killer app for me is the Chase check deposit, but I don't have a check to test it with yet but am hopeful.

Really well done Adamto, am looking forward to the kernel making it to other ROMs, especially Paranoid Android.
 
Back
Top Bottom