yashsingh1/xdaforums huggingface dataset:
[Touch Pro, Fuze Android Development] Davidp65:
Camera not working on TouchPro RAPH800

Hi,

Has the camera been tested on a SPRINT TouchPro?

After loading the latest Zimage and Modules, I don't see really any difference between the orginal kernel and new one in terms of the Camera working. When I start the camera, I just get a black screen, then after a while I get the FC/Wait prompt. My phone even rebooted.

I have another problem. When my phone goes to sleep for a while with out pressing the power button, it never wakes up. I have to remove the battery to boot the phone again.

Is there a fix for the SPRINT TouchPro and the sleep problem?

Thanks and regards
[Touch Pro, Fuze Android Development] arrrghhh:
RAPH800's are known working with the cam kernel. However, I have heard SoD issues with the RAPH800 and newer kernels - not sure what the culprit is, but I'm sure we'll need logs.
[Touch Pro, Fuze Android Development] Davidp65:
What exactly do I need to send you and where

Hi,

Thanks for the reply.

Ok, where do I find the log file, and what log file (s) will you need?

If RAPH800's are known to work, I'm probably doing something wrong. The only thing I replaced on my SD card (root) was the zimage and the modules file dated 1-10-2011.

Is there a different pair of zimage/Modules I need to use? Are there other files I need to replace on my SD card to make this work? I saw some reference to the conf file, but it didn't seem necessary on my phone.

If not, then the log files will hopefully shed some light.

Also, is there something I can do about the sleep problem? That might be even higher on the list then the camera...

Regards
[Touch Pro, Fuze Android Development] Kate6:
You need to grab the libraries that were in the first posted Diamond package, and the config file that's an attachment on the first post. That config file is necessary for your phone as part of what it does is tell your phone to use those new libraries. You will need to edit a few lines at the bottom of said config file to tell your phone where exactly you put the aforementioned libraries.
[Touch Pro, Fuze Android Development] Davidp65:
Ok, I saw that in the instructions, but I couldn't find it. Then, when I went to the latest post on the kernels, I thought I only needed the zimage and the modules file. Also, everything seems to be specific to the diamond....

Later this afternoon I can add the lib files and config from the diam zip.

I post my results.

Thanks
[Touch Pro, Fuze Android Development] drhadidy:
ok... this is just wiered my friend!!!

using the configuration i had before moving to this thread i had trasfered many files and folders between my mobile and my linux operated laptops with no problem at all...

but just now i noticed that i could never transfer anything with other mobile phones!!!!

i really could get paired but could never get connected or transfer anything...

but as soon as i connected to my linux laptop it worked fine and automatically created a folder called bluetooth and could see it in gallery and all!!

now i cant start the service on my phone!
[Touch Pro, Fuze Android Development] mizofizo:
All is looking good on my Sprint TP2. I had to use msm_vfe7x.ip_format=1 to get the colors looking correct. Also, I'm averaging about 9 hours of battery life for what it's worth...

Is there a possibility for more advanced options such as ISO controls in the future?
[Touch Pro, Fuze Android Development] Davidp65:
Update on camera..working..sort of..

Hi,

I copied the lib folder and files to the root of my sdcard. I also copied the froyo.user.conf to the conf folder.

Now, I'm getting strange behavior. I can take pictures which is an improvement from before. However, I get fc's after one picture. If I clear the data, it works again. Also, the picture is very blueish causing it to as if it doesn't have any color. Any ideas on how to fix this?

I am also having trouble with the phone going into a permenant sleep. I have the screen timeout at the max. If I press the power button and leave it more than about a minute or less, I have to remove the battery to boot backup.

Also, the battery indicator doesn't seem to show an accurate reading.

Is there a fix for either of these to things? If I need to post these two questions on the other AOSP forum, let me know.

Thanks and regards
[Touch Pro, Fuze Android Development] viruscrazy:
Libraries are in the first package (in the folder lib_pack). I've added a zImage for blackstone cam tests
[Touch Pro, Fuze Android Development] Sefy:
On my Fuze it rebooted the phone (i just used the zImage, wasn't sure if i should be putting the DIAM100 kernel in the other link, will test with that as well in a moment).
[Touch Pro, Fuze Android Development] xUmaRix:
updated zImage reboot my phone when i try to run haret.previous zImage works and get booted
[Touch Pro, Fuze Android Development] viruscrazy:
Seems like the memory rework is not yet working...i will make new images as soon as I can with just memory changes (I will disable camera for those devices till it runs with memory change).

Thanks for your help.
[Touch Pro, Fuze Android Development] Sefy:
Right now it seems to have killed my Android, when i put back the original zImage, i got FC's on everything and the Android setup screen started and crashed as well. oh well :(
[Touch Pro, Fuze Android Development] Corias:
+1, RAPH100 reboots ater replacing ZImage and adding Diamond modules
[Touch Pro, Fuze Android Development] funkys:
Diam 100

Camera is working very good. I can take pictures. Video kills the program.

I don't know how to make log file.

best regards
[Touch Pro, Fuze Android Development] viruscrazy:
Video is not yet working because of memory (and maybe other things).

For non-diamond testers : please can you try the newest image I've just uploaded. Once you've booted, please make a dmesg log (adb shell dmesg >dmesg.log) and send it to me (contact via pm if you need to send it by mail, or attach it to your post).

Thanks

(link to the new file : http://dl.free.fr/pFafLd0d5 )
[Touch Pro, Fuze Android Development] Steelmer:
will be version for xperia x1(kovsky)???
[Touch Pro, Fuze Android Development] viruscrazy:
Not right now as camera library does not include your sensor. One dev is working on that but have some problems with getting sensor to correctly work with this library.
[Touch Pro, Fuze Android Development] xUmaRix:
here is blac100 dmesg log.Hope it helps.blac100-dmesg.log

[ 0.000000] Linux version 2.6.27.46-01187-geaf3c1e-dirty (Jerome@Linux-Jerome) (gcc version 4.4.1 (Sourcery G++ Lite 2010q1-202) ) #656 PREEMPT Thu Dec 23 15:09:50 CET 2010
[ 0.000000] CPU: ARMv6-compatible processor [4117b362] revision 2 (ARMv6TEJ), cr=00c5387f
[ 0.000000] Machine: HTC blackstone cellphone (aka HTC Touch HD)
[ 0.000000] pmem_setting_32
[ 0.000000] pmem_start = 0x25100000
[ 0.000000] pmem_size=0x02000000
[ 0.000000] pmem_adsp_start = 0x27100000
[ 0.000000] pmem_adsp_size=0x00800000
[ 0.000000] pmem_gpu0_start = 0x00100000
[ 0.000000] pmem_gpu0_size=0x00700000
[ 0.000000] pmem_gpu1_start = 0x16b00000
[ 0.000000] pmem_gpu1_size=0x00800000
[ 0.000000] pmem_camera_start = 0x26900000
[ 0.000000] pmem_camera_size=0x00800000
[ 0.000000] ram_console_start = 0x16afffff
[ 0.000000] ram_console_size=0x00000001
[ 0.000000] fixup: nr_banks = 2
[ 0.000000] fixup: bank0 start=10000000, node=00000000, size=06b00000
[ 0.000000] fixup: bank1 start=20000000, node=00000000, size=05e00000
[i]------------------------------------------------snip----------snip------------------------------------[/i]
[ 1.210113] msm_add_mem_devices: register pmem_device @0x25e00000, size 0x02000000
[ 1.210479] msm_add_mem_devices: register pmem_gpu0 @0x00100000, size 0x00700000
[ 1.210815] msm_add_mem_devices: register pmem_gpu1 @0x16b00000, size 0x00800000
[ 1.211059] msm_add_mem_devices: hw3d_device smi @0x00100000, size 0x006fffff
[ 1.211151] msm_add_mem_devices: hw3d_device ebi @0x16b00000, size 0x007fffff
[ 1.211425] hw3d_probe: hw3d_device regs @0xa0000000, size 0x000fffff
[ 1.211486] hw3d_probe: hw3d_device smi @0x00100000, size 0x00000000
[ 1.211547] hw3d_probe: hw3d_device ebi @0x16b00000, size 0x00000000
[ 1.213317] msm_add_mem_devices: register ram_console @0x008e0000, size 0x008fffff
[ 1.213775] ram_console: got buffer at 8e0000, size 20000
[ 1.213928] ram_console: found existing buffer, size 131060, star
[i]------------------------------------------snip----------snip-----------------------------------------[/i]
[ 1.692840] msm_sync_init: failed to initialize mt9p012
[ 1.692932] msm_camera_mt9p012: probe of msm_camera_mt9p012. failed with error -5
[Touch Pro, Fuze Android Development] CzarnyRafal:
Am I doing it good?

# cd /sdcard/lib_pack
cd /sdcard/lib_pack
# ./lib_inst.sh
./lib_inst.sh
[Touch Pro, Fuze Android Development] viruscrazy:
Thanks a lot, I've made a new zImage with new settings, can you test it and post dmesg log if it boots up ? Thanks

http://dl.free.fr/ptDB2YuWr
[Touch Pro, Fuze Android Development] viruscrazy:
Yes. maybe you will have to add sudo at the beginning
[Touch Pro, Fuze Android Development] xUmaRix:
cant boot up maybe due to OC.will test more.

EDIT-confirm cant boot
[Touch Pro, Fuze Android Development] Steelmer:
Can anybody make stable for xperia,if it works i will donate
[Touch Pro, Fuze Android Development] viruscrazy:
Here is a new image without my mod but with printks for debug. Can you please use it and post the logcat (as you've done last time.

Thansk to be patient...

Link : http://dl.free.fr/gzaJPtu6Y
[Touch Pro, Fuze Android Development] -GIM-:
Will support topa100?
[Touch Pro, Fuze Android Development] :
ok thanks! testing again! I really appreciate your work :)
[Touch Pro, Fuze Android Development] xUmaRix:
just the same phone just reboot when haret start
[Touch Pro, Fuze Android Development] pdawg17:
How were the colors "off" for you? I haven't looked closely at my pics but I have a Sprint TP2 and colors seemed "pretty good"...
[Touch Pro, Fuze Android Development] slickdaddy96:
+1 on that man, commiting is the #1 thing, but if you are going to put out another merge with 1253 that would be awesome also, so I don't have to choose between headphones and camera! I know I am impatient! :D

I am just excited with things moving in such a quick pace recently. Might not get a new phone anytime soon with this build getting better and better every day.

Keep up the good work man.
[Touch Pro, Fuze Android Development] mizofizo:
I think I tried setting 2 and 3. One of them was essentially blue and black and the other had a green tint on everything. Setting 1 has given me pretty close colors overall.
[Touch Pro, Fuze Android Development] viruscrazy:
What device are you using ? Don't forget to mention it otherwise, I can't really help you. If you get FC's, that might be a memory problem or something else. can you please make a logcat right after the FC and post it or PM me the file. Things like battery indicators are from the main kernel and I'm not working on that now. The problem with battery is that we don't have an algo that cares about peripherals beeing enabled or not, we just monitor the raw battery data...that's to say if wifi is on, then the battery level will decrease, and when wifi is turned off, it will increase...power management is not yet fully done on our device.

For your color problem, if you have a raphael, then please use the msm_vfe7x.ip_format=3 command line option (have a look to the first post of the thread).

Please let me know for the logcat (see the first post if you don't know how to do it).

Thanks

The msm_vfe7x.ip_format=x command line was only for the raphael as mentionned in the first post. You can remove it from your command line as 1 is the default values sent by the library, and in the next release, it will be hardcoded.

For the ISO stuff, I'm not sure the userland camera application will let us control it. Also, the library need to support it (at the moment, I've not cared about that, I must at first make a new library to work for the phones that don't have mt9t013 sensor).
[Touch Pro, Fuze Android Development] GhostAnton:
HTC Diamond CDMA - don`t boot, when i start hares device go to the black screen. Can not connect whith adb interface to gel log.
[Touch Pro, Fuze Android Development] viruscrazy:
Ok. that confirm the problem that an other user had. I'm going to check the camera init pins, it seems some pins are not used in CDMA variant. Can you tell me the winmo ROM you're using (or the original ROM you had) and the exact model (DIAM500 or else).

Regards, Jerome
[Touch Pro, Fuze Android Development] GhostAnton:
I using this ROM "Energy.VICTOR.28244.Titanium.Dec.21". My device is CDMA Diamond Touch 6950 Sprint. DIAM500
[Touch Pro, Fuze Android Development] sunfaquir2:
quick question, maybe not the right place to ask,

anyone get youtube working on your tp2, I never got it works, no matter through the app or the browser, I can browse the video, but when playing, only sound and black screen or still image. I use the cab from here

http://xdaforums.com/showthread.php?t=627997
[Touch Pro, Fuze Android Development] arrrghhh:
This thread is definitely not the right place to ask that question. This is a thread dedicated to camera testing, has absolutely nothing to do with YouTube.

I'm not sure what compelled you to post that question in this thread, but it would probably be better served in the main thread....

Wow, just noticed you said TP2. You're posting in the original TP section. Glad to see someone paid attention in school :rolleyes:
[Touch Pro, Fuze Android Development] Davidp65:
Camera only takes one picture on RAPH800 TouchPro
[Touch Pro, Fuze Android Development] ndno:
Viruscrazy, very awesome work on the camera functionality for XDAndroid. I know this is a work in progress but how much more testing is required before your work can be merged and committed to the mainline htc-msm-2.6.27? I would love to use the camera feature in the current 1253 kernel. Thanks for the great work!
[Touch Pro, Fuze Android Development] viruscrazy:
Hi,

I don't know yet when it will be merged in the main tree. I'm working on a new library which support more sensors and it will probably require some kernel adjustements. Maybe it's better to wait for this new library to work (if I can get it to work completely) and all devices to be supported. If I can't make it work, then I will make the patches for the current library and ask phhusson to merge them in the main tree.

Jerome
[Touch Pro, Fuze Android Development] sllyname:
Hi Jerome, It might also be better to bisect the most common changes and merge them as atomic patches now rather than drop a huge blob on the tree. Right now, gitorious can't show my the first patch or some of the others in webview. This is a concern because my raph110 has a FC on every camera exit, and if camera is not closed, there is what people call a SOD, but is really a kernel crash, and kills the battery, even if plugged in. This a not an overclocked device.

I haven't traced down what is happening since I am still disappointed at a sloppy patch in the end of July that forced the inclusion of the rhodium device to build a raph kernel. I would rather track this down first. But git seems really unfriendly

to rev level updates, (ie. nothing like svn up -r <rev number>)

Thank you for getting the camera to work, mark
[Touch Pro, Fuze Android Development] viruscrazy:
That's what I did when I made my patches. I've made separated patches for clock changes, board changes, and then camera drivers...but as I'm still working on this, at the moment, only the clock patch can be merged...and it can even be reduced to its strict minimum but I would like that all the reversed code that I wrote can be preserved as it may be usefull if we have to "play" again with clocks, especially with clocks rails.
[Touch Pro, Fuze Android Development] gmp029:
I am still getting a force close on the camera on my sprint raph800.

This may be a noob question, but how do I run the logcat after the camera fc's? Sorry if this was answered elsewhere I couldn't find it using my phone.
[Touch Pro, Fuze Android Development] arrrghhh:
adb logcat...

I'm assuming you don't have adb installed. See the thread I created on adbhere.
[Touch Pro, Fuze Android Development] drhadidy:
lost calibration!!

Hi guys.... real great work here...

for the last couple of days it was running so smooth anf flawlesly...

even the battery consumption was so much improved...i dont know how or why...i just love it...

but just today i felt that the monitor shifted a little ...like it needed to be recalibrated...

i deleted the file t_s calibration and rebooted...

it shows calibration failed everytime... i dont get to see the small white stars for calibration!!

then system boots and monitor is a mess....:eek:

i rebooted many times.... from the dual boot app, and from winmo file explorer... and from the windows boot application... its always failing...

the file is never being created anymore!!!:confused:

now what can i do??
[Touch Pro, Fuze Android Development] csstaticx:
Awesome job on the camera working for the TP2. However, with this I've lsot my WiFi. Its just says error.

Any one else getting this issue?
[Touch Pro, Fuze Android Development] arrrghhh:
Modules must match the kernel - be sure to delete the old modules file as well.

Generate a ts-calibration file from an older kernel and save it. Once you get a good calibration file, you should never need to recreate it - just save it and reuse it.

This kernel is for testing, it's not meant to be fully-featured. It's for testing camera, nothing else. Don't worry if you can't calibrate from this kernel.
[Touch Pro, Fuze Android Development] drhadidy:
sorry mate... how can i generate the file??
[Touch Pro, Fuze Android Development] BoominSVX:
Use one of the stable (no camera) kernels and delete the ts-calibration file before booting, once you've calibrated it, boot back into windows, copy the file to your pc incase you need it again, and put this kernel back on. Done.
[Touch Pro, Fuze Android Development] arrrghhh:
Sorry... As was stated above, delete the ts-calibration file and on the next boot it'll ask you to calibrate it during boot.
[Touch Pro, Fuze Android Development] hovensy:
Wifi, bluetooth not working on this module??

Nice advancement here... camera works perfectly for me when I used it on my diamond with the latest xandroid frx3 but the problem is the wifi was unstable, sometimes it does work, a lot of times it has error, (can't scan for network then off) the bluetooth does not turn on also. Already deleted all the files and made a fresh copy but still the same.. .. any advice on this? thanks
[Touch Pro, Fuze Android Development] arrrghhh:
This kernel is meant for camera testing.... Put the other issues aside, wait for it to get committed. Please focus on issues related to the camera, resets related to the camera, etc.
[Touch Pro, Fuze Android Development] hovensy:
thanks

thanks arrrghhh.. sorry for the wrong questions asked.. glad to made the camera working on my Diamond.:)
[Touch Pro, Fuze Android Development] dcox2004:
Rhod400 on Sprint. Camera works like a charm. Switching to video causes an FC. Any info needed/wanted from me on that?
[Touch Pro, Fuze Android Development] djdafreund:
Probably not. It's been mentioned video recording will give you an FC if you STILL try to use it. I believe he's trying to get camera working (displaying right, colors correct) first on all these models, then looking into the other things after wards.
[Touch Pro, Fuze Android Development] viruscrazy:
You're all right. I'm not working yet on video recording as it seems related to GPU memory, which will be an other complicated task..

Right now, I've got the Legend library working on my diamond. I've made a kernel fix that detects the library used, so that if the new library doesn't work, the old one can still be used.

I will need some Blackstones testers as it's mainly for Blackstone right now (sensor different from rhodium, diamond and raph).

I will have to modify the camera library from userland to make it work with the new library. That the next step. Once it will be usable, I will post a fll package including all the things needed for this library.
[Touch Pro, Fuze Android Development] Erikson89:
Has the Topaz device the same sensor than the Blackstone device?

Is it possible that Topaz also works with the new library?
[Touch Pro, Fuze Android Development] viruscrazy:
I can't tell right now for sure, but I think that in a previous post, I told that the topaz also had the mt9p012 sensor...If so, then it will be supported by this new library.
[Touch Pro, Fuze Android Development] Erikson89:
Great news! I hope it will work.

Thanks for your effort!
[Touch Pro, Fuze Android Development] welard:
i am ready and waiting to test on my blackstone.............thank u very much
[Touch Pro, Fuze Android Development] TRNSLN:
Testing on Blackstone

Count me in... I'll test it too.
[Touch Pro, Fuze Android Development] Thegn:
Count me in, too! :-)
[Touch Pro, Fuze Android Development] foggydew88:
My Blackstone is here asking me to ditch WinMo :D

Ready to test your CAM kernel.

Slán!
[Touch Pro, Fuze Android Development] sootc:
Glad to hear the good news. I can be 1 of the tester. Let me know the test pacthes and i will download it and test it. Thanks.
[Touch Pro, Fuze Android Development] poleshuka:
My Blackstone ready for your tests
[Touch Pro, Fuze Android Development] Simon_WM:
am up f testing xD
[Touch Pro, Fuze Android Development] arrrghhh:
These are all the same post... Please, let's not fill this thread with drivel. viruscrazy knows there's plenty of people willing to test the new code - so there's no need to post stuff like this.

He'll release it when it's ready, then you can test and post feedback to your hearts content. Otherwise, let's just leave these posts at the door - they don't do anyone any good whatsoever. Thanks.
[Touch Pro, Fuze Android Development] neilson:
But posts are the lifeblood of a thread. If posts aren't made frequently, then the thread dies.

That is, unless the thread is stickied.
[Touch Pro, Fuze Android Development] arrrghhh:
I'm pretty sure viruscrazy will post when he has stuff to test. So no, the thread will not die - it may seem like it to you if it falls down to the bottom of the page, or even to the next page. But I guarantee you he will post when he has something new to test.
[Touch Pro, Fuze Android Development] shaunMfrazier:
So I am using a rahp 800... I have tried to make me camera work a few times and end up #$%^ing it up (bad normal) What is the best Module & zimage for the camera so far???

Thanks :confused:
[Touch Pro, Fuze Android Development] arrrghhh:
Newest in the first post is the best, 10/01/2011.
[Touch Pro, Fuze Android Development] djdafreund:
BTW- We are assuming you are erasing your data image starting fresh or your asking for possible trouble. It's a safe practice anyway when changing so much. As arrrghhh said, just grab the 10/1/11 (or in the US obviously it technically 1/10/11) dated one, and the other usual files and you SHOULD be fine, if following the instructions PROPERLY that is.

I just applied all the FRX04 stuff that just got released, over this build (which was tech mostly FRX03 with the added files from here), and camera is still working. I tried it for the heck of it, but since it's still working, BIG save. I didn't care to start from scratch if it didn't, but backed up my directory IN CASE, so i had nothing to loose. (was just system.ext2 and rootfs.img files anyway in the update. I realize if it was a different kernel it for sure wouldn't.) :)
[Touch Pro, Fuze Android Development] viruscrazy:
The first post has been updated with a big update.

Time for blackstone burning tests...

Diamond users will enjoy MP3 without audio stuttering, Sleep of death should be gone and camera zoom is working...
[Touch Pro, Fuze Android Development] helicopter88:
Yeah!

I'll test 'em and i will try to put it in my bulid!

Thank you very much viruscrazy

EDIT: It works!
[Touch Pro, Fuze Android Development] francarl:
thank you for your work.

Just tried with FRX04 (out today) but camera doesn't open anymore. I'll try later again and post logs.