yashsingh1/xdaforums huggingface dataset:
[Touch Pro, Fuze Android Development] Erikson89:
Topaz device doesn't boot. After Haret boot black screen and reboot to WM.

System: FRX04

Rootfs: 22.01.

Clean install.

No overclocking and original startup.txt + pm.sleep_mode=1

Can anyone told me a thread or how-to to log the right way?
[Touch Pro, Fuze Android Development] g3rm0:
Device: Blackstone

System: FRX04

Rootfs: 22.01

Clean install of everything

Camera app gives blank screen (backlight still on) when opened and stops responding after some time. Logcat and dmesg attached.

Hope it helps.

BTW: Thumbs up for your great work!
[Touch Pro, Fuze Android Development] sootc:
I have just download your new package libraries and kernel+module package to my Blackstone phone. When i select the Camera, there is a totaly black screen and nothing. How can i get the dmesg + logcat logs file and post to you?
[Touch Pro, Fuze Android Development] arrrghhh:
Awesome news, thanks Jerome!

You should either attach it as a file, or at least put it in code braces! Thanks!

Instructions are in the first post. ADB is probably the easiest for taking logs. You could also use an app called OS Monitor (in the market).
[Touch Pro, Fuze Android Development] Thegn:
Yes, sorry. I was in a hurry and wanted to post something about the status. Well, here are my logcat and dmesg. Now as attachments... :p
[Touch Pro, Fuze Android Development] djdafreund:
I would like to mention if you (following the instructions) commented the one line out in the froyo conf file and uncommented the other line yet first before posting your log file??? Just on case you didn't do this yet. I get the same black screen on my raph800 but currently am now trying the other command line(uses other library) to see if THAT'S the one needed so viruscrazy knows.

"* The camera library that was used till now (named in the package liboemcamera.so.dream) and a newer library from a legend phone (named liboemcamera.so.legend). The second library support more camera sensors than the first one and will support the blackstone sensor. It was not made for our phones, so I had to patch it and to make some "hacks" in the kernel to make it work (that's why it was so long before I can make it work...). If you have problems with this library, use the dream one (if you don't have a blackstone of course...). See the conf file to use the dream library."

Meaning, if it's not working for you, try the dream one. uncomment the last line with (#), and commenting out the last line. (It will be VERY clear when you look at it, it tell's you literally what to do, so it shouldn't be hard.) Hopefully that should help you out. :)

Update- I just tried both libraries, but still get a black screen on both, then eventually the "The application Gallery(process.com.cooliris.media) has stopped, then after closing i get the camera app force close/wait message box. I'll try to get a log for you, but later as i'm running late for work now. I also updated to FRX04, so worse case, i can revert. Camera WAS working fine though with FRX04 before today's new camera update FYI.

Update 2- Looked at the conf file and noticed it's (this time around) looking in a subdirectory, so i commented that out since all the files are put in my main SD root directory, and i'll try it again (VERY likely the problem). Shoot, now i'm REALLY late for work. LOL
[Touch Pro, Fuze Android Development] rpierce99:
I'm having the same issue on my Sprint RHOD400 CDMA with the camera app freezing.

Here is what I believe to be the relevant section of logcat, I can post the full logcat if necessary, let me know.

D/Smack ( 1518): [PacketReader] processListeners: Num of loop processed = 2
V/QualcommCameraHardware( 1382): openCameraHardware: call createInstance
D/QualcommCameraHardware( 1382): createInstance: E
V/QualcommCameraHardware( 1382): constructor EX
V/QualcommCameraHardware( 1382): startCamera E
V/QualcommCameraHardware( 1382): loading liboemcamera at 0xb0010a34
V/QualcommCameraHardware( 1382): Detecting liboemcamera "version"
V/QualcommCameraHardware( 1382): liboemcamera type used : BASIC_LIB
I/QualcommCameraHardware( 1382): startCamera: camsensor name mt9t013, flash 0
V/QualcommCameraHardware( 1382): startCamera X
V/QualcommCameraHardware( 1382): initDefaultParameters E
V/QualcommCameraHardware( 1382): native_set_parm. camfd=11, type=1, length=28
D/gralloc ( 1406): gralloc_alloc_buffer -> size = 0x1e000, usage = 0x133
D/gralloc ( 1406): gralloc_alloc_buffer -> allocating into standard pmem
W/WindowManager( 1406): App freeze timeout expired.
W/WindowManager( 1406): Force clearing freeze: AppWindowToken{442a66c0 token=HistoryRecord{440171c0 com.android.camera/.Camera}}
D/gralloc ( 1406): gralloc_alloc_buffer -> size = 0xbc000, usage = 0x133
D/gralloc ( 1406): gralloc_alloc_buffer -> allocating into standard pmem
D/dalvikvm( 1406): GC_EXPLICIT freed 3726 objects / 162072 bytes in 200ms
W/ActivityManager( 1406): Launch timeout has expired, giving up wake lock!
W/ActivityManager( 1406): Activity idle timeout for HistoryRecord{440171c0 com.android.camera/.Camera}
D/dalvikvm( 1600): GC_EXPLICIT freed 2873 objects / 186472 bytes in 120ms
D/dalvikvm( 1406): GREF has decreased to 399
D/dalvikvm( 1627): GC_EXPLICIT freed 1317 objects / 109280 bytes in 140ms
D/dalvikvm( 1651): GC_EXPLICIT freed 4857 objects / 310656 bytes in 170ms

DMESG is attached. I upgraded to FRX04 and upgrade the files in this post from 1/21 at the same time, so I'm not sure which update caused the problem for me.

EDIT: Log is from "legend" version, but I got the same result (app freeze) when I was tried the "dream".
[Touch Pro, Fuze Android Development] arrrghhh:
Jerome,

It appears you have the bind statements backwards in the froyo.user.conf that's in that libpack... Just FYI.

This is what is in there currently:

mount --bind /sdcard/lib_camera/liboemcamera.so /system/lib/liboemcamera.so.legend
#
# comment the line above and uncomment the line bellow if the camera fails to work.
#
#mount --bind /sdcard/lib_camera/liboemcamera.so /system/lib/liboemcamera.so.dream

Shouldn't it be

mount --bind /sdcard/lib_camera/liboemcamera.so.legend /system/lib/liboemcamera.so
#
# comment the line above and uncomment the line bellow if the camera fails to work.
#
#mount --bind /sdcard/lib_camera/liboemcamera.so.dream /system/lib/liboemcamera.so

?

EDIT: Oh, and there's still that old froyo.user.conf attached to your first post. Thanks a bunch for rearranging the first post - makes a lot more sense now. I'd just remove the attachment to the post, and leave that libpack. Thanks again dude!
[Touch Pro, Fuze Android Development] rpierce99:
arrrghhh I was just thinking the same thing, I need to reboot a couple times to test it but I bet that's it.
[Touch Pro, Fuze Android Development] rpierce99:
This does in fact fix the camera app freeze, at least on my device. I also tested the zoom function and it works great.

EDIT: And by the way, I am using the "legend" file for my RHOD400 CDMA.
[Touch Pro, Fuze Android Development] Erikson89:
Changing it also doesn't work for me. Black screen after booting.
[Touch Pro, Fuze Android Development] funkys:
I confirm there is a mistake in conf file. Camera is working perfect on my DIAM 100. Zoom is also working. MP3 files doesn't stutter anymore. Although I still see these audpp: DMA missed messages in dmesg.log. Respect Jerome.
[Touch Pro, Fuze Android Development] welard:
Camera working on my blackstone!!!!! Wooow its great fanks to the maker you are the best!!!!!!!!!:d:d

DOUBLE TAP ZOOM WORKS.........STILL MESSING WITH IT AND WILL LEAVE MORE FEED BACK
[Touch Pro, Fuze Android Development] arrrghhh:
Fantastic news. I will close the bug on the tracker... Hopefully this fix can get pushed to the main GIT tree fairly soon Jerome? Not a huge rush, but it'd be nice to not have to wait on cam for the fix to get integrated ;).

Ditto - legend cam file works on RHOD400 w/zoom. Amazing job!

I've attached a fixed froyo.user.conf - feel free to just use this one if you want Jerome, thanks for the great work!

# General parameters
general{
renice=1	# Run the renice script to inprove call answering
}

#compcache related parameters
compcache{
compcache_en=1	# enable(1) or disable(0)20 compcache
cc_disksize=75	# Ram swap disksize - any number between 1 to 98 should work; default is 1/4 of the RAM (24)
cc_memlimit=64	# Limit the memory usage for backing swap (cc .5x known issue-defaults to 15% of total RAM)
cc_backingswap_en=0	# enable(1) or disable(0) backing swap
cc_backingswap=/dev/block/mmcblk0p4 # pointing to the backingswap partition device, swap
}

#create swap file for compcache or linux swap
swap_file{
swap_file_en=0	# set to 1 to create swap file
# set to 0 to del the swap file
linux_swap_file_size=32	# swap file size in MB
linux_swap_file=/sdcard/swapfile	# pointing to the swap file location ( must be /system/sd/)
}

#Linux swap parameters
#
# linux swap can only be enabled if cc_backingswap_en is set to "0"
#
linux_swap{
linux_swap_en=0	# enable(1) or disable(0) linux swap
linux_swap_partition=/dev/block/mmcblk0p4 # swap partition device
}

#virtual memory
sys_vm{
sys_vm_en=1	# enable(1) or disable(0) virtual memory configurations
swappiness=0	# default 60
page_cluster=0	# default 3, (0 since CM3.9.6+)
laptop_mode=5	# default 0
dirty_expire_centisecs=3000	# default 3000
dirty_writeback_centisecs=1500	# default 500
dirty_background_ratio=3	# default 5
dirty_ratio=5	# default 10
vfs_cache_pressure=200	# default 100 (tendency of the kernel to reclaim cache memory)
overcommit_memory=1 # default 0 (0=Heuristic 1=Always overcommit 2=Don't overcommit)
overcommit_ratio=80 # default 50 (% of Physical+Virtual memory to allow allocation)
}

# custom shell commands, these commands run last
custom_shells{
rm -f /sdcard/fsck*.rec
mount --bind /sdcard/lib_camera/libc.so /system/lib/libc.so
mount --bind /sdcard/lib_camera/libcamera.so /system/lib/libcamera.so
mount --bind /sdcard/lib_camera/libGLES_qcom.so /system/lib/egl/libGLES_qcom.so
mount --bind /sdcard/lib_camera/gralloc.msm7k.so /system/lib/hw/gralloc.msm7k.so
mount --bind /sdcard/lib_camera/liboemcamera.so.legend /system/lib/liboemcamera.so
#
# comment the line above and uncomment the line bellow if the camera fails to work.
#
#mount --bind /sdcard/lib_camera/liboemcamera.so.dream /system/lib/liboemcamera.so
}
[Touch Pro, Fuze Android Development] InkPouchMan:
Does not boot on my DIAM500 (same as last version). Displays log for about 1 second, then screen goes dark with yellow vertical streaks. Using FRX04 system.ext2, Jan 21 rootfs, most recent kernel/modules/libraries from this thread.
[Touch Pro, Fuze Android Development] welard:
Camera freeze after taking picture on my blackstone..............still messing:d
[Touch Pro, Fuze Android Development] arrrghhh:
Well it shouldn't make a big difference, but if you're on FRX04 remove the graphics files from this one - so you should only have three active bind mount statements in your froyo.user.conf - one for the libcamera.so, one for the liboemcamera.so and one for the libc.so.

Also just for fun, try a new data.img. Still not booting, format using the HP tool. Full format, FAT32. If it's still not booting, we'll definitely need to see some logs - there's a few methods we can try to get a log from a phone that's not properly booting.
[Touch Pro, Fuze Android Development] InkPouchMan:
I'd already killed data.img, formatted FAT32. Just tried again after commenting out libgles & gralloc binds in conf file (is that what you meant?). Still nothing.
[Touch Pro, Fuze Android Development] g3rm0:
Device: Blackstone

System: FRX04

Rootfs: 22.01

Clean install of everything (again)

Now fixed froyo.user.conf

Camera works on preview with legend lib. I can zoom in/out, switch modes, picture size etc. Taking pictures fails everytime.

Dmesg and logcat attached.
[Touch Pro, Fuze Android Development] spitzilla:
I have the same issue on my DIAM500. Gets to the bottom of about one screen of linux boot text then everything fades to a black screen of nothingness. This is using the provided zImage and modules, along with FRX04. I did comment out the mounts other than the 3 camera files.
[Touch Pro, Fuze Android Development] Erikson89:
I also tried the tips on Topaz but it don't work. Black screen after boot and sometimes reboot to WM. I don't know whether the haret boot was complete.

SD Card reformated

new FRX04 system with rootfs and cam kernel/modules

copied lib_camera to sdcard

used froyo.user.conf with and without libglas and gralloc
[Touch Pro, Fuze Android Development] GoldAngelo:
RAPH100

FRX04

rootfs: 22.01.11

I have the same problem. When I deleted

mount --bind /sdcard/lib_camera/gralloc.msm7k.so /system/lib/hw/gralloc.msm7k.so

mount --bind /sdcard/lib_camera/libGLES_qcom.so /system/lib/egl/libGLES_qcom.so

and when XDANDROID boot, the screen shows me a message:

,,The application system has stopped working. Close / Wait". and by that I can not get to the ADB
[Touch Pro, Fuze Android Development] InkPouchMan:
Tried again, let it run for quite a while. Screen never became responsive, adb wait-for-device never exited, but now it built a mountable data.img! Any way to pull a log out of that?

EDIT: Backlight responds to power button, but screen is black. Some portions of the touchscreen are generating vibration responses.
[Touch Pro, Fuze Android Development] Erikson89:
You can open it with WinImage(30 days trial) but I don't know which file is important.

Update: I compared an older working image with the broken new one. the folder "system" is missing and instead there is a folder "tombstones"
[Touch Pro, Fuze Android Development] InkPouchMan:
I somehow got adb working. I guess the phone did boot after all, but the screen's just not working. Trying to post logcat (never attached anything here...).
[Touch Pro, Fuze Android Development] djdafreund:
Thanks Arrrghhh for noticing the mistake in the conf file. :) I changed it and it's working just fine now on my touch pro, zoom works great too. Thanks viruscrazy!!! U should change ur name to Workincrazy. LOL. Such awesome advancements with getting our camera's working. I finally get to use xdandroid daily now (with my charger handy in case of course).

@to all with issues,,

please make sure if ur dumping ur files in the root of ur SD card, to modify the conf file as this one points to a sub directory. Or make sure u kep the files in the subdirectory. By default it works fine, but since so far we re used to having the files in root,and ur wanting to keep things the same, to remove the folder dir its looking for in the conf file, so is looking in the right spot.

Working great with default library on raph800 though. Using frx04. Thanks viruscrazy!!!
[Touch Pro, Fuze Android Development] Erikson89:
Here is a logcat.txt.

The phone rebooted suddenly after the last line.

logcat2.txt:

The phone doesn't reboot and shows a black screen.

Both logcat are made without

mount --bind /sdcard/lib_camera/libGLES_qcom.so /system/lib/egl/libGLES_qcom.so

mount --bind /sdcard/lib_camera/gralloc.msm7k.so /system/lib/hw/gralloc.msm7k.so
[Touch Pro, Fuze Android Development] xjustice:
Diam100

Hi,

I can confirm Diam100 camera works in FRX04, roofs 22.01.2011 without update.

Nice job, you done it!

xjustice
[Touch Pro, Fuze Android Development] viruscrazy:
Well, I wasn't here tonight, was playing a handball match...lots of testers and messages to read...

I would like to thanks everyone for your tests and especially Arrrghhh for the "debug" of the froyo.user.conf...sorry for that, I was almost sure I did test it before I post it...I now have to find if I made the mistake on my device too ?!? I don't remember if I did the conf file from memory or if I pulled it out of my device...

I will change the package and replace the link in the first post. Also, I will remove the old attached froyo.user.conf file...(that will be done tomorrow).

I've seen people having problems with snapshot (preview working but snapshot fails). I will look at that tomorrow.

For diamond CDMA users with black screen problems, did you tried previouses kernels ? Did they worked or not ? If they didn't worked, then we will have to make some debug tests... It might be related to some GPIOS for camera (as for the raphael).

Thanks everyone again for your tests. Tomorrow I will try to have a look at the logs and make the update of the package.
[Touch Pro, Fuze Android Development] InkPouchMan:
The Jan 10 kernel behaved the same for me.
[Touch Pro, Fuze Android Development] spitzilla:
DIAM500

I tried the Jan 6th and Jan 10th kernel, with the same result. Do we still need to add "board-htcrhodium.is_cdma=1" into the startup.txt or is that unnecessary?
[Touch Pro, Fuze Android Development] tgkdubb:
just chiming in...it definetly works on the Raph800 with the newest conf file Thanks again for all the hard work.

sidebar: anyone have MMS working on sprint?
[Touch Pro, Fuze Android Development] pdawg17:
Anyone have this working on a Rhod400 with FRX04? Usually this stuff works for me but I've tried with the graphics drivers and commenting them out and when I start camera I just get the 'ol black screen...this is with the kernel supplied by Jerome and the new rootfs of course...
[Touch Pro, Fuze Android Development] BoominSVX:
Not yet. I don't think we will until someone either does some serious RIL legwork, or ports an RIL from a worldphone into the mix. If we made the changes to get it on sprint (actually identify the phone as a CDMA device) it'll break the GSM side of the radio. Eventually phh might get into it, or stine, but these things will take time. I have noticed some recent RIL activity on both the IRC chat and the forums. Maybe the time is near? Until then, you can send but will not recieve.
[Touch Pro, Fuze Android Development] Erikson89:
Topaz:

I made a third log at that. This time with uncommented gralloc and libgles mounts. (Reboot after last line of log)
[Touch Pro, Fuze Android Development] raulvola:
Diamond 100 OK

Hi viruscrazy,

MP3 patch for stuttering media sound is working right on my Diamond.

You make me happy !!!, this bug was not solved since November.

Please, please, dont forget to include your MP3 patch in the main thread of the xdandroid kernels.

As soon as I did the Arggggg changes to the conf file camera is working right, including zoom button.

All of my test with the most recent FRX04 release.

Thanks a lot, you are great !!!

Raul

------
[Touch Pro, Fuze Android Development] viruscrazy:
Unfottunately, I can't push the patch to the main xdandroid kernel. Only few devs can do it. I've sent a mail to phhusson with a link to the patch a few days ago but I don't have a reply yet...

I've updated the first post with a new library package (fix the conf file error + potential fix for the blackstone snapshot crash). I've also enabled 5mp picture sizes for the mt9p012.

Topaz users should not yet use this kernel, the board file is not yet prepared for the camera.

I still need some Diamond CDMA with screen problems to make some dmesg logs...otherwise, I will be harder for me to debug their devices.

Thanks
[Touch Pro, Fuze Android Development] Spige:
blackstone

Camera goes on and it is possible to take pics but not able save it :) it says insert sd card be´fore using the camera.
[Touch Pro, Fuze Android Development] viruscrazy:
Can you make a logcat log please ? Also, please make a dmesg of the device right after boot (don't start the camera, it would overwrite the device boot messages).

Thanks
[Touch Pro, Fuze Android Development] viruscrazy:
I've updated the first post of the thread with a new kernel for Topaz. I need some testers for it.

Others users : have a look to the first post, lib package updated for all devices + potential camera fix for blackstone (except the sdcard stuff mentionned above).
[Touch Pro, Fuze Android Development] welard:
GREAT JOB viruscrazy: IT TAKES A PICTURE AND SAVES IT ON MY BLACKSTONE WELL DONE KEEP UP THE GOOD WORK.............. SWITCHING TO VIDEO DO OF COURSE CRASH CAMERA APP............BUT I KNOW YOU WILL BE WORKING ON THAT AT A LATER DATE..........ONCE AGAIN GREAT JOB!!!!!:)
[Touch Pro, Fuze Android Development] Eodun:
As I'm new (posting), could any dev check my post at http://xdaforums.com/showthread.php?p=10816546 to see if I can add some more useful info for Blackstone development? Thanks!

I'm updating the libraries in this moment, I'll post logs in a while.

EDIT: I'm stupid. Was putting the libs in the andboot dir...
[Touch Pro, Fuze Android Development] Erikson89:
Topaz

Great! Topaz boots and preview works fine but on taking picture the cam application crashs. Then the application doesn't open again.

Logs will follow later!

Zoom works

Close and restart application works if you don't make a picture.
[Touch Pro, Fuze Android Development] viruscrazy:
Thanks for this quick tests. I will need the logcat at first. The dmesg log might not be usefull at this point.
[Touch Pro, Fuze Android Development] viruscrazy:
That's a good idea to make a thread in the others devices forums. Hope that users won't poluate you thread because they didn't read carefully the instructions...
[Touch Pro, Fuze Android Development] Erikson89:
Do you need a logcat from boot, from taking a picture or both?
[Touch Pro, Fuze Android Development] viruscrazy:
Need the logcat when camera has crashed. Thanks
[Touch Pro, Fuze Android Development] Erikson89:
Here it is!
[Touch Pro, Fuze Android Development] Eodun:
Ok, here they are:

Platform: Blackstone

XDAndroid Froyo 2.2.1 FRX04

Kernel & modules: last ones from this thread

Using 01/22 rootfs, the one from 01/23 crashed (will test later)

Results:

-Boots perfectly.

-Takes photos and saves them at 3MP, still working afterwards

-Crashes with 5MP (attached logcat is after taking 5MP photo).

-All other settings work (including zoom and thumbnail of previous photos)

-Didn't try video.

-Attached photo! A bit dark, but I think it's because of contrast & room lights off lol

The weird thing is that all my icons are smaller now :p

(logcat is in zip: too big??)
[Touch Pro, Fuze Android Development] Ray2210:
raph100 cans use the camera with the new libs package and kernel

but no auto focus when using those new things
[Touch Pro, Fuze Android Development] xdmcdmc:
Hi, I have tested on Blackstone with same result like Eodun have it.

Platform: Blackstone

XDAndroid Froyo 2.2.1 FRX04

Kernel & modules: last ones from this thread

Rootfs: rootfs-20110122-6e6bf18.img

I will also play later with camera.

Thanks
[Touch Pro, Fuze Android Development] sootc:
I have updated the latest package libraries. The camera now is working fine but its cannot snap and save the picture. Thanks for the viruscrazy. I will keep on to test your new package libraries and kernal+module package. Good job
[Touch Pro, Fuze Android Development] GoldAngelo:
RAHP100

FRX03

Hmmm... it could be added to froyo.user.conf script that would automatically generate dmesg.txt when we turn Android? So far I am still learning what and how, and I can run the camera but after a while it hangs, and ADB does not detect Raphael (with Xperia X8 I do not have this problem)

For the second run when Raphael turns he himself hangs inscription ,,XDAndroid ".

I'll try do dmesg.txt and logcat.txt but but I nothing promised.
[Touch Pro, Fuze Android Development] Eodun:
Try this:

How to make logs - command line way

1.- If you're in Android, reboot to WM (clean start)

2.- Launch Haret, let Android set down

3.- Enter Settings - Dev tools - Terminal Emulator

4.- write: "su", hit enter, "dmesg > /sdcard/dmesg.txt", hit enter

5.- write: "logcat > /sdcard/logcat.txt", hit enter

6.- Start Camera, mess with it, including taking photo if it works

7.- Exit to Home (via red buton), shut off device and get both txt's from root of sdcard.

8.- Attach them to the dev thread!
[Touch Pro, Fuze Android Development] Erikson89:
Topaz

Also tested 3MP and it works on Topaz, too. So only 5MP crashes the app.
[Touch Pro, Fuze Android Development] Eodun:
Your icons are smaller now too? lol
[Touch Pro, Fuze Android Development] xdmcdmc:
Hi Eodun, don't know if the icons are smaller or larger cause I didn't work with camera app until now. Anyway I'm very happy to see a lot of progress for android on Blackstone and other devices. With every day, it gets better and better.